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. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 1.9cvs. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 6 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 11 | # |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13 | ## --------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## --------------------- ## |
| 16 | |
| 17 | # Be Bourne compatible |
| 18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19 | emulate sh |
| 20 | NULLCMD=: |
| 21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 22 | # is contrary to our usage. Disable this feature. |
| 23 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24 | setopt NO_GLOB_SUBST |
| 25 | else |
| 26 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32 | # PATH needs CR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 59 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 80 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 81 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 112 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 222 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 226 | case $as_dir in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | /*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 240 | # Be Bourne compatible |
| 241 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 242 | emulate sh |
| 243 | NULLCMD=: |
| 244 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 245 | # is contrary to our usage. Disable this feature. |
| 246 | alias -g '${1+"$@"}'='"$@"' |
| 247 | setopt NO_GLOB_SUBST |
| 248 | else |
| 249 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 250 | fi |
| 251 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 252 | DUALCASE=1; export DUALCASE # for MKS sh |
| 253 | |
| 254 | : |
| 255 | _ASEOF |
| 256 | }; then |
| 257 | CONFIG_SHELL=$as_shell |
| 258 | as_have_required=yes |
| 259 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 260 | # Be Bourne compatible |
| 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
| 269 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 270 | fi |
| 271 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 272 | DUALCASE=1; export DUALCASE # for MKS sh |
| 273 | |
| 274 | : |
| 275 | (as_func_return () { |
| 276 | (exit $1) |
| 277 | } |
| 278 | as_func_success () { |
| 279 | as_func_return 0 |
| 280 | } |
| 281 | as_func_failure () { |
| 282 | as_func_return 1 |
| 283 | } |
| 284 | as_func_ret_success () { |
| 285 | return 0 |
| 286 | } |
| 287 | as_func_ret_failure () { |
| 288 | return 1 |
| 289 | } |
| 290 | |
| 291 | exitcode=0 |
| 292 | if as_func_success; then |
| 293 | : |
| 294 | else |
| 295 | exitcode=1 |
| 296 | echo as_func_success failed. |
| 297 | fi |
| 298 | |
| 299 | if as_func_failure; then |
| 300 | exitcode=1 |
| 301 | echo as_func_failure succeeded. |
| 302 | fi |
| 303 | |
| 304 | if as_func_ret_success; then |
| 305 | : |
| 306 | else |
| 307 | exitcode=1 |
| 308 | echo as_func_ret_success failed. |
| 309 | fi |
| 310 | |
| 311 | if as_func_ret_failure; then |
| 312 | exitcode=1 |
| 313 | echo as_func_ret_failure succeeded. |
| 314 | fi |
| 315 | |
| 316 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 317 | : |
| 318 | else |
| 319 | exitcode=1 |
| 320 | echo positional parameters were not saved. |
| 321 | fi |
| 322 | |
| 323 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 324 | |
| 325 | ( |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 326 | as_lineno_1=$LINENO |
| 327 | as_lineno_2=$LINENO |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 328 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 329 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 330 | |
| 331 | _ASEOF |
| 332 | }; then |
| 333 | break |
| 334 | fi |
| 335 | |
| 336 | fi |
| 337 | |
| 338 | done |
| 339 | |
| 340 | if test "x$CONFIG_SHELL" != x; then |
| 341 | for as_var in BASH_ENV ENV |
| 342 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 343 | done |
| 344 | export CONFIG_SHELL |
| 345 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 346 | fi |
| 347 | |
| 348 | |
| 349 | if test $as_have_required = no; then |
| 350 | echo This script requires a shell more modern than all the |
| 351 | echo shells that I found on your system. Please install a |
| 352 | echo modern shell, or manually run the script under such a |
| 353 | echo shell if you do have one. |
| 354 | { (exit 1); exit 1; } |
| 355 | fi |
| 356 | |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | |
| 363 | |
| 364 | (eval "as_func_return () { |
| 365 | (exit \$1) |
| 366 | } |
| 367 | as_func_success () { |
| 368 | as_func_return 0 |
| 369 | } |
| 370 | as_func_failure () { |
| 371 | as_func_return 1 |
| 372 | } |
| 373 | as_func_ret_success () { |
| 374 | return 0 |
| 375 | } |
| 376 | as_func_ret_failure () { |
| 377 | return 1 |
| 378 | } |
| 379 | |
| 380 | exitcode=0 |
| 381 | if as_func_success; then |
| 382 | : |
| 383 | else |
| 384 | exitcode=1 |
| 385 | echo as_func_success failed. |
| 386 | fi |
| 387 | |
| 388 | if as_func_failure; then |
| 389 | exitcode=1 |
| 390 | echo as_func_failure succeeded. |
| 391 | fi |
| 392 | |
| 393 | if as_func_ret_success; then |
| 394 | : |
| 395 | else |
| 396 | exitcode=1 |
| 397 | echo as_func_ret_success failed. |
| 398 | fi |
| 399 | |
| 400 | if as_func_ret_failure; then |
| 401 | exitcode=1 |
| 402 | echo as_func_ret_failure succeeded. |
| 403 | fi |
| 404 | |
| 405 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 406 | : |
| 407 | else |
| 408 | exitcode=1 |
| 409 | echo positional parameters were not saved. |
| 410 | fi |
| 411 | |
| 412 | test \$exitcode = 0") || { |
| 413 | echo No shell found that supports shell functions. |
| 414 | echo Please tell autoconf@gnu.org about your system, |
| 415 | echo including any error possibly output before this |
| 416 | echo message |
| 417 | } |
| 418 | |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO |
| 422 | as_lineno_2=$LINENO |
| 423 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 424 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 425 | |
| 426 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 427 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 428 | # line-number line after each line using $LINENO; the second 'sed' |
| 429 | # does the real work. The second script uses 'N' to pair each |
| 430 | # line-number line with the line containing $LINENO, and appends |
| 431 | # trailing '-' during substitution so that $LINENO is not a special |
| 432 | # case at line end. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 433 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 435 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 440 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 445 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 448 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 449 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 450 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 451 | chmod +x "$as_me.lineno" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 452 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 453 | { (exit 1); exit 1; }; } |
| 454 | |
| 455 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 456 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | # original and so on. Autoconf is especially sensitive to this). |
| 458 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 459 | # Exit status is that of the last command. |
| 460 | exit |
| 461 | } |
| 462 | |
| 463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 464 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 465 | as_dirname=dirname |
| 466 | else |
| 467 | as_dirname=false |
| 468 | fi |
| 469 | |
| 470 | ECHO_C= ECHO_N= ECHO_T= |
| 471 | case `echo -n x` in |
| 472 | -n*) |
| 473 | case `echo 'x\c'` in |
| 474 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 475 | *) ECHO_C='\c';; |
| 476 | esac;; |
| 477 | *) |
| 478 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 479 | esac |
| 480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 481 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 482 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 483 | as_expr=expr |
| 484 | else |
| 485 | as_expr=false |
| 486 | fi |
| 487 | |
| 488 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 489 | if test -d conf$$.dir; then |
| 490 | rm -f conf$$.dir/conf$$.file |
| 491 | else |
| 492 | rm -f conf$$.dir |
| 493 | mkdir conf$$.dir |
| 494 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 495 | echo >conf$$.file |
| 496 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 497 | as_ln_s='ln -s' |
| 498 | # ... but there are two gotchas: |
| 499 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 500 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 501 | # In both cases, we have to default to `cp -p'. |
| 502 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 503 | as_ln_s='cp -p' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 504 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 505 | as_ln_s=ln |
| 506 | else |
| 507 | as_ln_s='cp -p' |
| 508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 509 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 510 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 511 | |
| 512 | if mkdir -p . 2>/dev/null; then |
| 513 | as_mkdir_p=: |
| 514 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 515 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 516 | as_mkdir_p=false |
| 517 | fi |
| 518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 519 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 520 | # systems may use methods other than mode bits to determine executability. |
| 521 | cat >conf$$.file <<_ASEOF |
| 522 | #! /bin/sh |
| 523 | exit 0 |
| 524 | _ASEOF |
| 525 | chmod +x conf$$.file |
| 526 | if test -x conf$$.file >/dev/null 2>&1; then |
| 527 | as_executable_p="test -x" |
| 528 | else |
| 529 | as_executable_p=: |
| 530 | fi |
| 531 | rm -f conf$$.file |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 532 | |
| 533 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 535 | |
| 536 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 538 | |
| 539 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 540 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 541 | |
| 542 | # Check that we are running under the correct shell. |
| 543 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 544 | |
| 545 | case X$ECHO in |
| 546 | X*--fallback-echo) |
| 547 | # Remove one level of quotation (which was required for Make). |
| 548 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 549 | ;; |
| 550 | esac |
| 551 | |
| 552 | echo=${ECHO-echo} |
| 553 | if test "X$1" = X--no-reexec; then |
| 554 | # Discard the --no-reexec flag, and continue. |
| 555 | shift |
| 556 | elif test "X$1" = X--fallback-echo; then |
| 557 | # Avoid inline document here, it may be left over |
| 558 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 559 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 560 | # Yippee, $echo works! |
| 561 | : |
| 562 | else |
| 563 | # Restart under the correct shell. |
| 564 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 565 | fi |
| 566 | |
| 567 | if test "X$1" = X--fallback-echo; then |
| 568 | # used as fallback echo |
| 569 | shift |
| 570 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 571 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 572 | EOF |
| 573 | exit 0 |
| 574 | fi |
| 575 | |
| 576 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 577 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 579 | |
| 580 | if test -z "$ECHO"; then |
| 581 | if test "X${echo_test_string+set}" != Xset; then |
| 582 | # find a string as large as possible, as long as the shell can cope with it |
| 583 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 584 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 585 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 586 | echo_test_string=`eval $cmd` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 588 | then |
| 589 | break |
| 590 | fi |
| 591 | done |
| 592 | fi |
| 593 | |
| 594 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 595 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 596 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 597 | : |
| 598 | else |
| 599 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 600 | # backslashes. This makes it impossible to quote backslashes using |
| 601 | # echo "$something" | sed 's/\\/\\\\/g' |
| 602 | # |
| 603 | # So, first we look for a working echo in the user's PATH. |
| 604 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 605 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 606 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 607 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 608 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 609 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | echo="$dir/echo" |
| 613 | break |
| 614 | fi |
| 615 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 616 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 617 | |
| 618 | if test "X$echo" = Xecho; then |
| 619 | # We didn't find a better echo, so look for alternatives. |
| 620 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 621 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 623 | # This shell has a builtin print -r that does the trick. |
| 624 | echo='print -r' |
| 625 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 626 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 627 | # If we have ksh, try running configure again with it. |
| 628 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 629 | export ORIGINAL_CONFIG_SHELL |
| 630 | CONFIG_SHELL=/bin/ksh |
| 631 | export CONFIG_SHELL |
| 632 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 633 | else |
| 634 | # Try using printf. |
| 635 | echo='printf %s\n' |
| 636 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 637 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 638 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 639 | # Cool, printf works |
| 640 | : |
| 641 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = 'X\t' && |
| 643 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 644 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 645 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 646 | export CONFIG_SHELL |
| 647 | SHELL="$CONFIG_SHELL" |
| 648 | export SHELL |
| 649 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 650 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = 'X\t' && |
| 652 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 655 | else |
| 656 | # maybe with a smaller string... |
| 657 | prev=: |
| 658 | |
| 659 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 660 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 661 | then |
| 662 | break |
| 663 | fi |
| 664 | prev="$cmd" |
| 665 | done |
| 666 | |
| 667 | if test "$prev" != 'sed 50q "$0"'; then |
| 668 | echo_test_string=`eval $prev` |
| 669 | export echo_test_string |
| 670 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 671 | else |
| 672 | # Oops. We lost completely, so just stick with echo. |
| 673 | echo=echo |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | fi |
| 679 | fi |
| 680 | |
| 681 | # Copy echo and quote the copy suitably for passing to libtool from |
| 682 | # the Makefile, instead of quoting the original, which is used later. |
| 683 | ECHO=$echo |
| 684 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 685 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 686 | fi |
| 687 | |
| 688 | |
| 689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 690 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 691 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 692 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 693 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 695 | exec 7<&0 </dev/null 6>&1 |
| 696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 697 | # Name of the host. |
| 698 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 699 | # so uname gets run too. |
| 700 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 701 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 702 | # |
| 703 | # Initializations. |
| 704 | # |
| 705 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 706 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 707 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 708 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 709 | cross_compiling=no |
| 710 | subdirs= |
| 711 | MFLAGS= |
| 712 | MAKEFLAGS= |
| 713 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 714 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 715 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 716 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 717 | PACKAGE_TARNAME='-llvm-' |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='1.9cvs' |
| 719 | PACKAGE_STRING='llvm 1.9cvs' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 720 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 721 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 722 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 723 | # Factoring default headers for most tests. |
| 724 | ac_includes_default="\ |
| 725 | #include <stdio.h> |
| 726 | #if HAVE_SYS_TYPES_H |
| 727 | # include <sys/types.h> |
| 728 | #endif |
| 729 | #if HAVE_SYS_STAT_H |
| 730 | # include <sys/stat.h> |
| 731 | #endif |
| 732 | #if STDC_HEADERS |
| 733 | # include <stdlib.h> |
| 734 | # include <stddef.h> |
| 735 | #else |
| 736 | # if HAVE_STDLIB_H |
| 737 | # include <stdlib.h> |
| 738 | # endif |
| 739 | #endif |
| 740 | #if HAVE_STRING_H |
| 741 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 742 | # include <memory.h> |
| 743 | # endif |
| 744 | # include <string.h> |
| 745 | #endif |
| 746 | #if HAVE_STRINGS_H |
| 747 | # include <strings.h> |
| 748 | #endif |
| 749 | #if HAVE_INTTYPES_H |
| 750 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 751 | #endif |
| 752 | #if HAVE_STDINT_H |
| 753 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 754 | #endif |
| 755 | #if HAVE_UNISTD_H |
| 756 | # include <unistd.h> |
| 757 | #endif" |
| 758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 759 | ac_subst_vars='SHELL |
| 760 | PATH_SEPARATOR |
| 761 | PACKAGE_NAME |
| 762 | PACKAGE_TARNAME |
| 763 | PACKAGE_VERSION |
| 764 | PACKAGE_STRING |
| 765 | PACKAGE_BUGREPORT |
| 766 | exec_prefix |
| 767 | prefix |
| 768 | program_transform_name |
| 769 | bindir |
| 770 | sbindir |
| 771 | libexecdir |
| 772 | datarootdir |
| 773 | datadir |
| 774 | sysconfdir |
| 775 | sharedstatedir |
| 776 | localstatedir |
| 777 | includedir |
| 778 | oldincludedir |
| 779 | docdir |
| 780 | infodir |
| 781 | htmldir |
| 782 | dvidir |
| 783 | pdfdir |
| 784 | psdir |
| 785 | libdir |
| 786 | localedir |
| 787 | mandir |
| 788 | DEFS |
| 789 | ECHO_C |
| 790 | ECHO_N |
| 791 | ECHO_T |
| 792 | LIBS |
| 793 | build_alias |
| 794 | host_alias |
| 795 | target_alias |
| 796 | LLVM_COPYRIGHT |
| 797 | subdirs |
| 798 | build |
| 799 | build_cpu |
| 800 | build_vendor |
| 801 | build_os |
| 802 | host |
| 803 | host_cpu |
| 804 | host_vendor |
| 805 | host_os |
| 806 | target |
| 807 | target_cpu |
| 808 | target_vendor |
| 809 | target_os |
| 810 | OS |
| 811 | LINKALL |
| 812 | NOLINKALL |
| 813 | LLVM_ON_UNIX |
| 814 | LLVM_ON_WIN32 |
| 815 | ARCH |
| 816 | ENDIAN |
| 817 | CC |
| 818 | CFLAGS |
| 819 | LDFLAGS |
| 820 | CPPFLAGS |
| 821 | ac_ct_CC |
| 822 | EXEEXT |
| 823 | OBJEXT |
| 824 | CPP |
| 825 | GREP |
| 826 | EGREP |
| 827 | LLVM_CROSS_COMPILING |
| 828 | BUILD_CC |
| 829 | BUILD_EXEEXT |
| 830 | CVSBUILD |
| 831 | ENABLE_OPTIMIZED |
| 832 | DISABLE_ASSERTIONS |
| 833 | DEBUG_RUNTIME |
| 834 | JIT |
| 835 | TARGET_HAS_JIT |
| 836 | ENABLE_DOXYGEN |
| 837 | ENABLE_THREADS |
| 838 | TARGETS_TO_BUILD |
| 839 | EXTRA_OPTIONS |
| 840 | CXX |
| 841 | CXXFLAGS |
| 842 | ac_ct_CXX |
| 843 | LEX |
| 844 | LEXLIB |
| 845 | LEX_OUTPUT_ROOT |
| 846 | FLEX |
| 847 | YACC |
| 848 | YFLAGS |
| 849 | BISON |
| 850 | NM |
| 851 | ifGNUmake |
| 852 | LN_S |
| 853 | CMP |
| 854 | CP |
| 855 | DATE |
| 856 | FIND |
| 857 | MKDIR |
| 858 | MV |
| 859 | RANLIB |
| 860 | RM |
| 861 | SED |
| 862 | TAR |
| 863 | BINPWD |
| 864 | GRAPHVIZ |
| 865 | DOT |
| 866 | GV |
| 867 | DOTTY |
| 868 | PERL |
| 869 | HAVE_PERL |
| 870 | INSTALL_PROGRAM |
| 871 | INSTALL_SCRIPT |
| 872 | INSTALL_DATA |
| 873 | BZIP2 |
| 874 | DOXYGEN |
| 875 | ETAGS |
| 876 | GROFF |
| 877 | GZIP |
| 878 | POD2HTML |
| 879 | POD2MAN |
| 880 | RUNTEST |
| 881 | TCLSH |
| 882 | ZIP |
| 883 | INSTALL_LTDL_TRUE |
| 884 | INSTALL_LTDL_FALSE |
| 885 | CONVENIENCE_LTDL_TRUE |
| 886 | CONVENIENCE_LTDL_FALSE |
| 887 | LIBADD_DL |
| 888 | ECHO |
| 889 | AR |
| 890 | STRIP |
| 891 | CXXCPP |
| 892 | F77 |
| 893 | FFLAGS |
| 894 | ac_ct_F77 |
| 895 | LIBTOOL |
| 896 | ETAGSFLAGS |
| 897 | LLVMGCC |
| 898 | LLVMGXX |
| 899 | ALLOCA |
| 900 | MMAP_FILE |
| 901 | LLVMCC1 |
| 902 | LLVMCC1PLUS |
| 903 | LLVMGCCDIR |
| 904 | LLVMGCC_VERSION |
| 905 | LLVMGCC_MAJVERS |
| 906 | SHLIBEXT |
| 907 | LLVM_PREFIX |
| 908 | LLVM_BINDIR |
| 909 | LLVM_LIBDIR |
| 910 | LLVM_DATADIR |
| 911 | LLVM_DOCSDIR |
| 912 | LLVM_ETCDIR |
| 913 | LLVM_INCLUDEDIR |
| 914 | LLVM_INFODIR |
| 915 | LLVM_MANDIR |
| 916 | LLVM_CONFIGTIME |
| 917 | LIBOBJS |
| 918 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 919 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 920 | ac_precious_vars='build_alias |
| 921 | host_alias |
| 922 | target_alias |
| 923 | CC |
| 924 | CFLAGS |
| 925 | LDFLAGS |
| 926 | CPPFLAGS |
| 927 | CPP |
| 928 | CXX |
| 929 | CXXFLAGS |
| 930 | CCC |
| 931 | YACC |
| 932 | YFLAGS |
| 933 | CXXCPP |
| 934 | F77 |
| 935 | FFLAGS' |
| 936 | ac_subdirs_all='projects/sample |
| 937 | projects/Stacker |
| 938 | projects/privbracket |
| 939 | projects/llvm-test |
| 940 | projects/llvm-reopt |
| 941 | projects/llvm-gcc |
| 942 | projects/llvm-java |
| 943 | projects/llvm-tv |
| 944 | projects/llvm-poolalloc |
| 945 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 946 | |
| 947 | # Initialize some variables set by options. |
| 948 | ac_init_help= |
| 949 | ac_init_version=false |
| 950 | # The variables have the same names as the options, with |
| 951 | # dashes changed to underlines. |
| 952 | cache_file=/dev/null |
| 953 | exec_prefix=NONE |
| 954 | no_create= |
| 955 | no_recursion= |
| 956 | prefix=NONE |
| 957 | program_prefix=NONE |
| 958 | program_suffix=NONE |
| 959 | program_transform_name=s,x,x, |
| 960 | silent= |
| 961 | site= |
| 962 | srcdir= |
| 963 | verbose= |
| 964 | x_includes=NONE |
| 965 | x_libraries=NONE |
| 966 | |
| 967 | # Installation directory options. |
| 968 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 969 | # and all the variables that are supposed to be based on exec_prefix |
| 970 | # by default will actually change. |
| 971 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 972 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 973 | bindir='${exec_prefix}/bin' |
| 974 | sbindir='${exec_prefix}/sbin' |
| 975 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 976 | datarootdir='${prefix}/share' |
| 977 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | sysconfdir='${prefix}/etc' |
| 979 | sharedstatedir='${prefix}/com' |
| 980 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 981 | includedir='${prefix}/include' |
| 982 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 983 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 984 | infodir='${datarootdir}/info' |
| 985 | htmldir='${docdir}' |
| 986 | dvidir='${docdir}' |
| 987 | pdfdir='${docdir}' |
| 988 | psdir='${docdir}' |
| 989 | libdir='${exec_prefix}/lib' |
| 990 | localedir='${datarootdir}/locale' |
| 991 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 992 | |
| 993 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 994 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 995 | for ac_option |
| 996 | do |
| 997 | # If the previous option needs an argument, assign it. |
| 998 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 999 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1000 | ac_prev= |
| 1001 | continue |
| 1002 | fi |
| 1003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | case $ac_option in |
| 1005 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1006 | *) ac_optarg=yes ;; |
| 1007 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | |
| 1009 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1010 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1011 | case $ac_dashdash$ac_option in |
| 1012 | --) |
| 1013 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1014 | |
| 1015 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1016 | ac_prev=bindir ;; |
| 1017 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1018 | bindir=$ac_optarg ;; |
| 1019 | |
| 1020 | -build | --build | --buil | --bui | --bu) |
| 1021 | ac_prev=build_alias ;; |
| 1022 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1023 | build_alias=$ac_optarg ;; |
| 1024 | |
| 1025 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1026 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1027 | ac_prev=cache_file ;; |
| 1028 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1029 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1030 | cache_file=$ac_optarg ;; |
| 1031 | |
| 1032 | --config-cache | -C) |
| 1033 | cache_file=config.cache ;; |
| 1034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1035 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1036 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1037 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1038 | datadir=$ac_optarg ;; |
| 1039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1040 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1041 | | --dataroo | --dataro | --datar) |
| 1042 | ac_prev=datarootdir ;; |
| 1043 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1044 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1045 | datarootdir=$ac_optarg ;; |
| 1046 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1047 | -disable-* | --disable-*) |
| 1048 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1049 | # Reject names that are not valid shell variable names. |
| 1050 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1051 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1052 | { (exit 1); exit 1; }; } |
| 1053 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1054 | eval enable_$ac_feature=no ;; |
| 1055 | |
| 1056 | -docdir | --docdir | --docdi | --doc | --do) |
| 1057 | ac_prev=docdir ;; |
| 1058 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1059 | docdir=$ac_optarg ;; |
| 1060 | |
| 1061 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1062 | ac_prev=dvidir ;; |
| 1063 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1064 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1065 | |
| 1066 | -enable-* | --enable-*) |
| 1067 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1068 | # Reject names that are not valid shell variable names. |
| 1069 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1070 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1071 | { (exit 1); exit 1; }; } |
| 1072 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1073 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1074 | |
| 1075 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1076 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1077 | | --exec | --exe | --ex) |
| 1078 | ac_prev=exec_prefix ;; |
| 1079 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1080 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1081 | | --exec=* | --exe=* | --ex=*) |
| 1082 | exec_prefix=$ac_optarg ;; |
| 1083 | |
| 1084 | -gas | --gas | --ga | --g) |
| 1085 | # Obsolete; use --with-gas. |
| 1086 | with_gas=yes ;; |
| 1087 | |
| 1088 | -help | --help | --hel | --he | -h) |
| 1089 | ac_init_help=long ;; |
| 1090 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1091 | ac_init_help=recursive ;; |
| 1092 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1093 | ac_init_help=short ;; |
| 1094 | |
| 1095 | -host | --host | --hos | --ho) |
| 1096 | ac_prev=host_alias ;; |
| 1097 | -host=* | --host=* | --hos=* | --ho=*) |
| 1098 | host_alias=$ac_optarg ;; |
| 1099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1100 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1101 | ac_prev=htmldir ;; |
| 1102 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1103 | | --ht=*) |
| 1104 | htmldir=$ac_optarg ;; |
| 1105 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1106 | -includedir | --includedir | --includedi | --included | --include \ |
| 1107 | | --includ | --inclu | --incl | --inc) |
| 1108 | ac_prev=includedir ;; |
| 1109 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1110 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1111 | includedir=$ac_optarg ;; |
| 1112 | |
| 1113 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1114 | ac_prev=infodir ;; |
| 1115 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1116 | infodir=$ac_optarg ;; |
| 1117 | |
| 1118 | -libdir | --libdir | --libdi | --libd) |
| 1119 | ac_prev=libdir ;; |
| 1120 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1121 | libdir=$ac_optarg ;; |
| 1122 | |
| 1123 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1124 | | --libexe | --libex | --libe) |
| 1125 | ac_prev=libexecdir ;; |
| 1126 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1127 | | --libexe=* | --libex=* | --libe=*) |
| 1128 | libexecdir=$ac_optarg ;; |
| 1129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1130 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1131 | ac_prev=localedir ;; |
| 1132 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1133 | localedir=$ac_optarg ;; |
| 1134 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1135 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1136 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1137 | ac_prev=localstatedir ;; |
| 1138 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1139 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1140 | localstatedir=$ac_optarg ;; |
| 1141 | |
| 1142 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1143 | ac_prev=mandir ;; |
| 1144 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1145 | mandir=$ac_optarg ;; |
| 1146 | |
| 1147 | -nfp | --nfp | --nf) |
| 1148 | # Obsolete; use --without-fp. |
| 1149 | with_fp=no ;; |
| 1150 | |
| 1151 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1152 | | --no-cr | --no-c | -n) |
| 1153 | no_create=yes ;; |
| 1154 | |
| 1155 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1156 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1157 | no_recursion=yes ;; |
| 1158 | |
| 1159 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1160 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1161 | | --oldin | --oldi | --old | --ol | --o) |
| 1162 | ac_prev=oldincludedir ;; |
| 1163 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1164 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1165 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1166 | oldincludedir=$ac_optarg ;; |
| 1167 | |
| 1168 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1169 | ac_prev=prefix ;; |
| 1170 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1171 | prefix=$ac_optarg ;; |
| 1172 | |
| 1173 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1174 | | --program-pre | --program-pr | --program-p) |
| 1175 | ac_prev=program_prefix ;; |
| 1176 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1177 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1178 | program_prefix=$ac_optarg ;; |
| 1179 | |
| 1180 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1181 | | --program-suf | --program-su | --program-s) |
| 1182 | ac_prev=program_suffix ;; |
| 1183 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1184 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1185 | program_suffix=$ac_optarg ;; |
| 1186 | |
| 1187 | -program-transform-name | --program-transform-name \ |
| 1188 | | --program-transform-nam | --program-transform-na \ |
| 1189 | | --program-transform-n | --program-transform- \ |
| 1190 | | --program-transform | --program-transfor \ |
| 1191 | | --program-transfo | --program-transf \ |
| 1192 | | --program-trans | --program-tran \ |
| 1193 | | --progr-tra | --program-tr | --program-t) |
| 1194 | ac_prev=program_transform_name ;; |
| 1195 | -program-transform-name=* | --program-transform-name=* \ |
| 1196 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1197 | | --program-transform-n=* | --program-transform-=* \ |
| 1198 | | --program-transform=* | --program-transfor=* \ |
| 1199 | | --program-transfo=* | --program-transf=* \ |
| 1200 | | --program-trans=* | --program-tran=* \ |
| 1201 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1202 | program_transform_name=$ac_optarg ;; |
| 1203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1204 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1205 | ac_prev=pdfdir ;; |
| 1206 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1207 | pdfdir=$ac_optarg ;; |
| 1208 | |
| 1209 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1210 | ac_prev=psdir ;; |
| 1211 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1212 | psdir=$ac_optarg ;; |
| 1213 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1215 | | -silent | --silent | --silen | --sile | --sil) |
| 1216 | silent=yes ;; |
| 1217 | |
| 1218 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1219 | ac_prev=sbindir ;; |
| 1220 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1221 | | --sbi=* | --sb=*) |
| 1222 | sbindir=$ac_optarg ;; |
| 1223 | |
| 1224 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1225 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1226 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1227 | | --sha | --sh) |
| 1228 | ac_prev=sharedstatedir ;; |
| 1229 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1230 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1231 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1232 | | --sha=* | --sh=*) |
| 1233 | sharedstatedir=$ac_optarg ;; |
| 1234 | |
| 1235 | -site | --site | --sit) |
| 1236 | ac_prev=site ;; |
| 1237 | -site=* | --site=* | --sit=*) |
| 1238 | site=$ac_optarg ;; |
| 1239 | |
| 1240 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1241 | ac_prev=srcdir ;; |
| 1242 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1243 | srcdir=$ac_optarg ;; |
| 1244 | |
| 1245 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1246 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1247 | ac_prev=sysconfdir ;; |
| 1248 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1249 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1250 | sysconfdir=$ac_optarg ;; |
| 1251 | |
| 1252 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1253 | ac_prev=target_alias ;; |
| 1254 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1255 | target_alias=$ac_optarg ;; |
| 1256 | |
| 1257 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1258 | verbose=yes ;; |
| 1259 | |
| 1260 | -version | --version | --versio | --versi | --vers | -V) |
| 1261 | ac_init_version=: ;; |
| 1262 | |
| 1263 | -with-* | --with-*) |
| 1264 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1265 | # Reject names that are not valid shell variable names. |
| 1266 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1267 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1268 | { (exit 1); exit 1; }; } |
| 1269 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1270 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1271 | |
| 1272 | -without-* | --without-*) |
| 1273 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1274 | # Reject names that are not valid shell variable names. |
| 1275 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1276 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1277 | { (exit 1); exit 1; }; } |
| 1278 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1279 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1280 | |
| 1281 | --x) |
| 1282 | # Obsolete; use --with-x. |
| 1283 | with_x=yes ;; |
| 1284 | |
| 1285 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1286 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1287 | ac_prev=x_includes ;; |
| 1288 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1289 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1290 | x_includes=$ac_optarg ;; |
| 1291 | |
| 1292 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1293 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1294 | ac_prev=x_libraries ;; |
| 1295 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1296 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1297 | x_libraries=$ac_optarg ;; |
| 1298 | |
| 1299 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1300 | Try \`$0 --help' for more information." >&2 |
| 1301 | { (exit 1); exit 1; }; } |
| 1302 | ;; |
| 1303 | |
| 1304 | *=*) |
| 1305 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1306 | # Reject names that are not valid shell variable names. |
| 1307 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1308 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1309 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1310 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1311 | export $ac_envvar ;; |
| 1312 | |
| 1313 | *) |
| 1314 | # FIXME: should be removed in autoconf 3.0. |
| 1315 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1316 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1317 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1318 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1319 | ;; |
| 1320 | |
| 1321 | esac |
| 1322 | done |
| 1323 | |
| 1324 | if test -n "$ac_prev"; then |
| 1325 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1326 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1327 | { (exit 1); exit 1; }; } |
| 1328 | fi |
| 1329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1330 | # Be sure to have absolute directory names. |
| 1331 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1332 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1333 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1334 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1335 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1336 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1337 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1338 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1339 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1341 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1342 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1343 | done |
| 1344 | |
| 1345 | # There might be people who depend on the old broken behavior: `$host' |
| 1346 | # used to hold the argument of --host etc. |
| 1347 | # FIXME: To remove some day. |
| 1348 | build=$build_alias |
| 1349 | host=$host_alias |
| 1350 | target=$target_alias |
| 1351 | |
| 1352 | # FIXME: To remove some day. |
| 1353 | if test "x$host_alias" != x; then |
| 1354 | if test "x$build_alias" = x; then |
| 1355 | cross_compiling=maybe |
| 1356 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1357 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1358 | elif test "x$build_alias" != "x$host_alias"; then |
| 1359 | cross_compiling=yes |
| 1360 | fi |
| 1361 | fi |
| 1362 | |
| 1363 | ac_tool_prefix= |
| 1364 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1365 | |
| 1366 | test "$silent" = yes && exec 6>/dev/null |
| 1367 | |
| 1368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1369 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1370 | ac_ls_di=`ls -di .` && |
| 1371 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1372 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1373 | { (exit 1); exit 1; }; } |
| 1374 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1375 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1376 | { (exit 1); exit 1; }; } |
| 1377 | |
| 1378 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1379 | # Find the source files, if location was not specified. |
| 1380 | if test -z "$srcdir"; then |
| 1381 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1382 | # Try the directory containing this script, then the parent directory. |
| 1383 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1385 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1386 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1387 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1388 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1389 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1390 | s//\1/ |
| 1391 | q |
| 1392 | } |
| 1393 | /^X\(\/\/\)[^/].*/{ |
| 1394 | s//\1/ |
| 1395 | q |
| 1396 | } |
| 1397 | /^X\(\/\/\)$/{ |
| 1398 | s//\1/ |
| 1399 | q |
| 1400 | } |
| 1401 | /^X\(\/\).*/{ |
| 1402 | s//\1/ |
| 1403 | q |
| 1404 | } |
| 1405 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1406 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1408 | srcdir=.. |
| 1409 | fi |
| 1410 | else |
| 1411 | ac_srcdir_defaulted=no |
| 1412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1413 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1414 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1415 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1416 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1417 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1419 | ac_abs_confdir=`( |
| 1420 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1421 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1422 | pwd)` |
| 1423 | # When building in place, set srcdir=. |
| 1424 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1425 | srcdir=. |
| 1426 | fi |
| 1427 | # Remove unnecessary trailing slashes from srcdir. |
| 1428 | # Double slashes in file names in object file debugging info |
| 1429 | # mess up M-x gdb in Emacs. |
| 1430 | case $srcdir in |
| 1431 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1432 | esac |
| 1433 | for ac_var in $ac_precious_vars; do |
| 1434 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1435 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1436 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1437 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1438 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1439 | |
| 1440 | # |
| 1441 | # Report the --help message. |
| 1442 | # |
| 1443 | if test "$ac_init_help" = "long"; then |
| 1444 | # Omit some internal or obsolete options to make the list less imposing. |
| 1445 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1446 | cat <<_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1447 | \`configure' configures llvm 1.9cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1448 | |
| 1449 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1450 | |
| 1451 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1452 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1453 | |
| 1454 | Defaults for the options are specified in brackets. |
| 1455 | |
| 1456 | Configuration: |
| 1457 | -h, --help display this help and exit |
| 1458 | --help=short display options specific to this package |
| 1459 | --help=recursive display the short help of all the included packages |
| 1460 | -V, --version display version information and exit |
| 1461 | -q, --quiet, --silent do not print \`checking...' messages |
| 1462 | --cache-file=FILE cache test results in FILE [disabled] |
| 1463 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1464 | -n, --no-create do not create output files |
| 1465 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1466 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1467 | Installation directories: |
| 1468 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1469 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1470 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1471 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | |
| 1473 | By default, \`make install' will install all the files in |
| 1474 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1475 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1476 | for instance \`--prefix=\$HOME'. |
| 1477 | |
| 1478 | For better control, use the options below. |
| 1479 | |
| 1480 | Fine tuning of the installation directories: |
| 1481 | --bindir=DIR user executables [EPREFIX/bin] |
| 1482 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1483 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1484 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1485 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1486 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1487 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1488 | --includedir=DIR C header files [PREFIX/include] |
| 1489 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1490 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1491 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1492 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1493 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1494 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1495 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1496 | --htmldir=DIR html documentation [DOCDIR] |
| 1497 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1498 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1499 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | _ACEOF |
| 1501 | |
| 1502 | cat <<\_ACEOF |
| 1503 | |
| 1504 | System types: |
| 1505 | --build=BUILD configure for building on BUILD [guessed] |
| 1506 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1507 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1508 | _ACEOF |
| 1509 | fi |
| 1510 | |
| 1511 | if test -n "$ac_init_help"; then |
| 1512 | case $ac_init_help in |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1513 | short | recursive ) echo "Configuration of llvm 1.9cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | esac |
| 1515 | cat <<\_ACEOF |
| 1516 | |
| 1517 | Optional Features: |
| 1518 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1519 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1520 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1521 | --enable-assertions |
Reid Spencer | 6e96d81 | 2005-12-21 03:31:53 +0000 | [diff] [blame] | 1522 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1523 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1524 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1525 | --enable-threads Use threads if available (default is YES) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1526 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1527 | all,host-only,{target-name} (default=all) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1528 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1529 | --enable-shared[=PKGS] build shared libraries |
| 1530 | [default=enable_shared_default] |
| 1531 | --enable-static[=PKGS] build static libraries |
| 1532 | [default=enable_static_default] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1533 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1534 | optimize for fast installation |
| 1535 | [default=enable_Fast_install_default] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1536 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1537 | |
| 1538 | Optional Packages: |
| 1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1541 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1542 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1543 | --with-extra-options Specify addtional options to compile LLVM with |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1544 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1545 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1546 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1547 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1548 | --with-tags[=TAGS] include additional configurations [automatic] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1549 | |
| 1550 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1551 | CC C compiler command |
| 1552 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1553 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1554 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1555 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1556 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1557 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1558 | CXX C++ compiler command |
| 1559 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1560 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1561 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1562 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1563 | This script will default YFLAGS to the empty string to avoid a |
| 1564 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1565 | CXXCPP C++ preprocessor |
| 1566 | F77 Fortran 77 compiler command |
| 1567 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1568 | |
| 1569 | Use these variables to override the choices made by `configure' or to help |
| 1570 | it to find libraries and programs with nonstandard names/locations. |
| 1571 | |
| 1572 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1573 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1574 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1575 | fi |
| 1576 | |
| 1577 | if test "$ac_init_help" = "recursive"; then |
| 1578 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1579 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1580 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1581 | ac_builddir=. |
| 1582 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1583 | case "$ac_dir" in |
| 1584 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1585 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1586 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1587 | # A ".." for each directory in $ac_dir_suffix. |
| 1588 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1589 | case $ac_top_builddir_sub in |
| 1590 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1591 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1592 | esac ;; |
| 1593 | esac |
| 1594 | ac_abs_top_builddir=$ac_pwd |
| 1595 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1596 | # for backward compatibility: |
| 1597 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | |
| 1599 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1600 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1601 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1602 | ac_top_srcdir=$ac_top_builddir_sub |
| 1603 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1604 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1605 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1606 | ac_top_srcdir=$srcdir |
| 1607 | ac_abs_top_srcdir=$srcdir ;; |
| 1608 | *) # Relative name. |
| 1609 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1610 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1611 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1612 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1613 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1615 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1616 | # Check for guested configure. |
| 1617 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1618 | echo && |
| 1619 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1620 | elif test -f "$ac_srcdir/configure"; then |
| 1621 | echo && |
| 1622 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1623 | else |
| 1624 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1625 | fi || ac_status=$? |
| 1626 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | done |
| 1628 | fi |
| 1629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1630 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1631 | if $ac_init_version; then |
| 1632 | cat <<\_ACEOF |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1633 | llvm configure 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1634 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1636 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1637 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1638 | This configure script is free software; the Free Software Foundation |
| 1639 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1640 | |
John Criswell | c0c186d | 2005-11-08 21:11:33 +0000 | [diff] [blame] | 1641 | Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1642 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1643 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1645 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1646 | This file contains any messages produced by compilers while |
| 1647 | running configure, to aid debugging if configure makes a mistake. |
| 1648 | |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 1649 | It was created by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1650 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 | |
| 1652 | $ $0 $@ |
| 1653 | |
| 1654 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | { |
| 1657 | cat <<_ASUNAME |
| 1658 | ## --------- ## |
| 1659 | ## Platform. ## |
| 1660 | ## --------- ## |
| 1661 | |
| 1662 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1663 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1664 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1665 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1666 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1667 | |
| 1668 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1669 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1670 | |
| 1671 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1672 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1673 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1674 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1675 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1676 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1677 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1678 | |
| 1679 | _ASUNAME |
| 1680 | |
| 1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1682 | for as_dir in $PATH |
| 1683 | do |
| 1684 | IFS=$as_save_IFS |
| 1685 | test -z "$as_dir" && as_dir=. |
| 1686 | echo "PATH: $as_dir" |
| 1687 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1688 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1689 | |
| 1690 | } >&5 |
| 1691 | |
| 1692 | cat >&5 <<_ACEOF |
| 1693 | |
| 1694 | |
| 1695 | ## ----------- ## |
| 1696 | ## Core tests. ## |
| 1697 | ## ----------- ## |
| 1698 | |
| 1699 | _ACEOF |
| 1700 | |
| 1701 | |
| 1702 | # Keep a trace of the command line. |
| 1703 | # Strip out --no-create and --no-recursion so they do not pile up. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1704 | # 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] | 1705 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1706 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1707 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1708 | ac_configure_args0= |
| 1709 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1710 | ac_must_keep_next=false |
| 1711 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1712 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1713 | for ac_arg |
| 1714 | do |
| 1715 | case $ac_arg in |
| 1716 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1717 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1718 | | -silent | --silent | --silen | --sile | --sil) |
| 1719 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1721 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1722 | esac |
| 1723 | case $ac_pass in |
| 1724 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1725 | 2) |
| 1726 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1727 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1728 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1729 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1730 | case $ac_arg in |
| 1731 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1732 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1733 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1734 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1735 | case "$ac_configure_args0 " in |
| 1736 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1737 | esac |
| 1738 | ;; |
| 1739 | -* ) ac_must_keep_next=true ;; |
| 1740 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1741 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1742 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1743 | ;; |
| 1744 | esac |
| 1745 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1746 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1747 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1748 | $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] | 1749 | |
| 1750 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1751 | # config.log. We remove comments because anyway the quotes in there |
| 1752 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1753 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1754 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1755 | trap 'exit_status=$? |
| 1756 | # Save into config.log some information that might help in debugging. |
| 1757 | { |
| 1758 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1760 | cat <<\_ASBOX |
| 1761 | ## ---------------- ## |
| 1762 | ## Cache variables. ## |
| 1763 | ## ---------------- ## |
| 1764 | _ASBOX |
| 1765 | echo |
| 1766 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1767 | ( |
| 1768 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1769 | eval ac_val=\$$ac_var |
| 1770 | case $ac_val in #( |
| 1771 | *${as_nl}*) |
| 1772 | case $ac_var in #( |
| 1773 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1774 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1775 | esac |
| 1776 | case $ac_var in #( |
| 1777 | _ | IFS | as_nl) ;; #( |
| 1778 | *) $as_unset $ac_var ;; |
| 1779 | esac ;; |
| 1780 | esac |
| 1781 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1782 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1783 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1784 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1785 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1786 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1787 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1788 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1789 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1790 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1791 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1792 | esac | |
| 1793 | sort |
| 1794 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1796 | |
| 1797 | cat <<\_ASBOX |
| 1798 | ## ----------------- ## |
| 1799 | ## Output variables. ## |
| 1800 | ## ----------------- ## |
| 1801 | _ASBOX |
| 1802 | echo |
| 1803 | for ac_var in $ac_subst_vars |
| 1804 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1805 | eval ac_val=\$$ac_var |
| 1806 | case $ac_val in |
| 1807 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1808 | esac |
| 1809 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1810 | done | sort |
| 1811 | echo |
| 1812 | |
| 1813 | if test -n "$ac_subst_files"; then |
| 1814 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | ## ------------------- ## |
| 1816 | ## File substitutions. ## |
| 1817 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1818 | _ASBOX |
| 1819 | echo |
| 1820 | for ac_var in $ac_subst_files |
| 1821 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1822 | eval ac_val=\$$ac_var |
| 1823 | case $ac_val in |
| 1824 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1825 | esac |
| 1826 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1827 | done | sort |
| 1828 | echo |
| 1829 | fi |
| 1830 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | if test -s confdefs.h; then |
| 1832 | cat <<\_ASBOX |
| 1833 | ## ----------- ## |
| 1834 | ## confdefs.h. ## |
| 1835 | ## ----------- ## |
| 1836 | _ASBOX |
| 1837 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1838 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1839 | echo |
| 1840 | fi |
| 1841 | test "$ac_signal" != 0 && |
| 1842 | echo "$as_me: caught signal $ac_signal" |
| 1843 | echo "$as_me: exit $exit_status" |
| 1844 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1845 | rm -f core *.core core.conftest.* && |
| 1846 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1847 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | for ac_signal in 1 2 13 15; do |
| 1850 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1851 | done |
| 1852 | ac_signal=0 |
| 1853 | |
| 1854 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1855 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1856 | |
| 1857 | # Predefined preprocessor variables. |
| 1858 | |
| 1859 | cat >>confdefs.h <<_ACEOF |
| 1860 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1861 | _ACEOF |
| 1862 | |
| 1863 | |
| 1864 | cat >>confdefs.h <<_ACEOF |
| 1865 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1866 | _ACEOF |
| 1867 | |
| 1868 | |
| 1869 | cat >>confdefs.h <<_ACEOF |
| 1870 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1871 | _ACEOF |
| 1872 | |
| 1873 | |
| 1874 | cat >>confdefs.h <<_ACEOF |
| 1875 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1876 | _ACEOF |
| 1877 | |
| 1878 | |
| 1879 | cat >>confdefs.h <<_ACEOF |
| 1880 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1881 | _ACEOF |
| 1882 | |
| 1883 | |
| 1884 | # Let the site file select an alternate cache file if it wants to. |
| 1885 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1886 | if test -n "$CONFIG_SITE"; then |
| 1887 | set x "$CONFIG_SITE" |
| 1888 | elif test "x$prefix" != xNONE; then |
| 1889 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1890 | else |
| 1891 | set x "$ac_default_prefix/share/config.site" \ |
| 1892 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1894 | shift |
| 1895 | for ac_site_file |
| 1896 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1897 | if test -r "$ac_site_file"; then |
| 1898 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1899 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1900 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1901 | . "$ac_site_file" |
| 1902 | fi |
| 1903 | done |
| 1904 | |
| 1905 | if test -r "$cache_file"; then |
| 1906 | # Some versions of bash will fail to source /dev/null (special |
| 1907 | # files actually), so we avoid doing that. |
| 1908 | if test -f "$cache_file"; then |
| 1909 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1910 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1911 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1912 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1913 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1914 | esac |
| 1915 | fi |
| 1916 | else |
| 1917 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1918 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1919 | >$cache_file |
| 1920 | fi |
| 1921 | |
| 1922 | # Check that the precious variables saved in the cache have kept the same |
| 1923 | # value. |
| 1924 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1925 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1926 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1927 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1928 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1929 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1930 | case $ac_old_set,$ac_new_set in |
| 1931 | set,) |
| 1932 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1933 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1934 | ac_cache_corrupted=: ;; |
| 1935 | ,set) |
| 1936 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1937 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1938 | ac_cache_corrupted=: ;; |
| 1939 | ,);; |
| 1940 | *) |
| 1941 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1942 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1943 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1944 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1945 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1946 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1947 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1948 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1949 | fi;; |
| 1950 | esac |
| 1951 | # Pass precious variables to config.status. |
| 1952 | if test "$ac_new_set" = set; then |
| 1953 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1954 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1955 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1956 | esac |
| 1957 | case " $ac_configure_args " in |
| 1958 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1959 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1960 | esac |
| 1961 | fi |
| 1962 | done |
| 1963 | if $ac_cache_corrupted; then |
| 1964 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1965 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1966 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1967 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1968 | { (exit 1); exit 1; }; } |
| 1969 | fi |
| 1970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1971 | |
| 1972 | |
| 1973 | |
| 1974 | |
| 1975 | |
| 1976 | |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 | ac_ext=c |
| 1996 | ac_cpp='$CPP $CPPFLAGS' |
| 1997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2000 | |
| 2001 | |
| 2002 | |
Misha Brukman | 19098e5 | 2005-05-12 22:15:34 +0000 | [diff] [blame] | 2003 | LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2004 | |
| 2005 | |
| 2006 | |
| 2007 | |
| 2008 | |
| 2009 | |
| 2010 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2011 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2012 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2013 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2014 | ac_aux_dir=$ac_dir |
| 2015 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2016 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2017 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2018 | ac_aux_dir=$ac_dir |
| 2019 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2020 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2021 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2022 | ac_aux_dir=$ac_dir |
| 2023 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2024 | break |
| 2025 | fi |
| 2026 | done |
| 2027 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2028 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2029 | 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] | 2030 | { (exit 1); exit 1; }; } |
| 2031 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2032 | |
| 2033 | # These three variables are undocumented and unsupported, |
| 2034 | # and are intended to be withdrawn in a future Autoconf release. |
| 2035 | # They can cause serious problems if a builder's source tree is in a directory |
| 2036 | # whose full name contains unusual characters. |
| 2037 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2038 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2039 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2042 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2043 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2044 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2045 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2046 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2047 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2048 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2049 | fi |
| 2050 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2051 | for i in `ls ${srcdir}/projects` |
| 2052 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2053 | if test -d ${srcdir}/projects/${i} ; then |
| 2054 | case ${i} in |
| 2055 | "CVS") ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2056 | "sample") subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2057 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2058 | "Stacker") subdirs="$subdirs projects/Stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2059 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2060 | "privbracket") subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2061 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2062 | "llvm-test") subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2063 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2064 | "llvm-reopt") subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2065 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2066 | "llvm-gcc") subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2067 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2068 | "llvm-java") subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2069 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2070 | "llvm-tv") subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2071 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2072 | "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2073 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | "llvm-kernel") subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2075 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2076 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2077 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2078 | echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 2079 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2080 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2081 | fi |
| 2082 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2084 | |
| 2085 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2086 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2087 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2088 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2089 | { (exit 1); exit 1; }; } |
| 2090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2091 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2092 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2093 | if test "${ac_cv_build+set}" = set; then |
| 2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2095 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2096 | ac_build_alias=$build_alias |
| 2097 | test "x$ac_build_alias" = x && |
| 2098 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2099 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2100 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2101 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2102 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2103 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2104 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2105 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2106 | { (exit 1); exit 1; }; } |
| 2107 | |
| 2108 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2109 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2110 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2111 | case $ac_cv_build in |
| 2112 | *-*-*) ;; |
| 2113 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2114 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2115 | { (exit 1); exit 1; }; };; |
| 2116 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2117 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2118 | ac_save_IFS=$IFS; IFS='-' |
| 2119 | set x $ac_cv_build |
| 2120 | shift |
| 2121 | build_cpu=$1 |
| 2122 | build_vendor=$2 |
| 2123 | shift; shift |
| 2124 | # Remember, the first character of IFS is used to create $*, |
| 2125 | # except with old shells: |
| 2126 | build_os=$* |
| 2127 | IFS=$ac_save_IFS |
| 2128 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2129 | |
| 2130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2131 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2132 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2133 | if test "${ac_cv_host+set}" = set; then |
| 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2135 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2136 | if test "x$host_alias" = x; then |
| 2137 | ac_cv_host=$ac_cv_build |
| 2138 | else |
| 2139 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2140 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2141 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2142 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2143 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2144 | |
| 2145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2147 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2148 | case $ac_cv_host in |
| 2149 | *-*-*) ;; |
| 2150 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2151 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2152 | { (exit 1); exit 1; }; };; |
| 2153 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2154 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2155 | ac_save_IFS=$IFS; IFS='-' |
| 2156 | set x $ac_cv_host |
| 2157 | shift |
| 2158 | host_cpu=$1 |
| 2159 | host_vendor=$2 |
| 2160 | shift; shift |
| 2161 | # Remember, the first character of IFS is used to create $*, |
| 2162 | # except with old shells: |
| 2163 | host_os=$* |
| 2164 | IFS=$ac_save_IFS |
| 2165 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2166 | |
| 2167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2169 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2170 | if test "${ac_cv_target+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2173 | if test "x$target_alias" = x; then |
| 2174 | ac_cv_target=$ac_cv_host |
| 2175 | else |
| 2176 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2177 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2178 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2179 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2180 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2181 | |
| 2182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2184 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2185 | case $ac_cv_target in |
| 2186 | *-*-*) ;; |
| 2187 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2188 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2189 | { (exit 1); exit 1; }; };; |
| 2190 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2192 | ac_save_IFS=$IFS; IFS='-' |
| 2193 | set x $ac_cv_target |
| 2194 | shift |
| 2195 | target_cpu=$1 |
| 2196 | target_vendor=$2 |
| 2197 | shift; shift |
| 2198 | # Remember, the first character of IFS is used to create $*, |
| 2199 | # except with old shells: |
| 2200 | target_os=$* |
| 2201 | IFS=$ac_save_IFS |
| 2202 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2203 | |
| 2204 | |
| 2205 | # The aliases save the names the user supplied, while $host etc. |
| 2206 | # will get canonicalized. |
| 2207 | test -n "$target_alias" && |
| 2208 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2209 | NONENONEs,x,x, && |
| 2210 | program_prefix=${target_alias}- |
| 2211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2213 | echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2214 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2216 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2217 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2218 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2219 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2220 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2221 | llvm_cv_os_type="AIX" |
| 2222 | llvm_cv_platform_type="Unix" ;; |
| 2223 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2224 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2225 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2226 | llvm_cv_os_type="Cygwin" |
| 2227 | llvm_cv_platform_type="Unix" ;; |
| 2228 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2229 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2230 | llvm_cv_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2231 | llvm_cv_os_type="Darwin" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
| 2233 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2236 | llvm_cv_os_type="FreeBSD" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2238 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2239 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2240 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2241 | llvm_cv_os_type="OpenBSD" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2243 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2245 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="HP-UX" |
| 2247 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2248 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2249 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2250 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2251 | llvm_cv_os_type="Interix" |
| 2252 | llvm_cv_platform_type="Unix" ;; |
| 2253 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2254 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2255 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2256 | llvm_cv_os_type="Linux" |
| 2257 | llvm_cv_platform_type="Unix" ;; |
| 2258 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2260 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2261 | llvm_cv_os_type="SunOS" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
| 2263 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2265 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="Win32" |
| 2267 | llvm_cv_platform_type="Win32" ;; |
| 2268 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2269 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2270 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2271 | llvm_cv_os_type="MingW" |
| 2272 | llvm_cv_platform_type="Win32" ;; |
| 2273 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="" |
| 2275 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="Unknown" |
| 2277 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2278 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2279 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2280 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2281 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2282 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2283 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2284 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2285 | echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} |
Reid Spencer | 886e951 | 2004-08-31 01:34:10 +0000 | [diff] [blame] | 2286 | { (exit 1); exit 1; }; } |
| 2287 | fi |
| 2288 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2289 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2290 | |
| 2291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2292 | LINKALL=$llvm_cv_link_all_option |
| 2293 | |
| 2294 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2295 | |
| 2296 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2297 | case $llvm_cv_platform_type in |
| 2298 | Unix) |
| 2299 | |
| 2300 | cat >>confdefs.h <<\_ACEOF |
| 2301 | #define LLVM_ON_UNIX 1 |
| 2302 | _ACEOF |
| 2303 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2304 | LLVM_ON_UNIX=1 |
| 2305 | |
| 2306 | LLVM_ON_WIN32=0 |
| 2307 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2308 | ;; |
| 2309 | Win32) |
| 2310 | |
| 2311 | cat >>confdefs.h <<\_ACEOF |
| 2312 | #define LLVM_ON_WIN32 1 |
| 2313 | _ACEOF |
| 2314 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2315 | LLVM_ON_UNIX=0 |
| 2316 | |
| 2317 | LLVM_ON_WIN32=1 |
| 2318 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2319 | ;; |
| 2320 | esac |
| 2321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2322 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2323 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2324 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2326 | else |
| 2327 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2328 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2329 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2330 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2331 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2332 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2333 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2334 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2335 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2336 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2338 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2339 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2340 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2341 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2342 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2343 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2344 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2345 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2346 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2347 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2348 | ac_ext=c |
| 2349 | ac_cpp='$CPP $CPPFLAGS' |
| 2350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2353 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2354 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2355 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2356 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2358 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2360 | else |
| 2361 | if test -n "$CC"; then |
| 2362 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2363 | else |
| 2364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2365 | for as_dir in $PATH |
| 2366 | do |
| 2367 | IFS=$as_save_IFS |
| 2368 | test -z "$as_dir" && as_dir=. |
| 2369 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2371 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2373 | break 2 |
| 2374 | fi |
| 2375 | done |
| 2376 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2377 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2378 | |
| 2379 | fi |
| 2380 | fi |
| 2381 | CC=$ac_cv_prog_CC |
| 2382 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2383 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2384 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2385 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2386 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2387 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2388 | fi |
| 2389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2390 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2391 | fi |
| 2392 | if test -z "$ac_cv_prog_CC"; then |
| 2393 | ac_ct_CC=$CC |
| 2394 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2395 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2396 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2398 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2400 | else |
| 2401 | if test -n "$ac_ct_CC"; then |
| 2402 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2403 | else |
| 2404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2405 | for as_dir in $PATH |
| 2406 | do |
| 2407 | IFS=$as_save_IFS |
| 2408 | test -z "$as_dir" && as_dir=. |
| 2409 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2411 | ac_cv_prog_ac_ct_CC="gcc" |
| 2412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2413 | break 2 |
| 2414 | fi |
| 2415 | done |
| 2416 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2417 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2418 | |
| 2419 | fi |
| 2420 | fi |
| 2421 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2422 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2423 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2424 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2425 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2426 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2427 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2428 | fi |
| 2429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2430 | if test "x$ac_ct_CC" = x; then |
| 2431 | CC="" |
| 2432 | else |
| 2433 | case $cross_compiling:$ac_tool_warned in |
| 2434 | yes:) |
| 2435 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2436 | whose name does not start with the host triplet. If you think this |
| 2437 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2438 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2439 | whose name does not start with the host triplet. If you think this |
| 2440 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2441 | ac_tool_warned=yes ;; |
| 2442 | esac |
| 2443 | CC=$ac_ct_CC |
| 2444 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2445 | else |
| 2446 | CC="$ac_cv_prog_CC" |
| 2447 | fi |
| 2448 | |
| 2449 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2450 | if test -n "$ac_tool_prefix"; then |
| 2451 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2452 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2453 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2455 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2457 | else |
| 2458 | if test -n "$CC"; then |
| 2459 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2460 | else |
| 2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2462 | for as_dir in $PATH |
| 2463 | do |
| 2464 | IFS=$as_save_IFS |
| 2465 | test -z "$as_dir" && as_dir=. |
| 2466 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2468 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2470 | break 2 |
| 2471 | fi |
| 2472 | done |
| 2473 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2474 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2475 | |
| 2476 | fi |
| 2477 | fi |
| 2478 | CC=$ac_cv_prog_CC |
| 2479 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2480 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2481 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2482 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2483 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2484 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2485 | fi |
| 2486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2487 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2488 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2489 | fi |
| 2490 | if test -z "$CC"; then |
| 2491 | # Extract the first word of "cc", so it can be a program name with args. |
| 2492 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2493 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2495 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2497 | else |
| 2498 | if test -n "$CC"; then |
| 2499 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2500 | else |
| 2501 | ac_prog_rejected=no |
| 2502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2503 | for as_dir in $PATH |
| 2504 | do |
| 2505 | IFS=$as_save_IFS |
| 2506 | test -z "$as_dir" && as_dir=. |
| 2507 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2509 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2510 | ac_prog_rejected=yes |
| 2511 | continue |
| 2512 | fi |
| 2513 | ac_cv_prog_CC="cc" |
| 2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2515 | break 2 |
| 2516 | fi |
| 2517 | done |
| 2518 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2519 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2520 | |
| 2521 | if test $ac_prog_rejected = yes; then |
| 2522 | # We found a bogon in the path, so make sure we never use it. |
| 2523 | set dummy $ac_cv_prog_CC |
| 2524 | shift |
| 2525 | if test $# != 0; then |
| 2526 | # We chose a different compiler from the bogus one. |
| 2527 | # However, it has the same basename, so the bogon will be chosen |
| 2528 | # first if we set CC to just the basename; use the full file name. |
| 2529 | shift |
| 2530 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2531 | fi |
| 2532 | fi |
| 2533 | fi |
| 2534 | fi |
| 2535 | CC=$ac_cv_prog_CC |
| 2536 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2537 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2538 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2539 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2540 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2541 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2542 | fi |
| 2543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2544 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | if test -z "$CC"; then |
| 2547 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2548 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2549 | do |
| 2550 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2551 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2554 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2556 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | if test -n "$CC"; then |
| 2558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2559 | else |
| 2560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2561 | for as_dir in $PATH |
| 2562 | do |
| 2563 | IFS=$as_save_IFS |
| 2564 | test -z "$as_dir" && as_dir=. |
| 2565 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2567 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2569 | break 2 |
| 2570 | fi |
| 2571 | done |
| 2572 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2573 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2574 | |
| 2575 | fi |
| 2576 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2577 | CC=$ac_cv_prog_CC |
| 2578 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2579 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2580 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2581 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2583 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2584 | fi |
| 2585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2586 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2587 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2588 | done |
| 2589 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2590 | if test -z "$CC"; then |
| 2591 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2592 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2593 | do |
| 2594 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2595 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2596 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2598 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2600 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2601 | if test -n "$ac_ct_CC"; then |
| 2602 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | else |
| 2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2605 | for as_dir in $PATH |
| 2606 | do |
| 2607 | IFS=$as_save_IFS |
| 2608 | test -z "$as_dir" && as_dir=. |
| 2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2611 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2613 | break 2 |
| 2614 | fi |
| 2615 | done |
| 2616 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2617 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2618 | |
| 2619 | fi |
| 2620 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2621 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2622 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2624 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2625 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2626 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2627 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | fi |
| 2629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2630 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2631 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2632 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2634 | if test "x$ac_ct_CC" = x; then |
| 2635 | CC="" |
| 2636 | else |
| 2637 | case $cross_compiling:$ac_tool_warned in |
| 2638 | yes:) |
| 2639 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2640 | whose name does not start with the host triplet. If you think this |
| 2641 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2642 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2643 | whose name does not start with the host triplet. If you think this |
| 2644 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2645 | ac_tool_warned=yes ;; |
| 2646 | esac |
| 2647 | CC=$ac_ct_CC |
| 2648 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2649 | fi |
| 2650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2651 | fi |
| 2652 | |
| 2653 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2654 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2655 | See \`config.log' for more details." >&5 |
| 2656 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2657 | See \`config.log' for more details." >&2;} |
| 2658 | { (exit 1); exit 1; }; } |
| 2659 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2660 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2661 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2662 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2663 | { (ac_try="$ac_compiler --version >&5" |
| 2664 | case "(($ac_try" in |
| 2665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2666 | *) ac_try_echo=$ac_try;; |
| 2667 | esac |
| 2668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2669 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2670 | ac_status=$? |
| 2671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2672 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2673 | { (ac_try="$ac_compiler -v >&5" |
| 2674 | case "(($ac_try" in |
| 2675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2676 | *) ac_try_echo=$ac_try;; |
| 2677 | esac |
| 2678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2679 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2680 | ac_status=$? |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2683 | { (ac_try="$ac_compiler -V >&5" |
| 2684 | case "(($ac_try" in |
| 2685 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2686 | *) ac_try_echo=$ac_try;; |
| 2687 | esac |
| 2688 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2689 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2690 | ac_status=$? |
| 2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2692 | (exit $ac_status); } |
| 2693 | |
| 2694 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2695 | /* confdefs.h. */ |
| 2696 | _ACEOF |
| 2697 | cat confdefs.h >>conftest.$ac_ext |
| 2698 | cat >>conftest.$ac_ext <<_ACEOF |
| 2699 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | int |
| 2702 | main () |
| 2703 | { |
| 2704 | |
| 2705 | ; |
| 2706 | return 0; |
| 2707 | } |
| 2708 | _ACEOF |
| 2709 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2710 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | # Try to create an executable without -o first, disregard a.out. |
| 2712 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2713 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2714 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2715 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2717 | # |
| 2718 | # List of possible output files, starting from the most likely. |
| 2719 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2720 | # only as a last resort. b.out is created by i960 compilers. |
| 2721 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2722 | # |
| 2723 | # The IRIX 6 linker writes into existing files which may not be |
| 2724 | # executable, retaining their permissions. Remove them first so a |
| 2725 | # subsequent execution test works. |
| 2726 | ac_rmfiles= |
| 2727 | for ac_file in $ac_files |
| 2728 | do |
| 2729 | case $ac_file in |
| 2730 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2731 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2732 | esac |
| 2733 | done |
| 2734 | rm -f $ac_rmfiles |
| 2735 | |
| 2736 | if { (ac_try="$ac_link_default" |
| 2737 | case "(($ac_try" in |
| 2738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2739 | *) ac_try_echo=$ac_try;; |
| 2740 | esac |
| 2741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2742 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2743 | ac_status=$? |
| 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2745 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2746 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2747 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2748 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2749 | # so that the user can short-circuit this test for compilers unknown to |
| 2750 | # Autoconf. |
| 2751 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2752 | do |
| 2753 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2754 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2755 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2756 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2757 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2758 | # We found the default executable, but exeext='' is most |
| 2759 | # certainly right. |
| 2760 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2761 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2762 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2763 | then :; else |
| 2764 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2765 | fi |
| 2766 | # We set ac_cv_exeext here because the later test for it is not |
| 2767 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2768 | # argument, so we may need to know it at that point already. |
| 2769 | # Even if this section looks crufty: it has the advantage of |
| 2770 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2771 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2772 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2773 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2774 | esac |
| 2775 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2776 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2777 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2778 | else |
| 2779 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2781 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2782 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2783 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2784 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2785 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2786 | { (exit 77); exit 77; }; } |
| 2787 | fi |
| 2788 | |
| 2789 | ac_exeext=$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2790 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2791 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2793 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2794 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2795 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2796 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2797 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2798 | # If not cross compiling, check that we can run a simple program. |
| 2799 | if test "$cross_compiling" != yes; then |
| 2800 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2801 | { (case "(($ac_try" in |
| 2802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2803 | *) ac_try_echo=$ac_try;; |
| 2804 | esac |
| 2805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2806 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2807 | ac_status=$? |
| 2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2809 | (exit $ac_status); }; }; then |
| 2810 | cross_compiling=no |
| 2811 | else |
| 2812 | if test "$cross_compiling" = maybe; then |
| 2813 | cross_compiling=yes |
| 2814 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2815 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2816 | If you meant to cross compile, use \`--host'. |
| 2817 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2818 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2819 | If you meant to cross compile, use \`--host'. |
| 2820 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2821 | { (exit 1); exit 1; }; } |
| 2822 | fi |
| 2823 | fi |
| 2824 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2825 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2826 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2827 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2828 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2829 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2830 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2831 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2832 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2833 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2834 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2835 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2837 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2838 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2839 | if { (ac_try="$ac_link" |
| 2840 | case "(($ac_try" in |
| 2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2842 | *) ac_try_echo=$ac_try;; |
| 2843 | esac |
| 2844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2845 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 | ac_status=$? |
| 2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2848 | (exit $ac_status); }; then |
| 2849 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2850 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2851 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2852 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2853 | for ac_file in conftest.exe conftest conftest.*; do |
| 2854 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2855 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2856 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2857 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2858 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2859 | * ) break;; |
| 2860 | esac |
| 2861 | done |
| 2862 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2863 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2864 | See \`config.log' for more details." >&5 |
| 2865 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2866 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 | { (exit 1); exit 1; }; } |
| 2868 | fi |
| 2869 | |
| 2870 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2871 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2872 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2873 | |
| 2874 | rm -f conftest.$ac_ext |
| 2875 | EXEEXT=$ac_cv_exeext |
| 2876 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2878 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2879 | if test "${ac_cv_objext+set}" = set; then |
| 2880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2881 | else |
| 2882 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2883 | /* confdefs.h. */ |
| 2884 | _ACEOF |
| 2885 | cat confdefs.h >>conftest.$ac_ext |
| 2886 | cat >>conftest.$ac_ext <<_ACEOF |
| 2887 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2889 | int |
| 2890 | main () |
| 2891 | { |
| 2892 | |
| 2893 | ; |
| 2894 | return 0; |
| 2895 | } |
| 2896 | _ACEOF |
| 2897 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2898 | if { (ac_try="$ac_compile" |
| 2899 | case "(($ac_try" in |
| 2900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2901 | *) ac_try_echo=$ac_try;; |
| 2902 | esac |
| 2903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2904 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2905 | ac_status=$? |
| 2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2907 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2908 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2909 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2912 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2913 | break;; |
| 2914 | esac |
| 2915 | done |
| 2916 | else |
| 2917 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2919 | |
| 2920 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2921 | See \`config.log' for more details." >&5 |
| 2922 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2923 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2924 | { (exit 1); exit 1; }; } |
| 2925 | fi |
| 2926 | |
| 2927 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2928 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2929 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2930 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | OBJEXT=$ac_cv_objext |
| 2932 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2933 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2934 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2935 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2937 | else |
| 2938 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | cat confdefs.h >>conftest.$ac_ext |
| 2942 | cat >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2944 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2945 | int |
| 2946 | main () |
| 2947 | { |
| 2948 | #ifndef __GNUC__ |
| 2949 | choke me |
| 2950 | #endif |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
| 2955 | _ACEOF |
| 2956 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2957 | if { (ac_try="$ac_compile" |
| 2958 | case "(($ac_try" in |
| 2959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2960 | *) ac_try_echo=$ac_try;; |
| 2961 | esac |
| 2962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2963 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2964 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2966 | rm -f conftest.er1 |
| 2967 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2971 | { (case "(($ac_try" in |
| 2972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2973 | *) ac_try_echo=$ac_try;; |
| 2974 | esac |
| 2975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2976 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2977 | ac_status=$? |
| 2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2979 | (exit $ac_status); }; } && |
| 2980 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2981 | { (case "(($ac_try" in |
| 2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2983 | *) ac_try_echo=$ac_try;; |
| 2984 | esac |
| 2985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2986 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2987 | ac_status=$? |
| 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2989 | (exit $ac_status); }; }; then |
| 2990 | ac_compiler_gnu=yes |
| 2991 | else |
| 2992 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2995 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2996 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2997 | |
| 2998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2999 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | |
| 3001 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3002 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3003 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3004 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3005 | ac_test_CFLAGS=${CFLAGS+set} |
| 3006 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3007 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3008 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3009 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3011 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3013 | ac_c_werror_flag=yes |
| 3014 | ac_cv_prog_cc_g=no |
| 3015 | CFLAGS="-g" |
| 3016 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3022 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3023 | int |
| 3024 | main () |
| 3025 | { |
| 3026 | |
| 3027 | ; |
| 3028 | return 0; |
| 3029 | } |
| 3030 | _ACEOF |
| 3031 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3032 | if { (ac_try="$ac_compile" |
| 3033 | case "(($ac_try" in |
| 3034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3035 | *) ac_try_echo=$ac_try;; |
| 3036 | esac |
| 3037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3038 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3039 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3041 | rm -f conftest.er1 |
| 3042 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3044 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3046 | { (case "(($ac_try" in |
| 3047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3048 | *) ac_try_echo=$ac_try;; |
| 3049 | esac |
| 3050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3051 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3052 | ac_status=$? |
| 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3054 | (exit $ac_status); }; } && |
| 3055 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3056 | { (case "(($ac_try" in |
| 3057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3058 | *) ac_try_echo=$ac_try;; |
| 3059 | esac |
| 3060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3061 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3062 | ac_status=$? |
| 3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3064 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3065 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3066 | else |
| 3067 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3070 | CFLAGS="" |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
| 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
| 3077 | |
| 3078 | int |
| 3079 | main () |
| 3080 | { |
| 3081 | |
| 3082 | ; |
| 3083 | return 0; |
| 3084 | } |
| 3085 | _ACEOF |
| 3086 | rm -f conftest.$ac_objext |
| 3087 | if { (ac_try="$ac_compile" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
| 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3093 | (eval "$ac_compile") 2>conftest.er1 |
| 3094 | ac_status=$? |
| 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3099 | (exit $ac_status); } && |
| 3100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3101 | { (case "(($ac_try" in |
| 3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3103 | *) ac_try_echo=$ac_try;; |
| 3104 | esac |
| 3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3106 | (eval "$ac_try") 2>&5 |
| 3107 | ac_status=$? |
| 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3109 | (exit $ac_status); }; } && |
| 3110 | { ac_try='test -s conftest.$ac_objext' |
| 3111 | { (case "(($ac_try" in |
| 3112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3113 | *) ac_try_echo=$ac_try;; |
| 3114 | esac |
| 3115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3116 | (eval "$ac_try") 2>&5 |
| 3117 | ac_status=$? |
| 3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3119 | (exit $ac_status); }; }; then |
| 3120 | : |
| 3121 | else |
| 3122 | echo "$as_me: failed program was:" >&5 |
| 3123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3124 | |
| 3125 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3126 | CFLAGS="-g" |
| 3127 | cat >conftest.$ac_ext <<_ACEOF |
| 3128 | /* confdefs.h. */ |
| 3129 | _ACEOF |
| 3130 | cat confdefs.h >>conftest.$ac_ext |
| 3131 | cat >>conftest.$ac_ext <<_ACEOF |
| 3132 | /* end confdefs.h. */ |
| 3133 | |
| 3134 | int |
| 3135 | main () |
| 3136 | { |
| 3137 | |
| 3138 | ; |
| 3139 | return 0; |
| 3140 | } |
| 3141 | _ACEOF |
| 3142 | rm -f conftest.$ac_objext |
| 3143 | if { (ac_try="$ac_compile" |
| 3144 | case "(($ac_try" in |
| 3145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3146 | *) ac_try_echo=$ac_try;; |
| 3147 | esac |
| 3148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3149 | (eval "$ac_compile") 2>conftest.er1 |
| 3150 | ac_status=$? |
| 3151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3152 | rm -f conftest.er1 |
| 3153 | cat conftest.err >&5 |
| 3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3155 | (exit $ac_status); } && |
| 3156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3157 | { (case "(($ac_try" in |
| 3158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3159 | *) ac_try_echo=$ac_try;; |
| 3160 | esac |
| 3161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3162 | (eval "$ac_try") 2>&5 |
| 3163 | ac_status=$? |
| 3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3165 | (exit $ac_status); }; } && |
| 3166 | { ac_try='test -s conftest.$ac_objext' |
| 3167 | { (case "(($ac_try" in |
| 3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3169 | *) ac_try_echo=$ac_try;; |
| 3170 | esac |
| 3171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3172 | (eval "$ac_try") 2>&5 |
| 3173 | ac_status=$? |
| 3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3175 | (exit $ac_status); }; }; then |
| 3176 | ac_cv_prog_cc_g=yes |
| 3177 | else |
| 3178 | echo "$as_me: failed program was:" >&5 |
| 3179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3180 | |
| 3181 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3183 | |
| 3184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3185 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3186 | |
| 3187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3188 | fi |
| 3189 | |
| 3190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3191 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3192 | fi |
| 3193 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3194 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3195 | if test "$ac_test_CFLAGS" = set; then |
| 3196 | CFLAGS=$ac_save_CFLAGS |
| 3197 | elif test $ac_cv_prog_cc_g = yes; then |
| 3198 | if test "$GCC" = yes; then |
| 3199 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3200 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3201 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3202 | fi |
| 3203 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3204 | if test "$GCC" = yes; then |
| 3205 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3206 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3207 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3208 | fi |
| 3209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3210 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3211 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3212 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3214 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3215 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3216 | ac_save_CC=$CC |
| 3217 | cat >conftest.$ac_ext <<_ACEOF |
| 3218 | /* confdefs.h. */ |
| 3219 | _ACEOF |
| 3220 | cat confdefs.h >>conftest.$ac_ext |
| 3221 | cat >>conftest.$ac_ext <<_ACEOF |
| 3222 | /* end confdefs.h. */ |
| 3223 | #include <stdarg.h> |
| 3224 | #include <stdio.h> |
| 3225 | #include <sys/types.h> |
| 3226 | #include <sys/stat.h> |
| 3227 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3228 | struct buf { int x; }; |
| 3229 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3230 | static char *e (p, i) |
| 3231 | char **p; |
| 3232 | int i; |
| 3233 | { |
| 3234 | return p[i]; |
| 3235 | } |
| 3236 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3237 | { |
| 3238 | char *s; |
| 3239 | va_list v; |
| 3240 | va_start (v,p); |
| 3241 | s = g (p, va_arg (v,int)); |
| 3242 | va_end (v); |
| 3243 | return s; |
| 3244 | } |
| 3245 | |
| 3246 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3247 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3248 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3249 | as 'x'. The following induces an error, until -std is added to get |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3250 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3251 | array size at least. It's necessary to write '\x00'==0 to get something |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3252 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3253 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3255 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3256 | inside strings and character constants. */ |
| 3257 | #define FOO(x) 'x' |
| 3258 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3259 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3260 | int test (int i, double x); |
| 3261 | struct s1 {int (*f) (int a);}; |
| 3262 | struct s2 {int (*f) (double a);}; |
| 3263 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3264 | int argc; |
| 3265 | char **argv; |
| 3266 | int |
| 3267 | main () |
| 3268 | { |
| 3269 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3270 | ; |
| 3271 | return 0; |
| 3272 | } |
| 3273 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3274 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3275 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3276 | do |
| 3277 | CC="$ac_save_CC $ac_arg" |
| 3278 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3279 | if { (ac_try="$ac_compile" |
| 3280 | case "(($ac_try" in |
| 3281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3282 | *) ac_try_echo=$ac_try;; |
| 3283 | esac |
| 3284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3285 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3286 | ac_status=$? |
| 3287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3288 | rm -f conftest.er1 |
| 3289 | cat conftest.err >&5 |
| 3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3291 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3293 | { (case "(($ac_try" in |
| 3294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3295 | *) ac_try_echo=$ac_try;; |
| 3296 | esac |
| 3297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3298 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3299 | ac_status=$? |
| 3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3301 | (exit $ac_status); }; } && |
| 3302 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3303 | { (case "(($ac_try" in |
| 3304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3305 | *) ac_try_echo=$ac_try;; |
| 3306 | esac |
| 3307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3308 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3309 | ac_status=$? |
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3311 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3312 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3313 | else |
| 3314 | echo "$as_me: failed program was:" >&5 |
| 3315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3317 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3319 | |
| 3320 | rm -f core conftest.err conftest.$ac_objext |
| 3321 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3322 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3323 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3324 | CC=$ac_save_CC |
| 3325 | |
| 3326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3327 | # AC_CACHE_VAL |
| 3328 | case "x$ac_cv_prog_cc_c89" in |
| 3329 | x) |
| 3330 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3331 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3332 | xno) |
| 3333 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3334 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3335 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3336 | CC="$CC $ac_cv_prog_cc_c89" |
| 3337 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3338 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | esac |
| 3340 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3341 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3342 | ac_ext=c |
| 3343 | ac_cpp='$CPP $CPPFLAGS' |
| 3344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3347 | |
| 3348 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3349 | ac_ext=c |
| 3350 | ac_cpp='$CPP $CPPFLAGS' |
| 3351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3354 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3355 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3356 | # On Suns, sometimes $CPP names a directory. |
| 3357 | if test -n "$CPP" && test -d "$CPP"; then |
| 3358 | CPP= |
| 3359 | fi |
| 3360 | if test -z "$CPP"; then |
| 3361 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3363 | else |
| 3364 | # Double quotes because CPP needs to be expanded |
| 3365 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3366 | do |
| 3367 | ac_preproc_ok=false |
| 3368 | for ac_c_preproc_warn_flag in '' yes |
| 3369 | do |
| 3370 | # Use a header file that comes with gcc, so configuring glibc |
| 3371 | # with a fresh cross-compiler works. |
| 3372 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3373 | # <limits.h> exists even on freestanding compilers. |
| 3374 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3375 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3376 | cat >conftest.$ac_ext <<_ACEOF |
| 3377 | /* confdefs.h. */ |
| 3378 | _ACEOF |
| 3379 | cat confdefs.h >>conftest.$ac_ext |
| 3380 | cat >>conftest.$ac_ext <<_ACEOF |
| 3381 | /* end confdefs.h. */ |
| 3382 | #ifdef __STDC__ |
| 3383 | # include <limits.h> |
| 3384 | #else |
| 3385 | # include <assert.h> |
| 3386 | #endif |
| 3387 | Syntax error |
| 3388 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3389 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3390 | case "(($ac_try" in |
| 3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3392 | *) ac_try_echo=$ac_try;; |
| 3393 | esac |
| 3394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3395 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3396 | ac_status=$? |
| 3397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3398 | rm -f conftest.er1 |
| 3399 | cat conftest.err >&5 |
| 3400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3401 | (exit $ac_status); } >/dev/null; then |
| 3402 | if test -s conftest.err; then |
| 3403 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3404 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3405 | else |
| 3406 | ac_cpp_err= |
| 3407 | fi |
| 3408 | else |
| 3409 | ac_cpp_err=yes |
| 3410 | fi |
| 3411 | if test -z "$ac_cpp_err"; then |
| 3412 | : |
| 3413 | else |
| 3414 | echo "$as_me: failed program was:" >&5 |
| 3415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3416 | |
| 3417 | # Broken: fails on valid input. |
| 3418 | continue |
| 3419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3420 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | rm -f conftest.err conftest.$ac_ext |
| 3422 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3423 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3424 | # can be detected and how. |
| 3425 | cat >conftest.$ac_ext <<_ACEOF |
| 3426 | /* confdefs.h. */ |
| 3427 | _ACEOF |
| 3428 | cat confdefs.h >>conftest.$ac_ext |
| 3429 | cat >>conftest.$ac_ext <<_ACEOF |
| 3430 | /* end confdefs.h. */ |
| 3431 | #include <ac_nonexistent.h> |
| 3432 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3433 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3434 | case "(($ac_try" in |
| 3435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3436 | *) ac_try_echo=$ac_try;; |
| 3437 | esac |
| 3438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3439 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3440 | ac_status=$? |
| 3441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3442 | rm -f conftest.er1 |
| 3443 | cat conftest.err >&5 |
| 3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3445 | (exit $ac_status); } >/dev/null; then |
| 3446 | if test -s conftest.err; then |
| 3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3448 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3449 | else |
| 3450 | ac_cpp_err= |
| 3451 | fi |
| 3452 | else |
| 3453 | ac_cpp_err=yes |
| 3454 | fi |
| 3455 | if test -z "$ac_cpp_err"; then |
| 3456 | # Broken: success on invalid input. |
| 3457 | continue |
| 3458 | else |
| 3459 | echo "$as_me: failed program was:" >&5 |
| 3460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3461 | |
| 3462 | # Passes both tests. |
| 3463 | ac_preproc_ok=: |
| 3464 | break |
| 3465 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3466 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3467 | rm -f conftest.err conftest.$ac_ext |
| 3468 | |
| 3469 | done |
| 3470 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3471 | rm -f conftest.err conftest.$ac_ext |
| 3472 | if $ac_preproc_ok; then |
| 3473 | break |
| 3474 | fi |
| 3475 | |
| 3476 | done |
| 3477 | ac_cv_prog_CPP=$CPP |
| 3478 | |
| 3479 | fi |
| 3480 | CPP=$ac_cv_prog_CPP |
| 3481 | else |
| 3482 | ac_cv_prog_CPP=$CPP |
| 3483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3484 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3485 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3486 | ac_preproc_ok=false |
| 3487 | for ac_c_preproc_warn_flag in '' yes |
| 3488 | do |
| 3489 | # Use a header file that comes with gcc, so configuring glibc |
| 3490 | # with a fresh cross-compiler works. |
| 3491 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3492 | # <limits.h> exists even on freestanding compilers. |
| 3493 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3494 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3495 | cat >conftest.$ac_ext <<_ACEOF |
| 3496 | /* confdefs.h. */ |
| 3497 | _ACEOF |
| 3498 | cat confdefs.h >>conftest.$ac_ext |
| 3499 | cat >>conftest.$ac_ext <<_ACEOF |
| 3500 | /* end confdefs.h. */ |
| 3501 | #ifdef __STDC__ |
| 3502 | # include <limits.h> |
| 3503 | #else |
| 3504 | # include <assert.h> |
| 3505 | #endif |
| 3506 | Syntax error |
| 3507 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3508 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3509 | case "(($ac_try" in |
| 3510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3511 | *) ac_try_echo=$ac_try;; |
| 3512 | esac |
| 3513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3514 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3515 | ac_status=$? |
| 3516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3517 | rm -f conftest.er1 |
| 3518 | cat conftest.err >&5 |
| 3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3520 | (exit $ac_status); } >/dev/null; then |
| 3521 | if test -s conftest.err; then |
| 3522 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3524 | else |
| 3525 | ac_cpp_err= |
| 3526 | fi |
| 3527 | else |
| 3528 | ac_cpp_err=yes |
| 3529 | fi |
| 3530 | if test -z "$ac_cpp_err"; then |
| 3531 | : |
| 3532 | else |
| 3533 | echo "$as_me: failed program was:" >&5 |
| 3534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3535 | |
| 3536 | # Broken: fails on valid input. |
| 3537 | continue |
| 3538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3539 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3540 | rm -f conftest.err conftest.$ac_ext |
| 3541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3542 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3543 | # can be detected and how. |
| 3544 | cat >conftest.$ac_ext <<_ACEOF |
| 3545 | /* confdefs.h. */ |
| 3546 | _ACEOF |
| 3547 | cat confdefs.h >>conftest.$ac_ext |
| 3548 | cat >>conftest.$ac_ext <<_ACEOF |
| 3549 | /* end confdefs.h. */ |
| 3550 | #include <ac_nonexistent.h> |
| 3551 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3552 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3553 | case "(($ac_try" in |
| 3554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3555 | *) ac_try_echo=$ac_try;; |
| 3556 | esac |
| 3557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3558 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3559 | ac_status=$? |
| 3560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3561 | rm -f conftest.er1 |
| 3562 | cat conftest.err >&5 |
| 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3564 | (exit $ac_status); } >/dev/null; then |
| 3565 | if test -s conftest.err; then |
| 3566 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3568 | else |
| 3569 | ac_cpp_err= |
| 3570 | fi |
| 3571 | else |
| 3572 | ac_cpp_err=yes |
| 3573 | fi |
| 3574 | if test -z "$ac_cpp_err"; then |
| 3575 | # Broken: success on invalid input. |
| 3576 | continue |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
| 3581 | # Passes both tests. |
| 3582 | ac_preproc_ok=: |
| 3583 | break |
| 3584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3585 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3586 | rm -f conftest.err conftest.$ac_ext |
| 3587 | |
| 3588 | done |
| 3589 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3590 | rm -f conftest.err conftest.$ac_ext |
| 3591 | if $ac_preproc_ok; then |
| 3592 | : |
| 3593 | else |
| 3594 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3595 | See \`config.log' for more details." >&5 |
| 3596 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3597 | See \`config.log' for more details." >&2;} |
| 3598 | { (exit 1); exit 1; }; } |
| 3599 | fi |
| 3600 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3601 | ac_ext=c |
| 3602 | ac_cpp='$CPP $CPPFLAGS' |
| 3603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3606 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3608 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3609 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3610 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3612 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3613 | # Extract the first word of "grep ggrep" to use in msg output |
| 3614 | if test -z "$GREP"; then |
| 3615 | set dummy grep ggrep; ac_prog_name=$2 |
| 3616 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3618 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3619 | ac_path_GREP_found=false |
| 3620 | # Loop through the user's path and test for each of PROGNAME-LIST |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3622 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3623 | do |
| 3624 | IFS=$as_save_IFS |
| 3625 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3626 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3627 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3628 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3629 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3630 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3631 | # Check for GNU $ac_path_GREP |
| 3632 | case `"$ac_path_GREP" --version 2>&1` in |
| 3633 | *GNU*) |
| 3634 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3635 | *) |
| 3636 | ac_count=0 |
| 3637 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3638 | while : |
| 3639 | do |
| 3640 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3641 | mv "conftest.tmp" "conftest.in" |
| 3642 | cp "conftest.in" "conftest.nl" |
| 3643 | echo 'GREP' >> "conftest.nl" |
| 3644 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3645 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3646 | ac_count=`expr $ac_count + 1` |
| 3647 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3648 | # Best one so far, save it but keep looking for a better one |
| 3649 | ac_cv_path_GREP="$ac_path_GREP" |
| 3650 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3651 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3652 | # 10*(2^10) chars as input seems more than enough |
| 3653 | test $ac_count -gt 10 && break |
| 3654 | done |
| 3655 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3656 | esac |
| 3657 | |
| 3658 | |
| 3659 | $ac_path_GREP_found && break 3 |
| 3660 | done |
| 3661 | done |
| 3662 | |
| 3663 | done |
| 3664 | IFS=$as_save_IFS |
| 3665 | |
| 3666 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3667 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3668 | |
| 3669 | GREP="$ac_cv_path_GREP" |
| 3670 | if test -z "$GREP"; then |
| 3671 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3672 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3673 | { (exit 1); exit 1; }; } |
| 3674 | fi |
| 3675 | |
| 3676 | else |
| 3677 | ac_cv_path_GREP=$GREP |
| 3678 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3679 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3681 | fi |
| 3682 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3683 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3684 | GREP="$ac_cv_path_GREP" |
| 3685 | |
| 3686 | |
| 3687 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3688 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3689 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3691 | else |
| 3692 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3693 | then ac_cv_path_EGREP="$GREP -E" |
| 3694 | else |
| 3695 | # Extract the first word of "egrep" to use in msg output |
| 3696 | if test -z "$EGREP"; then |
| 3697 | set dummy egrep; ac_prog_name=$2 |
| 3698 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3700 | else |
| 3701 | ac_path_EGREP_found=false |
| 3702 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3704 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3705 | do |
| 3706 | IFS=$as_save_IFS |
| 3707 | test -z "$as_dir" && as_dir=. |
| 3708 | for ac_prog in egrep; do |
| 3709 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3710 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3711 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3712 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3713 | # Check for GNU $ac_path_EGREP |
| 3714 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3715 | *GNU*) |
| 3716 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3717 | *) |
| 3718 | ac_count=0 |
| 3719 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3720 | while : |
| 3721 | do |
| 3722 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3723 | mv "conftest.tmp" "conftest.in" |
| 3724 | cp "conftest.in" "conftest.nl" |
| 3725 | echo 'EGREP' >> "conftest.nl" |
| 3726 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3727 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3728 | ac_count=`expr $ac_count + 1` |
| 3729 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3730 | # Best one so far, save it but keep looking for a better one |
| 3731 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3732 | ac_path_EGREP_max=$ac_count |
| 3733 | fi |
| 3734 | # 10*(2^10) chars as input seems more than enough |
| 3735 | test $ac_count -gt 10 && break |
| 3736 | done |
| 3737 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3738 | esac |
| 3739 | |
| 3740 | |
| 3741 | $ac_path_EGREP_found && break 3 |
| 3742 | done |
| 3743 | done |
| 3744 | |
| 3745 | done |
| 3746 | IFS=$as_save_IFS |
| 3747 | |
| 3748 | |
| 3749 | fi |
| 3750 | |
| 3751 | EGREP="$ac_cv_path_EGREP" |
| 3752 | if test -z "$EGREP"; then |
| 3753 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3754 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3755 | { (exit 1); exit 1; }; } |
| 3756 | fi |
| 3757 | |
| 3758 | else |
| 3759 | ac_cv_path_EGREP=$EGREP |
| 3760 | fi |
| 3761 | |
| 3762 | |
| 3763 | fi |
| 3764 | fi |
| 3765 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3766 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3767 | EGREP="$ac_cv_path_EGREP" |
| 3768 | |
| 3769 | |
| 3770 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3771 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3772 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3774 | else |
| 3775 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3776 | /* confdefs.h. */ |
| 3777 | _ACEOF |
| 3778 | cat confdefs.h >>conftest.$ac_ext |
| 3779 | cat >>conftest.$ac_ext <<_ACEOF |
| 3780 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3781 | #include <stdlib.h> |
| 3782 | #include <stdarg.h> |
| 3783 | #include <string.h> |
| 3784 | #include <float.h> |
| 3785 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3786 | int |
| 3787 | main () |
| 3788 | { |
| 3789 | |
| 3790 | ; |
| 3791 | return 0; |
| 3792 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3793 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3794 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3795 | if { (ac_try="$ac_compile" |
| 3796 | case "(($ac_try" in |
| 3797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3798 | *) ac_try_echo=$ac_try;; |
| 3799 | esac |
| 3800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3801 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3802 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3804 | rm -f conftest.er1 |
| 3805 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3807 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3809 | { (case "(($ac_try" in |
| 3810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3811 | *) ac_try_echo=$ac_try;; |
| 3812 | esac |
| 3813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3814 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3815 | ac_status=$? |
| 3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3817 | (exit $ac_status); }; } && |
| 3818 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3819 | { (case "(($ac_try" in |
| 3820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3821 | *) ac_try_echo=$ac_try;; |
| 3822 | esac |
| 3823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3824 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3825 | ac_status=$? |
| 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3827 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3828 | ac_cv_header_stdc=yes |
| 3829 | else |
| 3830 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3833 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3834 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3835 | |
| 3836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3837 | |
| 3838 | if test $ac_cv_header_stdc = yes; then |
| 3839 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3840 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3841 | /* confdefs.h. */ |
| 3842 | _ACEOF |
| 3843 | cat confdefs.h >>conftest.$ac_ext |
| 3844 | cat >>conftest.$ac_ext <<_ACEOF |
| 3845 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3846 | #include <string.h> |
| 3847 | |
| 3848 | _ACEOF |
| 3849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3850 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3851 | : |
| 3852 | else |
| 3853 | ac_cv_header_stdc=no |
| 3854 | fi |
| 3855 | rm -f conftest* |
| 3856 | |
| 3857 | fi |
| 3858 | |
| 3859 | if test $ac_cv_header_stdc = yes; then |
| 3860 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3861 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3862 | /* confdefs.h. */ |
| 3863 | _ACEOF |
| 3864 | cat confdefs.h >>conftest.$ac_ext |
| 3865 | cat >>conftest.$ac_ext <<_ACEOF |
| 3866 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3867 | #include <stdlib.h> |
| 3868 | |
| 3869 | _ACEOF |
| 3870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3871 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3872 | : |
| 3873 | else |
| 3874 | ac_cv_header_stdc=no |
| 3875 | fi |
| 3876 | rm -f conftest* |
| 3877 | |
| 3878 | fi |
| 3879 | |
| 3880 | if test $ac_cv_header_stdc = yes; then |
| 3881 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3882 | if test "$cross_compiling" = yes; then |
| 3883 | : |
| 3884 | else |
| 3885 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3886 | /* confdefs.h. */ |
| 3887 | _ACEOF |
| 3888 | cat confdefs.h >>conftest.$ac_ext |
| 3889 | cat >>conftest.$ac_ext <<_ACEOF |
| 3890 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3891 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3892 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | #if ((' ' & 0x0FF) == 0x020) |
| 3894 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3895 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3896 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3897 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3898 | (('a' <= (c) && (c) <= 'i') \ |
| 3899 | || ('j' <= (c) && (c) <= 'r') \ |
| 3900 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3901 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3902 | #endif |
| 3903 | |
| 3904 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3905 | int |
| 3906 | main () |
| 3907 | { |
| 3908 | int i; |
| 3909 | for (i = 0; i < 256; i++) |
| 3910 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3911 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3912 | return 2; |
| 3913 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | } |
| 3915 | _ACEOF |
| 3916 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3917 | if { (ac_try="$ac_link" |
| 3918 | case "(($ac_try" in |
| 3919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3920 | *) ac_try_echo=$ac_try;; |
| 3921 | esac |
| 3922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3923 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3927 | { (case "(($ac_try" in |
| 3928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3929 | *) ac_try_echo=$ac_try;; |
| 3930 | esac |
| 3931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3932 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3933 | ac_status=$? |
| 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3935 | (exit $ac_status); }; }; then |
| 3936 | : |
| 3937 | else |
| 3938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3939 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3941 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3942 | ( exit $ac_status ) |
| 3943 | ac_cv_header_stdc=no |
| 3944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3946 | fi |
| 3947 | |
| 3948 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3949 | fi |
| 3950 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3951 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3952 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3953 | if test $ac_cv_header_stdc = yes; then |
| 3954 | |
| 3955 | cat >>confdefs.h <<\_ACEOF |
| 3956 | #define STDC_HEADERS 1 |
| 3957 | _ACEOF |
| 3958 | |
| 3959 | fi |
| 3960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3961 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3972 | inttypes.h stdint.h unistd.h |
| 3973 | do |
| 3974 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3975 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3979 | else |
| 3980 | cat >conftest.$ac_ext <<_ACEOF |
| 3981 | /* confdefs.h. */ |
| 3982 | _ACEOF |
| 3983 | cat confdefs.h >>conftest.$ac_ext |
| 3984 | cat >>conftest.$ac_ext <<_ACEOF |
| 3985 | /* end confdefs.h. */ |
| 3986 | $ac_includes_default |
| 3987 | |
| 3988 | #include <$ac_header> |
| 3989 | _ACEOF |
| 3990 | rm -f conftest.$ac_objext |
| 3991 | if { (ac_try="$ac_compile" |
| 3992 | case "(($ac_try" in |
| 3993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3994 | *) ac_try_echo=$ac_try;; |
| 3995 | esac |
| 3996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3997 | (eval "$ac_compile") 2>conftest.er1 |
| 3998 | ac_status=$? |
| 3999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4000 | rm -f conftest.er1 |
| 4001 | cat conftest.err >&5 |
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | (exit $ac_status); } && |
| 4004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4005 | { (case "(($ac_try" in |
| 4006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4007 | *) ac_try_echo=$ac_try;; |
| 4008 | esac |
| 4009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4010 | (eval "$ac_try") 2>&5 |
| 4011 | ac_status=$? |
| 4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4013 | (exit $ac_status); }; } && |
| 4014 | { ac_try='test -s conftest.$ac_objext' |
| 4015 | { (case "(($ac_try" in |
| 4016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4017 | *) ac_try_echo=$ac_try;; |
| 4018 | esac |
| 4019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4020 | (eval "$ac_try") 2>&5 |
| 4021 | ac_status=$? |
| 4022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4023 | (exit $ac_status); }; }; then |
| 4024 | eval "$as_ac_Header=yes" |
| 4025 | else |
| 4026 | echo "$as_me: failed program was:" >&5 |
| 4027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4028 | |
| 4029 | eval "$as_ac_Header=no" |
| 4030 | fi |
| 4031 | |
| 4032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4033 | fi |
| 4034 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4036 | echo "${ECHO_T}$ac_res" >&6; } |
| 4037 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4038 | cat >>confdefs.h <<_ACEOF |
| 4039 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4040 | _ACEOF |
| 4041 | |
| 4042 | fi |
| 4043 | |
| 4044 | done |
| 4045 | |
| 4046 | |
| 4047 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4048 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4049 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4051 | else |
| 4052 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4053 | cat >conftest.$ac_ext <<_ACEOF |
| 4054 | /* confdefs.h. */ |
| 4055 | _ACEOF |
| 4056 | cat confdefs.h >>conftest.$ac_ext |
| 4057 | cat >>conftest.$ac_ext <<_ACEOF |
| 4058 | /* end confdefs.h. */ |
| 4059 | #include <sys/types.h> |
| 4060 | #include <sys/param.h> |
| 4061 | |
| 4062 | int |
| 4063 | main () |
| 4064 | { |
| 4065 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4066 | bogus endian macros |
| 4067 | #endif |
| 4068 | |
| 4069 | ; |
| 4070 | return 0; |
| 4071 | } |
| 4072 | _ACEOF |
| 4073 | rm -f conftest.$ac_objext |
| 4074 | if { (ac_try="$ac_compile" |
| 4075 | case "(($ac_try" in |
| 4076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4077 | *) ac_try_echo=$ac_try;; |
| 4078 | esac |
| 4079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4080 | (eval "$ac_compile") 2>conftest.er1 |
| 4081 | ac_status=$? |
| 4082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4083 | rm -f conftest.er1 |
| 4084 | cat conftest.err >&5 |
| 4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4086 | (exit $ac_status); } && |
| 4087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4088 | { (case "(($ac_try" in |
| 4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4090 | *) ac_try_echo=$ac_try;; |
| 4091 | esac |
| 4092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4093 | (eval "$ac_try") 2>&5 |
| 4094 | ac_status=$? |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4096 | (exit $ac_status); }; } && |
| 4097 | { ac_try='test -s conftest.$ac_objext' |
| 4098 | { (case "(($ac_try" in |
| 4099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4100 | *) ac_try_echo=$ac_try;; |
| 4101 | esac |
| 4102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4103 | (eval "$ac_try") 2>&5 |
| 4104 | ac_status=$? |
| 4105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4106 | (exit $ac_status); }; }; then |
| 4107 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
| 4109 | /* confdefs.h. */ |
| 4110 | _ACEOF |
| 4111 | cat confdefs.h >>conftest.$ac_ext |
| 4112 | cat >>conftest.$ac_ext <<_ACEOF |
| 4113 | /* end confdefs.h. */ |
| 4114 | #include <sys/types.h> |
| 4115 | #include <sys/param.h> |
| 4116 | |
| 4117 | int |
| 4118 | main () |
| 4119 | { |
| 4120 | #if BYTE_ORDER != BIG_ENDIAN |
| 4121 | not big endian |
| 4122 | #endif |
| 4123 | |
| 4124 | ; |
| 4125 | return 0; |
| 4126 | } |
| 4127 | _ACEOF |
| 4128 | rm -f conftest.$ac_objext |
| 4129 | if { (ac_try="$ac_compile" |
| 4130 | case "(($ac_try" in |
| 4131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4132 | *) ac_try_echo=$ac_try;; |
| 4133 | esac |
| 4134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4135 | (eval "$ac_compile") 2>conftest.er1 |
| 4136 | ac_status=$? |
| 4137 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4138 | rm -f conftest.er1 |
| 4139 | cat conftest.err >&5 |
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4141 | (exit $ac_status); } && |
| 4142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4143 | { (case "(($ac_try" in |
| 4144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4145 | *) ac_try_echo=$ac_try;; |
| 4146 | esac |
| 4147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4148 | (eval "$ac_try") 2>&5 |
| 4149 | ac_status=$? |
| 4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4151 | (exit $ac_status); }; } && |
| 4152 | { ac_try='test -s conftest.$ac_objext' |
| 4153 | { (case "(($ac_try" in |
| 4154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4155 | *) ac_try_echo=$ac_try;; |
| 4156 | esac |
| 4157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4158 | (eval "$ac_try") 2>&5 |
| 4159 | ac_status=$? |
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4161 | (exit $ac_status); }; }; then |
| 4162 | ac_cv_c_bigendian=yes |
| 4163 | else |
| 4164 | echo "$as_me: failed program was:" >&5 |
| 4165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4166 | |
| 4167 | ac_cv_c_bigendian=no |
| 4168 | fi |
| 4169 | |
| 4170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4171 | else |
| 4172 | echo "$as_me: failed program was:" >&5 |
| 4173 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4174 | |
| 4175 | # It does not; compile a test program. |
| 4176 | if test "$cross_compiling" = yes; then |
| 4177 | # try to guess the endianness by grepping values into an object file |
| 4178 | ac_cv_c_bigendian=unknown |
| 4179 | cat >conftest.$ac_ext <<_ACEOF |
| 4180 | /* confdefs.h. */ |
| 4181 | _ACEOF |
| 4182 | cat confdefs.h >>conftest.$ac_ext |
| 4183 | cat >>conftest.$ac_ext <<_ACEOF |
| 4184 | /* end confdefs.h. */ |
| 4185 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4186 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4187 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4188 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4189 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4190 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4191 | int |
| 4192 | main () |
| 4193 | { |
| 4194 | _ascii (); _ebcdic (); |
| 4195 | ; |
| 4196 | return 0; |
| 4197 | } |
| 4198 | _ACEOF |
| 4199 | rm -f conftest.$ac_objext |
| 4200 | if { (ac_try="$ac_compile" |
| 4201 | case "(($ac_try" in |
| 4202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4203 | *) ac_try_echo=$ac_try;; |
| 4204 | esac |
| 4205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4206 | (eval "$ac_compile") 2>conftest.er1 |
| 4207 | ac_status=$? |
| 4208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4209 | rm -f conftest.er1 |
| 4210 | cat conftest.err >&5 |
| 4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4212 | (exit $ac_status); } && |
| 4213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4214 | { (case "(($ac_try" in |
| 4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4216 | *) ac_try_echo=$ac_try;; |
| 4217 | esac |
| 4218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4219 | (eval "$ac_try") 2>&5 |
| 4220 | ac_status=$? |
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4222 | (exit $ac_status); }; } && |
| 4223 | { ac_try='test -s conftest.$ac_objext' |
| 4224 | { (case "(($ac_try" in |
| 4225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4226 | *) ac_try_echo=$ac_try;; |
| 4227 | esac |
| 4228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4229 | (eval "$ac_try") 2>&5 |
| 4230 | ac_status=$? |
| 4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4232 | (exit $ac_status); }; }; then |
| 4233 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4234 | ac_cv_c_bigendian=yes |
| 4235 | fi |
| 4236 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4237 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4238 | ac_cv_c_bigendian=no |
| 4239 | else |
| 4240 | # finding both strings is unlikely to happen, but who knows? |
| 4241 | ac_cv_c_bigendian=unknown |
| 4242 | fi |
| 4243 | fi |
| 4244 | else |
| 4245 | echo "$as_me: failed program was:" >&5 |
| 4246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4247 | |
| 4248 | |
| 4249 | fi |
| 4250 | |
| 4251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4252 | else |
| 4253 | cat >conftest.$ac_ext <<_ACEOF |
| 4254 | /* confdefs.h. */ |
| 4255 | _ACEOF |
| 4256 | cat confdefs.h >>conftest.$ac_ext |
| 4257 | cat >>conftest.$ac_ext <<_ACEOF |
| 4258 | /* end confdefs.h. */ |
| 4259 | $ac_includes_default |
| 4260 | int |
| 4261 | main () |
| 4262 | { |
| 4263 | |
| 4264 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4265 | union |
| 4266 | { |
| 4267 | long int l; |
| 4268 | char c[sizeof (long int)]; |
| 4269 | } u; |
| 4270 | u.l = 1; |
| 4271 | return u.c[sizeof (long int) - 1] == 1; |
| 4272 | |
| 4273 | ; |
| 4274 | return 0; |
| 4275 | } |
| 4276 | _ACEOF |
| 4277 | rm -f conftest$ac_exeext |
| 4278 | if { (ac_try="$ac_link" |
| 4279 | case "(($ac_try" in |
| 4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4281 | *) ac_try_echo=$ac_try;; |
| 4282 | esac |
| 4283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4284 | (eval "$ac_link") 2>&5 |
| 4285 | ac_status=$? |
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4287 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4288 | { (case "(($ac_try" in |
| 4289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4290 | *) ac_try_echo=$ac_try;; |
| 4291 | esac |
| 4292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4293 | (eval "$ac_try") 2>&5 |
| 4294 | ac_status=$? |
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4296 | (exit $ac_status); }; }; then |
| 4297 | ac_cv_c_bigendian=no |
| 4298 | else |
| 4299 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4300 | echo "$as_me: failed program was:" >&5 |
| 4301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4302 | |
| 4303 | ( exit $ac_status ) |
| 4304 | ac_cv_c_bigendian=yes |
| 4305 | fi |
| 4306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4307 | fi |
| 4308 | |
| 4309 | |
| 4310 | fi |
| 4311 | |
| 4312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4313 | fi |
| 4314 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4315 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4316 | case $ac_cv_c_bigendian in |
| 4317 | yes) |
| 4318 | ENDIAN=big |
| 4319 | ;; |
| 4320 | no) |
| 4321 | ENDIAN=little |
| 4322 | ;; |
| 4323 | *) |
| 4324 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4325 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4326 | echo "$as_me: error: unknown endianness |
| 4327 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4328 | { (exit 1); exit 1; }; } ;; |
| 4329 | esac |
| 4330 | |
| 4331 | |
| 4332 | if test "$cross_compiling" = yes; then |
| 4333 | LLVM_CROSS_COMPILING=1 |
| 4334 | |
| 4335 | |
| 4336 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4337 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4338 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4340 | else |
| 4341 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4342 | ac_cv_build_exeext=.exe |
| 4343 | else |
| 4344 | ac_build_prefix=${build_alias}- |
| 4345 | |
| 4346 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4347 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4348 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4350 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4352 | else |
| 4353 | if test -n "$BUILD_CC"; then |
| 4354 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4355 | else |
| 4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4357 | for as_dir in $PATH |
| 4358 | do |
| 4359 | IFS=$as_save_IFS |
| 4360 | test -z "$as_dir" && as_dir=. |
| 4361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4363 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4365 | break 2 |
| 4366 | fi |
| 4367 | done |
| 4368 | done |
| 4369 | IFS=$as_save_IFS |
| 4370 | |
| 4371 | fi |
| 4372 | fi |
| 4373 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4374 | if test -n "$BUILD_CC"; then |
| 4375 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4376 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4377 | else |
| 4378 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4379 | echo "${ECHO_T}no" >&6; } |
| 4380 | fi |
| 4381 | |
| 4382 | |
| 4383 | if test -z "$BUILD_CC"; then |
| 4384 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4385 | set dummy gcc; ac_word=$2 |
| 4386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4388 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4390 | else |
| 4391 | if test -n "$BUILD_CC"; then |
| 4392 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4393 | else |
| 4394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4395 | for as_dir in $PATH |
| 4396 | do |
| 4397 | IFS=$as_save_IFS |
| 4398 | test -z "$as_dir" && as_dir=. |
| 4399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4401 | ac_cv_prog_BUILD_CC="gcc" |
| 4402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4403 | break 2 |
| 4404 | fi |
| 4405 | done |
| 4406 | done |
| 4407 | IFS=$as_save_IFS |
| 4408 | |
| 4409 | fi |
| 4410 | fi |
| 4411 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4412 | if test -n "$BUILD_CC"; then |
| 4413 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4414 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4415 | else |
| 4416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4417 | echo "${ECHO_T}no" >&6; } |
| 4418 | fi |
| 4419 | |
| 4420 | |
| 4421 | if test -z "$BUILD_CC"; then |
| 4422 | # Extract the first word of "cc", so it can be a program name with args. |
| 4423 | set dummy cc; ac_word=$2 |
| 4424 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4426 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4428 | else |
| 4429 | if test -n "$BUILD_CC"; then |
| 4430 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4431 | else |
| 4432 | ac_prog_rejected=no |
| 4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4434 | for as_dir in $PATH |
| 4435 | do |
| 4436 | IFS=$as_save_IFS |
| 4437 | test -z "$as_dir" && as_dir=. |
| 4438 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4439 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4440 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4441 | ac_prog_rejected=yes |
| 4442 | continue |
| 4443 | fi |
| 4444 | ac_cv_prog_BUILD_CC="cc" |
| 4445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4446 | break 2 |
| 4447 | fi |
| 4448 | done |
| 4449 | done |
| 4450 | IFS=$as_save_IFS |
| 4451 | |
| 4452 | if test $ac_prog_rejected = yes; then |
| 4453 | # We found a bogon in the path, so make sure we never use it. |
| 4454 | set dummy $ac_cv_prog_BUILD_CC |
| 4455 | shift |
| 4456 | if test $# != 0; then |
| 4457 | # We chose a different compiler from the bogus one. |
| 4458 | # However, it has the same basename, so the bogon will be chosen |
| 4459 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4460 | shift |
| 4461 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4462 | fi |
| 4463 | fi |
| 4464 | fi |
| 4465 | fi |
| 4466 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4467 | if test -n "$BUILD_CC"; then |
| 4468 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4469 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4470 | else |
| 4471 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4472 | echo "${ECHO_T}no" >&6; } |
| 4473 | fi |
| 4474 | |
| 4475 | |
| 4476 | fi |
| 4477 | fi |
| 4478 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4479 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4480 | { (exit 1); exit 1; }; } |
| 4481 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4482 | rm -f conftest* |
| 4483 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4484 | ac_cv_build_exeext= |
| 4485 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4486 | (eval $ac_build_link) 2>&5 |
| 4487 | ac_status=$? |
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4489 | (exit $ac_status); }; then |
| 4490 | for file in conftest.*; do |
| 4491 | case $file in |
| 4492 | *.c | *.o | *.obj) ;; |
| 4493 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4494 | esac |
| 4495 | done |
| 4496 | else |
| 4497 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4498 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4499 | { (exit 1); exit 1; }; } |
| 4500 | fi |
| 4501 | rm -f conftest* |
| 4502 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4503 | fi |
| 4504 | fi |
| 4505 | |
| 4506 | BUILD_EXEEXT="" |
| 4507 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4508 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4509 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4510 | ac_build_exeext=$BUILD_EXEEXT |
| 4511 | |
| 4512 | else |
| 4513 | LLVM_CROSS_COMPILING=0 |
| 4514 | |
| 4515 | fi |
| 4516 | |
| 4517 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
| 4518 | cvsbuild="yes" |
| 4519 | optimize="no" |
| 4520 | CVSBUILD=CVSBUILD=1 |
| 4521 | |
| 4522 | else |
| 4523 | cvsbuild="no" |
| 4524 | optimize="yes" |
| 4525 | fi |
| 4526 | |
| 4527 | |
| 4528 | # Check whether --enable-optimized was given. |
| 4529 | if test "${enable_optimized+set}" = set; then |
| 4530 | enableval=$enable_optimized; |
| 4531 | else |
| 4532 | enableval=$optimize |
| 4533 | fi |
| 4534 | |
| 4535 | if test ${enableval} = "no" ; then |
| 4536 | ENABLE_OPTIMIZED= |
| 4537 | |
| 4538 | else |
| 4539 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4540 | |
| 4541 | fi |
| 4542 | |
| 4543 | # Check whether --enable-assertions was given. |
| 4544 | if test "${enable_assertions+set}" = set; then |
| 4545 | enableval=$enable_assertions; |
| 4546 | else |
| 4547 | enableval="yes" |
| 4548 | fi |
| 4549 | |
| 4550 | if test ${enableval} = "yes" ; then |
| 4551 | DISABLE_ASSERTIONS= |
| 4552 | |
| 4553 | else |
| 4554 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4555 | |
| 4556 | fi |
| 4557 | |
| 4558 | # Check whether --enable-debug-runtime was given. |
| 4559 | if test "${enable_debug_runtime+set}" = set; then |
| 4560 | enableval=$enable_debug_runtime; |
| 4561 | else |
| 4562 | enableval=no |
| 4563 | fi |
| 4564 | |
| 4565 | if test ${enableval} = "no" ; then |
| 4566 | DEBUG_RUNTIME= |
| 4567 | |
| 4568 | else |
| 4569 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4570 | |
| 4571 | fi |
| 4572 | |
| 4573 | # Check whether --enable-jit was given. |
| 4574 | if test "${enable_jit+set}" = set; then |
| 4575 | enableval=$enable_jit; |
| 4576 | else |
| 4577 | enableval=default |
| 4578 | fi |
| 4579 | |
| 4580 | if test ${enableval} = "no" |
| 4581 | then |
| 4582 | JIT= |
| 4583 | |
| 4584 | else |
| 4585 | case "$llvm_cv_target_arch" in |
| 4586 | x86) TARGET_HAS_JIT=1 |
| 4587 | ;; |
| 4588 | Sparc) TARGET_HAS_JIT=1 |
| 4589 | ;; |
| 4590 | PowerPC) TARGET_HAS_JIT=1 |
| 4591 | ;; |
| 4592 | x86_64) TARGET_HAS_JIT=0 |
| 4593 | ;; |
| 4594 | Alpha) TARGET_HAS_JIT=1 |
| 4595 | ;; |
| 4596 | IA64) TARGET_HAS_JIT=0 |
| 4597 | ;; |
| 4598 | *) TARGET_HAS_JIT=0 |
| 4599 | ;; |
| 4600 | esac |
| 4601 | fi |
| 4602 | |
| 4603 | # Check whether --enable-doxygen was given. |
| 4604 | if test "${enable_doxygen+set}" = set; then |
| 4605 | enableval=$enable_doxygen; |
| 4606 | else |
| 4607 | enableval=default |
| 4608 | fi |
| 4609 | |
| 4610 | case "$enableval" in |
| 4611 | yes) ENABLE_DOXYGEN=1 |
| 4612 | ;; |
| 4613 | no) ENABLE_DOXYGEN=0 |
| 4614 | ;; |
| 4615 | default) ENABLE_DOXYGEN=0 |
| 4616 | ;; |
| 4617 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4618 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4619 | { (exit 1); exit 1; }; } ;; |
| 4620 | esac |
| 4621 | |
| 4622 | # Check whether --enable-threads was given. |
| 4623 | if test "${enable_threads+set}" = set; then |
| 4624 | enableval=$enable_threads; |
| 4625 | else |
| 4626 | enableval=yes |
| 4627 | fi |
| 4628 | |
| 4629 | case "$enableval" in |
| 4630 | yes) ENABLE_THREADS=1 |
| 4631 | ;; |
| 4632 | no) ENABLE_THREADS=0 |
| 4633 | ;; |
| 4634 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4635 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4636 | { (exit 1); exit 1; }; } ;; |
| 4637 | esac |
| 4638 | |
| 4639 | cat >>confdefs.h <<_ACEOF |
| 4640 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4641 | _ACEOF |
| 4642 | |
| 4643 | |
| 4644 | TARGETS_TO_BUILD="" |
| 4645 | # Check whether --enable-targets was given. |
| 4646 | if test "${enable_targets+set}" = set; then |
| 4647 | enableval=$enable_targets; |
| 4648 | else |
| 4649 | enableval=all |
| 4650 | fi |
| 4651 | |
| 4652 | case "$enableval" in |
| 4653 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
| 4654 | host-only) |
| 4655 | case "$llvm_cv_target_arch" in |
| 4656 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4657 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4658 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4659 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4660 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4661 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 4662 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4663 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4664 | { (exit 1); exit 1; }; } ;; |
| 4665 | esac |
| 4666 | ;; |
| 4667 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4668 | case "$a_target" in |
| 4669 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4670 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4671 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4672 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4673 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4674 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
| 4675 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4676 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4677 | { (exit 1); exit 1; }; } ;; |
| 4678 | esac |
| 4679 | done |
| 4680 | ;; |
| 4681 | esac |
| 4682 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
| 4683 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4684 | |
| 4685 | |
| 4686 | |
| 4687 | # Check whether --with-llvmgccdir was given. |
| 4688 | if test "${with_llvmgccdir+set}" = set; then |
| 4689 | withval=$with_llvmgccdir; |
| 4690 | else |
| 4691 | withval=default |
| 4692 | fi |
| 4693 | |
| 4694 | case "$withval" in |
| 4695 | default) WITH_LLVMGCCDIR=default ;; |
| 4696 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4697 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4698 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4699 | { (exit 1); exit 1; }; } ;; |
| 4700 | esac |
| 4701 | |
| 4702 | |
| 4703 | # Check whether --with-extra-options was given. |
| 4704 | if test "${with_extra_options+set}" = set; then |
| 4705 | withval=$with_extra_options; |
| 4706 | else |
| 4707 | withval=default |
| 4708 | fi |
| 4709 | |
| 4710 | case "$withval" in |
| 4711 | default) EXTRA_OPTIONS= ;; |
| 4712 | *) EXTRA_OPTIONS=$withval ;; |
| 4713 | esac |
| 4714 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | ac_ext=c |
| 4719 | ac_cpp='$CPP $CPPFLAGS' |
| 4720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4723 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4724 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4725 | # On Suns, sometimes $CPP names a directory. |
| 4726 | if test -n "$CPP" && test -d "$CPP"; then |
| 4727 | CPP= |
| 4728 | fi |
| 4729 | if test -z "$CPP"; then |
| 4730 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4732 | else |
| 4733 | # Double quotes because CPP needs to be expanded |
| 4734 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4735 | do |
| 4736 | ac_preproc_ok=false |
| 4737 | for ac_c_preproc_warn_flag in '' yes |
| 4738 | do |
| 4739 | # Use a header file that comes with gcc, so configuring glibc |
| 4740 | # with a fresh cross-compiler works. |
| 4741 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4742 | # <limits.h> exists even on freestanding compilers. |
| 4743 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4744 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4745 | cat >conftest.$ac_ext <<_ACEOF |
| 4746 | /* confdefs.h. */ |
| 4747 | _ACEOF |
| 4748 | cat confdefs.h >>conftest.$ac_ext |
| 4749 | cat >>conftest.$ac_ext <<_ACEOF |
| 4750 | /* end confdefs.h. */ |
| 4751 | #ifdef __STDC__ |
| 4752 | # include <limits.h> |
| 4753 | #else |
| 4754 | # include <assert.h> |
| 4755 | #endif |
| 4756 | Syntax error |
| 4757 | _ACEOF |
| 4758 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4759 | case "(($ac_try" in |
| 4760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4761 | *) ac_try_echo=$ac_try;; |
| 4762 | esac |
| 4763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4765 | ac_status=$? |
| 4766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4767 | rm -f conftest.er1 |
| 4768 | cat conftest.err >&5 |
| 4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4770 | (exit $ac_status); } >/dev/null; then |
| 4771 | if test -s conftest.err; then |
| 4772 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4773 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4774 | else |
| 4775 | ac_cpp_err= |
| 4776 | fi |
| 4777 | else |
| 4778 | ac_cpp_err=yes |
| 4779 | fi |
| 4780 | if test -z "$ac_cpp_err"; then |
| 4781 | : |
| 4782 | else |
| 4783 | echo "$as_me: failed program was:" >&5 |
| 4784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4785 | |
| 4786 | # Broken: fails on valid input. |
| 4787 | continue |
| 4788 | fi |
| 4789 | |
| 4790 | rm -f conftest.err conftest.$ac_ext |
| 4791 | |
| 4792 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4793 | # can be detected and how. |
| 4794 | cat >conftest.$ac_ext <<_ACEOF |
| 4795 | /* confdefs.h. */ |
| 4796 | _ACEOF |
| 4797 | cat confdefs.h >>conftest.$ac_ext |
| 4798 | cat >>conftest.$ac_ext <<_ACEOF |
| 4799 | /* end confdefs.h. */ |
| 4800 | #include <ac_nonexistent.h> |
| 4801 | _ACEOF |
| 4802 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4803 | case "(($ac_try" in |
| 4804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4805 | *) ac_try_echo=$ac_try;; |
| 4806 | esac |
| 4807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4808 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4809 | ac_status=$? |
| 4810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4811 | rm -f conftest.er1 |
| 4812 | cat conftest.err >&5 |
| 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4814 | (exit $ac_status); } >/dev/null; then |
| 4815 | if test -s conftest.err; then |
| 4816 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4818 | else |
| 4819 | ac_cpp_err= |
| 4820 | fi |
| 4821 | else |
| 4822 | ac_cpp_err=yes |
| 4823 | fi |
| 4824 | if test -z "$ac_cpp_err"; then |
| 4825 | # Broken: success on invalid input. |
| 4826 | continue |
| 4827 | else |
| 4828 | echo "$as_me: failed program was:" >&5 |
| 4829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4830 | |
| 4831 | # Passes both tests. |
| 4832 | ac_preproc_ok=: |
| 4833 | break |
| 4834 | fi |
| 4835 | |
| 4836 | rm -f conftest.err conftest.$ac_ext |
| 4837 | |
| 4838 | done |
| 4839 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4840 | rm -f conftest.err conftest.$ac_ext |
| 4841 | if $ac_preproc_ok; then |
| 4842 | break |
| 4843 | fi |
| 4844 | |
| 4845 | done |
| 4846 | ac_cv_prog_CPP=$CPP |
| 4847 | |
| 4848 | fi |
| 4849 | CPP=$ac_cv_prog_CPP |
| 4850 | else |
| 4851 | ac_cv_prog_CPP=$CPP |
| 4852 | fi |
| 4853 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4854 | echo "${ECHO_T}$CPP" >&6; } |
| 4855 | ac_preproc_ok=false |
| 4856 | for ac_c_preproc_warn_flag in '' yes |
| 4857 | do |
| 4858 | # Use a header file that comes with gcc, so configuring glibc |
| 4859 | # with a fresh cross-compiler works. |
| 4860 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4861 | # <limits.h> exists even on freestanding compilers. |
| 4862 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4863 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4864 | cat >conftest.$ac_ext <<_ACEOF |
| 4865 | /* confdefs.h. */ |
| 4866 | _ACEOF |
| 4867 | cat confdefs.h >>conftest.$ac_ext |
| 4868 | cat >>conftest.$ac_ext <<_ACEOF |
| 4869 | /* end confdefs.h. */ |
| 4870 | #ifdef __STDC__ |
| 4871 | # include <limits.h> |
| 4872 | #else |
| 4873 | # include <assert.h> |
| 4874 | #endif |
| 4875 | Syntax error |
| 4876 | _ACEOF |
| 4877 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4878 | case "(($ac_try" in |
| 4879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4880 | *) ac_try_echo=$ac_try;; |
| 4881 | esac |
| 4882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4884 | ac_status=$? |
| 4885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4886 | rm -f conftest.er1 |
| 4887 | cat conftest.err >&5 |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); } >/dev/null; then |
| 4890 | if test -s conftest.err; then |
| 4891 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4892 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4893 | else |
| 4894 | ac_cpp_err= |
| 4895 | fi |
| 4896 | else |
| 4897 | ac_cpp_err=yes |
| 4898 | fi |
| 4899 | if test -z "$ac_cpp_err"; then |
| 4900 | : |
| 4901 | else |
| 4902 | echo "$as_me: failed program was:" >&5 |
| 4903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4904 | |
| 4905 | # Broken: fails on valid input. |
| 4906 | continue |
| 4907 | fi |
| 4908 | |
| 4909 | rm -f conftest.err conftest.$ac_ext |
| 4910 | |
| 4911 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4912 | # can be detected and how. |
| 4913 | cat >conftest.$ac_ext <<_ACEOF |
| 4914 | /* confdefs.h. */ |
| 4915 | _ACEOF |
| 4916 | cat confdefs.h >>conftest.$ac_ext |
| 4917 | cat >>conftest.$ac_ext <<_ACEOF |
| 4918 | /* end confdefs.h. */ |
| 4919 | #include <ac_nonexistent.h> |
| 4920 | _ACEOF |
| 4921 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4922 | case "(($ac_try" in |
| 4923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4924 | *) ac_try_echo=$ac_try;; |
| 4925 | esac |
| 4926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4927 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4928 | ac_status=$? |
| 4929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4930 | rm -f conftest.er1 |
| 4931 | cat conftest.err >&5 |
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4933 | (exit $ac_status); } >/dev/null; then |
| 4934 | if test -s conftest.err; then |
| 4935 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4936 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4937 | else |
| 4938 | ac_cpp_err= |
| 4939 | fi |
| 4940 | else |
| 4941 | ac_cpp_err=yes |
| 4942 | fi |
| 4943 | if test -z "$ac_cpp_err"; then |
| 4944 | # Broken: success on invalid input. |
| 4945 | continue |
| 4946 | else |
| 4947 | echo "$as_me: failed program was:" >&5 |
| 4948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4949 | |
| 4950 | # Passes both tests. |
| 4951 | ac_preproc_ok=: |
| 4952 | break |
| 4953 | fi |
| 4954 | |
| 4955 | rm -f conftest.err conftest.$ac_ext |
| 4956 | |
| 4957 | done |
| 4958 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4959 | rm -f conftest.err conftest.$ac_ext |
| 4960 | if $ac_preproc_ok; then |
| 4961 | : |
| 4962 | else |
| 4963 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4964 | See \`config.log' for more details." >&5 |
| 4965 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4966 | See \`config.log' for more details." >&2;} |
| 4967 | { (exit 1); exit 1; }; } |
| 4968 | fi |
| 4969 | |
| 4970 | ac_ext=c |
| 4971 | ac_cpp='$CPP $CPPFLAGS' |
| 4972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4975 | |
| 4976 | ac_ext=c |
| 4977 | ac_cpp='$CPP $CPPFLAGS' |
| 4978 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4979 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4980 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4981 | if test -n "$ac_tool_prefix"; then |
| 4982 | for ac_prog in gcc |
| 4983 | do |
| 4984 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4985 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4988 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4990 | else |
| 4991 | if test -n "$CC"; then |
| 4992 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4993 | else |
| 4994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4995 | for as_dir in $PATH |
| 4996 | do |
| 4997 | IFS=$as_save_IFS |
| 4998 | test -z "$as_dir" && as_dir=. |
| 4999 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5001 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5003 | break 2 |
| 5004 | fi |
| 5005 | done |
| 5006 | done |
| 5007 | IFS=$as_save_IFS |
| 5008 | |
| 5009 | fi |
| 5010 | fi |
| 5011 | CC=$ac_cv_prog_CC |
| 5012 | if test -n "$CC"; then |
| 5013 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5014 | echo "${ECHO_T}$CC" >&6; } |
| 5015 | else |
| 5016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5017 | echo "${ECHO_T}no" >&6; } |
| 5018 | fi |
| 5019 | |
| 5020 | |
| 5021 | test -n "$CC" && break |
| 5022 | done |
| 5023 | fi |
| 5024 | if test -z "$CC"; then |
| 5025 | ac_ct_CC=$CC |
| 5026 | for ac_prog in gcc |
| 5027 | do |
| 5028 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5029 | set dummy $ac_prog; ac_word=$2 |
| 5030 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5032 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5034 | else |
| 5035 | if test -n "$ac_ct_CC"; then |
| 5036 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5037 | else |
| 5038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5039 | for as_dir in $PATH |
| 5040 | do |
| 5041 | IFS=$as_save_IFS |
| 5042 | test -z "$as_dir" && as_dir=. |
| 5043 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5045 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5046 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5047 | break 2 |
| 5048 | fi |
| 5049 | done |
| 5050 | done |
| 5051 | IFS=$as_save_IFS |
| 5052 | |
| 5053 | fi |
| 5054 | fi |
| 5055 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5056 | if test -n "$ac_ct_CC"; then |
| 5057 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5058 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5059 | else |
| 5060 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5061 | echo "${ECHO_T}no" >&6; } |
| 5062 | fi |
| 5063 | |
| 5064 | |
| 5065 | test -n "$ac_ct_CC" && break |
| 5066 | done |
| 5067 | |
| 5068 | if test "x$ac_ct_CC" = x; then |
| 5069 | CC="" |
| 5070 | else |
| 5071 | case $cross_compiling:$ac_tool_warned in |
| 5072 | yes:) |
| 5073 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5074 | whose name does not start with the host triplet. If you think this |
| 5075 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5076 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5077 | whose name does not start with the host triplet. If you think this |
| 5078 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5079 | ac_tool_warned=yes ;; |
| 5080 | esac |
| 5081 | CC=$ac_ct_CC |
| 5082 | fi |
| 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5087 | See \`config.log' for more details." >&5 |
| 5088 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5089 | See \`config.log' for more details." >&2;} |
| 5090 | { (exit 1); exit 1; }; } |
| 5091 | |
| 5092 | # Provide some information about the compiler. |
| 5093 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5094 | ac_compiler=`set X $ac_compile; echo $2` |
| 5095 | { (ac_try="$ac_compiler --version >&5" |
| 5096 | case "(($ac_try" in |
| 5097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5098 | *) ac_try_echo=$ac_try;; |
| 5099 | esac |
| 5100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5101 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5102 | ac_status=$? |
| 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } |
| 5105 | { (ac_try="$ac_compiler -v >&5" |
| 5106 | case "(($ac_try" in |
| 5107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5108 | *) ac_try_echo=$ac_try;; |
| 5109 | esac |
| 5110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5111 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5112 | ac_status=$? |
| 5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5114 | (exit $ac_status); } |
| 5115 | { (ac_try="$ac_compiler -V >&5" |
| 5116 | case "(($ac_try" in |
| 5117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5118 | *) ac_try_echo=$ac_try;; |
| 5119 | esac |
| 5120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5121 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5122 | ac_status=$? |
| 5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5124 | (exit $ac_status); } |
| 5125 | |
| 5126 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5127 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5128 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5130 | else |
| 5131 | cat >conftest.$ac_ext <<_ACEOF |
| 5132 | /* confdefs.h. */ |
| 5133 | _ACEOF |
| 5134 | cat confdefs.h >>conftest.$ac_ext |
| 5135 | cat >>conftest.$ac_ext <<_ACEOF |
| 5136 | /* end confdefs.h. */ |
| 5137 | |
| 5138 | int |
| 5139 | main () |
| 5140 | { |
| 5141 | #ifndef __GNUC__ |
| 5142 | choke me |
| 5143 | #endif |
| 5144 | |
| 5145 | ; |
| 5146 | return 0; |
| 5147 | } |
| 5148 | _ACEOF |
| 5149 | rm -f conftest.$ac_objext |
| 5150 | if { (ac_try="$ac_compile" |
| 5151 | case "(($ac_try" in |
| 5152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5153 | *) ac_try_echo=$ac_try;; |
| 5154 | esac |
| 5155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5156 | (eval "$ac_compile") 2>conftest.er1 |
| 5157 | ac_status=$? |
| 5158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5159 | rm -f conftest.er1 |
| 5160 | cat conftest.err >&5 |
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5162 | (exit $ac_status); } && |
| 5163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5164 | { (case "(($ac_try" in |
| 5165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5166 | *) ac_try_echo=$ac_try;; |
| 5167 | esac |
| 5168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5169 | (eval "$ac_try") 2>&5 |
| 5170 | ac_status=$? |
| 5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5172 | (exit $ac_status); }; } && |
| 5173 | { ac_try='test -s conftest.$ac_objext' |
| 5174 | { (case "(($ac_try" in |
| 5175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5176 | *) ac_try_echo=$ac_try;; |
| 5177 | esac |
| 5178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5179 | (eval "$ac_try") 2>&5 |
| 5180 | ac_status=$? |
| 5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5182 | (exit $ac_status); }; }; then |
| 5183 | ac_compiler_gnu=yes |
| 5184 | else |
| 5185 | echo "$as_me: failed program was:" >&5 |
| 5186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5187 | |
| 5188 | ac_compiler_gnu=no |
| 5189 | fi |
| 5190 | |
| 5191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5192 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5193 | |
| 5194 | fi |
| 5195 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5196 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5197 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5198 | ac_test_CFLAGS=${CFLAGS+set} |
| 5199 | ac_save_CFLAGS=$CFLAGS |
| 5200 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5201 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5202 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5204 | else |
| 5205 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5206 | ac_c_werror_flag=yes |
| 5207 | ac_cv_prog_cc_g=no |
| 5208 | CFLAGS="-g" |
| 5209 | cat >conftest.$ac_ext <<_ACEOF |
| 5210 | /* confdefs.h. */ |
| 5211 | _ACEOF |
| 5212 | cat confdefs.h >>conftest.$ac_ext |
| 5213 | cat >>conftest.$ac_ext <<_ACEOF |
| 5214 | /* end confdefs.h. */ |
| 5215 | |
| 5216 | int |
| 5217 | main () |
| 5218 | { |
| 5219 | |
| 5220 | ; |
| 5221 | return 0; |
| 5222 | } |
| 5223 | _ACEOF |
| 5224 | rm -f conftest.$ac_objext |
| 5225 | if { (ac_try="$ac_compile" |
| 5226 | case "(($ac_try" in |
| 5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5228 | *) ac_try_echo=$ac_try;; |
| 5229 | esac |
| 5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5231 | (eval "$ac_compile") 2>conftest.er1 |
| 5232 | ac_status=$? |
| 5233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5234 | rm -f conftest.er1 |
| 5235 | cat conftest.err >&5 |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5237 | (exit $ac_status); } && |
| 5238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5239 | { (case "(($ac_try" in |
| 5240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5241 | *) ac_try_echo=$ac_try;; |
| 5242 | esac |
| 5243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5244 | (eval "$ac_try") 2>&5 |
| 5245 | ac_status=$? |
| 5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5247 | (exit $ac_status); }; } && |
| 5248 | { ac_try='test -s conftest.$ac_objext' |
| 5249 | { (case "(($ac_try" in |
| 5250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5251 | *) ac_try_echo=$ac_try;; |
| 5252 | esac |
| 5253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5254 | (eval "$ac_try") 2>&5 |
| 5255 | ac_status=$? |
| 5256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5257 | (exit $ac_status); }; }; then |
| 5258 | ac_cv_prog_cc_g=yes |
| 5259 | else |
| 5260 | echo "$as_me: failed program was:" >&5 |
| 5261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5262 | |
| 5263 | CFLAGS="" |
| 5264 | cat >conftest.$ac_ext <<_ACEOF |
| 5265 | /* confdefs.h. */ |
| 5266 | _ACEOF |
| 5267 | cat confdefs.h >>conftest.$ac_ext |
| 5268 | cat >>conftest.$ac_ext <<_ACEOF |
| 5269 | /* end confdefs.h. */ |
| 5270 | |
| 5271 | int |
| 5272 | main () |
| 5273 | { |
| 5274 | |
| 5275 | ; |
| 5276 | return 0; |
| 5277 | } |
| 5278 | _ACEOF |
| 5279 | rm -f conftest.$ac_objext |
| 5280 | if { (ac_try="$ac_compile" |
| 5281 | case "(($ac_try" in |
| 5282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5283 | *) ac_try_echo=$ac_try;; |
| 5284 | esac |
| 5285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5286 | (eval "$ac_compile") 2>conftest.er1 |
| 5287 | ac_status=$? |
| 5288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5289 | rm -f conftest.er1 |
| 5290 | cat conftest.err >&5 |
| 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5292 | (exit $ac_status); } && |
| 5293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5294 | { (case "(($ac_try" in |
| 5295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5296 | *) ac_try_echo=$ac_try;; |
| 5297 | esac |
| 5298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5299 | (eval "$ac_try") 2>&5 |
| 5300 | ac_status=$? |
| 5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | (exit $ac_status); }; } && |
| 5303 | { ac_try='test -s conftest.$ac_objext' |
| 5304 | { (case "(($ac_try" in |
| 5305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5306 | *) ac_try_echo=$ac_try;; |
| 5307 | esac |
| 5308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5309 | (eval "$ac_try") 2>&5 |
| 5310 | ac_status=$? |
| 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); }; }; then |
| 5313 | : |
| 5314 | else |
| 5315 | echo "$as_me: failed program was:" >&5 |
| 5316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5317 | |
| 5318 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5319 | CFLAGS="-g" |
| 5320 | cat >conftest.$ac_ext <<_ACEOF |
| 5321 | /* confdefs.h. */ |
| 5322 | _ACEOF |
| 5323 | cat confdefs.h >>conftest.$ac_ext |
| 5324 | cat >>conftest.$ac_ext <<_ACEOF |
| 5325 | /* end confdefs.h. */ |
| 5326 | |
| 5327 | int |
| 5328 | main () |
| 5329 | { |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
| 5333 | } |
| 5334 | _ACEOF |
| 5335 | rm -f conftest.$ac_objext |
| 5336 | if { (ac_try="$ac_compile" |
| 5337 | case "(($ac_try" in |
| 5338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5339 | *) ac_try_echo=$ac_try;; |
| 5340 | esac |
| 5341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5342 | (eval "$ac_compile") 2>conftest.er1 |
| 5343 | ac_status=$? |
| 5344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5345 | rm -f conftest.er1 |
| 5346 | cat conftest.err >&5 |
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5348 | (exit $ac_status); } && |
| 5349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5350 | { (case "(($ac_try" in |
| 5351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5352 | *) ac_try_echo=$ac_try;; |
| 5353 | esac |
| 5354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5355 | (eval "$ac_try") 2>&5 |
| 5356 | ac_status=$? |
| 5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5358 | (exit $ac_status); }; } && |
| 5359 | { ac_try='test -s conftest.$ac_objext' |
| 5360 | { (case "(($ac_try" in |
| 5361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5362 | *) ac_try_echo=$ac_try;; |
| 5363 | esac |
| 5364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5365 | (eval "$ac_try") 2>&5 |
| 5366 | ac_status=$? |
| 5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5368 | (exit $ac_status); }; }; then |
| 5369 | ac_cv_prog_cc_g=yes |
| 5370 | else |
| 5371 | echo "$as_me: failed program was:" >&5 |
| 5372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5373 | |
| 5374 | |
| 5375 | fi |
| 5376 | |
| 5377 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5378 | fi |
| 5379 | |
| 5380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5381 | fi |
| 5382 | |
| 5383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5384 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5385 | fi |
| 5386 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5387 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5388 | if test "$ac_test_CFLAGS" = set; then |
| 5389 | CFLAGS=$ac_save_CFLAGS |
| 5390 | elif test $ac_cv_prog_cc_g = yes; then |
| 5391 | if test "$GCC" = yes; then |
| 5392 | CFLAGS="-g -O2" |
| 5393 | else |
| 5394 | CFLAGS="-g" |
| 5395 | fi |
| 5396 | else |
| 5397 | if test "$GCC" = yes; then |
| 5398 | CFLAGS="-O2" |
| 5399 | else |
| 5400 | CFLAGS= |
| 5401 | fi |
| 5402 | fi |
| 5403 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5404 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5405 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5407 | else |
| 5408 | ac_cv_prog_cc_c89=no |
| 5409 | ac_save_CC=$CC |
| 5410 | cat >conftest.$ac_ext <<_ACEOF |
| 5411 | /* confdefs.h. */ |
| 5412 | _ACEOF |
| 5413 | cat confdefs.h >>conftest.$ac_ext |
| 5414 | cat >>conftest.$ac_ext <<_ACEOF |
| 5415 | /* end confdefs.h. */ |
| 5416 | #include <stdarg.h> |
| 5417 | #include <stdio.h> |
| 5418 | #include <sys/types.h> |
| 5419 | #include <sys/stat.h> |
| 5420 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5421 | struct buf { int x; }; |
| 5422 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5423 | static char *e (p, i) |
| 5424 | char **p; |
| 5425 | int i; |
| 5426 | { |
| 5427 | return p[i]; |
| 5428 | } |
| 5429 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5430 | { |
| 5431 | char *s; |
| 5432 | va_list v; |
| 5433 | va_start (v,p); |
| 5434 | s = g (p, va_arg (v,int)); |
| 5435 | va_end (v); |
| 5436 | return s; |
| 5437 | } |
| 5438 | |
| 5439 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5440 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5441 | These don't provoke an error unfortunately, instead are silently treated |
| 5442 | as 'x'. The following induces an error, until -std is added to get |
| 5443 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5444 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5445 | that's true only with -std. */ |
| 5446 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5447 | |
| 5448 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5449 | inside strings and character constants. */ |
| 5450 | #define FOO(x) 'x' |
| 5451 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5452 | |
| 5453 | int test (int i, double x); |
| 5454 | struct s1 {int (*f) (int a);}; |
| 5455 | struct s2 {int (*f) (double a);}; |
| 5456 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5457 | int argc; |
| 5458 | char **argv; |
| 5459 | int |
| 5460 | main () |
| 5461 | { |
| 5462 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5463 | ; |
| 5464 | return 0; |
| 5465 | } |
| 5466 | _ACEOF |
| 5467 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5468 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5469 | do |
| 5470 | CC="$ac_save_CC $ac_arg" |
| 5471 | rm -f conftest.$ac_objext |
| 5472 | if { (ac_try="$ac_compile" |
| 5473 | case "(($ac_try" in |
| 5474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5475 | *) ac_try_echo=$ac_try;; |
| 5476 | esac |
| 5477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5478 | (eval "$ac_compile") 2>conftest.er1 |
| 5479 | ac_status=$? |
| 5480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5481 | rm -f conftest.er1 |
| 5482 | cat conftest.err >&5 |
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5484 | (exit $ac_status); } && |
| 5485 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5486 | { (case "(($ac_try" in |
| 5487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5488 | *) ac_try_echo=$ac_try;; |
| 5489 | esac |
| 5490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5491 | (eval "$ac_try") 2>&5 |
| 5492 | ac_status=$? |
| 5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5494 | (exit $ac_status); }; } && |
| 5495 | { ac_try='test -s conftest.$ac_objext' |
| 5496 | { (case "(($ac_try" in |
| 5497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5498 | *) ac_try_echo=$ac_try;; |
| 5499 | esac |
| 5500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5501 | (eval "$ac_try") 2>&5 |
| 5502 | ac_status=$? |
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5504 | (exit $ac_status); }; }; then |
| 5505 | ac_cv_prog_cc_c89=$ac_arg |
| 5506 | else |
| 5507 | echo "$as_me: failed program was:" >&5 |
| 5508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5509 | |
| 5510 | |
| 5511 | fi |
| 5512 | |
| 5513 | rm -f core conftest.err conftest.$ac_objext |
| 5514 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5515 | done |
| 5516 | rm -f conftest.$ac_ext |
| 5517 | CC=$ac_save_CC |
| 5518 | |
| 5519 | fi |
| 5520 | # AC_CACHE_VAL |
| 5521 | case "x$ac_cv_prog_cc_c89" in |
| 5522 | x) |
| 5523 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5524 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5525 | xno) |
| 5526 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5527 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5528 | *) |
| 5529 | CC="$CC $ac_cv_prog_cc_c89" |
| 5530 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5531 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5532 | esac |
| 5533 | |
| 5534 | |
| 5535 | ac_ext=c |
| 5536 | ac_cpp='$CPP $CPPFLAGS' |
| 5537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5540 | |
| 5541 | ac_ext=cpp |
| 5542 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5546 | if test -z "$CXX"; then |
| 5547 | if test -n "$CCC"; then |
| 5548 | CXX=$CCC |
| 5549 | else |
| 5550 | if test -n "$ac_tool_prefix"; then |
| 5551 | for ac_prog in g++ |
| 5552 | do |
| 5553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5555 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5557 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5559 | else |
| 5560 | if test -n "$CXX"; then |
| 5561 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5562 | else |
| 5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5564 | for as_dir in $PATH |
| 5565 | do |
| 5566 | IFS=$as_save_IFS |
| 5567 | test -z "$as_dir" && as_dir=. |
| 5568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5570 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5572 | break 2 |
| 5573 | fi |
| 5574 | done |
| 5575 | done |
| 5576 | IFS=$as_save_IFS |
| 5577 | |
| 5578 | fi |
| 5579 | fi |
| 5580 | CXX=$ac_cv_prog_CXX |
| 5581 | if test -n "$CXX"; then |
| 5582 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5583 | echo "${ECHO_T}$CXX" >&6; } |
| 5584 | else |
| 5585 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5586 | echo "${ECHO_T}no" >&6; } |
| 5587 | fi |
| 5588 | |
| 5589 | |
| 5590 | test -n "$CXX" && break |
| 5591 | done |
| 5592 | fi |
| 5593 | if test -z "$CXX"; then |
| 5594 | ac_ct_CXX=$CXX |
| 5595 | for ac_prog in g++ |
| 5596 | do |
| 5597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5598 | set dummy $ac_prog; ac_word=$2 |
| 5599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5601 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5603 | else |
| 5604 | if test -n "$ac_ct_CXX"; then |
| 5605 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5606 | else |
| 5607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5608 | for as_dir in $PATH |
| 5609 | do |
| 5610 | IFS=$as_save_IFS |
| 5611 | test -z "$as_dir" && as_dir=. |
| 5612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5613 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5614 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5616 | break 2 |
| 5617 | fi |
| 5618 | done |
| 5619 | done |
| 5620 | IFS=$as_save_IFS |
| 5621 | |
| 5622 | fi |
| 5623 | fi |
| 5624 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5625 | if test -n "$ac_ct_CXX"; then |
| 5626 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5627 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5628 | else |
| 5629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5630 | echo "${ECHO_T}no" >&6; } |
| 5631 | fi |
| 5632 | |
| 5633 | |
| 5634 | test -n "$ac_ct_CXX" && break |
| 5635 | done |
| 5636 | |
| 5637 | if test "x$ac_ct_CXX" = x; then |
| 5638 | CXX="g++" |
| 5639 | else |
| 5640 | case $cross_compiling:$ac_tool_warned in |
| 5641 | yes:) |
| 5642 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5643 | whose name does not start with the host triplet. If you think this |
| 5644 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5645 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5646 | whose name does not start with the host triplet. If you think this |
| 5647 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5648 | ac_tool_warned=yes ;; |
| 5649 | esac |
| 5650 | CXX=$ac_ct_CXX |
| 5651 | fi |
| 5652 | fi |
| 5653 | |
| 5654 | fi |
| 5655 | fi |
| 5656 | # Provide some information about the compiler. |
| 5657 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5658 | ac_compiler=`set X $ac_compile; echo $2` |
| 5659 | { (ac_try="$ac_compiler --version >&5" |
| 5660 | case "(($ac_try" in |
| 5661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5662 | *) ac_try_echo=$ac_try;; |
| 5663 | esac |
| 5664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5665 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); } |
| 5669 | { (ac_try="$ac_compiler -v >&5" |
| 5670 | case "(($ac_try" in |
| 5671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5672 | *) ac_try_echo=$ac_try;; |
| 5673 | esac |
| 5674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5675 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); } |
| 5679 | { (ac_try="$ac_compiler -V >&5" |
| 5680 | case "(($ac_try" in |
| 5681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5682 | *) ac_try_echo=$ac_try;; |
| 5683 | esac |
| 5684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5685 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5686 | ac_status=$? |
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 | (exit $ac_status); } |
| 5689 | |
| 5690 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5691 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5692 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5694 | else |
| 5695 | cat >conftest.$ac_ext <<_ACEOF |
| 5696 | /* confdefs.h. */ |
| 5697 | _ACEOF |
| 5698 | cat confdefs.h >>conftest.$ac_ext |
| 5699 | cat >>conftest.$ac_ext <<_ACEOF |
| 5700 | /* end confdefs.h. */ |
| 5701 | |
| 5702 | int |
| 5703 | main () |
| 5704 | { |
| 5705 | #ifndef __GNUC__ |
| 5706 | choke me |
| 5707 | #endif |
| 5708 | |
| 5709 | ; |
| 5710 | return 0; |
| 5711 | } |
| 5712 | _ACEOF |
| 5713 | rm -f conftest.$ac_objext |
| 5714 | if { (ac_try="$ac_compile" |
| 5715 | case "(($ac_try" in |
| 5716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5717 | *) ac_try_echo=$ac_try;; |
| 5718 | esac |
| 5719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5720 | (eval "$ac_compile") 2>conftest.er1 |
| 5721 | ac_status=$? |
| 5722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5723 | rm -f conftest.er1 |
| 5724 | cat conftest.err >&5 |
| 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); } && |
| 5727 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5728 | { (case "(($ac_try" in |
| 5729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5730 | *) ac_try_echo=$ac_try;; |
| 5731 | esac |
| 5732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5733 | (eval "$ac_try") 2>&5 |
| 5734 | ac_status=$? |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5736 | (exit $ac_status); }; } && |
| 5737 | { ac_try='test -s conftest.$ac_objext' |
| 5738 | { (case "(($ac_try" in |
| 5739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5740 | *) ac_try_echo=$ac_try;; |
| 5741 | esac |
| 5742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5743 | (eval "$ac_try") 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); }; }; then |
| 5747 | ac_compiler_gnu=yes |
| 5748 | else |
| 5749 | echo "$as_me: failed program was:" >&5 |
| 5750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5751 | |
| 5752 | ac_compiler_gnu=no |
| 5753 | fi |
| 5754 | |
| 5755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5756 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5757 | |
| 5758 | fi |
| 5759 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5760 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5761 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5762 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5763 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5764 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5765 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5766 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5768 | else |
| 5769 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5770 | ac_cxx_werror_flag=yes |
| 5771 | ac_cv_prog_cxx_g=no |
| 5772 | CXXFLAGS="-g" |
| 5773 | cat >conftest.$ac_ext <<_ACEOF |
| 5774 | /* confdefs.h. */ |
| 5775 | _ACEOF |
| 5776 | cat confdefs.h >>conftest.$ac_ext |
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
| 5778 | /* end confdefs.h. */ |
| 5779 | |
| 5780 | int |
| 5781 | main () |
| 5782 | { |
| 5783 | |
| 5784 | ; |
| 5785 | return 0; |
| 5786 | } |
| 5787 | _ACEOF |
| 5788 | rm -f conftest.$ac_objext |
| 5789 | if { (ac_try="$ac_compile" |
| 5790 | case "(($ac_try" in |
| 5791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5792 | *) ac_try_echo=$ac_try;; |
| 5793 | esac |
| 5794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5795 | (eval "$ac_compile") 2>conftest.er1 |
| 5796 | ac_status=$? |
| 5797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5798 | rm -f conftest.er1 |
| 5799 | cat conftest.err >&5 |
| 5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5801 | (exit $ac_status); } && |
| 5802 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5803 | { (case "(($ac_try" in |
| 5804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5805 | *) ac_try_echo=$ac_try;; |
| 5806 | esac |
| 5807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5808 | (eval "$ac_try") 2>&5 |
| 5809 | ac_status=$? |
| 5810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5811 | (exit $ac_status); }; } && |
| 5812 | { ac_try='test -s conftest.$ac_objext' |
| 5813 | { (case "(($ac_try" in |
| 5814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5815 | *) ac_try_echo=$ac_try;; |
| 5816 | esac |
| 5817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5818 | (eval "$ac_try") 2>&5 |
| 5819 | ac_status=$? |
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5821 | (exit $ac_status); }; }; then |
| 5822 | ac_cv_prog_cxx_g=yes |
| 5823 | else |
| 5824 | echo "$as_me: failed program was:" >&5 |
| 5825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5826 | |
| 5827 | CXXFLAGS="" |
| 5828 | cat >conftest.$ac_ext <<_ACEOF |
| 5829 | /* confdefs.h. */ |
| 5830 | _ACEOF |
| 5831 | cat confdefs.h >>conftest.$ac_ext |
| 5832 | cat >>conftest.$ac_ext <<_ACEOF |
| 5833 | /* end confdefs.h. */ |
| 5834 | |
| 5835 | int |
| 5836 | main () |
| 5837 | { |
| 5838 | |
| 5839 | ; |
| 5840 | return 0; |
| 5841 | } |
| 5842 | _ACEOF |
| 5843 | rm -f conftest.$ac_objext |
| 5844 | if { (ac_try="$ac_compile" |
| 5845 | case "(($ac_try" in |
| 5846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5847 | *) ac_try_echo=$ac_try;; |
| 5848 | esac |
| 5849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5850 | (eval "$ac_compile") 2>conftest.er1 |
| 5851 | ac_status=$? |
| 5852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5853 | rm -f conftest.er1 |
| 5854 | cat conftest.err >&5 |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); } && |
| 5857 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5858 | { (case "(($ac_try" in |
| 5859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5860 | *) ac_try_echo=$ac_try;; |
| 5861 | esac |
| 5862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5863 | (eval "$ac_try") 2>&5 |
| 5864 | ac_status=$? |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5866 | (exit $ac_status); }; } && |
| 5867 | { ac_try='test -s conftest.$ac_objext' |
| 5868 | { (case "(($ac_try" in |
| 5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5870 | *) ac_try_echo=$ac_try;; |
| 5871 | esac |
| 5872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5873 | (eval "$ac_try") 2>&5 |
| 5874 | ac_status=$? |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); }; }; then |
| 5877 | : |
| 5878 | else |
| 5879 | echo "$as_me: failed program was:" >&5 |
| 5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5881 | |
| 5882 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5883 | CXXFLAGS="-g" |
| 5884 | cat >conftest.$ac_ext <<_ACEOF |
| 5885 | /* confdefs.h. */ |
| 5886 | _ACEOF |
| 5887 | cat confdefs.h >>conftest.$ac_ext |
| 5888 | cat >>conftest.$ac_ext <<_ACEOF |
| 5889 | /* end confdefs.h. */ |
| 5890 | |
| 5891 | int |
| 5892 | main () |
| 5893 | { |
| 5894 | |
| 5895 | ; |
| 5896 | return 0; |
| 5897 | } |
| 5898 | _ACEOF |
| 5899 | rm -f conftest.$ac_objext |
| 5900 | if { (ac_try="$ac_compile" |
| 5901 | case "(($ac_try" in |
| 5902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5903 | *) ac_try_echo=$ac_try;; |
| 5904 | esac |
| 5905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5906 | (eval "$ac_compile") 2>conftest.er1 |
| 5907 | ac_status=$? |
| 5908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5909 | rm -f conftest.er1 |
| 5910 | cat conftest.err >&5 |
| 5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5912 | (exit $ac_status); } && |
| 5913 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5914 | { (case "(($ac_try" in |
| 5915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5916 | *) ac_try_echo=$ac_try;; |
| 5917 | esac |
| 5918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5919 | (eval "$ac_try") 2>&5 |
| 5920 | ac_status=$? |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5922 | (exit $ac_status); }; } && |
| 5923 | { ac_try='test -s conftest.$ac_objext' |
| 5924 | { (case "(($ac_try" in |
| 5925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5926 | *) ac_try_echo=$ac_try;; |
| 5927 | esac |
| 5928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5929 | (eval "$ac_try") 2>&5 |
| 5930 | ac_status=$? |
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5932 | (exit $ac_status); }; }; then |
| 5933 | ac_cv_prog_cxx_g=yes |
| 5934 | else |
| 5935 | echo "$as_me: failed program was:" >&5 |
| 5936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5937 | |
| 5938 | |
| 5939 | fi |
| 5940 | |
| 5941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5942 | fi |
| 5943 | |
| 5944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5945 | fi |
| 5946 | |
| 5947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5948 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5949 | fi |
| 5950 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5951 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 5952 | if test "$ac_test_CXXFLAGS" = set; then |
| 5953 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5954 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5955 | if test "$GXX" = yes; then |
| 5956 | CXXFLAGS="-g -O2" |
| 5957 | else |
| 5958 | CXXFLAGS="-g" |
| 5959 | fi |
| 5960 | else |
| 5961 | if test "$GXX" = yes; then |
| 5962 | CXXFLAGS="-O2" |
| 5963 | else |
| 5964 | CXXFLAGS= |
| 5965 | fi |
| 5966 | fi |
| 5967 | ac_ext=c |
| 5968 | ac_cpp='$CPP $CPPFLAGS' |
| 5969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5972 | |
| 5973 | { echo "$as_me:$LINENO: checking " >&5 |
| 5974 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 5975 | if test "${ac_cv_has_flex+set}" = set; then |
| 5976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5977 | else |
| 5978 | for ac_prog in flex lex |
| 5979 | do |
| 5980 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5981 | set dummy $ac_prog; ac_word=$2 |
| 5982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5984 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5986 | else |
| 5987 | if test -n "$LEX"; then |
| 5988 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5989 | else |
| 5990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5991 | for as_dir in $PATH |
| 5992 | do |
| 5993 | IFS=$as_save_IFS |
| 5994 | test -z "$as_dir" && as_dir=. |
| 5995 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5997 | ac_cv_prog_LEX="$ac_prog" |
| 5998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5999 | break 2 |
| 6000 | fi |
| 6001 | done |
| 6002 | done |
| 6003 | IFS=$as_save_IFS |
| 6004 | |
| 6005 | fi |
| 6006 | fi |
| 6007 | LEX=$ac_cv_prog_LEX |
| 6008 | if test -n "$LEX"; then |
| 6009 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6010 | echo "${ECHO_T}$LEX" >&6; } |
| 6011 | else |
| 6012 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6013 | echo "${ECHO_T}no" >&6; } |
| 6014 | fi |
| 6015 | |
| 6016 | |
| 6017 | test -n "$LEX" && break |
| 6018 | done |
| 6019 | test -n "$LEX" || LEX=":" |
| 6020 | |
| 6021 | if test -z "$LEXLIB" |
| 6022 | then |
| 6023 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6024 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6025 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6027 | else |
| 6028 | ac_check_lib_save_LIBS=$LIBS |
| 6029 | LIBS="-lfl $LIBS" |
| 6030 | cat >conftest.$ac_ext <<_ACEOF |
| 6031 | /* confdefs.h. */ |
| 6032 | _ACEOF |
| 6033 | cat confdefs.h >>conftest.$ac_ext |
| 6034 | cat >>conftest.$ac_ext <<_ACEOF |
| 6035 | /* end confdefs.h. */ |
| 6036 | |
| 6037 | /* Override any GCC internal prototype to avoid an error. |
| 6038 | Use char because int might match the return type of a GCC |
| 6039 | builtin and then its argument prototype would still apply. */ |
| 6040 | #ifdef __cplusplus |
| 6041 | extern "C" |
| 6042 | #endif |
| 6043 | char yywrap (); |
| 6044 | int |
| 6045 | main () |
| 6046 | { |
| 6047 | return yywrap (); |
| 6048 | ; |
| 6049 | return 0; |
| 6050 | } |
| 6051 | _ACEOF |
| 6052 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6053 | if { (ac_try="$ac_link" |
| 6054 | case "(($ac_try" in |
| 6055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6056 | *) ac_try_echo=$ac_try;; |
| 6057 | esac |
| 6058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6059 | (eval "$ac_link") 2>conftest.er1 |
| 6060 | ac_status=$? |
| 6061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6062 | rm -f conftest.er1 |
| 6063 | cat conftest.err >&5 |
| 6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6065 | (exit $ac_status); } && |
| 6066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6067 | { (case "(($ac_try" in |
| 6068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6069 | *) ac_try_echo=$ac_try;; |
| 6070 | esac |
| 6071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6072 | (eval "$ac_try") 2>&5 |
| 6073 | ac_status=$? |
| 6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6075 | (exit $ac_status); }; } && |
| 6076 | { ac_try='test -s conftest$ac_exeext' |
| 6077 | { (case "(($ac_try" in |
| 6078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6079 | *) ac_try_echo=$ac_try;; |
| 6080 | esac |
| 6081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6082 | (eval "$ac_try") 2>&5 |
| 6083 | ac_status=$? |
| 6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6085 | (exit $ac_status); }; }; then |
| 6086 | ac_cv_lib_fl_yywrap=yes |
| 6087 | else |
| 6088 | echo "$as_me: failed program was:" >&5 |
| 6089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6090 | |
| 6091 | ac_cv_lib_fl_yywrap=no |
| 6092 | fi |
| 6093 | |
| 6094 | rm -f core conftest.err conftest.$ac_objext \ |
| 6095 | conftest$ac_exeext conftest.$ac_ext |
| 6096 | LIBS=$ac_check_lib_save_LIBS |
| 6097 | fi |
| 6098 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6099 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6100 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6101 | LEXLIB="-lfl" |
| 6102 | else |
| 6103 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6104 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6105 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6107 | else |
| 6108 | ac_check_lib_save_LIBS=$LIBS |
| 6109 | LIBS="-ll $LIBS" |
| 6110 | cat >conftest.$ac_ext <<_ACEOF |
| 6111 | /* confdefs.h. */ |
| 6112 | _ACEOF |
| 6113 | cat confdefs.h >>conftest.$ac_ext |
| 6114 | cat >>conftest.$ac_ext <<_ACEOF |
| 6115 | /* end confdefs.h. */ |
| 6116 | |
| 6117 | /* Override any GCC internal prototype to avoid an error. |
| 6118 | Use char because int might match the return type of a GCC |
| 6119 | builtin and then its argument prototype would still apply. */ |
| 6120 | #ifdef __cplusplus |
| 6121 | extern "C" |
| 6122 | #endif |
| 6123 | char yywrap (); |
| 6124 | int |
| 6125 | main () |
| 6126 | { |
| 6127 | return yywrap (); |
| 6128 | ; |
| 6129 | return 0; |
| 6130 | } |
| 6131 | _ACEOF |
| 6132 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6133 | if { (ac_try="$ac_link" |
| 6134 | case "(($ac_try" in |
| 6135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6136 | *) ac_try_echo=$ac_try;; |
| 6137 | esac |
| 6138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6139 | (eval "$ac_link") 2>conftest.er1 |
| 6140 | ac_status=$? |
| 6141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6142 | rm -f conftest.er1 |
| 6143 | cat conftest.err >&5 |
| 6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6145 | (exit $ac_status); } && |
| 6146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6147 | { (case "(($ac_try" in |
| 6148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6149 | *) ac_try_echo=$ac_try;; |
| 6150 | esac |
| 6151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6152 | (eval "$ac_try") 2>&5 |
| 6153 | ac_status=$? |
| 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6155 | (exit $ac_status); }; } && |
| 6156 | { ac_try='test -s conftest$ac_exeext' |
| 6157 | { (case "(($ac_try" in |
| 6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6159 | *) ac_try_echo=$ac_try;; |
| 6160 | esac |
| 6161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6162 | (eval "$ac_try") 2>&5 |
| 6163 | ac_status=$? |
| 6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6165 | (exit $ac_status); }; }; then |
| 6166 | ac_cv_lib_l_yywrap=yes |
| 6167 | else |
| 6168 | echo "$as_me: failed program was:" >&5 |
| 6169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6170 | |
| 6171 | ac_cv_lib_l_yywrap=no |
| 6172 | fi |
| 6173 | |
| 6174 | rm -f core conftest.err conftest.$ac_objext \ |
| 6175 | conftest$ac_exeext conftest.$ac_ext |
| 6176 | LIBS=$ac_check_lib_save_LIBS |
| 6177 | fi |
| 6178 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6179 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6180 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6181 | LEXLIB="-ll" |
| 6182 | fi |
| 6183 | |
| 6184 | fi |
| 6185 | |
| 6186 | fi |
| 6187 | |
| 6188 | if test "x$LEX" != "x:"; then |
| 6189 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6190 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6191 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6193 | else |
| 6194 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6195 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6196 | cat >conftest.l <<_ACEOF |
| 6197 | %% |
| 6198 | %% |
| 6199 | _ACEOF |
| 6200 | { (ac_try="$LEX conftest.l" |
| 6201 | case "(($ac_try" in |
| 6202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6203 | *) ac_try_echo=$ac_try;; |
| 6204 | esac |
| 6205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6206 | (eval "$LEX conftest.l") 2>&5 |
| 6207 | ac_status=$? |
| 6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6209 | (exit $ac_status); } |
| 6210 | if test -f lex.yy.c; then |
| 6211 | ac_cv_prog_lex_root=lex.yy |
| 6212 | elif test -f lexyy.c; then |
| 6213 | ac_cv_prog_lex_root=lexyy |
| 6214 | else |
| 6215 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6216 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6217 | { (exit 1); exit 1; }; } |
| 6218 | fi |
| 6219 | fi |
| 6220 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6221 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
| 6222 | rm -f conftest.l |
| 6223 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6224 | |
| 6225 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6226 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6227 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6229 | else |
| 6230 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 6231 | # default is implementation-dependent. Figure out which it is, since |
| 6232 | # not all implementations provide the %pointer and %array declarations. |
| 6233 | ac_cv_prog_lex_yytext_pointer=no |
| 6234 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 6235 | ac_save_LIBS=$LIBS |
| 6236 | LIBS="$LIBS $LEXLIB" |
| 6237 | cat >conftest.$ac_ext <<_ACEOF |
| 6238 | `cat $LEX_OUTPUT_ROOT.c` |
| 6239 | _ACEOF |
| 6240 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6241 | if { (ac_try="$ac_link" |
| 6242 | case "(($ac_try" in |
| 6243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6244 | *) ac_try_echo=$ac_try;; |
| 6245 | esac |
| 6246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6247 | (eval "$ac_link") 2>conftest.er1 |
| 6248 | ac_status=$? |
| 6249 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6250 | rm -f conftest.er1 |
| 6251 | cat conftest.err >&5 |
| 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6253 | (exit $ac_status); } && |
| 6254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6255 | { (case "(($ac_try" in |
| 6256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6257 | *) ac_try_echo=$ac_try;; |
| 6258 | esac |
| 6259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6260 | (eval "$ac_try") 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); }; } && |
| 6264 | { ac_try='test -s conftest$ac_exeext' |
| 6265 | { (case "(($ac_try" in |
| 6266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6267 | *) ac_try_echo=$ac_try;; |
| 6268 | esac |
| 6269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6270 | (eval "$ac_try") 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); }; }; then |
| 6274 | ac_cv_prog_lex_yytext_pointer=yes |
| 6275 | else |
| 6276 | echo "$as_me: failed program was:" >&5 |
| 6277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6278 | |
| 6279 | |
| 6280 | fi |
| 6281 | |
| 6282 | rm -f core conftest.err conftest.$ac_objext \ |
| 6283 | conftest$ac_exeext conftest.$ac_ext |
| 6284 | LIBS=$ac_save_LIBS |
| 6285 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 6286 | |
| 6287 | fi |
| 6288 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6289 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6290 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6291 | |
| 6292 | cat >>confdefs.h <<\_ACEOF |
| 6293 | #define YYTEXT_POINTER 1 |
| 6294 | _ACEOF |
| 6295 | |
| 6296 | fi |
| 6297 | |
| 6298 | fi |
| 6299 | |
| 6300 | fi |
| 6301 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6302 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6303 | if test "$LEX" != "flex"; then |
| 6304 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6305 | echo "$as_me: error: flex not found but required" >&2;} |
| 6306 | { (exit 1); exit 1; }; } |
| 6307 | else |
| 6308 | FLEX=flex |
| 6309 | |
| 6310 | fi |
| 6311 | |
| 6312 | { echo "$as_me:$LINENO: checking " >&5 |
| 6313 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6314 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6316 | else |
| 6317 | for ac_prog in 'bison -y' byacc |
| 6318 | do |
| 6319 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6320 | set dummy $ac_prog; ac_word=$2 |
| 6321 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6323 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6325 | else |
| 6326 | if test -n "$YACC"; then |
| 6327 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6328 | else |
| 6329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6330 | for as_dir in $PATH |
| 6331 | do |
| 6332 | IFS=$as_save_IFS |
| 6333 | test -z "$as_dir" && as_dir=. |
| 6334 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6336 | ac_cv_prog_YACC="$ac_prog" |
| 6337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6338 | break 2 |
| 6339 | fi |
| 6340 | done |
| 6341 | done |
| 6342 | IFS=$as_save_IFS |
| 6343 | |
| 6344 | fi |
| 6345 | fi |
| 6346 | YACC=$ac_cv_prog_YACC |
| 6347 | if test -n "$YACC"; then |
| 6348 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6349 | echo "${ECHO_T}$YACC" >&6; } |
| 6350 | else |
| 6351 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6352 | echo "${ECHO_T}no" >&6; } |
| 6353 | fi |
| 6354 | |
| 6355 | |
| 6356 | test -n "$YACC" && break |
| 6357 | done |
| 6358 | test -n "$YACC" || YACC="yacc" |
| 6359 | |
| 6360 | fi |
| 6361 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6362 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6363 | if test "$YACC" != "bison -y"; then |
| 6364 | { { echo "$as_me:$LINENO: error: bison not found but required" >&5 |
| 6365 | echo "$as_me: error: bison not found but required" >&2;} |
| 6366 | { (exit 1); exit 1; }; } |
| 6367 | else |
| 6368 | BISON=bison |
| 6369 | |
| 6370 | fi |
| 6371 | |
| 6372 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6373 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6374 | if test "${lt_cv_path_NM+set}" = set; then |
| 6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6376 | else |
| 6377 | if test -n "$NM"; then |
| 6378 | # Let the user override the test. |
| 6379 | lt_cv_path_NM="$NM" |
| 6380 | else |
| 6381 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6382 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6383 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6384 | fi |
| 6385 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6386 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6387 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6388 | IFS="$lt_save_ifs" |
| 6389 | test -z "$ac_dir" && ac_dir=. |
| 6390 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6391 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6392 | # Check to see if the nm accepts a BSD-compat flag. |
| 6393 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6394 | # nm: unknown option "B" ignored |
| 6395 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6396 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6397 | */dev/null* | *'Invalid file or object type'*) |
| 6398 | lt_cv_path_NM="$tmp_nm -B" |
| 6399 | break |
| 6400 | ;; |
| 6401 | *) |
| 6402 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6403 | */dev/null*) |
| 6404 | lt_cv_path_NM="$tmp_nm -p" |
| 6405 | break |
| 6406 | ;; |
| 6407 | *) |
| 6408 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6409 | continue # so that we can try to find one that supports BSD flags |
| 6410 | ;; |
| 6411 | esac |
| 6412 | ;; |
| 6413 | esac |
| 6414 | fi |
| 6415 | done |
| 6416 | IFS="$lt_save_ifs" |
| 6417 | done |
| 6418 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6419 | fi |
| 6420 | fi |
| 6421 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6422 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6423 | NM="$lt_cv_path_NM" |
| 6424 | |
| 6425 | |
| 6426 | |
| 6427 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6428 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6429 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6431 | else |
| 6432 | llvm_cv_gnu_make_command='' |
| 6433 | for a in "$MAKE" make gmake gnumake ; do |
| 6434 | if test -z "$a" ; then continue ; fi ; |
| 6435 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6436 | then |
| 6437 | llvm_cv_gnu_make_command=$a ; |
| 6438 | break; |
| 6439 | fi |
| 6440 | done |
| 6441 | fi |
| 6442 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6443 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6444 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6445 | ifGNUmake='' ; |
| 6446 | else |
| 6447 | ifGNUmake='#' ; |
| 6448 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6449 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6450 | fi |
| 6451 | |
| 6452 | |
| 6453 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6454 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6455 | LN_S=$as_ln_s |
| 6456 | if test "$LN_S" = "ln -s"; then |
| 6457 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6458 | echo "${ECHO_T}yes" >&6; } |
| 6459 | else |
| 6460 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6461 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6462 | fi |
| 6463 | |
| 6464 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6465 | set dummy cmp; ac_word=$2 |
| 6466 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6468 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6470 | else |
| 6471 | case $CMP in |
| 6472 | [\\/]* | ?:[\\/]*) |
| 6473 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6474 | ;; |
| 6475 | *) |
| 6476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6477 | for as_dir in $PATH |
| 6478 | do |
| 6479 | IFS=$as_save_IFS |
| 6480 | test -z "$as_dir" && as_dir=. |
| 6481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6483 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6485 | break 2 |
| 6486 | fi |
| 6487 | done |
| 6488 | done |
| 6489 | IFS=$as_save_IFS |
| 6490 | |
| 6491 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6492 | ;; |
| 6493 | esac |
| 6494 | fi |
| 6495 | CMP=$ac_cv_path_CMP |
| 6496 | if test -n "$CMP"; then |
| 6497 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6498 | echo "${ECHO_T}$CMP" >&6; } |
| 6499 | else |
| 6500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6501 | echo "${ECHO_T}no" >&6; } |
| 6502 | fi |
| 6503 | |
| 6504 | |
| 6505 | # Extract the first word of "cp", so it can be a program name with args. |
| 6506 | set dummy cp; ac_word=$2 |
| 6507 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6509 | if test "${ac_cv_path_CP+set}" = set; then |
| 6510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6511 | else |
| 6512 | case $CP in |
| 6513 | [\\/]* | ?:[\\/]*) |
| 6514 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6515 | ;; |
| 6516 | *) |
| 6517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6518 | for as_dir in $PATH |
| 6519 | do |
| 6520 | IFS=$as_save_IFS |
| 6521 | test -z "$as_dir" && as_dir=. |
| 6522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6524 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6526 | break 2 |
| 6527 | fi |
| 6528 | done |
| 6529 | done |
| 6530 | IFS=$as_save_IFS |
| 6531 | |
| 6532 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6533 | ;; |
| 6534 | esac |
| 6535 | fi |
| 6536 | CP=$ac_cv_path_CP |
| 6537 | if test -n "$CP"; then |
| 6538 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6539 | echo "${ECHO_T}$CP" >&6; } |
| 6540 | else |
| 6541 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6542 | echo "${ECHO_T}no" >&6; } |
| 6543 | fi |
| 6544 | |
| 6545 | |
| 6546 | # Extract the first word of "date", so it can be a program name with args. |
| 6547 | set dummy date; ac_word=$2 |
| 6548 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6549 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6550 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6552 | else |
| 6553 | case $DATE in |
| 6554 | [\\/]* | ?:[\\/]*) |
| 6555 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6556 | ;; |
| 6557 | *) |
| 6558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6559 | for as_dir in $PATH |
| 6560 | do |
| 6561 | IFS=$as_save_IFS |
| 6562 | test -z "$as_dir" && as_dir=. |
| 6563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6565 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6567 | break 2 |
| 6568 | fi |
| 6569 | done |
| 6570 | done |
| 6571 | IFS=$as_save_IFS |
| 6572 | |
| 6573 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6574 | ;; |
| 6575 | esac |
| 6576 | fi |
| 6577 | DATE=$ac_cv_path_DATE |
| 6578 | if test -n "$DATE"; then |
| 6579 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6580 | echo "${ECHO_T}$DATE" >&6; } |
| 6581 | else |
| 6582 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6583 | echo "${ECHO_T}no" >&6; } |
| 6584 | fi |
| 6585 | |
| 6586 | |
| 6587 | # Extract the first word of "find", so it can be a program name with args. |
| 6588 | set dummy find; ac_word=$2 |
| 6589 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6591 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6593 | else |
| 6594 | case $FIND in |
| 6595 | [\\/]* | ?:[\\/]*) |
| 6596 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6597 | ;; |
| 6598 | *) |
| 6599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6600 | for as_dir in $PATH |
| 6601 | do |
| 6602 | IFS=$as_save_IFS |
| 6603 | test -z "$as_dir" && as_dir=. |
| 6604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6606 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6608 | break 2 |
| 6609 | fi |
| 6610 | done |
| 6611 | done |
| 6612 | IFS=$as_save_IFS |
| 6613 | |
| 6614 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6615 | ;; |
| 6616 | esac |
| 6617 | fi |
| 6618 | FIND=$ac_cv_path_FIND |
| 6619 | if test -n "$FIND"; then |
| 6620 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6621 | echo "${ECHO_T}$FIND" >&6; } |
| 6622 | else |
| 6623 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6624 | echo "${ECHO_T}no" >&6; } |
| 6625 | fi |
| 6626 | |
| 6627 | |
| 6628 | # Extract the first word of "grep", so it can be a program name with args. |
| 6629 | set dummy grep; ac_word=$2 |
| 6630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6632 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6634 | else |
| 6635 | case $GREP in |
| 6636 | [\\/]* | ?:[\\/]*) |
| 6637 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6638 | ;; |
| 6639 | *) |
| 6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6641 | for as_dir in $PATH |
| 6642 | do |
| 6643 | IFS=$as_save_IFS |
| 6644 | test -z "$as_dir" && as_dir=. |
| 6645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6647 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6649 | break 2 |
| 6650 | fi |
| 6651 | done |
| 6652 | done |
| 6653 | IFS=$as_save_IFS |
| 6654 | |
| 6655 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6656 | ;; |
| 6657 | esac |
| 6658 | fi |
| 6659 | GREP=$ac_cv_path_GREP |
| 6660 | if test -n "$GREP"; then |
| 6661 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6662 | echo "${ECHO_T}$GREP" >&6; } |
| 6663 | else |
| 6664 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6665 | echo "${ECHO_T}no" >&6; } |
| 6666 | fi |
| 6667 | |
| 6668 | |
| 6669 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6670 | set dummy mkdir; ac_word=$2 |
| 6671 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6673 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6675 | else |
| 6676 | case $MKDIR in |
| 6677 | [\\/]* | ?:[\\/]*) |
| 6678 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6679 | ;; |
| 6680 | *) |
| 6681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6682 | for as_dir in $PATH |
| 6683 | do |
| 6684 | IFS=$as_save_IFS |
| 6685 | test -z "$as_dir" && as_dir=. |
| 6686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6688 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6690 | break 2 |
| 6691 | fi |
| 6692 | done |
| 6693 | done |
| 6694 | IFS=$as_save_IFS |
| 6695 | |
| 6696 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6697 | ;; |
| 6698 | esac |
| 6699 | fi |
| 6700 | MKDIR=$ac_cv_path_MKDIR |
| 6701 | if test -n "$MKDIR"; then |
| 6702 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6703 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6704 | else |
| 6705 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6706 | echo "${ECHO_T}no" >&6; } |
| 6707 | fi |
| 6708 | |
| 6709 | |
| 6710 | # Extract the first word of "mv", so it can be a program name with args. |
| 6711 | set dummy mv; ac_word=$2 |
| 6712 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6714 | if test "${ac_cv_path_MV+set}" = set; then |
| 6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6716 | else |
| 6717 | case $MV in |
| 6718 | [\\/]* | ?:[\\/]*) |
| 6719 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6720 | ;; |
| 6721 | *) |
| 6722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6723 | for as_dir in $PATH |
| 6724 | do |
| 6725 | IFS=$as_save_IFS |
| 6726 | test -z "$as_dir" && as_dir=. |
| 6727 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6729 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6731 | break 2 |
| 6732 | fi |
| 6733 | done |
| 6734 | done |
| 6735 | IFS=$as_save_IFS |
| 6736 | |
| 6737 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6738 | ;; |
| 6739 | esac |
| 6740 | fi |
| 6741 | MV=$ac_cv_path_MV |
| 6742 | if test -n "$MV"; then |
| 6743 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6744 | echo "${ECHO_T}$MV" >&6; } |
| 6745 | else |
| 6746 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6747 | echo "${ECHO_T}no" >&6; } |
| 6748 | fi |
| 6749 | |
| 6750 | |
| 6751 | if test -n "$ac_tool_prefix"; then |
| 6752 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6753 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6754 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6756 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6758 | else |
| 6759 | if test -n "$RANLIB"; then |
| 6760 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6761 | else |
| 6762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6763 | for as_dir in $PATH |
| 6764 | do |
| 6765 | IFS=$as_save_IFS |
| 6766 | test -z "$as_dir" && as_dir=. |
| 6767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6769 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6771 | break 2 |
| 6772 | fi |
| 6773 | done |
| 6774 | done |
| 6775 | IFS=$as_save_IFS |
| 6776 | |
| 6777 | fi |
| 6778 | fi |
| 6779 | RANLIB=$ac_cv_prog_RANLIB |
| 6780 | if test -n "$RANLIB"; then |
| 6781 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6782 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6783 | else |
| 6784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6785 | echo "${ECHO_T}no" >&6; } |
| 6786 | fi |
| 6787 | |
| 6788 | |
| 6789 | fi |
| 6790 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6791 | ac_ct_RANLIB=$RANLIB |
| 6792 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6793 | set dummy ranlib; ac_word=$2 |
| 6794 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6796 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6798 | else |
| 6799 | if test -n "$ac_ct_RANLIB"; then |
| 6800 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6801 | else |
| 6802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6803 | for as_dir in $PATH |
| 6804 | do |
| 6805 | IFS=$as_save_IFS |
| 6806 | test -z "$as_dir" && as_dir=. |
| 6807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6809 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6811 | break 2 |
| 6812 | fi |
| 6813 | done |
| 6814 | done |
| 6815 | IFS=$as_save_IFS |
| 6816 | |
| 6817 | fi |
| 6818 | fi |
| 6819 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6820 | if test -n "$ac_ct_RANLIB"; then |
| 6821 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6822 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6823 | else |
| 6824 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6825 | echo "${ECHO_T}no" >&6; } |
| 6826 | fi |
| 6827 | |
| 6828 | if test "x$ac_ct_RANLIB" = x; then |
| 6829 | RANLIB=":" |
| 6830 | else |
| 6831 | case $cross_compiling:$ac_tool_warned in |
| 6832 | yes:) |
| 6833 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6834 | whose name does not start with the host triplet. If you think this |
| 6835 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6836 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6837 | whose name does not start with the host triplet. If you think this |
| 6838 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6839 | ac_tool_warned=yes ;; |
| 6840 | esac |
| 6841 | RANLIB=$ac_ct_RANLIB |
| 6842 | fi |
| 6843 | else |
| 6844 | RANLIB="$ac_cv_prog_RANLIB" |
| 6845 | fi |
| 6846 | |
| 6847 | # Extract the first word of "rm", so it can be a program name with args. |
| 6848 | set dummy rm; ac_word=$2 |
| 6849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6851 | if test "${ac_cv_path_RM+set}" = set; then |
| 6852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6853 | else |
| 6854 | case $RM in |
| 6855 | [\\/]* | ?:[\\/]*) |
| 6856 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6857 | ;; |
| 6858 | *) |
| 6859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6860 | for as_dir in $PATH |
| 6861 | do |
| 6862 | IFS=$as_save_IFS |
| 6863 | test -z "$as_dir" && as_dir=. |
| 6864 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6866 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6868 | break 2 |
| 6869 | fi |
| 6870 | done |
| 6871 | done |
| 6872 | IFS=$as_save_IFS |
| 6873 | |
| 6874 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6875 | ;; |
| 6876 | esac |
| 6877 | fi |
| 6878 | RM=$ac_cv_path_RM |
| 6879 | if test -n "$RM"; then |
| 6880 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6881 | echo "${ECHO_T}$RM" >&6; } |
| 6882 | else |
| 6883 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6884 | echo "${ECHO_T}no" >&6; } |
| 6885 | fi |
| 6886 | |
| 6887 | |
| 6888 | # Extract the first word of "sed", so it can be a program name with args. |
| 6889 | set dummy sed; ac_word=$2 |
| 6890 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6892 | if test "${ac_cv_path_SED+set}" = set; then |
| 6893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6894 | else |
| 6895 | case $SED in |
| 6896 | [\\/]* | ?:[\\/]*) |
| 6897 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6898 | ;; |
| 6899 | *) |
| 6900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6901 | for as_dir in $PATH |
| 6902 | do |
| 6903 | IFS=$as_save_IFS |
| 6904 | test -z "$as_dir" && as_dir=. |
| 6905 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6907 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6909 | break 2 |
| 6910 | fi |
| 6911 | done |
| 6912 | done |
| 6913 | IFS=$as_save_IFS |
| 6914 | |
| 6915 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6916 | ;; |
| 6917 | esac |
| 6918 | fi |
| 6919 | SED=$ac_cv_path_SED |
| 6920 | if test -n "$SED"; then |
| 6921 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6922 | echo "${ECHO_T}$SED" >&6; } |
| 6923 | else |
| 6924 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6925 | echo "${ECHO_T}no" >&6; } |
| 6926 | fi |
| 6927 | |
| 6928 | |
| 6929 | # Extract the first word of "tar", so it can be a program name with args. |
| 6930 | set dummy tar; ac_word=$2 |
| 6931 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6933 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6935 | else |
| 6936 | case $TAR in |
| 6937 | [\\/]* | ?:[\\/]*) |
| 6938 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6939 | ;; |
| 6940 | *) |
| 6941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6942 | for as_dir in $PATH |
| 6943 | do |
| 6944 | IFS=$as_save_IFS |
| 6945 | test -z "$as_dir" && as_dir=. |
| 6946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6948 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6950 | break 2 |
| 6951 | fi |
| 6952 | done |
| 6953 | done |
| 6954 | IFS=$as_save_IFS |
| 6955 | |
| 6956 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6957 | ;; |
| 6958 | esac |
| 6959 | fi |
| 6960 | TAR=$ac_cv_path_TAR |
| 6961 | if test -n "$TAR"; then |
| 6962 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6963 | echo "${ECHO_T}$TAR" >&6; } |
| 6964 | else |
| 6965 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6966 | echo "${ECHO_T}no" >&6; } |
| 6967 | fi |
| 6968 | |
| 6969 | |
| 6970 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6971 | set dummy pwd; ac_word=$2 |
| 6972 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6974 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6976 | else |
| 6977 | case $BINPWD in |
| 6978 | [\\/]* | ?:[\\/]*) |
| 6979 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6980 | ;; |
| 6981 | *) |
| 6982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6983 | for as_dir in $PATH |
| 6984 | do |
| 6985 | IFS=$as_save_IFS |
| 6986 | test -z "$as_dir" && as_dir=. |
| 6987 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6989 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6990 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6991 | break 2 |
| 6992 | fi |
| 6993 | done |
| 6994 | done |
| 6995 | IFS=$as_save_IFS |
| 6996 | |
| 6997 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6998 | ;; |
| 6999 | esac |
| 7000 | fi |
| 7001 | BINPWD=$ac_cv_path_BINPWD |
| 7002 | if test -n "$BINPWD"; then |
| 7003 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7004 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7005 | else |
| 7006 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7007 | echo "${ECHO_T}no" >&6; } |
| 7008 | fi |
| 7009 | |
| 7010 | |
| 7011 | |
| 7012 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7013 | set dummy Graphviz; ac_word=$2 |
| 7014 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7016 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7018 | else |
| 7019 | case $GRAPHVIZ in |
| 7020 | [\\/]* | ?:[\\/]*) |
| 7021 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7022 | ;; |
| 7023 | *) |
| 7024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7025 | for as_dir in $PATH |
| 7026 | do |
| 7027 | IFS=$as_save_IFS |
| 7028 | test -z "$as_dir" && as_dir=. |
| 7029 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7031 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7033 | break 2 |
| 7034 | fi |
| 7035 | done |
| 7036 | done |
| 7037 | IFS=$as_save_IFS |
| 7038 | |
| 7039 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7040 | ;; |
| 7041 | esac |
| 7042 | fi |
| 7043 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7044 | if test -n "$GRAPHVIZ"; then |
| 7045 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7046 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7047 | else |
| 7048 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7049 | echo "${ECHO_T}no" >&6; } |
| 7050 | fi |
| 7051 | |
| 7052 | |
| 7053 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7054 | |
| 7055 | cat >>confdefs.h <<\_ACEOF |
| 7056 | #define HAVE_GRAPHVIZ 1 |
| 7057 | _ACEOF |
| 7058 | |
| 7059 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7060 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7061 | fi |
| 7062 | |
| 7063 | cat >>confdefs.h <<_ACEOF |
| 7064 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7065 | _ACEOF |
| 7066 | |
| 7067 | fi |
| 7068 | # Extract the first word of "dot", so it can be a program name with args. |
| 7069 | set dummy dot; ac_word=$2 |
| 7070 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7072 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7074 | else |
| 7075 | case $DOT in |
| 7076 | [\\/]* | ?:[\\/]*) |
| 7077 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7078 | ;; |
| 7079 | *) |
| 7080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7081 | for as_dir in $PATH |
| 7082 | do |
| 7083 | IFS=$as_save_IFS |
| 7084 | test -z "$as_dir" && as_dir=. |
| 7085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7087 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7089 | break 2 |
| 7090 | fi |
| 7091 | done |
| 7092 | done |
| 7093 | IFS=$as_save_IFS |
| 7094 | |
| 7095 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7096 | ;; |
| 7097 | esac |
| 7098 | fi |
| 7099 | DOT=$ac_cv_path_DOT |
| 7100 | if test -n "$DOT"; then |
| 7101 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7102 | echo "${ECHO_T}$DOT" >&6; } |
| 7103 | else |
| 7104 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7105 | echo "${ECHO_T}no" >&6; } |
| 7106 | fi |
| 7107 | |
| 7108 | |
| 7109 | if test "$DOT" != "echo dot" ; then |
| 7110 | |
| 7111 | cat >>confdefs.h <<\_ACEOF |
| 7112 | #define HAVE_DOT 1 |
| 7113 | _ACEOF |
| 7114 | |
| 7115 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7116 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7117 | fi |
| 7118 | |
| 7119 | cat >>confdefs.h <<_ACEOF |
| 7120 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7121 | _ACEOF |
| 7122 | |
| 7123 | fi |
| 7124 | for ac_prog in gv gsview32 |
| 7125 | do |
| 7126 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7127 | set dummy $ac_prog; ac_word=$2 |
| 7128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7130 | if test "${ac_cv_path_GV+set}" = set; then |
| 7131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7132 | else |
| 7133 | case $GV in |
| 7134 | [\\/]* | ?:[\\/]*) |
| 7135 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7136 | ;; |
| 7137 | *) |
| 7138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7139 | for as_dir in $PATH |
| 7140 | do |
| 7141 | IFS=$as_save_IFS |
| 7142 | test -z "$as_dir" && as_dir=. |
| 7143 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7145 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7147 | break 2 |
| 7148 | fi |
| 7149 | done |
| 7150 | done |
| 7151 | IFS=$as_save_IFS |
| 7152 | |
| 7153 | ;; |
| 7154 | esac |
| 7155 | fi |
| 7156 | GV=$ac_cv_path_GV |
| 7157 | if test -n "$GV"; then |
| 7158 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7159 | echo "${ECHO_T}$GV" >&6; } |
| 7160 | else |
| 7161 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7162 | echo "${ECHO_T}no" >&6; } |
| 7163 | fi |
| 7164 | |
| 7165 | |
| 7166 | test -n "$GV" && break |
| 7167 | done |
| 7168 | test -n "$GV" || GV="echo gv" |
| 7169 | |
| 7170 | if test "$GV" != "echo gv" ; then |
| 7171 | |
| 7172 | cat >>confdefs.h <<\_ACEOF |
| 7173 | #define HAVE_GV 1 |
| 7174 | _ACEOF |
| 7175 | |
| 7176 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7177 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7178 | fi |
| 7179 | |
| 7180 | cat >>confdefs.h <<_ACEOF |
| 7181 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7182 | _ACEOF |
| 7183 | |
| 7184 | fi |
| 7185 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7186 | set dummy dotty; ac_word=$2 |
| 7187 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7189 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7191 | else |
| 7192 | case $DOTTY in |
| 7193 | [\\/]* | ?:[\\/]*) |
| 7194 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7195 | ;; |
| 7196 | *) |
| 7197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7198 | for as_dir in $PATH |
| 7199 | do |
| 7200 | IFS=$as_save_IFS |
| 7201 | test -z "$as_dir" && as_dir=. |
| 7202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7204 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7206 | break 2 |
| 7207 | fi |
| 7208 | done |
| 7209 | done |
| 7210 | IFS=$as_save_IFS |
| 7211 | |
| 7212 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7213 | ;; |
| 7214 | esac |
| 7215 | fi |
| 7216 | DOTTY=$ac_cv_path_DOTTY |
| 7217 | if test -n "$DOTTY"; then |
| 7218 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7219 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7220 | else |
| 7221 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7222 | echo "${ECHO_T}no" >&6; } |
| 7223 | fi |
| 7224 | |
| 7225 | |
| 7226 | if test "$DOTTY" != "echo dotty" ; then |
| 7227 | |
| 7228 | cat >>confdefs.h <<\_ACEOF |
| 7229 | #define HAVE_DOTTY 1 |
| 7230 | _ACEOF |
| 7231 | |
| 7232 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 7233 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7234 | fi |
| 7235 | |
| 7236 | cat >>confdefs.h <<_ACEOF |
| 7237 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7238 | _ACEOF |
| 7239 | |
| 7240 | fi |
| 7241 | |
| 7242 | |
| 7243 | # Extract the first word of "perl", so it can be a program name with args. |
| 7244 | set dummy perl; ac_word=$2 |
| 7245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7247 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7249 | else |
| 7250 | case $PERL in |
| 7251 | [\\/]* | ?:[\\/]*) |
| 7252 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7253 | ;; |
| 7254 | *) |
| 7255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7256 | for as_dir in $PATH |
| 7257 | do |
| 7258 | IFS=$as_save_IFS |
| 7259 | test -z "$as_dir" && as_dir=. |
| 7260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7262 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7264 | break 2 |
| 7265 | fi |
| 7266 | done |
| 7267 | done |
| 7268 | IFS=$as_save_IFS |
| 7269 | |
| 7270 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7271 | ;; |
| 7272 | esac |
| 7273 | fi |
| 7274 | PERL=$ac_cv_path_PERL |
| 7275 | if test -n "$PERL"; then |
| 7276 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7277 | echo "${ECHO_T}$PERL" >&6; } |
| 7278 | else |
| 7279 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7280 | echo "${ECHO_T}no" >&6; } |
| 7281 | fi |
| 7282 | |
| 7283 | |
| 7284 | if test "$PERL" != "none"; then |
| 7285 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7286 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7287 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7288 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7289 | echo "${ECHO_T}yes" >&6; } |
| 7290 | else |
| 7291 | PERL=none |
| 7292 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7293 | echo "${ECHO_T}not found" >&6; } |
| 7294 | fi |
| 7295 | fi |
| 7296 | |
| 7297 | |
| 7298 | if test x"$PERL" = xnone; then |
| 7299 | HAVE_PERL=0 |
| 7300 | |
| 7301 | else |
| 7302 | HAVE_PERL=1 |
| 7303 | |
| 7304 | fi |
| 7305 | |
| 7306 | # Find a good install program. We prefer a C program (faster), |
| 7307 | # so one script is as good as another. But avoid the broken or |
| 7308 | # incompatible versions: |
| 7309 | # SysV /etc/install, /usr/sbin/install |
| 7310 | # SunOS /usr/etc/install |
| 7311 | # IRIX /sbin/install |
| 7312 | # AIX /bin/install |
| 7313 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7314 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7315 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7316 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7317 | # OS/2's system install, which has a completely different semantic |
| 7318 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7319 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7320 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7321 | if test -z "$INSTALL"; then |
| 7322 | if test "${ac_cv_path_install+set}" = set; then |
| 7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7324 | else |
| 7325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7326 | for as_dir in $PATH |
| 7327 | do |
| 7328 | IFS=$as_save_IFS |
| 7329 | test -z "$as_dir" && as_dir=. |
| 7330 | # Account for people who put trailing slashes in PATH elements. |
| 7331 | case $as_dir/ in |
| 7332 | ./ | .// | /cC/* | \ |
| 7333 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7334 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7335 | /usr/ucb/* ) ;; |
| 7336 | *) |
| 7337 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7338 | # Don't use installbsd from OSF since it installs stuff as root |
| 7339 | # by default. |
| 7340 | for ac_prog in ginstall scoinst install; do |
| 7341 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7342 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 7343 | if test $ac_prog = install && |
| 7344 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7345 | # AIX install. It has an incompatible calling convention. |
| 7346 | : |
| 7347 | elif test $ac_prog = install && |
| 7348 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7349 | # program-specific install script used by HP pwplus--don't use. |
| 7350 | : |
| 7351 | else |
| 7352 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7353 | break 3 |
| 7354 | fi |
| 7355 | fi |
| 7356 | done |
| 7357 | done |
| 7358 | ;; |
| 7359 | esac |
| 7360 | done |
| 7361 | IFS=$as_save_IFS |
| 7362 | |
| 7363 | |
| 7364 | fi |
| 7365 | if test "${ac_cv_path_install+set}" = set; then |
| 7366 | INSTALL=$ac_cv_path_install |
| 7367 | else |
| 7368 | # As a last resort, use the slow shell script. Don't cache a |
| 7369 | # value for INSTALL within a source directory, because that will |
| 7370 | # break other packages using the cache if that directory is |
| 7371 | # removed, or if the value is a relative name. |
| 7372 | INSTALL=$ac_install_sh |
| 7373 | fi |
| 7374 | fi |
| 7375 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7376 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7377 | |
| 7378 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7379 | # It thinks the first close brace ends the variable substitution. |
| 7380 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7381 | |
| 7382 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7383 | |
| 7384 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7385 | |
| 7386 | |
| 7387 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7388 | set dummy bzip2; ac_word=$2 |
| 7389 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7391 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7393 | else |
| 7394 | case $BZIP2 in |
| 7395 | [\\/]* | ?:[\\/]*) |
| 7396 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7397 | ;; |
| 7398 | *) |
| 7399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7400 | for as_dir in $PATH |
| 7401 | do |
| 7402 | IFS=$as_save_IFS |
| 7403 | test -z "$as_dir" && as_dir=. |
| 7404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7406 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7408 | break 2 |
| 7409 | fi |
| 7410 | done |
| 7411 | done |
| 7412 | IFS=$as_save_IFS |
| 7413 | |
| 7414 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7415 | ;; |
| 7416 | esac |
| 7417 | fi |
| 7418 | BZIP2=$ac_cv_path_BZIP2 |
| 7419 | if test -n "$BZIP2"; then |
| 7420 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7421 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7422 | else |
| 7423 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7424 | echo "${ECHO_T}no" >&6; } |
| 7425 | fi |
| 7426 | |
| 7427 | |
| 7428 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7429 | set dummy doxygen; ac_word=$2 |
| 7430 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7432 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7434 | else |
| 7435 | case $DOXYGEN in |
| 7436 | [\\/]* | ?:[\\/]*) |
| 7437 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7438 | ;; |
| 7439 | *) |
| 7440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7441 | for as_dir in $PATH |
| 7442 | do |
| 7443 | IFS=$as_save_IFS |
| 7444 | test -z "$as_dir" && as_dir=. |
| 7445 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7447 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7449 | break 2 |
| 7450 | fi |
| 7451 | done |
| 7452 | done |
| 7453 | IFS=$as_save_IFS |
| 7454 | |
| 7455 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7456 | ;; |
| 7457 | esac |
| 7458 | fi |
| 7459 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7460 | if test -n "$DOXYGEN"; then |
| 7461 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7462 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7463 | else |
| 7464 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7465 | echo "${ECHO_T}no" >&6; } |
| 7466 | fi |
| 7467 | |
| 7468 | |
| 7469 | # Extract the first word of "etags", so it can be a program name with args. |
| 7470 | set dummy etags; ac_word=$2 |
| 7471 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7473 | if test "${ac_cv_path_ETAGS+set}" = set; then |
| 7474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7475 | else |
| 7476 | case $ETAGS in |
| 7477 | [\\/]* | ?:[\\/]*) |
| 7478 | ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path. |
| 7479 | ;; |
| 7480 | *) |
| 7481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7482 | for as_dir in $PATH |
| 7483 | do |
| 7484 | IFS=$as_save_IFS |
| 7485 | test -z "$as_dir" && as_dir=. |
| 7486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7488 | ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext" |
| 7489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7490 | break 2 |
| 7491 | fi |
| 7492 | done |
| 7493 | done |
| 7494 | IFS=$as_save_IFS |
| 7495 | |
| 7496 | test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found"" |
| 7497 | ;; |
| 7498 | esac |
| 7499 | fi |
| 7500 | ETAGS=$ac_cv_path_ETAGS |
| 7501 | if test -n "$ETAGS"; then |
| 7502 | { echo "$as_me:$LINENO: result: $ETAGS" >&5 |
| 7503 | echo "${ECHO_T}$ETAGS" >&6; } |
| 7504 | else |
| 7505 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7506 | echo "${ECHO_T}no" >&6; } |
| 7507 | fi |
| 7508 | |
| 7509 | |
| 7510 | # Extract the first word of "groff", so it can be a program name with args. |
| 7511 | set dummy groff; ac_word=$2 |
| 7512 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7514 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7516 | else |
| 7517 | case $GROFF in |
| 7518 | [\\/]* | ?:[\\/]*) |
| 7519 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7520 | ;; |
| 7521 | *) |
| 7522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7523 | for as_dir in $PATH |
| 7524 | do |
| 7525 | IFS=$as_save_IFS |
| 7526 | test -z "$as_dir" && as_dir=. |
| 7527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7529 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7531 | break 2 |
| 7532 | fi |
| 7533 | done |
| 7534 | done |
| 7535 | IFS=$as_save_IFS |
| 7536 | |
| 7537 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7538 | ;; |
| 7539 | esac |
| 7540 | fi |
| 7541 | GROFF=$ac_cv_path_GROFF |
| 7542 | if test -n "$GROFF"; then |
| 7543 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7544 | echo "${ECHO_T}$GROFF" >&6; } |
| 7545 | else |
| 7546 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7547 | echo "${ECHO_T}no" >&6; } |
| 7548 | fi |
| 7549 | |
| 7550 | |
| 7551 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7552 | set dummy gzip; ac_word=$2 |
| 7553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7555 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7557 | else |
| 7558 | case $GZIP in |
| 7559 | [\\/]* | ?:[\\/]*) |
| 7560 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7561 | ;; |
| 7562 | *) |
| 7563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7564 | for as_dir in $PATH |
| 7565 | do |
| 7566 | IFS=$as_save_IFS |
| 7567 | test -z "$as_dir" && as_dir=. |
| 7568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7570 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7572 | break 2 |
| 7573 | fi |
| 7574 | done |
| 7575 | done |
| 7576 | IFS=$as_save_IFS |
| 7577 | |
| 7578 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7579 | ;; |
| 7580 | esac |
| 7581 | fi |
| 7582 | GZIP=$ac_cv_path_GZIP |
| 7583 | if test -n "$GZIP"; then |
| 7584 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7585 | echo "${ECHO_T}$GZIP" >&6; } |
| 7586 | else |
| 7587 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7588 | echo "${ECHO_T}no" >&6; } |
| 7589 | fi |
| 7590 | |
| 7591 | |
| 7592 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7593 | set dummy pod2html; ac_word=$2 |
| 7594 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7596 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7598 | else |
| 7599 | case $POD2HTML in |
| 7600 | [\\/]* | ?:[\\/]*) |
| 7601 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7602 | ;; |
| 7603 | *) |
| 7604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7605 | for as_dir in $PATH |
| 7606 | do |
| 7607 | IFS=$as_save_IFS |
| 7608 | test -z "$as_dir" && as_dir=. |
| 7609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7611 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7613 | break 2 |
| 7614 | fi |
| 7615 | done |
| 7616 | done |
| 7617 | IFS=$as_save_IFS |
| 7618 | |
| 7619 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7620 | ;; |
| 7621 | esac |
| 7622 | fi |
| 7623 | POD2HTML=$ac_cv_path_POD2HTML |
| 7624 | if test -n "$POD2HTML"; then |
| 7625 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7626 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7627 | else |
| 7628 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7629 | echo "${ECHO_T}no" >&6; } |
| 7630 | fi |
| 7631 | |
| 7632 | |
| 7633 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7634 | set dummy pod2man; ac_word=$2 |
| 7635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7637 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7639 | else |
| 7640 | case $POD2MAN in |
| 7641 | [\\/]* | ?:[\\/]*) |
| 7642 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7643 | ;; |
| 7644 | *) |
| 7645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7646 | for as_dir in $PATH |
| 7647 | do |
| 7648 | IFS=$as_save_IFS |
| 7649 | test -z "$as_dir" && as_dir=. |
| 7650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7652 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7654 | break 2 |
| 7655 | fi |
| 7656 | done |
| 7657 | done |
| 7658 | IFS=$as_save_IFS |
| 7659 | |
| 7660 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7661 | ;; |
| 7662 | esac |
| 7663 | fi |
| 7664 | POD2MAN=$ac_cv_path_POD2MAN |
| 7665 | if test -n "$POD2MAN"; then |
| 7666 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7667 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7668 | else |
| 7669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7670 | echo "${ECHO_T}no" >&6; } |
| 7671 | fi |
| 7672 | |
| 7673 | |
| 7674 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7675 | set dummy runtest; ac_word=$2 |
| 7676 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7678 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7680 | else |
| 7681 | case $RUNTEST in |
| 7682 | [\\/]* | ?:[\\/]*) |
| 7683 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7684 | ;; |
| 7685 | *) |
| 7686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7687 | for as_dir in $PATH |
| 7688 | do |
| 7689 | IFS=$as_save_IFS |
| 7690 | test -z "$as_dir" && as_dir=. |
| 7691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7693 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7695 | break 2 |
| 7696 | fi |
| 7697 | done |
| 7698 | done |
| 7699 | IFS=$as_save_IFS |
| 7700 | |
| 7701 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7702 | ;; |
| 7703 | esac |
| 7704 | fi |
| 7705 | RUNTEST=$ac_cv_path_RUNTEST |
| 7706 | if test -n "$RUNTEST"; then |
| 7707 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7708 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7709 | else |
| 7710 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7711 | echo "${ECHO_T}no" >&6; } |
| 7712 | fi |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | no_itcl=true |
| 7717 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7718 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7719 | |
| 7720 | # Check whether --with-tclinclude was given. |
| 7721 | if test "${with_tclinclude+set}" = set; then |
| 7722 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7723 | else |
| 7724 | with_tclinclude='' |
| 7725 | fi |
| 7726 | |
| 7727 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7729 | else |
| 7730 | |
| 7731 | if test x"${with_tclinclude}" != x ; then |
| 7732 | if test -f ${with_tclinclude}/tclsh ; then |
| 7733 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7734 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7735 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7736 | else |
| 7737 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7738 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7739 | { (exit 1); exit 1; }; } |
| 7740 | fi |
| 7741 | fi |
| 7742 | |
| 7743 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7744 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7745 | echo "${ECHO_T}none" >&6; } |
| 7746 | for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh |
| 7747 | do |
| 7748 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7749 | set dummy $ac_prog; ac_word=$2 |
| 7750 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7752 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7754 | else |
| 7755 | case $TCLSH in |
| 7756 | [\\/]* | ?:[\\/]*) |
| 7757 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7758 | ;; |
| 7759 | *) |
| 7760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7761 | for as_dir in $PATH |
| 7762 | do |
| 7763 | IFS=$as_save_IFS |
| 7764 | test -z "$as_dir" && as_dir=. |
| 7765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7767 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7769 | break 2 |
| 7770 | fi |
| 7771 | done |
| 7772 | done |
| 7773 | IFS=$as_save_IFS |
| 7774 | |
| 7775 | ;; |
| 7776 | esac |
| 7777 | fi |
| 7778 | TCLSH=$ac_cv_path_TCLSH |
| 7779 | if test -n "$TCLSH"; then |
| 7780 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7781 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7782 | else |
| 7783 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7784 | echo "${ECHO_T}no" >&6; } |
| 7785 | fi |
| 7786 | |
| 7787 | |
| 7788 | test -n "$TCLSH" && break |
| 7789 | done |
| 7790 | |
| 7791 | if test x"${TCLSH}" = x ; then |
| 7792 | ac_cv_path_tclsh=''; |
| 7793 | else |
| 7794 | ac_cv_path_tclsh="${TCLSH}"; |
| 7795 | fi |
| 7796 | else |
| 7797 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7798 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7799 | TCLSH="${ac_cv_path_tclsh}" |
| 7800 | |
| 7801 | fi |
| 7802 | |
| 7803 | fi |
| 7804 | |
| 7805 | # Extract the first word of "zip", so it can be a program name with args. |
| 7806 | set dummy zip; ac_word=$2 |
| 7807 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7809 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7811 | else |
| 7812 | case $ZIP in |
| 7813 | [\\/]* | ?:[\\/]*) |
| 7814 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7815 | ;; |
| 7816 | *) |
| 7817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7818 | for as_dir in $PATH |
| 7819 | do |
| 7820 | IFS=$as_save_IFS |
| 7821 | test -z "$as_dir" && as_dir=. |
| 7822 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7824 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7826 | break 2 |
| 7827 | fi |
| 7828 | done |
| 7829 | done |
| 7830 | IFS=$as_save_IFS |
| 7831 | |
| 7832 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7833 | ;; |
| 7834 | esac |
| 7835 | fi |
| 7836 | ZIP=$ac_cv_path_ZIP |
| 7837 | if test -n "$ZIP"; then |
| 7838 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7839 | echo "${ECHO_T}$ZIP" >&6; } |
| 7840 | else |
| 7841 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7842 | echo "${ECHO_T}no" >&6; } |
| 7843 | fi |
| 7844 | |
| 7845 | |
| 7846 | |
| 7847 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7848 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7849 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7851 | else |
| 7852 | ac_ext=c |
| 7853 | ac_cpp='$CPP $CPPFLAGS' |
| 7854 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7855 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7856 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7857 | |
| 7858 | oldcflags="$CFLAGS" |
| 7859 | CFLAGS="$CFLAGS -Wl,-R." |
| 7860 | cat >conftest.$ac_ext <<_ACEOF |
| 7861 | /* confdefs.h. */ |
| 7862 | _ACEOF |
| 7863 | cat confdefs.h >>conftest.$ac_ext |
| 7864 | cat >>conftest.$ac_ext <<_ACEOF |
| 7865 | /* end confdefs.h. */ |
| 7866 | |
| 7867 | int |
| 7868 | main () |
| 7869 | { |
| 7870 | int main() { return 0; } |
| 7871 | ; |
| 7872 | return 0; |
| 7873 | } |
| 7874 | _ACEOF |
| 7875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7876 | if { (ac_try="$ac_link" |
| 7877 | case "(($ac_try" in |
| 7878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7879 | *) ac_try_echo=$ac_try;; |
| 7880 | esac |
| 7881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7882 | (eval "$ac_link") 2>conftest.er1 |
| 7883 | ac_status=$? |
| 7884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7885 | rm -f conftest.er1 |
| 7886 | cat conftest.err >&5 |
| 7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7888 | (exit $ac_status); } && |
| 7889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7890 | { (case "(($ac_try" in |
| 7891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7892 | *) ac_try_echo=$ac_try;; |
| 7893 | esac |
| 7894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7895 | (eval "$ac_try") 2>&5 |
| 7896 | ac_status=$? |
| 7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7898 | (exit $ac_status); }; } && |
| 7899 | { ac_try='test -s conftest$ac_exeext' |
| 7900 | { (case "(($ac_try" in |
| 7901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7902 | *) ac_try_echo=$ac_try;; |
| 7903 | esac |
| 7904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7905 | (eval "$ac_try") 2>&5 |
| 7906 | ac_status=$? |
| 7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7908 | (exit $ac_status); }; }; then |
| 7909 | llvm_cv_link_use_r=yes |
| 7910 | else |
| 7911 | echo "$as_me: failed program was:" >&5 |
| 7912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7913 | |
| 7914 | llvm_cv_link_use_r=no |
| 7915 | fi |
| 7916 | |
| 7917 | rm -f core conftest.err conftest.$ac_objext \ |
| 7918 | conftest$ac_exeext conftest.$ac_ext |
| 7919 | CFLAGS="$oldcflags" |
| 7920 | ac_ext=c |
| 7921 | ac_cpp='$CPP $CPPFLAGS' |
| 7922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7925 | |
| 7926 | |
| 7927 | fi |
| 7928 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7929 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7930 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7931 | |
| 7932 | cat >>confdefs.h <<\_ACEOF |
| 7933 | #define HAVE_LINK_R 1 |
| 7934 | _ACEOF |
| 7935 | |
| 7936 | fi |
| 7937 | |
| 7938 | |
| 7939 | |
| 7940 | |
| 7941 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7942 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7943 | if test "${ac_cv_c_const+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7945 | else |
| 7946 | cat >conftest.$ac_ext <<_ACEOF |
| 7947 | /* confdefs.h. */ |
| 7948 | _ACEOF |
| 7949 | cat confdefs.h >>conftest.$ac_ext |
| 7950 | cat >>conftest.$ac_ext <<_ACEOF |
| 7951 | /* end confdefs.h. */ |
| 7952 | |
| 7953 | int |
| 7954 | main () |
| 7955 | { |
| 7956 | /* FIXME: Include the comments suggested by Paul. */ |
| 7957 | #ifndef __cplusplus |
| 7958 | /* Ultrix mips cc rejects this. */ |
| 7959 | typedef int charset[2]; |
| 7960 | const charset x; |
| 7961 | /* SunOS 4.1.1 cc rejects this. */ |
| 7962 | char const *const *ccp; |
| 7963 | char **p; |
| 7964 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7965 | struct point {int x, y;}; |
| 7966 | static struct point const zero = {0,0}; |
| 7967 | /* AIX XL C 1.02.0.0 rejects this. |
| 7968 | It does not let you subtract one const X* pointer from another in |
| 7969 | an arm of an if-expression whose if-part is not a constant |
| 7970 | expression */ |
| 7971 | const char *g = "string"; |
| 7972 | ccp = &g + (g ? g-g : 0); |
| 7973 | /* HPUX 7.0 cc rejects these. */ |
| 7974 | ++ccp; |
| 7975 | p = (char**) ccp; |
| 7976 | ccp = (char const *const *) p; |
| 7977 | { /* SCO 3.2v4 cc rejects this. */ |
| 7978 | char *t; |
| 7979 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7980 | |
| 7981 | *t++ = 0; |
| 7982 | if (s) return 0; |
| 7983 | } |
| 7984 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7985 | int x[] = {25, 17}; |
| 7986 | const int *foo = &x[0]; |
| 7987 | ++foo; |
| 7988 | } |
| 7989 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7990 | typedef const int *iptr; |
| 7991 | iptr p = 0; |
| 7992 | ++p; |
| 7993 | } |
| 7994 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7995 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7996 | struct s { int j; const int *ap[3]; }; |
| 7997 | struct s *b; b->j = 5; |
| 7998 | } |
| 7999 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8000 | const int foo = 10; |
| 8001 | if (!foo) return 0; |
| 8002 | } |
| 8003 | return !x[0] && !zero.x; |
| 8004 | #endif |
| 8005 | |
| 8006 | ; |
| 8007 | return 0; |
| 8008 | } |
| 8009 | _ACEOF |
| 8010 | rm -f conftest.$ac_objext |
| 8011 | if { (ac_try="$ac_compile" |
| 8012 | case "(($ac_try" in |
| 8013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8014 | *) ac_try_echo=$ac_try;; |
| 8015 | esac |
| 8016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8017 | (eval "$ac_compile") 2>conftest.er1 |
| 8018 | ac_status=$? |
| 8019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8020 | rm -f conftest.er1 |
| 8021 | cat conftest.err >&5 |
| 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8023 | (exit $ac_status); } && |
| 8024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8025 | { (case "(($ac_try" in |
| 8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8027 | *) ac_try_echo=$ac_try;; |
| 8028 | esac |
| 8029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8030 | (eval "$ac_try") 2>&5 |
| 8031 | ac_status=$? |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8033 | (exit $ac_status); }; } && |
| 8034 | { ac_try='test -s conftest.$ac_objext' |
| 8035 | { (case "(($ac_try" in |
| 8036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8037 | *) ac_try_echo=$ac_try;; |
| 8038 | esac |
| 8039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8040 | (eval "$ac_try") 2>&5 |
| 8041 | ac_status=$? |
| 8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8043 | (exit $ac_status); }; }; then |
| 8044 | ac_cv_c_const=yes |
| 8045 | else |
| 8046 | echo "$as_me: failed program was:" >&5 |
| 8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8048 | |
| 8049 | ac_cv_c_const=no |
| 8050 | fi |
| 8051 | |
| 8052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8053 | fi |
| 8054 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8055 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8056 | if test $ac_cv_c_const = no; then |
| 8057 | |
| 8058 | cat >>confdefs.h <<\_ACEOF |
| 8059 | #define const |
| 8060 | _ACEOF |
| 8061 | |
| 8062 | fi |
| 8063 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8064 | |
| 8065 | |
| 8066 | |
| 8067 | |
| 8068 | |
| 8069 | ac_header_dirent=no |
| 8070 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8071 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8072 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8073 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8076 | else |
| 8077 | cat >conftest.$ac_ext <<_ACEOF |
| 8078 | /* confdefs.h. */ |
| 8079 | _ACEOF |
| 8080 | cat confdefs.h >>conftest.$ac_ext |
| 8081 | cat >>conftest.$ac_ext <<_ACEOF |
| 8082 | /* end confdefs.h. */ |
| 8083 | #include <sys/types.h> |
| 8084 | #include <$ac_hdr> |
| 8085 | |
| 8086 | int |
| 8087 | main () |
| 8088 | { |
| 8089 | if ((DIR *) 0) |
| 8090 | return 0; |
| 8091 | ; |
| 8092 | return 0; |
| 8093 | } |
| 8094 | _ACEOF |
| 8095 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8096 | if { (ac_try="$ac_compile" |
| 8097 | case "(($ac_try" in |
| 8098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8099 | *) ac_try_echo=$ac_try;; |
| 8100 | esac |
| 8101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8102 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8103 | ac_status=$? |
| 8104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8105 | rm -f conftest.er1 |
| 8106 | cat conftest.err >&5 |
| 8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8108 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8110 | { (case "(($ac_try" in |
| 8111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8112 | *) ac_try_echo=$ac_try;; |
| 8113 | esac |
| 8114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8115 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8116 | ac_status=$? |
| 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); }; } && |
| 8119 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | { (case "(($ac_try" in |
| 8121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8122 | *) ac_try_echo=$ac_try;; |
| 8123 | esac |
| 8124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8125 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8126 | ac_status=$? |
| 8127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8128 | (exit $ac_status); }; }; then |
| 8129 | eval "$as_ac_Header=yes" |
| 8130 | else |
| 8131 | echo "$as_me: failed program was:" >&5 |
| 8132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8134 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8135 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8136 | |
| 8137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8138 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8141 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8143 | cat >>confdefs.h <<_ACEOF |
| 8144 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8145 | _ACEOF |
| 8146 | |
| 8147 | ac_header_dirent=$ac_hdr; break |
| 8148 | fi |
| 8149 | |
| 8150 | done |
| 8151 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8152 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8153 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8154 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8155 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8157 | else |
| 8158 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8159 | cat >conftest.$ac_ext <<_ACEOF |
| 8160 | /* confdefs.h. */ |
| 8161 | _ACEOF |
| 8162 | cat confdefs.h >>conftest.$ac_ext |
| 8163 | cat >>conftest.$ac_ext <<_ACEOF |
| 8164 | /* end confdefs.h. */ |
| 8165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8166 | /* Override any GCC internal prototype to avoid an error. |
| 8167 | Use char because int might match the return type of a GCC |
| 8168 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8169 | #ifdef __cplusplus |
| 8170 | extern "C" |
| 8171 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8172 | char opendir (); |
| 8173 | int |
| 8174 | main () |
| 8175 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8176 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8177 | ; |
| 8178 | return 0; |
| 8179 | } |
| 8180 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8181 | for ac_lib in '' dir; do |
| 8182 | if test -z "$ac_lib"; then |
| 8183 | ac_res="none required" |
| 8184 | else |
| 8185 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8186 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8187 | fi |
| 8188 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8189 | if { (ac_try="$ac_link" |
| 8190 | case "(($ac_try" in |
| 8191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8192 | *) ac_try_echo=$ac_try;; |
| 8193 | esac |
| 8194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8195 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8196 | ac_status=$? |
| 8197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8198 | rm -f conftest.er1 |
| 8199 | cat conftest.err >&5 |
| 8200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8201 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8203 | { (case "(($ac_try" in |
| 8204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8205 | *) ac_try_echo=$ac_try;; |
| 8206 | esac |
| 8207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8208 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8209 | ac_status=$? |
| 8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8211 | (exit $ac_status); }; } && |
| 8212 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8213 | { (case "(($ac_try" in |
| 8214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8215 | *) ac_try_echo=$ac_try;; |
| 8216 | esac |
| 8217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8218 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8219 | ac_status=$? |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8222 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8223 | else |
| 8224 | echo "$as_me: failed program was:" >&5 |
| 8225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8226 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8227 | |
| 8228 | fi |
| 8229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8230 | rm -f core conftest.err conftest.$ac_objext \ |
| 8231 | conftest$ac_exeext |
| 8232 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8233 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8234 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8235 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8236 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8237 | : |
| 8238 | else |
| 8239 | ac_cv_search_opendir=no |
| 8240 | fi |
| 8241 | rm conftest.$ac_ext |
| 8242 | LIBS=$ac_func_search_save_LIBS |
| 8243 | fi |
| 8244 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8245 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8246 | ac_res=$ac_cv_search_opendir |
| 8247 | if test "$ac_res" != no; then |
| 8248 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8250 | fi |
| 8251 | |
| 8252 | else |
| 8253 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8254 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8255 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8257 | else |
| 8258 | ac_func_search_save_LIBS=$LIBS |
| 8259 | cat >conftest.$ac_ext <<_ACEOF |
| 8260 | /* confdefs.h. */ |
| 8261 | _ACEOF |
| 8262 | cat confdefs.h >>conftest.$ac_ext |
| 8263 | cat >>conftest.$ac_ext <<_ACEOF |
| 8264 | /* end confdefs.h. */ |
| 8265 | |
| 8266 | /* Override any GCC internal prototype to avoid an error. |
| 8267 | Use char because int might match the return type of a GCC |
| 8268 | builtin and then its argument prototype would still apply. */ |
| 8269 | #ifdef __cplusplus |
| 8270 | extern "C" |
| 8271 | #endif |
| 8272 | char opendir (); |
| 8273 | int |
| 8274 | main () |
| 8275 | { |
| 8276 | return opendir (); |
| 8277 | ; |
| 8278 | return 0; |
| 8279 | } |
| 8280 | _ACEOF |
| 8281 | for ac_lib in '' x; do |
| 8282 | if test -z "$ac_lib"; then |
| 8283 | ac_res="none required" |
| 8284 | else |
| 8285 | ac_res=-l$ac_lib |
| 8286 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8287 | fi |
| 8288 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8289 | if { (ac_try="$ac_link" |
| 8290 | case "(($ac_try" in |
| 8291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8292 | *) ac_try_echo=$ac_try;; |
| 8293 | esac |
| 8294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8295 | (eval "$ac_link") 2>conftest.er1 |
| 8296 | ac_status=$? |
| 8297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8298 | rm -f conftest.er1 |
| 8299 | cat conftest.err >&5 |
| 8300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8301 | (exit $ac_status); } && |
| 8302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8303 | { (case "(($ac_try" in |
| 8304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8305 | *) ac_try_echo=$ac_try;; |
| 8306 | esac |
| 8307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8308 | (eval "$ac_try") 2>&5 |
| 8309 | ac_status=$? |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); }; } && |
| 8312 | { ac_try='test -s conftest$ac_exeext' |
| 8313 | { (case "(($ac_try" in |
| 8314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8315 | *) ac_try_echo=$ac_try;; |
| 8316 | esac |
| 8317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8318 | (eval "$ac_try") 2>&5 |
| 8319 | ac_status=$? |
| 8320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8321 | (exit $ac_status); }; }; then |
| 8322 | ac_cv_search_opendir=$ac_res |
| 8323 | else |
| 8324 | echo "$as_me: failed program was:" >&5 |
| 8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8326 | |
| 8327 | |
| 8328 | fi |
| 8329 | |
| 8330 | rm -f core conftest.err conftest.$ac_objext \ |
| 8331 | conftest$ac_exeext |
| 8332 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8333 | break |
| 8334 | fi |
| 8335 | done |
| 8336 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8337 | : |
| 8338 | else |
| 8339 | ac_cv_search_opendir=no |
| 8340 | fi |
| 8341 | rm conftest.$ac_ext |
| 8342 | LIBS=$ac_func_search_save_LIBS |
| 8343 | fi |
| 8344 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8345 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8346 | ac_res=$ac_cv_search_opendir |
| 8347 | if test "$ac_res" != no; then |
| 8348 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8349 | |
| 8350 | fi |
| 8351 | |
| 8352 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8353 | |
| 8354 | |
| 8355 | for ac_header in dlfcn.h |
| 8356 | do |
| 8357 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8358 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8359 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8360 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8361 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8363 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8364 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8365 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8366 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8367 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8368 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8369 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8370 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8371 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8372 | /* confdefs.h. */ |
| 8373 | _ACEOF |
| 8374 | cat confdefs.h >>conftest.$ac_ext |
| 8375 | cat >>conftest.$ac_ext <<_ACEOF |
| 8376 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8377 | $ac_includes_default |
| 8378 | #include <$ac_header> |
| 8379 | _ACEOF |
| 8380 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8381 | if { (ac_try="$ac_compile" |
| 8382 | case "(($ac_try" in |
| 8383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8384 | *) ac_try_echo=$ac_try;; |
| 8385 | esac |
| 8386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8387 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8388 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8390 | rm -f conftest.er1 |
| 8391 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8393 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8395 | { (case "(($ac_try" in |
| 8396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8397 | *) ac_try_echo=$ac_try;; |
| 8398 | esac |
| 8399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8400 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8401 | ac_status=$? |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); }; } && |
| 8404 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | { (case "(($ac_try" in |
| 8406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8407 | *) ac_try_echo=$ac_try;; |
| 8408 | esac |
| 8409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8410 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8411 | ac_status=$? |
| 8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8413 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8414 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8415 | else |
| 8416 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8419 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8420 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8421 | |
| 8422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8423 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8424 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8425 | |
| 8426 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8427 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8428 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8429 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8430 | /* confdefs.h. */ |
| 8431 | _ACEOF |
| 8432 | cat confdefs.h >>conftest.$ac_ext |
| 8433 | cat >>conftest.$ac_ext <<_ACEOF |
| 8434 | /* end confdefs.h. */ |
| 8435 | #include <$ac_header> |
| 8436 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8437 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8438 | case "(($ac_try" in |
| 8439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8440 | *) ac_try_echo=$ac_try;; |
| 8441 | esac |
| 8442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8443 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8444 | ac_status=$? |
| 8445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8446 | rm -f conftest.er1 |
| 8447 | cat conftest.err >&5 |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8449 | (exit $ac_status); } >/dev/null; then |
| 8450 | if test -s conftest.err; then |
| 8451 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8453 | else |
| 8454 | ac_cpp_err= |
| 8455 | fi |
| 8456 | else |
| 8457 | ac_cpp_err=yes |
| 8458 | fi |
| 8459 | if test -z "$ac_cpp_err"; then |
| 8460 | ac_header_preproc=yes |
| 8461 | else |
| 8462 | echo "$as_me: failed program was:" >&5 |
| 8463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8464 | |
| 8465 | ac_header_preproc=no |
| 8466 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8467 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8468 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8469 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8470 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8471 | |
| 8472 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8473 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8474 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8475 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8476 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8478 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8479 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8480 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8481 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8482 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8483 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8484 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8485 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8486 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8487 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8488 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8489 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8490 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8491 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8492 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8493 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8494 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8495 | ## ----------------------------------- ## |
| 8496 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8497 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8498 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8499 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8500 | ;; |
| 8501 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8502 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8504 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8506 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8507 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8509 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8510 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8511 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8512 | |
| 8513 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8515 | cat >>confdefs.h <<_ACEOF |
| 8516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8517 | _ACEOF |
| 8518 | |
| 8519 | fi |
| 8520 | |
| 8521 | done |
| 8522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8523 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8524 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8525 | enableval=$enable_ltdl_install; |
| 8526 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8527 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8528 | |
| 8529 | |
| 8530 | |
| 8531 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8532 | INSTALL_LTDL_TRUE= |
| 8533 | INSTALL_LTDL_FALSE='#' |
| 8534 | else |
| 8535 | INSTALL_LTDL_TRUE='#' |
| 8536 | INSTALL_LTDL_FALSE= |
| 8537 | fi |
| 8538 | |
| 8539 | |
| 8540 | |
| 8541 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8542 | CONVENIENCE_LTDL_TRUE= |
| 8543 | CONVENIENCE_LTDL_FALSE='#' |
| 8544 | else |
| 8545 | CONVENIENCE_LTDL_TRUE='#' |
| 8546 | CONVENIENCE_LTDL_FALSE= |
| 8547 | fi |
| 8548 | |
| 8549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8550 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8551 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8552 | library_names_spec= |
| 8553 | libname_spec='lib$name' |
| 8554 | soname_spec= |
| 8555 | shrext_cmds=".so" |
| 8556 | postinstall_cmds= |
| 8557 | postuninstall_cmds= |
| 8558 | finish_cmds= |
| 8559 | finish_eval= |
| 8560 | shlibpath_var= |
| 8561 | shlibpath_overrides_runpath=unknown |
| 8562 | version_type=none |
| 8563 | dynamic_linker="$host_os ld.so" |
| 8564 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8565 | if test "$GCC" = yes; then |
| 8566 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8567 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8568 | # if the path contains ";" then we assume it to be the separator |
| 8569 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8570 | # assumed that no part of a normal pathname contains ";" but that should |
| 8571 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8572 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8573 | else |
| 8574 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8575 | fi |
| 8576 | else |
| 8577 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8578 | fi |
| 8579 | need_lib_prefix=unknown |
| 8580 | hardcode_into_libs=no |
| 8581 | |
| 8582 | # when you set need_version to no, make sure it does not cause -set_version |
| 8583 | # flags to be left without arguments |
| 8584 | need_version=unknown |
| 8585 | |
| 8586 | case $host_os in |
| 8587 | aix3*) |
| 8588 | version_type=linux |
| 8589 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8590 | shlibpath_var=LIBPATH |
| 8591 | |
| 8592 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8594 | ;; |
| 8595 | |
| 8596 | aix4* | aix5*) |
| 8597 | version_type=linux |
| 8598 | need_lib_prefix=no |
| 8599 | need_version=no |
| 8600 | hardcode_into_libs=yes |
| 8601 | if test "$host_cpu" = ia64; then |
| 8602 | # AIX 5 supports IA64 |
| 8603 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8604 | shlibpath_var=LD_LIBRARY_PATH |
| 8605 | else |
| 8606 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8607 | # for dependence libraries. The import file would start with |
| 8608 | # the line `#! .'. This would cause the generated library to |
| 8609 | # depend on `.', always an invalid library. This was fixed in |
| 8610 | # development snapshots of GCC prior to 3.0. |
| 8611 | case $host_os in |
| 8612 | aix4 | aix4.[01] | aix4.[01].*) |
| 8613 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8614 | echo ' yes ' |
| 8615 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8616 | : |
| 8617 | else |
| 8618 | can_build_shared=no |
| 8619 | fi |
| 8620 | ;; |
| 8621 | esac |
| 8622 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8623 | # soname into executable. Probably we can add versioning support to |
| 8624 | # collect2, so additional links can be useful in future. |
| 8625 | if test "$aix_use_runtimelinking" = yes; then |
| 8626 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8627 | # instead of lib<name>.a to let people know that these are not |
| 8628 | # typical AIX shared libraries. |
| 8629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8630 | else |
| 8631 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8632 | # and later when we are not doing run time linking. |
| 8633 | library_names_spec='${libname}${release}.a $libname.a' |
| 8634 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8635 | fi |
| 8636 | shlibpath_var=LIBPATH |
| 8637 | fi |
| 8638 | ;; |
| 8639 | |
| 8640 | amigaos*) |
| 8641 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8642 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8643 | 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' |
| 8644 | ;; |
| 8645 | |
| 8646 | beos*) |
| 8647 | library_names_spec='${libname}${shared_ext}' |
| 8648 | dynamic_linker="$host_os ld.so" |
| 8649 | shlibpath_var=LIBRARY_PATH |
| 8650 | ;; |
| 8651 | |
| 8652 | bsdi[45]*) |
| 8653 | version_type=linux |
| 8654 | need_version=no |
| 8655 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8656 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8657 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8658 | shlibpath_var=LD_LIBRARY_PATH |
| 8659 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8660 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8661 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8662 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8663 | # libtool to hard-code these into programs |
| 8664 | ;; |
| 8665 | |
| 8666 | cygwin* | mingw* | pw32*) |
| 8667 | version_type=windows |
| 8668 | shrext_cmds=".dll" |
| 8669 | need_version=no |
| 8670 | need_lib_prefix=no |
| 8671 | |
| 8672 | case $GCC,$host_os in |
| 8673 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8674 | library_names_spec='$libname.dll.a' |
| 8675 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8676 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8677 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8678 | dldir=$destdir/`dirname \$dlpath`~ |
| 8679 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8680 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8681 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8682 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8683 | dlpath=$dir/\$dldll~ |
| 8684 | $rm \$dlpath' |
| 8685 | shlibpath_overrides_runpath=yes |
| 8686 | |
| 8687 | case $host_os in |
| 8688 | cygwin*) |
| 8689 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8690 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8691 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8692 | ;; |
| 8693 | mingw*) |
| 8694 | # MinGW DLLs use traditional 'lib' prefix |
| 8695 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8696 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8697 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8698 | # It is most probably a Windows format PATH printed by |
| 8699 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8700 | # path with ; separators, and with drive letters. We can handle the |
| 8701 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8702 | # especially as we might pass files found there to a mingw objdump, |
| 8703 | # which wouldn't understand a cygwinified path. Ahh. |
| 8704 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8705 | else |
| 8706 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8707 | fi |
| 8708 | ;; |
| 8709 | pw32*) |
| 8710 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8711 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8712 | ;; |
| 8713 | esac |
| 8714 | ;; |
| 8715 | |
| 8716 | *) |
| 8717 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8718 | ;; |
| 8719 | esac |
| 8720 | dynamic_linker='Win32 ld.exe' |
| 8721 | # FIXME: first we should search . and the directory the executable is in |
| 8722 | shlibpath_var=PATH |
| 8723 | ;; |
| 8724 | |
| 8725 | darwin* | rhapsody*) |
| 8726 | dynamic_linker="$host_os dyld" |
| 8727 | version_type=darwin |
| 8728 | need_lib_prefix=no |
| 8729 | need_version=no |
| 8730 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8731 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8732 | shlibpath_overrides_runpath=yes |
| 8733 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8734 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8735 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8736 | if test "$GCC" = yes; then |
| 8737 | 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"` |
| 8738 | else |
| 8739 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8740 | fi |
| 8741 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8742 | ;; |
| 8743 | |
| 8744 | dgux*) |
| 8745 | version_type=linux |
| 8746 | need_lib_prefix=no |
| 8747 | need_version=no |
| 8748 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8749 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8750 | shlibpath_var=LD_LIBRARY_PATH |
| 8751 | ;; |
| 8752 | |
| 8753 | freebsd1*) |
| 8754 | dynamic_linker=no |
| 8755 | ;; |
| 8756 | |
| 8757 | kfreebsd*-gnu) |
| 8758 | version_type=linux |
| 8759 | need_lib_prefix=no |
| 8760 | need_version=no |
| 8761 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8762 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8763 | shlibpath_var=LD_LIBRARY_PATH |
| 8764 | shlibpath_overrides_runpath=no |
| 8765 | hardcode_into_libs=yes |
| 8766 | dynamic_linker='GNU ld.so' |
| 8767 | ;; |
| 8768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8769 | freebsd* | dragonfly*) |
| 8770 | # DragonFly does not have aout. When/if they implement a new |
| 8771 | # versioning mechanism, adjust this. |
| 8772 | if test -x /usr/bin/objformat; then |
| 8773 | objformat=`/usr/bin/objformat` |
| 8774 | else |
| 8775 | case $host_os in |
| 8776 | freebsd[123]*) objformat=aout ;; |
| 8777 | *) objformat=elf ;; |
| 8778 | esac |
| 8779 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8780 | version_type=freebsd-$objformat |
| 8781 | case $version_type in |
| 8782 | freebsd-elf*) |
| 8783 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8784 | need_version=no |
| 8785 | need_lib_prefix=no |
| 8786 | ;; |
| 8787 | freebsd-*) |
| 8788 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8789 | need_version=yes |
| 8790 | ;; |
| 8791 | esac |
| 8792 | shlibpath_var=LD_LIBRARY_PATH |
| 8793 | case $host_os in |
| 8794 | freebsd2*) |
| 8795 | shlibpath_overrides_runpath=yes |
| 8796 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8797 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8798 | shlibpath_overrides_runpath=yes |
| 8799 | hardcode_into_libs=yes |
| 8800 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8801 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8802 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8803 | shlibpath_overrides_runpath=no |
| 8804 | hardcode_into_libs=yes |
| 8805 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8806 | freebsd*) # from 4.6 on |
| 8807 | shlibpath_overrides_runpath=yes |
| 8808 | hardcode_into_libs=yes |
| 8809 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8810 | esac |
| 8811 | ;; |
| 8812 | |
| 8813 | gnu*) |
| 8814 | version_type=linux |
| 8815 | need_lib_prefix=no |
| 8816 | need_version=no |
| 8817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8818 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8819 | shlibpath_var=LD_LIBRARY_PATH |
| 8820 | hardcode_into_libs=yes |
| 8821 | ;; |
| 8822 | |
| 8823 | hpux9* | hpux10* | hpux11*) |
| 8824 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8825 | # link against other versions. |
| 8826 | version_type=sunos |
| 8827 | need_lib_prefix=no |
| 8828 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8829 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8830 | ia64*) |
| 8831 | shrext_cmds='.so' |
| 8832 | hardcode_into_libs=yes |
| 8833 | dynamic_linker="$host_os dld.so" |
| 8834 | shlibpath_var=LD_LIBRARY_PATH |
| 8835 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8837 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8838 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8839 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8840 | else |
| 8841 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8842 | fi |
| 8843 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8844 | ;; |
| 8845 | hppa*64*) |
| 8846 | shrext_cmds='.sl' |
| 8847 | hardcode_into_libs=yes |
| 8848 | dynamic_linker="$host_os dld.sl" |
| 8849 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8850 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8853 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8854 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8855 | ;; |
| 8856 | *) |
| 8857 | shrext_cmds='.sl' |
| 8858 | dynamic_linker="$host_os dld.sl" |
| 8859 | shlibpath_var=SHLIB_PATH |
| 8860 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8863 | ;; |
| 8864 | esac |
| 8865 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8866 | postinstall_cmds='chmod 555 $lib' |
| 8867 | ;; |
| 8868 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8869 | interix3*) |
| 8870 | version_type=linux |
| 8871 | need_lib_prefix=no |
| 8872 | need_version=no |
| 8873 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8874 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8875 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8876 | shlibpath_var=LD_LIBRARY_PATH |
| 8877 | shlibpath_overrides_runpath=no |
| 8878 | hardcode_into_libs=yes |
| 8879 | ;; |
| 8880 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8881 | irix5* | irix6* | nonstopux*) |
| 8882 | case $host_os in |
| 8883 | nonstopux*) version_type=nonstopux ;; |
| 8884 | *) |
| 8885 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8886 | version_type=linux |
| 8887 | else |
| 8888 | version_type=irix |
| 8889 | fi ;; |
| 8890 | esac |
| 8891 | need_lib_prefix=no |
| 8892 | need_version=no |
| 8893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8895 | case $host_os in |
| 8896 | irix5* | nonstopux*) |
| 8897 | libsuff= shlibsuff= |
| 8898 | ;; |
| 8899 | *) |
| 8900 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8901 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8902 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8903 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8904 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8905 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8906 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8907 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8908 | esac |
| 8909 | ;; |
| 8910 | esac |
| 8911 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8912 | shlibpath_overrides_runpath=no |
| 8913 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8914 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8915 | hardcode_into_libs=yes |
| 8916 | ;; |
| 8917 | |
| 8918 | # No shared lib support for Linux oldld, aout, or coff. |
| 8919 | linux*oldld* | linux*aout* | linux*coff*) |
| 8920 | dynamic_linker=no |
| 8921 | ;; |
| 8922 | |
| 8923 | # This must be Linux ELF. |
| 8924 | linux*) |
| 8925 | version_type=linux |
| 8926 | need_lib_prefix=no |
| 8927 | need_version=no |
| 8928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8930 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8931 | shlibpath_var=LD_LIBRARY_PATH |
| 8932 | shlibpath_overrides_runpath=no |
| 8933 | # This implies no fast_install, which is unacceptable. |
| 8934 | # Some rework will be needed to allow for fast_install |
| 8935 | # before this can be enabled. |
| 8936 | hardcode_into_libs=yes |
| 8937 | |
| 8938 | # Append ld.so.conf contents to the search path |
| 8939 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8940 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8941 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8942 | fi |
| 8943 | |
| 8944 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8945 | # powerpc, because MkLinux only supported shared libraries with the |
| 8946 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8947 | # most powerpc-linux boxes support dynamic linking these days and |
| 8948 | # people can always --disable-shared, the test was removed, and we |
| 8949 | # assume the GNU/Linux dynamic linker is in use. |
| 8950 | dynamic_linker='GNU/Linux ld.so' |
| 8951 | ;; |
| 8952 | |
| 8953 | knetbsd*-gnu) |
| 8954 | version_type=linux |
| 8955 | need_lib_prefix=no |
| 8956 | need_version=no |
| 8957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8959 | shlibpath_var=LD_LIBRARY_PATH |
| 8960 | shlibpath_overrides_runpath=no |
| 8961 | hardcode_into_libs=yes |
| 8962 | dynamic_linker='GNU ld.so' |
| 8963 | ;; |
| 8964 | |
| 8965 | netbsd*) |
| 8966 | version_type=sunos |
| 8967 | need_lib_prefix=no |
| 8968 | need_version=no |
| 8969 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8971 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8972 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8973 | else |
| 8974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8975 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8976 | dynamic_linker='NetBSD ld.elf_so' |
| 8977 | fi |
| 8978 | shlibpath_var=LD_LIBRARY_PATH |
| 8979 | shlibpath_overrides_runpath=yes |
| 8980 | hardcode_into_libs=yes |
| 8981 | ;; |
| 8982 | |
| 8983 | newsos6) |
| 8984 | version_type=linux |
| 8985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8986 | shlibpath_var=LD_LIBRARY_PATH |
| 8987 | shlibpath_overrides_runpath=yes |
| 8988 | ;; |
| 8989 | |
| 8990 | nto-qnx*) |
| 8991 | version_type=linux |
| 8992 | need_lib_prefix=no |
| 8993 | need_version=no |
| 8994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8996 | shlibpath_var=LD_LIBRARY_PATH |
| 8997 | shlibpath_overrides_runpath=yes |
| 8998 | ;; |
| 8999 | |
| 9000 | openbsd*) |
| 9001 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9002 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9003 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9004 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9005 | case $host_os in |
| 9006 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9007 | *) need_version=no ;; |
| 9008 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9010 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9011 | shlibpath_var=LD_LIBRARY_PATH |
| 9012 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9013 | case $host_os in |
| 9014 | openbsd2.[89] | openbsd2.[89].*) |
| 9015 | shlibpath_overrides_runpath=no |
| 9016 | ;; |
| 9017 | *) |
| 9018 | shlibpath_overrides_runpath=yes |
| 9019 | ;; |
| 9020 | esac |
| 9021 | else |
| 9022 | shlibpath_overrides_runpath=yes |
| 9023 | fi |
| 9024 | ;; |
| 9025 | |
| 9026 | os2*) |
| 9027 | libname_spec='$name' |
| 9028 | shrext_cmds=".dll" |
| 9029 | need_lib_prefix=no |
| 9030 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9031 | dynamic_linker='OS/2 ld.exe' |
| 9032 | shlibpath_var=LIBPATH |
| 9033 | ;; |
| 9034 | |
| 9035 | osf3* | osf4* | osf5*) |
| 9036 | version_type=osf |
| 9037 | need_lib_prefix=no |
| 9038 | need_version=no |
| 9039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9041 | shlibpath_var=LD_LIBRARY_PATH |
| 9042 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9043 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9044 | ;; |
| 9045 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9046 | solaris*) |
| 9047 | version_type=linux |
| 9048 | need_lib_prefix=no |
| 9049 | need_version=no |
| 9050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9051 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9052 | shlibpath_var=LD_LIBRARY_PATH |
| 9053 | shlibpath_overrides_runpath=yes |
| 9054 | hardcode_into_libs=yes |
| 9055 | # ldd complains unless libraries are executable |
| 9056 | postinstall_cmds='chmod +x $lib' |
| 9057 | ;; |
| 9058 | |
| 9059 | sunos4*) |
| 9060 | version_type=sunos |
| 9061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9062 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9063 | shlibpath_var=LD_LIBRARY_PATH |
| 9064 | shlibpath_overrides_runpath=yes |
| 9065 | if test "$with_gnu_ld" = yes; then |
| 9066 | need_lib_prefix=no |
| 9067 | fi |
| 9068 | need_version=yes |
| 9069 | ;; |
| 9070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9071 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9072 | version_type=linux |
| 9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9075 | shlibpath_var=LD_LIBRARY_PATH |
| 9076 | case $host_vendor in |
| 9077 | sni) |
| 9078 | shlibpath_overrides_runpath=no |
| 9079 | need_lib_prefix=no |
| 9080 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9081 | runpath_var=LD_RUN_PATH |
| 9082 | ;; |
| 9083 | siemens) |
| 9084 | need_lib_prefix=no |
| 9085 | ;; |
| 9086 | motorola) |
| 9087 | need_lib_prefix=no |
| 9088 | need_version=no |
| 9089 | shlibpath_overrides_runpath=no |
| 9090 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9091 | ;; |
| 9092 | esac |
| 9093 | ;; |
| 9094 | |
| 9095 | sysv4*MP*) |
| 9096 | if test -d /usr/nec ;then |
| 9097 | version_type=linux |
| 9098 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9099 | soname_spec='$libname${shared_ext}.$major' |
| 9100 | shlibpath_var=LD_LIBRARY_PATH |
| 9101 | fi |
| 9102 | ;; |
| 9103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9104 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9105 | version_type=freebsd-elf |
| 9106 | need_lib_prefix=no |
| 9107 | need_version=no |
| 9108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9109 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9110 | shlibpath_var=LD_LIBRARY_PATH |
| 9111 | hardcode_into_libs=yes |
| 9112 | if test "$with_gnu_ld" = yes; then |
| 9113 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9114 | shlibpath_overrides_runpath=no |
| 9115 | else |
| 9116 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9117 | shlibpath_overrides_runpath=yes |
| 9118 | case $host_os in |
| 9119 | sco3.2v5*) |
| 9120 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9121 | ;; |
| 9122 | esac |
| 9123 | fi |
| 9124 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9125 | ;; |
| 9126 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9127 | uts4*) |
| 9128 | version_type=linux |
| 9129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9131 | shlibpath_var=LD_LIBRARY_PATH |
| 9132 | ;; |
| 9133 | |
| 9134 | *) |
| 9135 | dynamic_linker=no |
| 9136 | ;; |
| 9137 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9139 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9140 | test "$dynamic_linker" = no && can_build_shared=no |
| 9141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9142 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9143 | if test "$GCC" = yes; then |
| 9144 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9145 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9146 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9147 | |
| 9148 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9149 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9150 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9152 | else |
| 9153 | |
| 9154 | module=yes |
| 9155 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9156 | |
| 9157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9158 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9159 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9160 | if test -n "$libltdl_cv_shlibext"; then |
| 9161 | |
| 9162 | cat >>confdefs.h <<_ACEOF |
| 9163 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9164 | _ACEOF |
| 9165 | |
| 9166 | fi |
| 9167 | |
| 9168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9169 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9170 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9171 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9173 | else |
| 9174 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9175 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9176 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9177 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9178 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9179 | |
| 9180 | cat >>confdefs.h <<_ACEOF |
| 9181 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9182 | _ACEOF |
| 9183 | |
| 9184 | fi |
| 9185 | |
| 9186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9187 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9188 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9189 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9191 | else |
| 9192 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9193 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9194 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9195 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9196 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9197 | sys_search_path= |
| 9198 | for dir in $libltdl_cv_sys_search_path; do |
| 9199 | if test -z "$sys_search_path"; then |
| 9200 | sys_search_path="$dir" |
| 9201 | else |
| 9202 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9203 | fi |
| 9204 | done |
| 9205 | |
| 9206 | cat >>confdefs.h <<_ACEOF |
| 9207 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9208 | _ACEOF |
| 9209 | |
| 9210 | fi |
| 9211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9212 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9213 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9214 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9216 | else |
| 9217 | libltdl_cv_objdir="$objdir" |
| 9218 | if test -n "$objdir"; then |
| 9219 | : |
| 9220 | else |
| 9221 | rm -f .libs 2>/dev/null |
| 9222 | mkdir .libs 2>/dev/null |
| 9223 | if test -d .libs; then |
| 9224 | libltdl_cv_objdir=.libs |
| 9225 | else |
| 9226 | # MS-DOS does not allow filenames that begin with a dot. |
| 9227 | libltdl_cv_objdir=_libs |
| 9228 | fi |
| 9229 | rmdir .libs 2>/dev/null |
| 9230 | fi |
| 9231 | |
| 9232 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9233 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9234 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9235 | |
| 9236 | cat >>confdefs.h <<_ACEOF |
| 9237 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9238 | _ACEOF |
| 9239 | |
| 9240 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9241 | |
| 9242 | |
| 9243 | |
| 9244 | |
| 9245 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9246 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9247 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9250 | else |
| 9251 | |
| 9252 | # These are sane defaults that work on at least a few old systems. |
| 9253 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9254 | |
| 9255 | # Character class describing NM global symbol codes. |
| 9256 | symcode='[BCDEGRST]' |
| 9257 | |
| 9258 | # Regexp to match symbols that can be accessed directly from C. |
| 9259 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9260 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9261 | # Transform an extracted symbol line into a proper C declaration |
| 9262 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9263 | |
| 9264 | # Transform an extracted symbol line into symbol name and symbol address |
| 9265 | 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'" |
| 9266 | |
| 9267 | # Define system-specific variables. |
| 9268 | case $host_os in |
| 9269 | aix*) |
| 9270 | symcode='[BCDT]' |
| 9271 | ;; |
| 9272 | cygwin* | mingw* | pw32*) |
| 9273 | symcode='[ABCDGISTW]' |
| 9274 | ;; |
| 9275 | hpux*) # Its linker distinguishes data from code symbols |
| 9276 | if test "$host_cpu" = ia64; then |
| 9277 | symcode='[ABCDEGRST]' |
| 9278 | fi |
| 9279 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9280 | 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'" |
| 9281 | ;; |
| 9282 | linux*) |
| 9283 | if test "$host_cpu" = ia64; then |
| 9284 | symcode='[ABCDGIRSTW]' |
| 9285 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9286 | 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'" |
| 9287 | fi |
| 9288 | ;; |
| 9289 | irix* | nonstopux*) |
| 9290 | symcode='[BCDEGRST]' |
| 9291 | ;; |
| 9292 | osf*) |
| 9293 | symcode='[BCDEGQRST]' |
| 9294 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9295 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9296 | symcode='[BDRT]' |
| 9297 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9298 | sco3.2v5*) |
| 9299 | symcode='[DT]' |
| 9300 | ;; |
| 9301 | sysv4.2uw2*) |
| 9302 | symcode='[DT]' |
| 9303 | ;; |
| 9304 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9305 | symcode='[ABDT]' |
| 9306 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9307 | sysv4) |
| 9308 | symcode='[DFNSTU]' |
| 9309 | ;; |
| 9310 | esac |
| 9311 | |
| 9312 | # Handle CRLF in mingw tool chain |
| 9313 | opt_cr= |
| 9314 | case $build_os in |
| 9315 | mingw*) |
| 9316 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9317 | ;; |
| 9318 | esac |
| 9319 | |
| 9320 | # If we're using GNU nm, then use its standard symbol codes. |
| 9321 | case `$NM -V 2>&1` in |
| 9322 | *GNU* | *'with BFD'*) |
| 9323 | symcode='[ABCDGIRSTW]' ;; |
| 9324 | esac |
| 9325 | |
| 9326 | # Try without a prefix undercore, then with it. |
| 9327 | for ac_symprfx in "" "_"; do |
| 9328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9329 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9330 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9331 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9332 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9333 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9334 | |
| 9335 | # Check to see that the pipe works correctly. |
| 9336 | pipe_works=no |
| 9337 | |
| 9338 | rm -f conftest* |
| 9339 | cat > conftest.$ac_ext <<EOF |
| 9340 | #ifdef __cplusplus |
| 9341 | extern "C" { |
| 9342 | #endif |
| 9343 | char nm_test_var; |
| 9344 | void nm_test_func(){} |
| 9345 | #ifdef __cplusplus |
| 9346 | } |
| 9347 | #endif |
| 9348 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9349 | EOF |
| 9350 | |
| 9351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9352 | (eval $ac_compile) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); }; then |
| 9356 | # Now try to grab the symbols. |
| 9357 | nlist=conftest.nm |
| 9358 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9359 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9360 | ac_status=$? |
| 9361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9362 | (exit $ac_status); } && test -s "$nlist"; then |
| 9363 | # Try sorting and uniquifying the output. |
| 9364 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9365 | mv -f "$nlist"T "$nlist" |
| 9366 | else |
| 9367 | rm -f "$nlist"T |
| 9368 | fi |
| 9369 | |
| 9370 | # Make sure that we snagged all the symbols we need. |
| 9371 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9372 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9373 | cat <<EOF > conftest.$ac_ext |
| 9374 | #ifdef __cplusplus |
| 9375 | extern "C" { |
| 9376 | #endif |
| 9377 | |
| 9378 | EOF |
| 9379 | # Now generate the symbol file. |
| 9380 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9381 | |
| 9382 | cat <<EOF >> conftest.$ac_ext |
| 9383 | #if defined (__STDC__) && __STDC__ |
| 9384 | # define lt_ptr_t void * |
| 9385 | #else |
| 9386 | # define lt_ptr_t char * |
| 9387 | # define const |
| 9388 | #endif |
| 9389 | |
| 9390 | /* The mapping between symbol names and symbols. */ |
| 9391 | const struct { |
| 9392 | const char *name; |
| 9393 | lt_ptr_t address; |
| 9394 | } |
| 9395 | lt_preloaded_symbols[] = |
| 9396 | { |
| 9397 | EOF |
| 9398 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9399 | cat <<\EOF >> conftest.$ac_ext |
| 9400 | {0, (lt_ptr_t) 0} |
| 9401 | }; |
| 9402 | |
| 9403 | #ifdef __cplusplus |
| 9404 | } |
| 9405 | #endif |
| 9406 | EOF |
| 9407 | # Now try linking the two files. |
| 9408 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9409 | lt_save_LIBS="$LIBS" |
| 9410 | lt_save_CFLAGS="$CFLAGS" |
| 9411 | LIBS="conftstm.$ac_objext" |
| 9412 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9414 | (eval $ac_link) 2>&5 |
| 9415 | ac_status=$? |
| 9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9417 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9418 | pipe_works=yes |
| 9419 | fi |
| 9420 | LIBS="$lt_save_LIBS" |
| 9421 | CFLAGS="$lt_save_CFLAGS" |
| 9422 | else |
| 9423 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9424 | fi |
| 9425 | else |
| 9426 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9427 | fi |
| 9428 | else |
| 9429 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9430 | fi |
| 9431 | else |
| 9432 | echo "$progname: failed program was:" >&5 |
| 9433 | cat conftest.$ac_ext >&5 |
| 9434 | fi |
| 9435 | rm -f conftest* conftst* |
| 9436 | |
| 9437 | # Do not use the global_symbol_pipe unless it works. |
| 9438 | if test "$pipe_works" = yes; then |
| 9439 | break |
| 9440 | else |
| 9441 | lt_cv_sys_global_symbol_pipe= |
| 9442 | fi |
| 9443 | done |
| 9444 | |
| 9445 | fi |
| 9446 | |
| 9447 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9448 | lt_cv_sys_global_symbol_to_cdecl= |
| 9449 | fi |
| 9450 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9451 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9452 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9453 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9454 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9455 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9456 | fi |
| 9457 | |
| 9458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9459 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9460 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9461 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9463 | else |
| 9464 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9465 | libltdl_cv_preloaded_symbols=yes |
| 9466 | else |
| 9467 | libltdl_cv_preloaded_symbols=no |
| 9468 | fi |
| 9469 | |
| 9470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9471 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9472 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9473 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9474 | |
| 9475 | cat >>confdefs.h <<\_ACEOF |
| 9476 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9477 | _ACEOF |
| 9478 | |
| 9479 | fi |
| 9480 | |
| 9481 | LIBADD_DL= |
| 9482 | |
| 9483 | ac_ext=c |
| 9484 | ac_cpp='$CPP $CPPFLAGS' |
| 9485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9488 | |
| 9489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9490 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9491 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9492 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9494 | else |
| 9495 | cat >conftest.$ac_ext <<_ACEOF |
| 9496 | /* confdefs.h. */ |
| 9497 | _ACEOF |
| 9498 | cat confdefs.h >>conftest.$ac_ext |
| 9499 | cat >>conftest.$ac_ext <<_ACEOF |
| 9500 | /* end confdefs.h. */ |
| 9501 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9503 | #define shl_load innocuous_shl_load |
| 9504 | |
| 9505 | /* System header to define __stub macros and hopefully few prototypes, |
| 9506 | which can conflict with char shl_load (); below. |
| 9507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9508 | <limits.h> exists even on freestanding compilers. */ |
| 9509 | |
| 9510 | #ifdef __STDC__ |
| 9511 | # include <limits.h> |
| 9512 | #else |
| 9513 | # include <assert.h> |
| 9514 | #endif |
| 9515 | |
| 9516 | #undef shl_load |
| 9517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9518 | /* Override any GCC internal prototype to avoid an error. |
| 9519 | Use char because int might match the return type of a GCC |
| 9520 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9521 | #ifdef __cplusplus |
| 9522 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9523 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9524 | char shl_load (); |
| 9525 | /* The GNU C library defines this for functions which it implements |
| 9526 | to always fail with ENOSYS. Some functions are actually named |
| 9527 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9528 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9529 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9530 | #endif |
| 9531 | |
| 9532 | int |
| 9533 | main () |
| 9534 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9535 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9536 | ; |
| 9537 | return 0; |
| 9538 | } |
| 9539 | _ACEOF |
| 9540 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9541 | if { (ac_try="$ac_link" |
| 9542 | case "(($ac_try" in |
| 9543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9544 | *) ac_try_echo=$ac_try;; |
| 9545 | esac |
| 9546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9547 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9548 | ac_status=$? |
| 9549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9550 | rm -f conftest.er1 |
| 9551 | cat conftest.err >&5 |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9555 | { (case "(($ac_try" in |
| 9556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9557 | *) ac_try_echo=$ac_try;; |
| 9558 | esac |
| 9559 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9560 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9561 | ac_status=$? |
| 9562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9563 | (exit $ac_status); }; } && |
| 9564 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9565 | { (case "(($ac_try" in |
| 9566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9567 | *) ac_try_echo=$ac_try;; |
| 9568 | esac |
| 9569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9570 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9571 | ac_status=$? |
| 9572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9573 | (exit $ac_status); }; }; then |
| 9574 | ac_cv_func_shl_load=yes |
| 9575 | else |
| 9576 | echo "$as_me: failed program was:" >&5 |
| 9577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9579 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9581 | |
| 9582 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9583 | conftest$ac_exeext conftest.$ac_ext |
| 9584 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9585 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9586 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9587 | if test $ac_cv_func_shl_load = yes; then |
| 9588 | |
| 9589 | cat >>confdefs.h <<\_ACEOF |
| 9590 | #define HAVE_SHL_LOAD 1 |
| 9591 | _ACEOF |
| 9592 | |
| 9593 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9594 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9595 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9596 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9598 | else |
| 9599 | ac_check_lib_save_LIBS=$LIBS |
| 9600 | LIBS="-ldld $LIBS" |
| 9601 | cat >conftest.$ac_ext <<_ACEOF |
| 9602 | /* confdefs.h. */ |
| 9603 | _ACEOF |
| 9604 | cat confdefs.h >>conftest.$ac_ext |
| 9605 | cat >>conftest.$ac_ext <<_ACEOF |
| 9606 | /* end confdefs.h. */ |
| 9607 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9608 | /* Override any GCC internal prototype to avoid an error. |
| 9609 | Use char because int might match the return type of a GCC |
| 9610 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | #ifdef __cplusplus |
| 9612 | extern "C" |
| 9613 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | char shl_load (); |
| 9615 | int |
| 9616 | main () |
| 9617 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9618 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9619 | ; |
| 9620 | return 0; |
| 9621 | } |
| 9622 | _ACEOF |
| 9623 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9624 | if { (ac_try="$ac_link" |
| 9625 | case "(($ac_try" in |
| 9626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9627 | *) ac_try_echo=$ac_try;; |
| 9628 | esac |
| 9629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9630 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9631 | ac_status=$? |
| 9632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9633 | rm -f conftest.er1 |
| 9634 | cat conftest.err >&5 |
| 9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9636 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9638 | { (case "(($ac_try" in |
| 9639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9640 | *) ac_try_echo=$ac_try;; |
| 9641 | esac |
| 9642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9643 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9644 | ac_status=$? |
| 9645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9646 | (exit $ac_status); }; } && |
| 9647 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9648 | { (case "(($ac_try" in |
| 9649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9650 | *) ac_try_echo=$ac_try;; |
| 9651 | esac |
| 9652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9653 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9654 | ac_status=$? |
| 9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9656 | (exit $ac_status); }; }; then |
| 9657 | ac_cv_lib_dld_shl_load=yes |
| 9658 | else |
| 9659 | echo "$as_me: failed program was:" >&5 |
| 9660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9662 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9664 | |
| 9665 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9666 | conftest$ac_exeext conftest.$ac_ext |
| 9667 | LIBS=$ac_check_lib_save_LIBS |
| 9668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9670 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9671 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9672 | |
| 9673 | cat >>confdefs.h <<\_ACEOF |
| 9674 | #define HAVE_SHL_LOAD 1 |
| 9675 | _ACEOF |
| 9676 | |
| 9677 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9678 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9679 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9680 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9681 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9683 | else |
| 9684 | ac_check_lib_save_LIBS=$LIBS |
| 9685 | LIBS="-ldl $LIBS" |
| 9686 | cat >conftest.$ac_ext <<_ACEOF |
| 9687 | /* confdefs.h. */ |
| 9688 | _ACEOF |
| 9689 | cat confdefs.h >>conftest.$ac_ext |
| 9690 | cat >>conftest.$ac_ext <<_ACEOF |
| 9691 | /* end confdefs.h. */ |
| 9692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9693 | /* Override any GCC internal prototype to avoid an error. |
| 9694 | Use char because int might match the return type of a GCC |
| 9695 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9696 | #ifdef __cplusplus |
| 9697 | extern "C" |
| 9698 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9699 | char dlopen (); |
| 9700 | int |
| 9701 | main () |
| 9702 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9703 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9704 | ; |
| 9705 | return 0; |
| 9706 | } |
| 9707 | _ACEOF |
| 9708 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9709 | if { (ac_try="$ac_link" |
| 9710 | case "(($ac_try" in |
| 9711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9712 | *) ac_try_echo=$ac_try;; |
| 9713 | esac |
| 9714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9715 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9716 | ac_status=$? |
| 9717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9718 | rm -f conftest.er1 |
| 9719 | cat conftest.err >&5 |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9723 | { (case "(($ac_try" in |
| 9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9725 | *) ac_try_echo=$ac_try;; |
| 9726 | esac |
| 9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9728 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; } && |
| 9732 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9733 | { (case "(($ac_try" in |
| 9734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9735 | *) ac_try_echo=$ac_try;; |
| 9736 | esac |
| 9737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9738 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); }; }; then |
| 9742 | ac_cv_lib_dl_dlopen=yes |
| 9743 | else |
| 9744 | echo "$as_me: failed program was:" >&5 |
| 9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9747 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9748 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9749 | |
| 9750 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9751 | conftest$ac_exeext conftest.$ac_ext |
| 9752 | LIBS=$ac_check_lib_save_LIBS |
| 9753 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9755 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9756 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9757 | |
| 9758 | cat >>confdefs.h <<\_ACEOF |
| 9759 | #define HAVE_LIBDL 1 |
| 9760 | _ACEOF |
| 9761 | |
| 9762 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9763 | else |
| 9764 | cat >conftest.$ac_ext <<_ACEOF |
| 9765 | /* confdefs.h. */ |
| 9766 | _ACEOF |
| 9767 | cat confdefs.h >>conftest.$ac_ext |
| 9768 | cat >>conftest.$ac_ext <<_ACEOF |
| 9769 | /* end confdefs.h. */ |
| 9770 | #if HAVE_DLFCN_H |
| 9771 | # include <dlfcn.h> |
| 9772 | #endif |
| 9773 | |
| 9774 | int |
| 9775 | main () |
| 9776 | { |
| 9777 | dlopen(0, 0); |
| 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
| 9782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9783 | if { (ac_try="$ac_link" |
| 9784 | case "(($ac_try" in |
| 9785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9786 | *) ac_try_echo=$ac_try;; |
| 9787 | esac |
| 9788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9789 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9790 | ac_status=$? |
| 9791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9792 | rm -f conftest.er1 |
| 9793 | cat conftest.err >&5 |
| 9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9795 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9797 | { (case "(($ac_try" in |
| 9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9799 | *) ac_try_echo=$ac_try;; |
| 9800 | esac |
| 9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9802 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9803 | ac_status=$? |
| 9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9805 | (exit $ac_status); }; } && |
| 9806 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9807 | { (case "(($ac_try" in |
| 9808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9809 | *) ac_try_echo=$ac_try;; |
| 9810 | esac |
| 9811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9812 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9813 | ac_status=$? |
| 9814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9815 | (exit $ac_status); }; }; then |
| 9816 | |
| 9817 | cat >>confdefs.h <<\_ACEOF |
| 9818 | #define HAVE_LIBDL 1 |
| 9819 | _ACEOF |
| 9820 | libltdl_cv_func_dlopen="yes" |
| 9821 | else |
| 9822 | echo "$as_me: failed program was:" >&5 |
| 9823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9825 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9826 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9827 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9829 | else |
| 9830 | ac_check_lib_save_LIBS=$LIBS |
| 9831 | LIBS="-lsvld $LIBS" |
| 9832 | cat >conftest.$ac_ext <<_ACEOF |
| 9833 | /* confdefs.h. */ |
| 9834 | _ACEOF |
| 9835 | cat confdefs.h >>conftest.$ac_ext |
| 9836 | cat >>conftest.$ac_ext <<_ACEOF |
| 9837 | /* end confdefs.h. */ |
| 9838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9839 | /* Override any GCC internal prototype to avoid an error. |
| 9840 | Use char because int might match the return type of a GCC |
| 9841 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9842 | #ifdef __cplusplus |
| 9843 | extern "C" |
| 9844 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9845 | char dlopen (); |
| 9846 | int |
| 9847 | main () |
| 9848 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9849 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9850 | ; |
| 9851 | return 0; |
| 9852 | } |
| 9853 | _ACEOF |
| 9854 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9855 | if { (ac_try="$ac_link" |
| 9856 | case "(($ac_try" in |
| 9857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9858 | *) ac_try_echo=$ac_try;; |
| 9859 | esac |
| 9860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9861 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9862 | ac_status=$? |
| 9863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9864 | rm -f conftest.er1 |
| 9865 | cat conftest.err >&5 |
| 9866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9867 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9869 | { (case "(($ac_try" in |
| 9870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9871 | *) ac_try_echo=$ac_try;; |
| 9872 | esac |
| 9873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9874 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9875 | ac_status=$? |
| 9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9877 | (exit $ac_status); }; } && |
| 9878 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9879 | { (case "(($ac_try" in |
| 9880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9881 | *) ac_try_echo=$ac_try;; |
| 9882 | esac |
| 9883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9884 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9885 | ac_status=$? |
| 9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9887 | (exit $ac_status); }; }; then |
| 9888 | ac_cv_lib_svld_dlopen=yes |
| 9889 | else |
| 9890 | echo "$as_me: failed program was:" >&5 |
| 9891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9893 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9894 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9895 | |
| 9896 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9897 | conftest$ac_exeext conftest.$ac_ext |
| 9898 | LIBS=$ac_check_lib_save_LIBS |
| 9899 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9900 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9901 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9902 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9903 | |
| 9904 | cat >>confdefs.h <<\_ACEOF |
| 9905 | #define HAVE_LIBDL 1 |
| 9906 | _ACEOF |
| 9907 | |
| 9908 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9909 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9910 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9911 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9912 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9914 | else |
| 9915 | ac_check_lib_save_LIBS=$LIBS |
| 9916 | LIBS="-ldld $LIBS" |
| 9917 | cat >conftest.$ac_ext <<_ACEOF |
| 9918 | /* confdefs.h. */ |
| 9919 | _ACEOF |
| 9920 | cat confdefs.h >>conftest.$ac_ext |
| 9921 | cat >>conftest.$ac_ext <<_ACEOF |
| 9922 | /* end confdefs.h. */ |
| 9923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9924 | /* Override any GCC internal prototype to avoid an error. |
| 9925 | Use char because int might match the return type of a GCC |
| 9926 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9927 | #ifdef __cplusplus |
| 9928 | extern "C" |
| 9929 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9930 | char dld_link (); |
| 9931 | int |
| 9932 | main () |
| 9933 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9934 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9935 | ; |
| 9936 | return 0; |
| 9937 | } |
| 9938 | _ACEOF |
| 9939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9940 | if { (ac_try="$ac_link" |
| 9941 | case "(($ac_try" in |
| 9942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9943 | *) ac_try_echo=$ac_try;; |
| 9944 | esac |
| 9945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9946 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9947 | ac_status=$? |
| 9948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9949 | rm -f conftest.er1 |
| 9950 | cat conftest.err >&5 |
| 9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9952 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9954 | { (case "(($ac_try" in |
| 9955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9956 | *) ac_try_echo=$ac_try;; |
| 9957 | esac |
| 9958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9959 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9960 | ac_status=$? |
| 9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9962 | (exit $ac_status); }; } && |
| 9963 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9964 | { (case "(($ac_try" in |
| 9965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9966 | *) ac_try_echo=$ac_try;; |
| 9967 | esac |
| 9968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9969 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9970 | ac_status=$? |
| 9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9972 | (exit $ac_status); }; }; then |
| 9973 | ac_cv_lib_dld_dld_link=yes |
| 9974 | else |
| 9975 | echo "$as_me: failed program was:" >&5 |
| 9976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9978 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9979 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9980 | |
| 9981 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9982 | conftest$ac_exeext conftest.$ac_ext |
| 9983 | LIBS=$ac_check_lib_save_LIBS |
| 9984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9986 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9987 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9988 | |
| 9989 | cat >>confdefs.h <<\_ACEOF |
| 9990 | #define HAVE_DLD 1 |
| 9991 | _ACEOF |
| 9992 | |
| 9993 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9994 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9995 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 9996 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9997 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 9998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9999 | else |
| 10000 | cat >conftest.$ac_ext <<_ACEOF |
| 10001 | /* confdefs.h. */ |
| 10002 | _ACEOF |
| 10003 | cat confdefs.h >>conftest.$ac_ext |
| 10004 | cat >>conftest.$ac_ext <<_ACEOF |
| 10005 | /* end confdefs.h. */ |
| 10006 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10008 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10009 | |
| 10010 | /* System header to define __stub macros and hopefully few prototypes, |
| 10011 | which can conflict with char _dyld_func_lookup (); below. |
| 10012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10013 | <limits.h> exists even on freestanding compilers. */ |
| 10014 | |
| 10015 | #ifdef __STDC__ |
| 10016 | # include <limits.h> |
| 10017 | #else |
| 10018 | # include <assert.h> |
| 10019 | #endif |
| 10020 | |
| 10021 | #undef _dyld_func_lookup |
| 10022 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10023 | /* Override any GCC internal prototype to avoid an error. |
| 10024 | Use char because int might match the return type of a GCC |
| 10025 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10026 | #ifdef __cplusplus |
| 10027 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10028 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10029 | char _dyld_func_lookup (); |
| 10030 | /* The GNU C library defines this for functions which it implements |
| 10031 | to always fail with ENOSYS. Some functions are actually named |
| 10032 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10033 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10034 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10035 | #endif |
| 10036 | |
| 10037 | int |
| 10038 | main () |
| 10039 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10040 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10041 | ; |
| 10042 | return 0; |
| 10043 | } |
| 10044 | _ACEOF |
| 10045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10046 | if { (ac_try="$ac_link" |
| 10047 | case "(($ac_try" in |
| 10048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10049 | *) ac_try_echo=$ac_try;; |
| 10050 | esac |
| 10051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10052 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10053 | ac_status=$? |
| 10054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10055 | rm -f conftest.er1 |
| 10056 | cat conftest.err >&5 |
| 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10058 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10060 | { (case "(($ac_try" in |
| 10061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10062 | *) ac_try_echo=$ac_try;; |
| 10063 | esac |
| 10064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10065 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10066 | ac_status=$? |
| 10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10068 | (exit $ac_status); }; } && |
| 10069 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10070 | { (case "(($ac_try" in |
| 10071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10072 | *) ac_try_echo=$ac_try;; |
| 10073 | esac |
| 10074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10075 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10076 | ac_status=$? |
| 10077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10078 | (exit $ac_status); }; }; then |
| 10079 | ac_cv_func__dyld_func_lookup=yes |
| 10080 | else |
| 10081 | echo "$as_me: failed program was:" >&5 |
| 10082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10084 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10085 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10086 | |
| 10087 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10088 | conftest$ac_exeext conftest.$ac_ext |
| 10089 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10090 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10091 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10092 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10093 | |
| 10094 | cat >>confdefs.h <<\_ACEOF |
| 10095 | #define HAVE_DYLD 1 |
| 10096 | _ACEOF |
| 10097 | |
| 10098 | fi |
| 10099 | |
| 10100 | |
| 10101 | fi |
| 10102 | |
| 10103 | |
| 10104 | fi |
| 10105 | |
| 10106 | |
| 10107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10108 | |
| 10109 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10110 | conftest$ac_exeext conftest.$ac_ext |
| 10111 | |
| 10112 | fi |
| 10113 | |
| 10114 | |
| 10115 | fi |
| 10116 | |
| 10117 | |
| 10118 | fi |
| 10119 | |
| 10120 | |
| 10121 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10122 | then |
| 10123 | lt_save_LIBS="$LIBS" |
| 10124 | LIBS="$LIBS $LIBADD_DL" |
| 10125 | |
| 10126 | for ac_func in dlerror |
| 10127 | do |
| 10128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10129 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10131 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10133 | else |
| 10134 | cat >conftest.$ac_ext <<_ACEOF |
| 10135 | /* confdefs.h. */ |
| 10136 | _ACEOF |
| 10137 | cat confdefs.h >>conftest.$ac_ext |
| 10138 | cat >>conftest.$ac_ext <<_ACEOF |
| 10139 | /* end confdefs.h. */ |
| 10140 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10141 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10142 | #define $ac_func innocuous_$ac_func |
| 10143 | |
| 10144 | /* System header to define __stub macros and hopefully few prototypes, |
| 10145 | which can conflict with char $ac_func (); below. |
| 10146 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10147 | <limits.h> exists even on freestanding compilers. */ |
| 10148 | |
| 10149 | #ifdef __STDC__ |
| 10150 | # include <limits.h> |
| 10151 | #else |
| 10152 | # include <assert.h> |
| 10153 | #endif |
| 10154 | |
| 10155 | #undef $ac_func |
| 10156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10157 | /* Override any GCC internal prototype to avoid an error. |
| 10158 | Use char because int might match the return type of a GCC |
| 10159 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10160 | #ifdef __cplusplus |
| 10161 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10162 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10163 | char $ac_func (); |
| 10164 | /* The GNU C library defines this for functions which it implements |
| 10165 | to always fail with ENOSYS. Some functions are actually named |
| 10166 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10167 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10168 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10169 | #endif |
| 10170 | |
| 10171 | int |
| 10172 | main () |
| 10173 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10174 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10175 | ; |
| 10176 | return 0; |
| 10177 | } |
| 10178 | _ACEOF |
| 10179 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10180 | if { (ac_try="$ac_link" |
| 10181 | case "(($ac_try" in |
| 10182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10183 | *) ac_try_echo=$ac_try;; |
| 10184 | esac |
| 10185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10186 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10187 | ac_status=$? |
| 10188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10189 | rm -f conftest.er1 |
| 10190 | cat conftest.err >&5 |
| 10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10192 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10194 | { (case "(($ac_try" in |
| 10195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10196 | *) ac_try_echo=$ac_try;; |
| 10197 | esac |
| 10198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10199 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10200 | ac_status=$? |
| 10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10202 | (exit $ac_status); }; } && |
| 10203 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10204 | { (case "(($ac_try" in |
| 10205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10206 | *) ac_try_echo=$ac_try;; |
| 10207 | esac |
| 10208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10209 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10210 | ac_status=$? |
| 10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10212 | (exit $ac_status); }; }; then |
| 10213 | eval "$as_ac_var=yes" |
| 10214 | else |
| 10215 | echo "$as_me: failed program was:" >&5 |
| 10216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10218 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10220 | |
| 10221 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10222 | conftest$ac_exeext conftest.$ac_ext |
| 10223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10224 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10226 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10227 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10228 | cat >>confdefs.h <<_ACEOF |
| 10229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10230 | _ACEOF |
| 10231 | |
| 10232 | fi |
| 10233 | done |
| 10234 | |
| 10235 | LIBS="$lt_save_LIBS" |
| 10236 | fi |
| 10237 | ac_ext=c |
| 10238 | ac_cpp='$CPP $CPPFLAGS' |
| 10239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10242 | |
| 10243 | |
| 10244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10245 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10246 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10247 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10249 | else |
| 10250 | ac_cv_sys_symbol_underscore=no |
| 10251 | cat > conftest.$ac_ext <<EOF |
| 10252 | void nm_test_func(){} |
| 10253 | int main(){nm_test_func;return 0;} |
| 10254 | EOF |
| 10255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10256 | (eval $ac_compile) 2>&5 |
| 10257 | ac_status=$? |
| 10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10259 | (exit $ac_status); }; then |
| 10260 | # Now try to grab the symbols. |
| 10261 | ac_nlist=conftest.nm |
| 10262 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10263 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10264 | ac_status=$? |
| 10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10266 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10267 | # See whether the symbols have a leading underscore. |
| 10268 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10269 | ac_cv_sys_symbol_underscore=yes |
| 10270 | else |
| 10271 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10272 | : |
| 10273 | else |
| 10274 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10275 | fi |
| 10276 | fi |
| 10277 | else |
| 10278 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10279 | fi |
| 10280 | else |
| 10281 | echo "configure: failed program was:" >&5 |
| 10282 | cat conftest.c >&5 |
| 10283 | fi |
| 10284 | rm -rf conftest* |
| 10285 | |
| 10286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10287 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10288 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10289 | |
| 10290 | |
| 10291 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10292 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10293 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10294 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10295 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10296 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10298 | else |
| 10299 | libltdl_cv_need_uscore=unknown |
| 10300 | save_LIBS="$LIBS" |
| 10301 | LIBS="$LIBS $LIBADD_DL" |
| 10302 | if test "$cross_compiling" = yes; then : |
| 10303 | libltdl_cv_need_uscore=cross |
| 10304 | else |
| 10305 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10306 | lt_status=$lt_dlunknown |
| 10307 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10308 | #line 10308 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10309 | #include "confdefs.h" |
| 10310 | |
| 10311 | #if HAVE_DLFCN_H |
| 10312 | #include <dlfcn.h> |
| 10313 | #endif |
| 10314 | |
| 10315 | #include <stdio.h> |
| 10316 | |
| 10317 | #ifdef RTLD_GLOBAL |
| 10318 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10319 | #else |
| 10320 | # ifdef DL_GLOBAL |
| 10321 | # define LT_DLGLOBAL DL_GLOBAL |
| 10322 | # else |
| 10323 | # define LT_DLGLOBAL 0 |
| 10324 | # endif |
| 10325 | #endif |
| 10326 | |
| 10327 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10328 | find out it does not work in some platform. */ |
| 10329 | #ifndef LT_DLLAZY_OR_NOW |
| 10330 | # ifdef RTLD_LAZY |
| 10331 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10332 | # else |
| 10333 | # ifdef DL_LAZY |
| 10334 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10335 | # else |
| 10336 | # ifdef RTLD_NOW |
| 10337 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10338 | # else |
| 10339 | # ifdef DL_NOW |
| 10340 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10341 | # else |
| 10342 | # define LT_DLLAZY_OR_NOW 0 |
| 10343 | # endif |
| 10344 | # endif |
| 10345 | # endif |
| 10346 | # endif |
| 10347 | #endif |
| 10348 | |
| 10349 | #ifdef __cplusplus |
| 10350 | extern "C" void exit (int); |
| 10351 | #endif |
| 10352 | |
| 10353 | void fnord() { int i=42;} |
| 10354 | int main () |
| 10355 | { |
| 10356 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10357 | int status = $lt_dlunknown; |
| 10358 | |
| 10359 | if (self) |
| 10360 | { |
| 10361 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10362 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10363 | /* dlclose (self); */ |
| 10364 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10365 | else |
| 10366 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10367 | |
| 10368 | exit (status); |
| 10369 | } |
| 10370 | EOF |
| 10371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10372 | (eval $ac_link) 2>&5 |
| 10373 | ac_status=$? |
| 10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10375 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10376 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10377 | lt_status=$? |
| 10378 | case x$lt_status in |
| 10379 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10380 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10381 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10382 | esac |
| 10383 | else : |
| 10384 | # compilation failed |
| 10385 | |
| 10386 | fi |
| 10387 | fi |
| 10388 | rm -fr conftest* |
| 10389 | |
| 10390 | LIBS="$save_LIBS" |
| 10391 | |
| 10392 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10393 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10394 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10395 | fi |
| 10396 | fi |
| 10397 | |
| 10398 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10399 | |
| 10400 | cat >>confdefs.h <<\_ACEOF |
| 10401 | #define NEED_USCORE 1 |
| 10402 | _ACEOF |
| 10403 | |
| 10404 | fi |
| 10405 | |
| 10406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10407 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10408 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10409 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10411 | else |
| 10412 | # PORTME does your system automatically load deplibs for dlopen? |
| 10413 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10414 | # For now, we just catch OSes we know something about -- in the |
| 10415 | # future, we'll try test this programmatically. |
| 10416 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10417 | case "$host_os" in |
| 10418 | aix3*|aix4.1.*|aix4.2.*) |
| 10419 | # Unknown whether this is true for these versions of AIX, but |
| 10420 | # we want this `case' here to explicitly catch those versions. |
| 10421 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10422 | ;; |
| 10423 | aix[45]*) |
| 10424 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10425 | ;; |
| 10426 | darwin*) |
| 10427 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10428 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10429 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10430 | ;; |
| 10431 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10432 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10433 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10434 | ;; |
| 10435 | hpux10*|hpux11*) |
| 10436 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10437 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10438 | interix*) |
| 10439 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10440 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10441 | irix[12345]*|irix6.[01]*) |
| 10442 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10443 | # know how it worked for any of those versions. |
| 10444 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10445 | ;; |
| 10446 | irix*) |
| 10447 | # The case above catches anything before 6.2, and it's known that |
| 10448 | # at 6.2 and later dlopen does load deplibs. |
| 10449 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10450 | ;; |
| 10451 | netbsd*) |
| 10452 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10453 | ;; |
| 10454 | openbsd*) |
| 10455 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10456 | ;; |
| 10457 | osf[1234]*) |
| 10458 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10459 | # it did *not* use an RPATH in a shared library to find objects the |
| 10460 | # library depends on, so we explictly say `no'. |
| 10461 | libltdl_cv_sys_dlopen_deplibs=no |
| 10462 | ;; |
| 10463 | osf5.0|osf5.0a|osf5.1) |
| 10464 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10465 | # it even uses RPATH in a shared library to search for shared objects |
| 10466 | # that the library depends on, but there's no easy way to know if that |
| 10467 | # patch is installed. Since this is the case, all we can really |
| 10468 | # say is unknown -- it depends on the patch being installed. If |
| 10469 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10470 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10471 | ;; |
| 10472 | osf*) |
| 10473 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10474 | # the comments above for what we know about them. |
| 10475 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10476 | # is used to find them so we can finally say `yes'. |
| 10477 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10478 | ;; |
| 10479 | solaris*) |
| 10480 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10481 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10482 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10483 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10484 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10485 | esac |
| 10486 | |
| 10487 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10488 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10489 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10490 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10491 | |
| 10492 | cat >>confdefs.h <<\_ACEOF |
| 10493 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10494 | _ACEOF |
| 10495 | |
| 10496 | fi |
| 10497 | |
| 10498 | |
| 10499 | for ac_header in argz.h |
| 10500 | do |
| 10501 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10502 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10503 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10507 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10508 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10509 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10510 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10511 | else |
| 10512 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10513 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10514 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10515 | cat >conftest.$ac_ext <<_ACEOF |
| 10516 | /* confdefs.h. */ |
| 10517 | _ACEOF |
| 10518 | cat confdefs.h >>conftest.$ac_ext |
| 10519 | cat >>conftest.$ac_ext <<_ACEOF |
| 10520 | /* end confdefs.h. */ |
| 10521 | $ac_includes_default |
| 10522 | #include <$ac_header> |
| 10523 | _ACEOF |
| 10524 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10525 | if { (ac_try="$ac_compile" |
| 10526 | case "(($ac_try" in |
| 10527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10528 | *) ac_try_echo=$ac_try;; |
| 10529 | esac |
| 10530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10531 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10532 | ac_status=$? |
| 10533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10534 | rm -f conftest.er1 |
| 10535 | cat conftest.err >&5 |
| 10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10537 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10539 | { (case "(($ac_try" in |
| 10540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10541 | *) ac_try_echo=$ac_try;; |
| 10542 | esac |
| 10543 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10544 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | ac_status=$? |
| 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10547 | (exit $ac_status); }; } && |
| 10548 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10549 | { (case "(($ac_try" in |
| 10550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10551 | *) ac_try_echo=$ac_try;; |
| 10552 | esac |
| 10553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10554 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10555 | ac_status=$? |
| 10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10557 | (exit $ac_status); }; }; then |
| 10558 | ac_header_compiler=yes |
| 10559 | else |
| 10560 | echo "$as_me: failed program was:" >&5 |
| 10561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10563 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10564 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10565 | |
| 10566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10567 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10568 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | |
| 10570 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10571 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10572 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10573 | cat >conftest.$ac_ext <<_ACEOF |
| 10574 | /* confdefs.h. */ |
| 10575 | _ACEOF |
| 10576 | cat confdefs.h >>conftest.$ac_ext |
| 10577 | cat >>conftest.$ac_ext <<_ACEOF |
| 10578 | /* end confdefs.h. */ |
| 10579 | #include <$ac_header> |
| 10580 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10581 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10582 | case "(($ac_try" in |
| 10583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10584 | *) ac_try_echo=$ac_try;; |
| 10585 | esac |
| 10586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10587 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | ac_status=$? |
| 10589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10590 | rm -f conftest.er1 |
| 10591 | cat conftest.err >&5 |
| 10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10593 | (exit $ac_status); } >/dev/null; then |
| 10594 | if test -s conftest.err; then |
| 10595 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10597 | else |
| 10598 | ac_cpp_err= |
| 10599 | fi |
| 10600 | else |
| 10601 | ac_cpp_err=yes |
| 10602 | fi |
| 10603 | if test -z "$ac_cpp_err"; then |
| 10604 | ac_header_preproc=yes |
| 10605 | else |
| 10606 | echo "$as_me: failed program was:" >&5 |
| 10607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10608 | |
| 10609 | ac_header_preproc=no |
| 10610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10611 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10612 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10613 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10614 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10615 | |
| 10616 | # So? What about this header? |
| 10617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10618 | yes:no: ) |
| 10619 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10620 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10622 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10623 | ac_header_preproc=yes |
| 10624 | ;; |
| 10625 | no:yes:* ) |
| 10626 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10627 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10628 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10629 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10630 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10631 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10632 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10633 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10634 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10635 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10636 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10637 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10638 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10639 | ## ----------------------------------- ## |
| 10640 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10641 | ## ----------------------------------- ## |
| 10642 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10643 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10644 | ;; |
| 10645 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10646 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10647 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10648 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10650 | else |
| 10651 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10652 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10653 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10654 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10655 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10656 | |
| 10657 | fi |
| 10658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10659 | cat >>confdefs.h <<_ACEOF |
| 10660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10661 | _ACEOF |
| 10662 | |
| 10663 | fi |
| 10664 | |
| 10665 | done |
| 10666 | |
| 10667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10668 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10669 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10670 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10672 | else |
| 10673 | cat >conftest.$ac_ext <<_ACEOF |
| 10674 | /* confdefs.h. */ |
| 10675 | _ACEOF |
| 10676 | cat confdefs.h >>conftest.$ac_ext |
| 10677 | cat >>conftest.$ac_ext <<_ACEOF |
| 10678 | /* end confdefs.h. */ |
| 10679 | #if HAVE_ARGZ_H |
| 10680 | # include <argz.h> |
| 10681 | #endif |
| 10682 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10683 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10684 | int |
| 10685 | main () |
| 10686 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10687 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10688 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10689 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | return 0; |
| 10691 | ; |
| 10692 | return 0; |
| 10693 | } |
| 10694 | _ACEOF |
| 10695 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10696 | if { (ac_try="$ac_compile" |
| 10697 | case "(($ac_try" in |
| 10698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10699 | *) ac_try_echo=$ac_try;; |
| 10700 | esac |
| 10701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10702 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10703 | ac_status=$? |
| 10704 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10705 | rm -f conftest.er1 |
| 10706 | cat conftest.err >&5 |
| 10707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10708 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10710 | { (case "(($ac_try" in |
| 10711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10712 | *) ac_try_echo=$ac_try;; |
| 10713 | esac |
| 10714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10715 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10716 | ac_status=$? |
| 10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10718 | (exit $ac_status); }; } && |
| 10719 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10720 | { (case "(($ac_try" in |
| 10721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10722 | *) ac_try_echo=$ac_try;; |
| 10723 | esac |
| 10724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10725 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10726 | ac_status=$? |
| 10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10728 | (exit $ac_status); }; }; then |
| 10729 | ac_cv_type_error_t=yes |
| 10730 | else |
| 10731 | echo "$as_me: failed program was:" >&5 |
| 10732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10734 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10736 | |
| 10737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10738 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10739 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10740 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10741 | if test $ac_cv_type_error_t = yes; then |
| 10742 | |
| 10743 | cat >>confdefs.h <<_ACEOF |
| 10744 | #define HAVE_ERROR_T 1 |
| 10745 | _ACEOF |
| 10746 | |
| 10747 | |
| 10748 | else |
| 10749 | |
| 10750 | cat >>confdefs.h <<\_ACEOF |
| 10751 | #define error_t int |
| 10752 | _ACEOF |
| 10753 | |
| 10754 | fi |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
| 10759 | |
| 10760 | |
| 10761 | |
| 10762 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10763 | do |
| 10764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10765 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10767 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10769 | else |
| 10770 | cat >conftest.$ac_ext <<_ACEOF |
| 10771 | /* confdefs.h. */ |
| 10772 | _ACEOF |
| 10773 | cat confdefs.h >>conftest.$ac_ext |
| 10774 | cat >>conftest.$ac_ext <<_ACEOF |
| 10775 | /* end confdefs.h. */ |
| 10776 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10778 | #define $ac_func innocuous_$ac_func |
| 10779 | |
| 10780 | /* System header to define __stub macros and hopefully few prototypes, |
| 10781 | which can conflict with char $ac_func (); below. |
| 10782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10783 | <limits.h> exists even on freestanding compilers. */ |
| 10784 | |
| 10785 | #ifdef __STDC__ |
| 10786 | # include <limits.h> |
| 10787 | #else |
| 10788 | # include <assert.h> |
| 10789 | #endif |
| 10790 | |
| 10791 | #undef $ac_func |
| 10792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10793 | /* Override any GCC internal prototype to avoid an error. |
| 10794 | Use char because int might match the return type of a GCC |
| 10795 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10796 | #ifdef __cplusplus |
| 10797 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10798 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10799 | char $ac_func (); |
| 10800 | /* The GNU C library defines this for functions which it implements |
| 10801 | to always fail with ENOSYS. Some functions are actually named |
| 10802 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10803 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10804 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10805 | #endif |
| 10806 | |
| 10807 | int |
| 10808 | main () |
| 10809 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10810 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10811 | ; |
| 10812 | return 0; |
| 10813 | } |
| 10814 | _ACEOF |
| 10815 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10816 | if { (ac_try="$ac_link" |
| 10817 | case "(($ac_try" in |
| 10818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10819 | *) ac_try_echo=$ac_try;; |
| 10820 | esac |
| 10821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10822 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10823 | ac_status=$? |
| 10824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10825 | rm -f conftest.er1 |
| 10826 | cat conftest.err >&5 |
| 10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10828 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10830 | { (case "(($ac_try" in |
| 10831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10832 | *) ac_try_echo=$ac_try;; |
| 10833 | esac |
| 10834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10835 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10836 | ac_status=$? |
| 10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10838 | (exit $ac_status); }; } && |
| 10839 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10840 | { (case "(($ac_try" in |
| 10841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10842 | *) ac_try_echo=$ac_try;; |
| 10843 | esac |
| 10844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10845 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10846 | ac_status=$? |
| 10847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10848 | (exit $ac_status); }; }; then |
| 10849 | eval "$as_ac_var=yes" |
| 10850 | else |
| 10851 | echo "$as_me: failed program was:" >&5 |
| 10852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10854 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10856 | |
| 10857 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10858 | conftest$ac_exeext conftest.$ac_ext |
| 10859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10860 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10861 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10862 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10863 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10864 | cat >>confdefs.h <<_ACEOF |
| 10865 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10866 | _ACEOF |
| 10867 | |
| 10868 | fi |
| 10869 | done |
| 10870 | |
| 10871 | |
| 10872 | |
| 10873 | |
| 10874 | |
| 10875 | |
| 10876 | |
| 10877 | |
| 10878 | |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
| 10884 | |
| 10885 | |
| 10886 | |
| 10887 | |
| 10888 | |
| 10889 | |
| 10890 | |
| 10891 | |
| 10892 | |
| 10893 | |
| 10894 | |
| 10895 | |
| 10896 | |
| 10897 | |
| 10898 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10899 | stdio.h unistd.h |
| 10900 | do |
| 10901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10902 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10903 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10905 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10908 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10909 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10910 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | else |
| 10912 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10913 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10914 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10915 | cat >conftest.$ac_ext <<_ACEOF |
| 10916 | /* confdefs.h. */ |
| 10917 | _ACEOF |
| 10918 | cat confdefs.h >>conftest.$ac_ext |
| 10919 | cat >>conftest.$ac_ext <<_ACEOF |
| 10920 | /* end confdefs.h. */ |
| 10921 | $ac_includes_default |
| 10922 | #include <$ac_header> |
| 10923 | _ACEOF |
| 10924 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10925 | if { (ac_try="$ac_compile" |
| 10926 | case "(($ac_try" in |
| 10927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10928 | *) ac_try_echo=$ac_try;; |
| 10929 | esac |
| 10930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10931 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10932 | ac_status=$? |
| 10933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10934 | rm -f conftest.er1 |
| 10935 | cat conftest.err >&5 |
| 10936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10937 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10938 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10939 | { (case "(($ac_try" in |
| 10940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10941 | *) ac_try_echo=$ac_try;; |
| 10942 | esac |
| 10943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10944 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10945 | ac_status=$? |
| 10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10947 | (exit $ac_status); }; } && |
| 10948 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10949 | { (case "(($ac_try" in |
| 10950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10951 | *) ac_try_echo=$ac_try;; |
| 10952 | esac |
| 10953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10954 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10955 | ac_status=$? |
| 10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10957 | (exit $ac_status); }; }; then |
| 10958 | ac_header_compiler=yes |
| 10959 | else |
| 10960 | echo "$as_me: failed program was:" >&5 |
| 10961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10963 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10964 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10965 | |
| 10966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10967 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10968 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10969 | |
| 10970 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10971 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10972 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10973 | cat >conftest.$ac_ext <<_ACEOF |
| 10974 | /* confdefs.h. */ |
| 10975 | _ACEOF |
| 10976 | cat confdefs.h >>conftest.$ac_ext |
| 10977 | cat >>conftest.$ac_ext <<_ACEOF |
| 10978 | /* end confdefs.h. */ |
| 10979 | #include <$ac_header> |
| 10980 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10981 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10982 | case "(($ac_try" in |
| 10983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10984 | *) ac_try_echo=$ac_try;; |
| 10985 | esac |
| 10986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10987 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10988 | ac_status=$? |
| 10989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10990 | rm -f conftest.er1 |
| 10991 | cat conftest.err >&5 |
| 10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 | (exit $ac_status); } >/dev/null; then |
| 10994 | if test -s conftest.err; then |
| 10995 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10996 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10997 | else |
| 10998 | ac_cpp_err= |
| 10999 | fi |
| 11000 | else |
| 11001 | ac_cpp_err=yes |
| 11002 | fi |
| 11003 | if test -z "$ac_cpp_err"; then |
| 11004 | ac_header_preproc=yes |
| 11005 | else |
| 11006 | echo "$as_me: failed program was:" >&5 |
| 11007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11008 | |
| 11009 | ac_header_preproc=no |
| 11010 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11011 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11013 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11014 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11015 | |
| 11016 | # So? What about this header? |
| 11017 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11018 | yes:no: ) |
| 11019 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11020 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11022 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11023 | ac_header_preproc=yes |
| 11024 | ;; |
| 11025 | no:yes:* ) |
| 11026 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11027 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11028 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11029 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11030 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11031 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11032 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11033 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11035 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11036 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11037 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11038 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11039 | ## ----------------------------------- ## |
| 11040 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11041 | ## ----------------------------------- ## |
| 11042 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11043 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11044 | ;; |
| 11045 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11046 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11047 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11048 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11050 | else |
| 11051 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11052 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11053 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11054 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11055 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11056 | |
| 11057 | fi |
| 11058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11059 | cat >>confdefs.h <<_ACEOF |
| 11060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11061 | _ACEOF |
| 11062 | |
| 11063 | fi |
| 11064 | |
| 11065 | done |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11072 | do |
| 11073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11079 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11080 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11082 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11083 | else |
| 11084 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11085 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11087 | cat >conftest.$ac_ext <<_ACEOF |
| 11088 | /* confdefs.h. */ |
| 11089 | _ACEOF |
| 11090 | cat confdefs.h >>conftest.$ac_ext |
| 11091 | cat >>conftest.$ac_ext <<_ACEOF |
| 11092 | /* end confdefs.h. */ |
| 11093 | $ac_includes_default |
| 11094 | #include <$ac_header> |
| 11095 | _ACEOF |
| 11096 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11097 | if { (ac_try="$ac_compile" |
| 11098 | case "(($ac_try" in |
| 11099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11100 | *) ac_try_echo=$ac_try;; |
| 11101 | esac |
| 11102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11103 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11104 | ac_status=$? |
| 11105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11106 | rm -f conftest.er1 |
| 11107 | cat conftest.err >&5 |
| 11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11109 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11111 | { (case "(($ac_try" in |
| 11112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11113 | *) ac_try_echo=$ac_try;; |
| 11114 | esac |
| 11115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11116 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11117 | ac_status=$? |
| 11118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11119 | (exit $ac_status); }; } && |
| 11120 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11121 | { (case "(($ac_try" in |
| 11122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11123 | *) ac_try_echo=$ac_try;; |
| 11124 | esac |
| 11125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11126 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11127 | ac_status=$? |
| 11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11129 | (exit $ac_status); }; }; then |
| 11130 | ac_header_compiler=yes |
| 11131 | else |
| 11132 | echo "$as_me: failed program was:" >&5 |
| 11133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11135 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11137 | |
| 11138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11139 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11140 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11141 | |
| 11142 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11143 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11144 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11145 | cat >conftest.$ac_ext <<_ACEOF |
| 11146 | /* confdefs.h. */ |
| 11147 | _ACEOF |
| 11148 | cat confdefs.h >>conftest.$ac_ext |
| 11149 | cat >>conftest.$ac_ext <<_ACEOF |
| 11150 | /* end confdefs.h. */ |
| 11151 | #include <$ac_header> |
| 11152 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11154 | case "(($ac_try" in |
| 11155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11156 | *) ac_try_echo=$ac_try;; |
| 11157 | esac |
| 11158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11159 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11160 | ac_status=$? |
| 11161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11162 | rm -f conftest.er1 |
| 11163 | cat conftest.err >&5 |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); } >/dev/null; then |
| 11166 | if test -s conftest.err; then |
| 11167 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11169 | else |
| 11170 | ac_cpp_err= |
| 11171 | fi |
| 11172 | else |
| 11173 | ac_cpp_err=yes |
| 11174 | fi |
| 11175 | if test -z "$ac_cpp_err"; then |
| 11176 | ac_header_preproc=yes |
| 11177 | else |
| 11178 | echo "$as_me: failed program was:" >&5 |
| 11179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11180 | |
| 11181 | ac_header_preproc=no |
| 11182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11183 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11184 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11185 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11186 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11187 | |
| 11188 | # So? What about this header? |
| 11189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11190 | yes:no: ) |
| 11191 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11192 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11194 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11195 | ac_header_preproc=yes |
| 11196 | ;; |
| 11197 | no:yes:* ) |
| 11198 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11199 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11200 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11201 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11202 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11203 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11204 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11205 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11208 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11209 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11210 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11211 | ## ----------------------------------- ## |
| 11212 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11213 | ## ----------------------------------- ## |
| 11214 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11215 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11216 | ;; |
| 11217 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11222 | else |
| 11223 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11225 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11226 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11227 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11228 | |
| 11229 | fi |
| 11230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11231 | cat >>confdefs.h <<_ACEOF |
| 11232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11233 | _ACEOF |
| 11234 | |
| 11235 | fi |
| 11236 | |
| 11237 | done |
| 11238 | |
| 11239 | |
| 11240 | |
| 11241 | for ac_header in string.h strings.h |
| 11242 | do |
| 11243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11244 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11245 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11247 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11249 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11250 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11251 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11252 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11253 | else |
| 11254 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11255 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11256 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11257 | cat >conftest.$ac_ext <<_ACEOF |
| 11258 | /* confdefs.h. */ |
| 11259 | _ACEOF |
| 11260 | cat confdefs.h >>conftest.$ac_ext |
| 11261 | cat >>conftest.$ac_ext <<_ACEOF |
| 11262 | /* end confdefs.h. */ |
| 11263 | $ac_includes_default |
| 11264 | #include <$ac_header> |
| 11265 | _ACEOF |
| 11266 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11267 | if { (ac_try="$ac_compile" |
| 11268 | case "(($ac_try" in |
| 11269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11270 | *) ac_try_echo=$ac_try;; |
| 11271 | esac |
| 11272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11273 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11274 | ac_status=$? |
| 11275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11276 | rm -f conftest.er1 |
| 11277 | cat conftest.err >&5 |
| 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11281 | { (case "(($ac_try" in |
| 11282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11283 | *) ac_try_echo=$ac_try;; |
| 11284 | esac |
| 11285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11286 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11287 | ac_status=$? |
| 11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11289 | (exit $ac_status); }; } && |
| 11290 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11291 | { (case "(($ac_try" in |
| 11292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11293 | *) ac_try_echo=$ac_try;; |
| 11294 | esac |
| 11295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11296 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11297 | ac_status=$? |
| 11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); }; }; then |
| 11300 | ac_header_compiler=yes |
| 11301 | else |
| 11302 | echo "$as_me: failed program was:" >&5 |
| 11303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11305 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11307 | |
| 11308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11309 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11310 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11311 | |
| 11312 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11313 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11314 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11315 | cat >conftest.$ac_ext <<_ACEOF |
| 11316 | /* confdefs.h. */ |
| 11317 | _ACEOF |
| 11318 | cat confdefs.h >>conftest.$ac_ext |
| 11319 | cat >>conftest.$ac_ext <<_ACEOF |
| 11320 | /* end confdefs.h. */ |
| 11321 | #include <$ac_header> |
| 11322 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11323 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11324 | case "(($ac_try" in |
| 11325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11326 | *) ac_try_echo=$ac_try;; |
| 11327 | esac |
| 11328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11329 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11330 | ac_status=$? |
| 11331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11332 | rm -f conftest.er1 |
| 11333 | cat conftest.err >&5 |
| 11334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11335 | (exit $ac_status); } >/dev/null; then |
| 11336 | if test -s conftest.err; then |
| 11337 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11338 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11339 | else |
| 11340 | ac_cpp_err= |
| 11341 | fi |
| 11342 | else |
| 11343 | ac_cpp_err=yes |
| 11344 | fi |
| 11345 | if test -z "$ac_cpp_err"; then |
| 11346 | ac_header_preproc=yes |
| 11347 | else |
| 11348 | echo "$as_me: failed program was:" >&5 |
| 11349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11350 | |
| 11351 | ac_header_preproc=no |
| 11352 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11353 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11354 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11355 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11356 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11357 | |
| 11358 | # So? What about this header? |
| 11359 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11360 | yes:no: ) |
| 11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11362 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11364 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11365 | ac_header_preproc=yes |
| 11366 | ;; |
| 11367 | no:yes:* ) |
| 11368 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11369 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11370 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11371 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11372 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11373 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11374 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11375 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11376 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11377 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11378 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11379 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11380 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11381 | ## ----------------------------------- ## |
| 11382 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11383 | ## ----------------------------------- ## |
| 11384 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11385 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11386 | ;; |
| 11387 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11388 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11392 | else |
| 11393 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11394 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11397 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11398 | |
| 11399 | fi |
| 11400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11401 | cat >>confdefs.h <<_ACEOF |
| 11402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11403 | _ACEOF |
| 11404 | break |
| 11405 | fi |
| 11406 | |
| 11407 | done |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | for ac_func in strchr index |
| 11413 | do |
| 11414 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11415 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11416 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11417 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11419 | else |
| 11420 | cat >conftest.$ac_ext <<_ACEOF |
| 11421 | /* confdefs.h. */ |
| 11422 | _ACEOF |
| 11423 | cat confdefs.h >>conftest.$ac_ext |
| 11424 | cat >>conftest.$ac_ext <<_ACEOF |
| 11425 | /* end confdefs.h. */ |
| 11426 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11427 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11428 | #define $ac_func innocuous_$ac_func |
| 11429 | |
| 11430 | /* System header to define __stub macros and hopefully few prototypes, |
| 11431 | which can conflict with char $ac_func (); below. |
| 11432 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11433 | <limits.h> exists even on freestanding compilers. */ |
| 11434 | |
| 11435 | #ifdef __STDC__ |
| 11436 | # include <limits.h> |
| 11437 | #else |
| 11438 | # include <assert.h> |
| 11439 | #endif |
| 11440 | |
| 11441 | #undef $ac_func |
| 11442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11443 | /* Override any GCC internal prototype to avoid an error. |
| 11444 | Use char because int might match the return type of a GCC |
| 11445 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11446 | #ifdef __cplusplus |
| 11447 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11448 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11449 | char $ac_func (); |
| 11450 | /* The GNU C library defines this for functions which it implements |
| 11451 | to always fail with ENOSYS. Some functions are actually named |
| 11452 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11453 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11454 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11455 | #endif |
| 11456 | |
| 11457 | int |
| 11458 | main () |
| 11459 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11460 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11461 | ; |
| 11462 | return 0; |
| 11463 | } |
| 11464 | _ACEOF |
| 11465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11466 | if { (ac_try="$ac_link" |
| 11467 | case "(($ac_try" in |
| 11468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11469 | *) ac_try_echo=$ac_try;; |
| 11470 | esac |
| 11471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11472 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11473 | ac_status=$? |
| 11474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11475 | rm -f conftest.er1 |
| 11476 | cat conftest.err >&5 |
| 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11478 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11480 | { (case "(($ac_try" in |
| 11481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11482 | *) ac_try_echo=$ac_try;; |
| 11483 | esac |
| 11484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11485 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11486 | ac_status=$? |
| 11487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11488 | (exit $ac_status); }; } && |
| 11489 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | { (case "(($ac_try" in |
| 11491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11492 | *) ac_try_echo=$ac_try;; |
| 11493 | esac |
| 11494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11495 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11496 | ac_status=$? |
| 11497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11498 | (exit $ac_status); }; }; then |
| 11499 | eval "$as_ac_var=yes" |
| 11500 | else |
| 11501 | echo "$as_me: failed program was:" >&5 |
| 11502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11503 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11504 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11506 | |
| 11507 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11508 | conftest$ac_exeext conftest.$ac_ext |
| 11509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11510 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11512 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11513 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11514 | cat >>confdefs.h <<_ACEOF |
| 11515 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11516 | _ACEOF |
| 11517 | break |
| 11518 | fi |
| 11519 | done |
| 11520 | |
| 11521 | |
| 11522 | |
| 11523 | for ac_func in strrchr rindex |
| 11524 | do |
| 11525 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11526 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11527 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11528 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11530 | else |
| 11531 | cat >conftest.$ac_ext <<_ACEOF |
| 11532 | /* confdefs.h. */ |
| 11533 | _ACEOF |
| 11534 | cat confdefs.h >>conftest.$ac_ext |
| 11535 | cat >>conftest.$ac_ext <<_ACEOF |
| 11536 | /* end confdefs.h. */ |
| 11537 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11538 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11539 | #define $ac_func innocuous_$ac_func |
| 11540 | |
| 11541 | /* System header to define __stub macros and hopefully few prototypes, |
| 11542 | which can conflict with char $ac_func (); below. |
| 11543 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11544 | <limits.h> exists even on freestanding compilers. */ |
| 11545 | |
| 11546 | #ifdef __STDC__ |
| 11547 | # include <limits.h> |
| 11548 | #else |
| 11549 | # include <assert.h> |
| 11550 | #endif |
| 11551 | |
| 11552 | #undef $ac_func |
| 11553 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11554 | /* Override any GCC internal prototype to avoid an error. |
| 11555 | Use char because int might match the return type of a GCC |
| 11556 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11557 | #ifdef __cplusplus |
| 11558 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11559 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11560 | char $ac_func (); |
| 11561 | /* The GNU C library defines this for functions which it implements |
| 11562 | to always fail with ENOSYS. Some functions are actually named |
| 11563 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11564 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11565 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11566 | #endif |
| 11567 | |
| 11568 | int |
| 11569 | main () |
| 11570 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11571 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11572 | ; |
| 11573 | return 0; |
| 11574 | } |
| 11575 | _ACEOF |
| 11576 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11577 | if { (ac_try="$ac_link" |
| 11578 | case "(($ac_try" in |
| 11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11580 | *) ac_try_echo=$ac_try;; |
| 11581 | esac |
| 11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11583 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11584 | ac_status=$? |
| 11585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11586 | rm -f conftest.er1 |
| 11587 | cat conftest.err >&5 |
| 11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11589 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11590 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11591 | { (case "(($ac_try" in |
| 11592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11593 | *) ac_try_echo=$ac_try;; |
| 11594 | esac |
| 11595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11596 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11597 | ac_status=$? |
| 11598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11599 | (exit $ac_status); }; } && |
| 11600 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11601 | { (case "(($ac_try" in |
| 11602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11603 | *) ac_try_echo=$ac_try;; |
| 11604 | esac |
| 11605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11606 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11607 | ac_status=$? |
| 11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11609 | (exit $ac_status); }; }; then |
| 11610 | eval "$as_ac_var=yes" |
| 11611 | else |
| 11612 | echo "$as_me: failed program was:" >&5 |
| 11613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11615 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11617 | |
| 11618 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11619 | conftest$ac_exeext conftest.$ac_ext |
| 11620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11621 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11622 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11623 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11624 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11625 | cat >>confdefs.h <<_ACEOF |
| 11626 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11627 | _ACEOF |
| 11628 | break |
| 11629 | fi |
| 11630 | done |
| 11631 | |
| 11632 | |
| 11633 | |
| 11634 | for ac_func in memcpy bcopy |
| 11635 | do |
| 11636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11637 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11639 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11641 | else |
| 11642 | cat >conftest.$ac_ext <<_ACEOF |
| 11643 | /* confdefs.h. */ |
| 11644 | _ACEOF |
| 11645 | cat confdefs.h >>conftest.$ac_ext |
| 11646 | cat >>conftest.$ac_ext <<_ACEOF |
| 11647 | /* end confdefs.h. */ |
| 11648 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11649 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11650 | #define $ac_func innocuous_$ac_func |
| 11651 | |
| 11652 | /* System header to define __stub macros and hopefully few prototypes, |
| 11653 | which can conflict with char $ac_func (); below. |
| 11654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11655 | <limits.h> exists even on freestanding compilers. */ |
| 11656 | |
| 11657 | #ifdef __STDC__ |
| 11658 | # include <limits.h> |
| 11659 | #else |
| 11660 | # include <assert.h> |
| 11661 | #endif |
| 11662 | |
| 11663 | #undef $ac_func |
| 11664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11665 | /* Override any GCC internal prototype to avoid an error. |
| 11666 | Use char because int might match the return type of a GCC |
| 11667 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11668 | #ifdef __cplusplus |
| 11669 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11670 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11671 | char $ac_func (); |
| 11672 | /* The GNU C library defines this for functions which it implements |
| 11673 | to always fail with ENOSYS. Some functions are actually named |
| 11674 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11675 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11676 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11677 | #endif |
| 11678 | |
| 11679 | int |
| 11680 | main () |
| 11681 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11682 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11683 | ; |
| 11684 | return 0; |
| 11685 | } |
| 11686 | _ACEOF |
| 11687 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11688 | if { (ac_try="$ac_link" |
| 11689 | case "(($ac_try" in |
| 11690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11691 | *) ac_try_echo=$ac_try;; |
| 11692 | esac |
| 11693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11694 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11695 | ac_status=$? |
| 11696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11697 | rm -f conftest.er1 |
| 11698 | cat conftest.err >&5 |
| 11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11700 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11702 | { (case "(($ac_try" in |
| 11703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11704 | *) ac_try_echo=$ac_try;; |
| 11705 | esac |
| 11706 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11707 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11708 | ac_status=$? |
| 11709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11710 | (exit $ac_status); }; } && |
| 11711 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11712 | { (case "(($ac_try" in |
| 11713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11714 | *) ac_try_echo=$ac_try;; |
| 11715 | esac |
| 11716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11717 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11718 | ac_status=$? |
| 11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11720 | (exit $ac_status); }; }; then |
| 11721 | eval "$as_ac_var=yes" |
| 11722 | else |
| 11723 | echo "$as_me: failed program was:" >&5 |
| 11724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11726 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11728 | |
| 11729 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11730 | conftest$ac_exeext conftest.$ac_ext |
| 11731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11732 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11733 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11734 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11735 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11736 | cat >>confdefs.h <<_ACEOF |
| 11737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11738 | _ACEOF |
| 11739 | break |
| 11740 | fi |
| 11741 | done |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | for ac_func in memmove strcmp |
| 11746 | do |
| 11747 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11748 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11749 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11750 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11752 | else |
| 11753 | cat >conftest.$ac_ext <<_ACEOF |
| 11754 | /* confdefs.h. */ |
| 11755 | _ACEOF |
| 11756 | cat confdefs.h >>conftest.$ac_ext |
| 11757 | cat >>conftest.$ac_ext <<_ACEOF |
| 11758 | /* end confdefs.h. */ |
| 11759 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11760 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11761 | #define $ac_func innocuous_$ac_func |
| 11762 | |
| 11763 | /* System header to define __stub macros and hopefully few prototypes, |
| 11764 | which can conflict with char $ac_func (); below. |
| 11765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11766 | <limits.h> exists even on freestanding compilers. */ |
| 11767 | |
| 11768 | #ifdef __STDC__ |
| 11769 | # include <limits.h> |
| 11770 | #else |
| 11771 | # include <assert.h> |
| 11772 | #endif |
| 11773 | |
| 11774 | #undef $ac_func |
| 11775 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11776 | /* Override any GCC internal prototype to avoid an error. |
| 11777 | Use char because int might match the return type of a GCC |
| 11778 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11779 | #ifdef __cplusplus |
| 11780 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11781 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11782 | char $ac_func (); |
| 11783 | /* The GNU C library defines this for functions which it implements |
| 11784 | to always fail with ENOSYS. Some functions are actually named |
| 11785 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11786 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11787 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11788 | #endif |
| 11789 | |
| 11790 | int |
| 11791 | main () |
| 11792 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11793 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11794 | ; |
| 11795 | return 0; |
| 11796 | } |
| 11797 | _ACEOF |
| 11798 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11799 | if { (ac_try="$ac_link" |
| 11800 | case "(($ac_try" in |
| 11801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11802 | *) ac_try_echo=$ac_try;; |
| 11803 | esac |
| 11804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11805 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11806 | ac_status=$? |
| 11807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11808 | rm -f conftest.er1 |
| 11809 | cat conftest.err >&5 |
| 11810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11811 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11813 | { (case "(($ac_try" in |
| 11814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11815 | *) ac_try_echo=$ac_try;; |
| 11816 | esac |
| 11817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11818 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11819 | ac_status=$? |
| 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11821 | (exit $ac_status); }; } && |
| 11822 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11823 | { (case "(($ac_try" in |
| 11824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11825 | *) ac_try_echo=$ac_try;; |
| 11826 | esac |
| 11827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11828 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11829 | ac_status=$? |
| 11830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11831 | (exit $ac_status); }; }; then |
| 11832 | eval "$as_ac_var=yes" |
| 11833 | else |
| 11834 | echo "$as_me: failed program was:" >&5 |
| 11835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11837 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11839 | |
| 11840 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11841 | conftest$ac_exeext conftest.$ac_ext |
| 11842 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11843 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11844 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11845 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11846 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11847 | cat >>confdefs.h <<_ACEOF |
| 11848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11849 | _ACEOF |
| 11850 | |
| 11851 | fi |
| 11852 | done |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
| 11857 | for ac_func in closedir opendir readdir |
| 11858 | do |
| 11859 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11860 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11861 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11862 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11864 | else |
| 11865 | cat >conftest.$ac_ext <<_ACEOF |
| 11866 | /* confdefs.h. */ |
| 11867 | _ACEOF |
| 11868 | cat confdefs.h >>conftest.$ac_ext |
| 11869 | cat >>conftest.$ac_ext <<_ACEOF |
| 11870 | /* end confdefs.h. */ |
| 11871 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11873 | #define $ac_func innocuous_$ac_func |
| 11874 | |
| 11875 | /* System header to define __stub macros and hopefully few prototypes, |
| 11876 | which can conflict with char $ac_func (); below. |
| 11877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11878 | <limits.h> exists even on freestanding compilers. */ |
| 11879 | |
| 11880 | #ifdef __STDC__ |
| 11881 | # include <limits.h> |
| 11882 | #else |
| 11883 | # include <assert.h> |
| 11884 | #endif |
| 11885 | |
| 11886 | #undef $ac_func |
| 11887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11888 | /* Override any GCC internal prototype to avoid an error. |
| 11889 | Use char because int might match the return type of a GCC |
| 11890 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11891 | #ifdef __cplusplus |
| 11892 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11893 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11894 | char $ac_func (); |
| 11895 | /* The GNU C library defines this for functions which it implements |
| 11896 | to always fail with ENOSYS. Some functions are actually named |
| 11897 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11898 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11899 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11900 | #endif |
| 11901 | |
| 11902 | int |
| 11903 | main () |
| 11904 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11905 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11906 | ; |
| 11907 | return 0; |
| 11908 | } |
| 11909 | _ACEOF |
| 11910 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11911 | if { (ac_try="$ac_link" |
| 11912 | case "(($ac_try" in |
| 11913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11914 | *) ac_try_echo=$ac_try;; |
| 11915 | esac |
| 11916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11917 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11918 | ac_status=$? |
| 11919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11920 | rm -f conftest.er1 |
| 11921 | cat conftest.err >&5 |
| 11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11923 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11925 | { (case "(($ac_try" in |
| 11926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11927 | *) ac_try_echo=$ac_try;; |
| 11928 | esac |
| 11929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11930 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11931 | ac_status=$? |
| 11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11933 | (exit $ac_status); }; } && |
| 11934 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11935 | { (case "(($ac_try" in |
| 11936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11937 | *) ac_try_echo=$ac_try;; |
| 11938 | esac |
| 11939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11940 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11941 | ac_status=$? |
| 11942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11943 | (exit $ac_status); }; }; then |
| 11944 | eval "$as_ac_var=yes" |
| 11945 | else |
| 11946 | echo "$as_me: failed program was:" >&5 |
| 11947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11948 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11949 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11950 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11951 | |
| 11952 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11953 | conftest$ac_exeext conftest.$ac_ext |
| 11954 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11955 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11956 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11957 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11958 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11959 | cat >>confdefs.h <<_ACEOF |
| 11960 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11961 | _ACEOF |
| 11962 | |
| 11963 | fi |
| 11964 | done |
| 11965 | |
| 11966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11967 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11968 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11969 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11970 | case $enableval in |
| 11971 | yes) enable_shared=yes ;; |
| 11972 | no) enable_shared=no ;; |
| 11973 | *) |
| 11974 | enable_shared=no |
| 11975 | # Look at the argument we got. We use all the common list separators. |
| 11976 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11977 | for pkg in $enableval; do |
| 11978 | IFS="$lt_save_ifs" |
| 11979 | if test "X$pkg" = "X$p"; then |
| 11980 | enable_shared=yes |
| 11981 | fi |
| 11982 | done |
| 11983 | IFS="$lt_save_ifs" |
| 11984 | ;; |
| 11985 | esac |
| 11986 | else |
| 11987 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11988 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11990 | |
| 11991 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11992 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11993 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11994 | case $enableval in |
| 11995 | yes) enable_static=yes ;; |
| 11996 | no) enable_static=no ;; |
| 11997 | *) |
| 11998 | enable_static=no |
| 11999 | # Look at the argument we got. We use all the common list separators. |
| 12000 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12001 | for pkg in $enableval; do |
| 12002 | IFS="$lt_save_ifs" |
| 12003 | if test "X$pkg" = "X$p"; then |
| 12004 | enable_static=yes |
| 12005 | fi |
| 12006 | done |
| 12007 | IFS="$lt_save_ifs" |
| 12008 | ;; |
| 12009 | esac |
| 12010 | else |
| 12011 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12012 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12014 | |
| 12015 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12016 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12017 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12018 | case $enableval in |
| 12019 | yes) enable_fast_install=yes ;; |
| 12020 | no) enable_fast_install=no ;; |
| 12021 | *) |
| 12022 | enable_fast_install=no |
| 12023 | # Look at the argument we got. We use all the common list separators. |
| 12024 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12025 | for pkg in $enableval; do |
| 12026 | IFS="$lt_save_ifs" |
| 12027 | if test "X$pkg" = "X$p"; then |
| 12028 | enable_fast_install=yes |
| 12029 | fi |
| 12030 | done |
| 12031 | IFS="$lt_save_ifs" |
| 12032 | ;; |
| 12033 | esac |
| 12034 | else |
| 12035 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12036 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12038 | |
| 12039 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12040 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12041 | if test "${lt_cv_path_SED+set}" = set; then |
| 12042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12043 | else |
| 12044 | # Loop through the user's path and test for sed and gsed. |
| 12045 | # Then use that list of sed's as ones to test for truncation. |
| 12046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12047 | for as_dir in $PATH |
| 12048 | do |
| 12049 | IFS=$as_save_IFS |
| 12050 | test -z "$as_dir" && as_dir=. |
| 12051 | for lt_ac_prog in sed gsed; do |
| 12052 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12053 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12054 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12055 | fi |
| 12056 | done |
| 12057 | done |
| 12058 | done |
| 12059 | lt_ac_max=0 |
| 12060 | lt_ac_count=0 |
| 12061 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12062 | # along with /bin/sed that truncates output. |
| 12063 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12064 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12065 | cat /dev/null > conftest.in |
| 12066 | lt_ac_count=0 |
| 12067 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12068 | # Check for GNU sed and select it if it is found. |
| 12069 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12070 | lt_cv_path_SED=$lt_ac_sed |
| 12071 | break |
| 12072 | fi |
| 12073 | while true; do |
| 12074 | cat conftest.in conftest.in >conftest.tmp |
| 12075 | mv conftest.tmp conftest.in |
| 12076 | cp conftest.in conftest.nl |
| 12077 | echo >>conftest.nl |
| 12078 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12079 | cmp -s conftest.out conftest.nl || break |
| 12080 | # 10000 chars as input seems more than enough |
| 12081 | test $lt_ac_count -gt 10 && break |
| 12082 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12083 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12084 | lt_ac_max=$lt_ac_count |
| 12085 | lt_cv_path_SED=$lt_ac_sed |
| 12086 | fi |
| 12087 | done |
| 12088 | done |
| 12089 | |
| 12090 | fi |
| 12091 | |
| 12092 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12093 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12094 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12095 | |
| 12096 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12097 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12098 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12099 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12100 | else |
| 12101 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12102 | fi |
| 12103 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12104 | ac_prog=ld |
| 12105 | if test "$GCC" = yes; then |
| 12106 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12107 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12108 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12109 | case $host in |
| 12110 | *-*-mingw*) |
| 12111 | # gcc leaves a trailing carriage return which upsets mingw |
| 12112 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12113 | *) |
| 12114 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12115 | esac |
| 12116 | case $ac_prog in |
| 12117 | # Accept absolute paths. |
| 12118 | [\\/]* | ?:[\\/]*) |
| 12119 | re_direlt='/[^/][^/]*/\.\./' |
| 12120 | # Canonicalize the pathname of ld |
| 12121 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12122 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12123 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12124 | done |
| 12125 | test -z "$LD" && LD="$ac_prog" |
| 12126 | ;; |
| 12127 | "") |
| 12128 | # If it fails, then pretend we aren't using GCC. |
| 12129 | ac_prog=ld |
| 12130 | ;; |
| 12131 | *) |
| 12132 | # If it is relative, then search for the first ld in PATH. |
| 12133 | with_gnu_ld=unknown |
| 12134 | ;; |
| 12135 | esac |
| 12136 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12137 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12138 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12139 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12140 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12141 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12142 | fi |
| 12143 | if test "${lt_cv_path_LD+set}" = set; then |
| 12144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12145 | else |
| 12146 | if test -z "$LD"; then |
| 12147 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12148 | for ac_dir in $PATH; do |
| 12149 | IFS="$lt_save_ifs" |
| 12150 | test -z "$ac_dir" && ac_dir=. |
| 12151 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12152 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12153 | # Check to see if the program is GNU ld. I'd rather use --version, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12154 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12155 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12156 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12157 | *GNU* | *'with BFD'*) |
| 12158 | test "$with_gnu_ld" != no && break |
| 12159 | ;; |
| 12160 | *) |
| 12161 | test "$with_gnu_ld" != yes && break |
| 12162 | ;; |
| 12163 | esac |
| 12164 | fi |
| 12165 | done |
| 12166 | IFS="$lt_save_ifs" |
| 12167 | else |
| 12168 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12169 | fi |
| 12170 | fi |
| 12171 | |
| 12172 | LD="$lt_cv_path_LD" |
| 12173 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12174 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12175 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12176 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12177 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12178 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12179 | fi |
| 12180 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12181 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12182 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12183 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12184 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12185 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12187 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12188 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12189 | case `$LD -v 2>&1 </dev/null` in |
| 12190 | *GNU* | *'with BFD'*) |
| 12191 | lt_cv_prog_gnu_ld=yes |
| 12192 | ;; |
| 12193 | *) |
| 12194 | lt_cv_prog_gnu_ld=no |
| 12195 | ;; |
| 12196 | esac |
| 12197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12198 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12199 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12200 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12201 | |
| 12202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12203 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12204 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12205 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12207 | else |
| 12208 | lt_cv_ld_reload_flag='-r' |
| 12209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12210 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12211 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12212 | reload_flag=$lt_cv_ld_reload_flag |
| 12213 | case $reload_flag in |
| 12214 | "" | " "*) ;; |
| 12215 | *) reload_flag=" $reload_flag" ;; |
| 12216 | esac |
| 12217 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12218 | case $host_os in |
| 12219 | darwin*) |
| 12220 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame^] | 12221 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12222 | else |
| 12223 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12224 | fi |
| 12225 | ;; |
| 12226 | esac |
| 12227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12228 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12229 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12230 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12232 | else |
| 12233 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12234 | lt_cv_file_magic_test_file= |
| 12235 | lt_cv_deplibs_check_method='unknown' |
| 12236 | # Need to set the preceding variable on all platforms that support |
| 12237 | # interlibrary dependencies. |
| 12238 | # 'none' -- dependencies not supported. |
| 12239 | # `unknown' -- same as none, but documents that we really don't know. |
| 12240 | # 'pass_all' -- all dependencies passed with no checks. |
| 12241 | # 'test_compile' -- check by making test program. |
| 12242 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12243 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12244 | # If you have `file' or equivalent on your system and you're not sure |
| 12245 | # whether `pass_all' will *always* work, you probably want this one. |
| 12246 | |
| 12247 | case $host_os in |
| 12248 | aix4* | aix5*) |
| 12249 | lt_cv_deplibs_check_method=pass_all |
| 12250 | ;; |
| 12251 | |
| 12252 | beos*) |
| 12253 | lt_cv_deplibs_check_method=pass_all |
| 12254 | ;; |
| 12255 | |
| 12256 | bsdi[45]*) |
| 12257 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12258 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12259 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12260 | ;; |
| 12261 | |
| 12262 | cygwin*) |
| 12263 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12264 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12265 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12266 | ;; |
| 12267 | |
| 12268 | mingw* | pw32*) |
| 12269 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12270 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12271 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12272 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12273 | ;; |
| 12274 | |
| 12275 | darwin* | rhapsody*) |
| 12276 | lt_cv_deplibs_check_method=pass_all |
| 12277 | ;; |
| 12278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12279 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12280 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12281 | case $host_cpu in |
| 12282 | i*86 ) |
| 12283 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12284 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12285 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12286 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12287 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12288 | ;; |
| 12289 | esac |
| 12290 | else |
| 12291 | lt_cv_deplibs_check_method=pass_all |
| 12292 | fi |
| 12293 | ;; |
| 12294 | |
| 12295 | gnu*) |
| 12296 | lt_cv_deplibs_check_method=pass_all |
| 12297 | ;; |
| 12298 | |
| 12299 | hpux10.20* | hpux11*) |
| 12300 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12301 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12302 | ia64*) |
| 12303 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12304 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12305 | ;; |
| 12306 | hppa*64*) |
| 12307 | 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]' |
| 12308 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12309 | ;; |
| 12310 | *) |
| 12311 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12312 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12313 | ;; |
| 12314 | esac |
| 12315 | ;; |
| 12316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12317 | interix3*) |
| 12318 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12319 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12320 | ;; |
| 12321 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12322 | irix5* | irix6* | nonstopux*) |
| 12323 | case $LD in |
| 12324 | *-32|*"-32 ") libmagic=32-bit;; |
| 12325 | *-n32|*"-n32 ") libmagic=N32;; |
| 12326 | *-64|*"-64 ") libmagic=64-bit;; |
| 12327 | *) libmagic=never-match;; |
| 12328 | esac |
| 12329 | lt_cv_deplibs_check_method=pass_all |
| 12330 | ;; |
| 12331 | |
| 12332 | # This must be Linux ELF. |
| 12333 | linux*) |
| 12334 | lt_cv_deplibs_check_method=pass_all |
| 12335 | ;; |
| 12336 | |
| 12337 | netbsd*) |
| 12338 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12339 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12340 | else |
| 12341 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12342 | fi |
| 12343 | ;; |
| 12344 | |
| 12345 | newos6*) |
| 12346 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12347 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12348 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12349 | ;; |
| 12350 | |
| 12351 | nto-qnx*) |
| 12352 | lt_cv_deplibs_check_method=unknown |
| 12353 | ;; |
| 12354 | |
| 12355 | openbsd*) |
| 12356 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12357 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12358 | else |
| 12359 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12360 | fi |
| 12361 | ;; |
| 12362 | |
| 12363 | osf3* | osf4* | osf5*) |
| 12364 | lt_cv_deplibs_check_method=pass_all |
| 12365 | ;; |
| 12366 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12367 | solaris*) |
| 12368 | lt_cv_deplibs_check_method=pass_all |
| 12369 | ;; |
| 12370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12371 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12372 | case $host_vendor in |
| 12373 | motorola) |
| 12374 | 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]' |
| 12375 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12376 | ;; |
| 12377 | ncr) |
| 12378 | lt_cv_deplibs_check_method=pass_all |
| 12379 | ;; |
| 12380 | sequent) |
| 12381 | lt_cv_file_magic_cmd='/bin/file' |
| 12382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12383 | ;; |
| 12384 | sni) |
| 12385 | lt_cv_file_magic_cmd='/bin/file' |
| 12386 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12387 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12388 | ;; |
| 12389 | siemens) |
| 12390 | lt_cv_deplibs_check_method=pass_all |
| 12391 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12392 | pc) |
| 12393 | lt_cv_deplibs_check_method=pass_all |
| 12394 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12395 | esac |
| 12396 | ;; |
| 12397 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12398 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12399 | lt_cv_deplibs_check_method=pass_all |
| 12400 | ;; |
| 12401 | esac |
| 12402 | |
| 12403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12404 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12405 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12406 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12407 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12408 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12409 | |
| 12410 | |
| 12411 | |
| 12412 | # If no C compiler was specified, use CC. |
| 12413 | LTCC=${LTCC-"$CC"} |
| 12414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12415 | # If no C compiler flags were specified, use CFLAGS. |
| 12416 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12417 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12418 | # Allow CC to be a program name with arguments. |
| 12419 | compiler=$CC |
| 12420 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12421 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12422 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12423 | enableval=$enable_libtool_lock; |
| 12424 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12425 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12426 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12427 | |
| 12428 | # Some flags need to be propagated to the compiler or linker for good |
| 12429 | # libtool support. |
| 12430 | case $host in |
| 12431 | ia64-*-hpux*) |
| 12432 | # Find out which ABI we are using. |
| 12433 | echo 'int i;' > conftest.$ac_ext |
| 12434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12435 | (eval $ac_compile) 2>&5 |
| 12436 | ac_status=$? |
| 12437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12438 | (exit $ac_status); }; then |
| 12439 | case `/usr/bin/file conftest.$ac_objext` in |
| 12440 | *ELF-32*) |
| 12441 | HPUX_IA64_MODE="32" |
| 12442 | ;; |
| 12443 | *ELF-64*) |
| 12444 | HPUX_IA64_MODE="64" |
| 12445 | ;; |
| 12446 | esac |
| 12447 | fi |
| 12448 | rm -rf conftest* |
| 12449 | ;; |
| 12450 | *-*-irix6*) |
| 12451 | # Find out which ABI we are using. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12452 | echo '#line 12452 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12454 | (eval $ac_compile) 2>&5 |
| 12455 | ac_status=$? |
| 12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12457 | (exit $ac_status); }; then |
| 12458 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12459 | case `/usr/bin/file conftest.$ac_objext` in |
| 12460 | *32-bit*) |
| 12461 | LD="${LD-ld} -melf32bsmip" |
| 12462 | ;; |
| 12463 | *N32*) |
| 12464 | LD="${LD-ld} -melf32bmipn32" |
| 12465 | ;; |
| 12466 | *64-bit*) |
| 12467 | LD="${LD-ld} -melf64bmip" |
| 12468 | ;; |
| 12469 | esac |
| 12470 | else |
| 12471 | case `/usr/bin/file conftest.$ac_objext` in |
| 12472 | *32-bit*) |
| 12473 | LD="${LD-ld} -32" |
| 12474 | ;; |
| 12475 | *N32*) |
| 12476 | LD="${LD-ld} -n32" |
| 12477 | ;; |
| 12478 | *64-bit*) |
| 12479 | LD="${LD-ld} -64" |
| 12480 | ;; |
| 12481 | esac |
| 12482 | fi |
| 12483 | fi |
| 12484 | rm -rf conftest* |
| 12485 | ;; |
| 12486 | |
| 12487 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12488 | # Find out which ABI we are using. |
| 12489 | echo 'int i;' > conftest.$ac_ext |
| 12490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12491 | (eval $ac_compile) 2>&5 |
| 12492 | ac_status=$? |
| 12493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12494 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12495 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12496 | *32-bit*) |
| 12497 | case $host in |
| 12498 | x86_64-*linux*) |
| 12499 | LD="${LD-ld} -m elf_i386" |
| 12500 | ;; |
| 12501 | ppc64-*linux*|powerpc64-*linux*) |
| 12502 | LD="${LD-ld} -m elf32ppclinux" |
| 12503 | ;; |
| 12504 | s390x-*linux*) |
| 12505 | LD="${LD-ld} -m elf_s390" |
| 12506 | ;; |
| 12507 | sparc64-*linux*) |
| 12508 | LD="${LD-ld} -m elf32_sparc" |
| 12509 | ;; |
| 12510 | esac |
| 12511 | ;; |
| 12512 | *64-bit*) |
| 12513 | case $host in |
| 12514 | x86_64-*linux*) |
| 12515 | LD="${LD-ld} -m elf_x86_64" |
| 12516 | ;; |
| 12517 | ppc*-*linux*|powerpc*-*linux*) |
| 12518 | LD="${LD-ld} -m elf64ppc" |
| 12519 | ;; |
| 12520 | s390*-*linux*) |
| 12521 | LD="${LD-ld} -m elf64_s390" |
| 12522 | ;; |
| 12523 | sparc*-*linux*) |
| 12524 | LD="${LD-ld} -m elf64_sparc" |
| 12525 | ;; |
| 12526 | esac |
| 12527 | ;; |
| 12528 | esac |
| 12529 | fi |
| 12530 | rm -rf conftest* |
| 12531 | ;; |
| 12532 | |
| 12533 | *-*-sco3.2v5*) |
| 12534 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12535 | SAVE_CFLAGS="$CFLAGS" |
| 12536 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12537 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12538 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12539 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12541 | else |
| 12542 | ac_ext=c |
| 12543 | ac_cpp='$CPP $CPPFLAGS' |
| 12544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12547 | |
| 12548 | cat >conftest.$ac_ext <<_ACEOF |
| 12549 | /* confdefs.h. */ |
| 12550 | _ACEOF |
| 12551 | cat confdefs.h >>conftest.$ac_ext |
| 12552 | cat >>conftest.$ac_ext <<_ACEOF |
| 12553 | /* end confdefs.h. */ |
| 12554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12555 | int |
| 12556 | main () |
| 12557 | { |
| 12558 | |
| 12559 | ; |
| 12560 | return 0; |
| 12561 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12562 | _ACEOF |
| 12563 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12564 | if { (ac_try="$ac_link" |
| 12565 | case "(($ac_try" in |
| 12566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12567 | *) ac_try_echo=$ac_try;; |
| 12568 | esac |
| 12569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12570 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12571 | ac_status=$? |
| 12572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12573 | rm -f conftest.er1 |
| 12574 | cat conftest.err >&5 |
| 12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12576 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12578 | { (case "(($ac_try" in |
| 12579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12580 | *) ac_try_echo=$ac_try;; |
| 12581 | esac |
| 12582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12583 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12584 | ac_status=$? |
| 12585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12586 | (exit $ac_status); }; } && |
| 12587 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12588 | { (case "(($ac_try" in |
| 12589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12590 | *) ac_try_echo=$ac_try;; |
| 12591 | esac |
| 12592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12593 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12594 | ac_status=$? |
| 12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12596 | (exit $ac_status); }; }; then |
| 12597 | lt_cv_cc_needs_belf=yes |
| 12598 | else |
| 12599 | echo "$as_me: failed program was:" >&5 |
| 12600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12602 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12604 | |
| 12605 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12606 | conftest$ac_exeext conftest.$ac_ext |
| 12607 | ac_ext=c |
| 12608 | ac_cpp='$CPP $CPPFLAGS' |
| 12609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12612 | |
| 12613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12614 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12615 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12616 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12617 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12618 | CFLAGS="$SAVE_CFLAGS" |
| 12619 | fi |
| 12620 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12621 | sparc*-*solaris*) |
| 12622 | # Find out which ABI we are using. |
| 12623 | echo 'int i;' > conftest.$ac_ext |
| 12624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12625 | (eval $ac_compile) 2>&5 |
| 12626 | ac_status=$? |
| 12627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12628 | (exit $ac_status); }; then |
| 12629 | case `/usr/bin/file conftest.o` in |
| 12630 | *64-bit*) |
| 12631 | case $lt_cv_prog_gnu_ld in |
| 12632 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12633 | *) LD="${LD-ld} -64" ;; |
| 12634 | esac |
| 12635 | ;; |
| 12636 | esac |
| 12637 | fi |
| 12638 | rm -rf conftest* |
| 12639 | ;; |
| 12640 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12641 | |
| 12642 | esac |
| 12643 | |
| 12644 | need_locks="$enable_libtool_lock" |
| 12645 | |
| 12646 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12647 | |
| 12648 | |
| 12649 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12650 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12651 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12652 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12653 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12654 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12655 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12656 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12657 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12658 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12659 | if test -z "$CXXCPP"; then |
| 12660 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12662 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12663 | # Double quotes because CXXCPP needs to be expanded |
| 12664 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12665 | do |
| 12666 | ac_preproc_ok=false |
| 12667 | for ac_cxx_preproc_warn_flag in '' yes |
| 12668 | do |
| 12669 | # Use a header file that comes with gcc, so configuring glibc |
| 12670 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12671 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12672 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12673 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12674 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12675 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12676 | /* confdefs.h. */ |
| 12677 | _ACEOF |
| 12678 | cat confdefs.h >>conftest.$ac_ext |
| 12679 | cat >>conftest.$ac_ext <<_ACEOF |
| 12680 | /* end confdefs.h. */ |
| 12681 | #ifdef __STDC__ |
| 12682 | # include <limits.h> |
| 12683 | #else |
| 12684 | # include <assert.h> |
| 12685 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12686 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12687 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12688 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12689 | case "(($ac_try" in |
| 12690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12691 | *) ac_try_echo=$ac_try;; |
| 12692 | esac |
| 12693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12694 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12695 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12696 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12697 | rm -f conftest.er1 |
| 12698 | cat conftest.err >&5 |
| 12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12700 | (exit $ac_status); } >/dev/null; then |
| 12701 | if test -s conftest.err; then |
| 12702 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12703 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12704 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12705 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12706 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12707 | else |
| 12708 | ac_cpp_err=yes |
| 12709 | fi |
| 12710 | if test -z "$ac_cpp_err"; then |
| 12711 | : |
| 12712 | else |
| 12713 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12715 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12716 | # Broken: fails on valid input. |
| 12717 | continue |
| 12718 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12719 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12720 | rm -f conftest.err conftest.$ac_ext |
| 12721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12722 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12723 | # can be detected and how. |
| 12724 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12725 | /* confdefs.h. */ |
| 12726 | _ACEOF |
| 12727 | cat confdefs.h >>conftest.$ac_ext |
| 12728 | cat >>conftest.$ac_ext <<_ACEOF |
| 12729 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12730 | #include <ac_nonexistent.h> |
| 12731 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12732 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12733 | case "(($ac_try" in |
| 12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12735 | *) ac_try_echo=$ac_try;; |
| 12736 | esac |
| 12737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12738 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12739 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12740 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12741 | rm -f conftest.er1 |
| 12742 | cat conftest.err >&5 |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); } >/dev/null; then |
| 12745 | if test -s conftest.err; then |
| 12746 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12747 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12748 | else |
| 12749 | ac_cpp_err= |
| 12750 | fi |
| 12751 | else |
| 12752 | ac_cpp_err=yes |
| 12753 | fi |
| 12754 | if test -z "$ac_cpp_err"; then |
| 12755 | # Broken: success on invalid input. |
| 12756 | continue |
| 12757 | else |
| 12758 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12760 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12761 | # Passes both tests. |
| 12762 | ac_preproc_ok=: |
| 12763 | break |
| 12764 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12766 | rm -f conftest.err conftest.$ac_ext |
| 12767 | |
| 12768 | done |
| 12769 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12770 | rm -f conftest.err conftest.$ac_ext |
| 12771 | if $ac_preproc_ok; then |
| 12772 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12773 | fi |
| 12774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12775 | done |
| 12776 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12777 | |
| 12778 | fi |
| 12779 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12780 | else |
| 12781 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12783 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12784 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12785 | ac_preproc_ok=false |
| 12786 | for ac_cxx_preproc_warn_flag in '' yes |
| 12787 | do |
| 12788 | # Use a header file that comes with gcc, so configuring glibc |
| 12789 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12790 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12791 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12792 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12793 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12794 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12795 | /* confdefs.h. */ |
| 12796 | _ACEOF |
| 12797 | cat confdefs.h >>conftest.$ac_ext |
| 12798 | cat >>conftest.$ac_ext <<_ACEOF |
| 12799 | /* end confdefs.h. */ |
| 12800 | #ifdef __STDC__ |
| 12801 | # include <limits.h> |
| 12802 | #else |
| 12803 | # include <assert.h> |
| 12804 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12805 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12806 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12807 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12808 | case "(($ac_try" in |
| 12809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12810 | *) ac_try_echo=$ac_try;; |
| 12811 | esac |
| 12812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12813 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12814 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12815 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12816 | rm -f conftest.er1 |
| 12817 | cat conftest.err >&5 |
| 12818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12819 | (exit $ac_status); } >/dev/null; then |
| 12820 | if test -s conftest.err; then |
| 12821 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12822 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12823 | else |
| 12824 | ac_cpp_err= |
| 12825 | fi |
| 12826 | else |
| 12827 | ac_cpp_err=yes |
| 12828 | fi |
| 12829 | if test -z "$ac_cpp_err"; then |
| 12830 | : |
| 12831 | else |
| 12832 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12834 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12835 | # Broken: fails on valid input. |
| 12836 | continue |
| 12837 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12839 | rm -f conftest.err conftest.$ac_ext |
| 12840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12841 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12842 | # can be detected and how. |
| 12843 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12844 | /* confdefs.h. */ |
| 12845 | _ACEOF |
| 12846 | cat confdefs.h >>conftest.$ac_ext |
| 12847 | cat >>conftest.$ac_ext <<_ACEOF |
| 12848 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12849 | #include <ac_nonexistent.h> |
| 12850 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12851 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12852 | case "(($ac_try" in |
| 12853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12854 | *) ac_try_echo=$ac_try;; |
| 12855 | esac |
| 12856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12857 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12858 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12859 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12860 | rm -f conftest.er1 |
| 12861 | cat conftest.err >&5 |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); } >/dev/null; then |
| 12864 | if test -s conftest.err; then |
| 12865 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12866 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12867 | else |
| 12868 | ac_cpp_err= |
| 12869 | fi |
| 12870 | else |
| 12871 | ac_cpp_err=yes |
| 12872 | fi |
| 12873 | if test -z "$ac_cpp_err"; then |
| 12874 | # Broken: success on invalid input. |
| 12875 | continue |
| 12876 | else |
| 12877 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12879 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12880 | # Passes both tests. |
| 12881 | ac_preproc_ok=: |
| 12882 | break |
| 12883 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12884 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12885 | rm -f conftest.err conftest.$ac_ext |
| 12886 | |
| 12887 | done |
| 12888 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12889 | rm -f conftest.err conftest.$ac_ext |
| 12890 | if $ac_preproc_ok; then |
| 12891 | : |
| 12892 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12893 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12894 | See \`config.log' for more details." >&5 |
| 12895 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12896 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12897 | { (exit 1); exit 1; }; } |
| 12898 | fi |
| 12899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12900 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12901 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12905 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12906 | fi |
| 12907 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12908 | |
| 12909 | ac_ext=f |
| 12910 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12911 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12912 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12913 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12914 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12915 | do |
| 12916 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12917 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12918 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12920 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12922 | else |
| 12923 | if test -n "$F77"; then |
| 12924 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12925 | else |
| 12926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12927 | for as_dir in $PATH |
| 12928 | do |
| 12929 | IFS=$as_save_IFS |
| 12930 | test -z "$as_dir" && as_dir=. |
| 12931 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12933 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12935 | break 2 |
| 12936 | fi |
| 12937 | done |
| 12938 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12939 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12940 | |
| 12941 | fi |
| 12942 | fi |
| 12943 | F77=$ac_cv_prog_F77 |
| 12944 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12945 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12946 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12947 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12949 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12950 | fi |
| 12951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12953 | test -n "$F77" && break |
| 12954 | done |
| 12955 | fi |
| 12956 | if test -z "$F77"; then |
| 12957 | ac_ct_F77=$F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12958 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12959 | do |
| 12960 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12961 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12962 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12964 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12966 | else |
| 12967 | if test -n "$ac_ct_F77"; then |
| 12968 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 12969 | else |
| 12970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12971 | for as_dir in $PATH |
| 12972 | do |
| 12973 | IFS=$as_save_IFS |
| 12974 | test -z "$as_dir" && as_dir=. |
| 12975 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12977 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 12978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12979 | break 2 |
| 12980 | fi |
| 12981 | done |
| 12982 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12984 | |
| 12985 | fi |
| 12986 | fi |
| 12987 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 12988 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12989 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 12990 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12991 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12992 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12993 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12994 | fi |
| 12995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12997 | test -n "$ac_ct_F77" && break |
| 12998 | done |
| 12999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13000 | if test "x$ac_ct_F77" = x; then |
| 13001 | F77="" |
| 13002 | else |
| 13003 | case $cross_compiling:$ac_tool_warned in |
| 13004 | yes:) |
| 13005 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13006 | whose name does not start with the host triplet. If you think this |
| 13007 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13008 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13009 | whose name does not start with the host triplet. If you think this |
| 13010 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13011 | ac_tool_warned=yes ;; |
| 13012 | esac |
| 13013 | F77=$ac_ct_F77 |
| 13014 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13015 | fi |
| 13016 | |
| 13017 | |
| 13018 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13019 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13020 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13021 | { (ac_try="$ac_compiler --version >&5" |
| 13022 | case "(($ac_try" in |
| 13023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13024 | *) ac_try_echo=$ac_try;; |
| 13025 | esac |
| 13026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13027 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13028 | ac_status=$? |
| 13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13030 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13031 | { (ac_try="$ac_compiler -v >&5" |
| 13032 | case "(($ac_try" in |
| 13033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13034 | *) ac_try_echo=$ac_try;; |
| 13035 | esac |
| 13036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13037 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13038 | ac_status=$? |
| 13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13040 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13041 | { (ac_try="$ac_compiler -V >&5" |
| 13042 | case "(($ac_try" in |
| 13043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13044 | *) ac_try_echo=$ac_try;; |
| 13045 | esac |
| 13046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13047 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13048 | ac_status=$? |
| 13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13050 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13051 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13052 | |
| 13053 | # If we don't use `.F' as extension, the preprocessor is not run on the |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13054 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13055 | ac_save_ext=$ac_ext |
| 13056 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13057 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13058 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13059 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13061 | else |
| 13062 | cat >conftest.$ac_ext <<_ACEOF |
| 13063 | program main |
| 13064 | #ifndef __GNUC__ |
| 13065 | choke me |
| 13066 | #endif |
| 13067 | |
| 13068 | end |
| 13069 | _ACEOF |
| 13070 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13071 | if { (ac_try="$ac_compile" |
| 13072 | case "(($ac_try" in |
| 13073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13074 | *) ac_try_echo=$ac_try;; |
| 13075 | esac |
| 13076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13077 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13078 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13080 | rm -f conftest.er1 |
| 13081 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13083 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13084 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13085 | { (case "(($ac_try" in |
| 13086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13087 | *) ac_try_echo=$ac_try;; |
| 13088 | esac |
| 13089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13090 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13091 | ac_status=$? |
| 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13093 | (exit $ac_status); }; } && |
| 13094 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13095 | { (case "(($ac_try" in |
| 13096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13097 | *) ac_try_echo=$ac_try;; |
| 13098 | esac |
| 13099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13100 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13101 | ac_status=$? |
| 13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13103 | (exit $ac_status); }; }; then |
| 13104 | ac_compiler_gnu=yes |
| 13105 | else |
| 13106 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13109 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13110 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13111 | |
| 13112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13113 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13114 | |
| 13115 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13116 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13117 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13118 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13119 | ac_test_FFLAGS=${FFLAGS+set} |
| 13120 | ac_save_FFLAGS=$FFLAGS |
| 13121 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13122 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13123 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13124 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13126 | else |
| 13127 | FFLAGS=-g |
| 13128 | cat >conftest.$ac_ext <<_ACEOF |
| 13129 | program main |
| 13130 | |
| 13131 | end |
| 13132 | _ACEOF |
| 13133 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13134 | if { (ac_try="$ac_compile" |
| 13135 | case "(($ac_try" in |
| 13136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13137 | *) ac_try_echo=$ac_try;; |
| 13138 | esac |
| 13139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13140 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13141 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13143 | rm -f conftest.er1 |
| 13144 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13147 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13148 | { (case "(($ac_try" in |
| 13149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13150 | *) ac_try_echo=$ac_try;; |
| 13151 | esac |
| 13152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13153 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13154 | ac_status=$? |
| 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13156 | (exit $ac_status); }; } && |
| 13157 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13158 | { (case "(($ac_try" in |
| 13159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13160 | *) ac_try_echo=$ac_try;; |
| 13161 | esac |
| 13162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13163 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13164 | ac_status=$? |
| 13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13166 | (exit $ac_status); }; }; then |
| 13167 | ac_cv_prog_f77_g=yes |
| 13168 | else |
| 13169 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13172 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13173 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13174 | |
| 13175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13176 | |
| 13177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13178 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13179 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13180 | if test "$ac_test_FFLAGS" = set; then |
| 13181 | FFLAGS=$ac_save_FFLAGS |
| 13182 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13183 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13184 | FFLAGS="-g -O2" |
| 13185 | else |
| 13186 | FFLAGS="-g" |
| 13187 | fi |
| 13188 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13189 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13190 | FFLAGS="-O2" |
| 13191 | else |
| 13192 | FFLAGS= |
| 13193 | fi |
| 13194 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13195 | |
| 13196 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13197 | ac_ext=c |
| 13198 | ac_cpp='$CPP $CPPFLAGS' |
| 13199 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13200 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13201 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13202 | |
| 13203 | |
| 13204 | |
| 13205 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13206 | |
| 13207 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13208 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13209 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13210 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13212 | else |
| 13213 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13214 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13215 | |
| 13216 | case $build_os in |
| 13217 | msdosdjgpp*) |
| 13218 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13219 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13220 | # during glob expansion). Even if it were fixed, the result of this |
| 13221 | # check would be larger than it should be. |
| 13222 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13223 | ;; |
| 13224 | |
| 13225 | gnu*) |
| 13226 | # Under GNU Hurd, this test is not required because there is |
| 13227 | # no limit to the length of command line arguments. |
| 13228 | # Libtool will interpret -1 as no limit whatsoever |
| 13229 | lt_cv_sys_max_cmd_len=-1; |
| 13230 | ;; |
| 13231 | |
| 13232 | cygwin* | mingw*) |
| 13233 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13234 | # about 5 minutes as the teststring grows exponentially. |
| 13235 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13236 | # you end up with a "frozen" computer, even though with patience |
| 13237 | # the test eventually succeeds (with a max line length of 256k). |
| 13238 | # Instead, let's just punt: use the minimum linelength reported by |
| 13239 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13240 | lt_cv_sys_max_cmd_len=8192; |
| 13241 | ;; |
| 13242 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13243 | amigaos*) |
| 13244 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13245 | # So we just punt and use a minimum line length of 8192. |
| 13246 | lt_cv_sys_max_cmd_len=8192; |
| 13247 | ;; |
| 13248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13249 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13250 | # This has been around since 386BSD, at least. Likely further. |
| 13251 | if test -x /sbin/sysctl; then |
| 13252 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13253 | elif test -x /usr/sbin/sysctl; then |
| 13254 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13255 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13256 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13257 | fi |
| 13258 | # And add a safety zone |
| 13259 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13260 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13261 | ;; |
| 13262 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13263 | interix*) |
| 13264 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13265 | lt_cv_sys_max_cmd_len=196608 |
| 13266 | ;; |
| 13267 | |
| 13268 | osf*) |
| 13269 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13270 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13271 | # nice to cause kernel panics so lets avoid the loop below. |
| 13272 | # First set a reasonable default. |
| 13273 | lt_cv_sys_max_cmd_len=16384 |
| 13274 | # |
| 13275 | if test -x /sbin/sysconfig; then |
| 13276 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13277 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13278 | esac |
| 13279 | fi |
| 13280 | ;; |
| 13281 | sco3.2v5*) |
| 13282 | lt_cv_sys_max_cmd_len=102400 |
| 13283 | ;; |
| 13284 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13285 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13286 | if test -n "$kargmax"; then |
| 13287 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13288 | else |
| 13289 | lt_cv_sys_max_cmd_len=32768 |
| 13290 | fi |
| 13291 | ;; |
| 13292 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13293 | # If test is not a shell built-in, we'll probably end up computing a |
| 13294 | # maximum length that is only half of the actual maximum length, but |
| 13295 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13296 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13297 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13298 | = "XX$teststring") >/dev/null 2>&1 && |
| 13299 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13300 | lt_cv_sys_max_cmd_len=$new_result && |
| 13301 | test $i != 17 # 1/2 MB should be enough |
| 13302 | do |
| 13303 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13304 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13305 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13306 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13307 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13308 | # amounts of additional arguments before passing them to the linker. |
| 13309 | # It appears as though 1/2 is a usable value. |
| 13310 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13311 | ;; |
| 13312 | esac |
| 13313 | |
| 13314 | fi |
| 13315 | |
| 13316 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13317 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13318 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13319 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13320 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13321 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13322 | fi |
| 13323 | |
| 13324 | |
| 13325 | |
| 13326 | |
| 13327 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13328 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13329 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13330 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13332 | else |
| 13333 | |
| 13334 | # These are sane defaults that work on at least a few old systems. |
| 13335 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13336 | |
| 13337 | # Character class describing NM global symbol codes. |
| 13338 | symcode='[BCDEGRST]' |
| 13339 | |
| 13340 | # Regexp to match symbols that can be accessed directly from C. |
| 13341 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13342 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 | # Transform an extracted symbol line into a proper C declaration |
| 13344 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13345 | |
| 13346 | # Transform an extracted symbol line into symbol name and symbol address |
| 13347 | 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'" |
| 13348 | |
| 13349 | # Define system-specific variables. |
| 13350 | case $host_os in |
| 13351 | aix*) |
| 13352 | symcode='[BCDT]' |
| 13353 | ;; |
| 13354 | cygwin* | mingw* | pw32*) |
| 13355 | symcode='[ABCDGISTW]' |
| 13356 | ;; |
| 13357 | hpux*) # Its linker distinguishes data from code symbols |
| 13358 | if test "$host_cpu" = ia64; then |
| 13359 | symcode='[ABCDEGRST]' |
| 13360 | fi |
| 13361 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13362 | 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'" |
| 13363 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13364 | linux*) |
| 13365 | if test "$host_cpu" = ia64; then |
| 13366 | symcode='[ABCDGIRSTW]' |
| 13367 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13368 | 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'" |
| 13369 | fi |
| 13370 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13371 | irix* | nonstopux*) |
| 13372 | symcode='[BCDEGRST]' |
| 13373 | ;; |
| 13374 | osf*) |
| 13375 | symcode='[BCDEGQRST]' |
| 13376 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13377 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13378 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13379 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13380 | sco3.2v5*) |
| 13381 | symcode='[DT]' |
| 13382 | ;; |
| 13383 | sysv4.2uw2*) |
| 13384 | symcode='[DT]' |
| 13385 | ;; |
| 13386 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13387 | symcode='[ABDT]' |
| 13388 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13389 | sysv4) |
| 13390 | symcode='[DFNSTU]' |
| 13391 | ;; |
| 13392 | esac |
| 13393 | |
| 13394 | # Handle CRLF in mingw tool chain |
| 13395 | opt_cr= |
| 13396 | case $build_os in |
| 13397 | mingw*) |
| 13398 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13399 | ;; |
| 13400 | esac |
| 13401 | |
| 13402 | # If we're using GNU nm, then use its standard symbol codes. |
| 13403 | case `$NM -V 2>&1` in |
| 13404 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13405 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13406 | esac |
| 13407 | |
| 13408 | # Try without a prefix undercore, then with it. |
| 13409 | for ac_symprfx in "" "_"; do |
| 13410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13412 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13413 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13414 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13415 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13416 | |
| 13417 | # Check to see that the pipe works correctly. |
| 13418 | pipe_works=no |
| 13419 | |
| 13420 | rm -f conftest* |
| 13421 | cat > conftest.$ac_ext <<EOF |
| 13422 | #ifdef __cplusplus |
| 13423 | extern "C" { |
| 13424 | #endif |
| 13425 | char nm_test_var; |
| 13426 | void nm_test_func(){} |
| 13427 | #ifdef __cplusplus |
| 13428 | } |
| 13429 | #endif |
| 13430 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13431 | EOF |
| 13432 | |
| 13433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13434 | (eval $ac_compile) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; then |
| 13438 | # Now try to grab the symbols. |
| 13439 | nlist=conftest.nm |
| 13440 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13441 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13442 | ac_status=$? |
| 13443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13444 | (exit $ac_status); } && test -s "$nlist"; then |
| 13445 | # Try sorting and uniquifying the output. |
| 13446 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13447 | mv -f "$nlist"T "$nlist" |
| 13448 | else |
| 13449 | rm -f "$nlist"T |
| 13450 | fi |
| 13451 | |
| 13452 | # Make sure that we snagged all the symbols we need. |
| 13453 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13454 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13455 | cat <<EOF > conftest.$ac_ext |
| 13456 | #ifdef __cplusplus |
| 13457 | extern "C" { |
| 13458 | #endif |
| 13459 | |
| 13460 | EOF |
| 13461 | # Now generate the symbol file. |
| 13462 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13463 | |
| 13464 | cat <<EOF >> conftest.$ac_ext |
| 13465 | #if defined (__STDC__) && __STDC__ |
| 13466 | # define lt_ptr_t void * |
| 13467 | #else |
| 13468 | # define lt_ptr_t char * |
| 13469 | # define const |
| 13470 | #endif |
| 13471 | |
| 13472 | /* The mapping between symbol names and symbols. */ |
| 13473 | const struct { |
| 13474 | const char *name; |
| 13475 | lt_ptr_t address; |
| 13476 | } |
| 13477 | lt_preloaded_symbols[] = |
| 13478 | { |
| 13479 | EOF |
| 13480 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13481 | cat <<\EOF >> conftest.$ac_ext |
| 13482 | {0, (lt_ptr_t) 0} |
| 13483 | }; |
| 13484 | |
| 13485 | #ifdef __cplusplus |
| 13486 | } |
| 13487 | #endif |
| 13488 | EOF |
| 13489 | # Now try linking the two files. |
| 13490 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13491 | lt_save_LIBS="$LIBS" |
| 13492 | lt_save_CFLAGS="$CFLAGS" |
| 13493 | LIBS="conftstm.$ac_objext" |
| 13494 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13496 | (eval $ac_link) 2>&5 |
| 13497 | ac_status=$? |
| 13498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13499 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13500 | pipe_works=yes |
| 13501 | fi |
| 13502 | LIBS="$lt_save_LIBS" |
| 13503 | CFLAGS="$lt_save_CFLAGS" |
| 13504 | else |
| 13505 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13506 | fi |
| 13507 | else |
| 13508 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13509 | fi |
| 13510 | else |
| 13511 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13512 | fi |
| 13513 | else |
| 13514 | echo "$progname: failed program was:" >&5 |
| 13515 | cat conftest.$ac_ext >&5 |
| 13516 | fi |
| 13517 | rm -f conftest* conftst* |
| 13518 | |
| 13519 | # Do not use the global_symbol_pipe unless it works. |
| 13520 | if test "$pipe_works" = yes; then |
| 13521 | break |
| 13522 | else |
| 13523 | lt_cv_sys_global_symbol_pipe= |
| 13524 | fi |
| 13525 | done |
| 13526 | |
| 13527 | fi |
| 13528 | |
| 13529 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13530 | lt_cv_sys_global_symbol_to_cdecl= |
| 13531 | fi |
| 13532 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13533 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13534 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13535 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13536 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13537 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 | fi |
| 13539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13540 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13541 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13542 | if test "${lt_cv_objdir+set}" = set; then |
| 13543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13544 | else |
| 13545 | rm -f .libs 2>/dev/null |
| 13546 | mkdir .libs 2>/dev/null |
| 13547 | if test -d .libs; then |
| 13548 | lt_cv_objdir=.libs |
| 13549 | else |
| 13550 | # MS-DOS does not allow filenames that begin with a dot. |
| 13551 | lt_cv_objdir=_libs |
| 13552 | fi |
| 13553 | rmdir .libs 2>/dev/null |
| 13554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13555 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13556 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13557 | objdir=$lt_cv_objdir |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | case $host_os in |
| 13564 | aix3*) |
| 13565 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13566 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13567 | # vanish in a puff of smoke. |
| 13568 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13569 | COLLECT_NAMES= |
| 13570 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13571 | fi |
| 13572 | ;; |
| 13573 | esac |
| 13574 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13575 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13576 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13577 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13578 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13579 | |
| 13580 | # Same as above, but do not quote variable references. |
| 13581 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13582 | |
| 13583 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13584 | # double_quote_subst'ed string. |
| 13585 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13586 | |
| 13587 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13588 | no_glob_subst='s/\*/\\\*/g' |
| 13589 | |
| 13590 | # Constants: |
| 13591 | rm="rm -f" |
| 13592 | |
| 13593 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13594 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13595 | can_build_shared=yes |
| 13596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13597 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13598 | # which needs '.lib'). |
| 13599 | libext=a |
| 13600 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13601 | ofile="$default_ofile" |
| 13602 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13603 | |
| 13604 | if test -n "$ac_tool_prefix"; then |
| 13605 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13606 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13607 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13608 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13609 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13611 | else |
| 13612 | if test -n "$AR"; then |
| 13613 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13614 | else |
| 13615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13616 | for as_dir in $PATH |
| 13617 | do |
| 13618 | IFS=$as_save_IFS |
| 13619 | test -z "$as_dir" && as_dir=. |
| 13620 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13622 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13624 | break 2 |
| 13625 | fi |
| 13626 | done |
| 13627 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13628 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13629 | |
| 13630 | fi |
| 13631 | fi |
| 13632 | AR=$ac_cv_prog_AR |
| 13633 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13634 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13635 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13636 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13637 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13638 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13639 | fi |
| 13640 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13641 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13642 | fi |
| 13643 | if test -z "$ac_cv_prog_AR"; then |
| 13644 | ac_ct_AR=$AR |
| 13645 | # Extract the first word of "ar", so it can be a program name with args. |
| 13646 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13649 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13651 | else |
| 13652 | if test -n "$ac_ct_AR"; then |
| 13653 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13654 | else |
| 13655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13656 | for as_dir in $PATH |
| 13657 | do |
| 13658 | IFS=$as_save_IFS |
| 13659 | test -z "$as_dir" && as_dir=. |
| 13660 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13662 | ac_cv_prog_ac_ct_AR="ar" |
| 13663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13664 | break 2 |
| 13665 | fi |
| 13666 | done |
| 13667 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13668 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13669 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13670 | fi |
| 13671 | fi |
| 13672 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13673 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13674 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13675 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13676 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13677 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13678 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13679 | fi |
| 13680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13681 | if test "x$ac_ct_AR" = x; then |
| 13682 | AR="false" |
| 13683 | else |
| 13684 | case $cross_compiling:$ac_tool_warned in |
| 13685 | yes:) |
| 13686 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13687 | whose name does not start with the host triplet. If you think this |
| 13688 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13689 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13690 | whose name does not start with the host triplet. If you think this |
| 13691 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13692 | ac_tool_warned=yes ;; |
| 13693 | esac |
| 13694 | AR=$ac_ct_AR |
| 13695 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13696 | else |
| 13697 | AR="$ac_cv_prog_AR" |
| 13698 | fi |
| 13699 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13700 | if test -n "$ac_tool_prefix"; then |
| 13701 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13702 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13703 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13705 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13707 | else |
| 13708 | if test -n "$RANLIB"; then |
| 13709 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13710 | else |
| 13711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13712 | for as_dir in $PATH |
| 13713 | do |
| 13714 | IFS=$as_save_IFS |
| 13715 | test -z "$as_dir" && as_dir=. |
| 13716 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13718 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13720 | break 2 |
| 13721 | fi |
| 13722 | done |
| 13723 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13724 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13725 | |
| 13726 | fi |
| 13727 | fi |
| 13728 | RANLIB=$ac_cv_prog_RANLIB |
| 13729 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13730 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13731 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13732 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13733 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13734 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13735 | fi |
| 13736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13737 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13738 | fi |
| 13739 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13740 | ac_ct_RANLIB=$RANLIB |
| 13741 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13742 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13745 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13747 | else |
| 13748 | if test -n "$ac_ct_RANLIB"; then |
| 13749 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13750 | else |
| 13751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13752 | for as_dir in $PATH |
| 13753 | do |
| 13754 | IFS=$as_save_IFS |
| 13755 | test -z "$as_dir" && as_dir=. |
| 13756 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13758 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13760 | break 2 |
| 13761 | fi |
| 13762 | done |
| 13763 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13764 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13765 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13766 | fi |
| 13767 | fi |
| 13768 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13769 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13770 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13771 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13772 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13773 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13774 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13775 | fi |
| 13776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | if test "x$ac_ct_RANLIB" = x; then |
| 13778 | RANLIB=":" |
| 13779 | else |
| 13780 | case $cross_compiling:$ac_tool_warned in |
| 13781 | yes:) |
| 13782 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13783 | whose name does not start with the host triplet. If you think this |
| 13784 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13785 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13786 | whose name does not start with the host triplet. If you think this |
| 13787 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13788 | ac_tool_warned=yes ;; |
| 13789 | esac |
| 13790 | RANLIB=$ac_ct_RANLIB |
| 13791 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13792 | else |
| 13793 | RANLIB="$ac_cv_prog_RANLIB" |
| 13794 | fi |
| 13795 | |
| 13796 | if test -n "$ac_tool_prefix"; then |
| 13797 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13798 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13801 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13803 | else |
| 13804 | if test -n "$STRIP"; then |
| 13805 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13806 | else |
| 13807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13808 | for as_dir in $PATH |
| 13809 | do |
| 13810 | IFS=$as_save_IFS |
| 13811 | test -z "$as_dir" && as_dir=. |
| 13812 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13814 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13816 | break 2 |
| 13817 | fi |
| 13818 | done |
| 13819 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13820 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13821 | |
| 13822 | fi |
| 13823 | fi |
| 13824 | STRIP=$ac_cv_prog_STRIP |
| 13825 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13826 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13827 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13828 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13829 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13830 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13831 | fi |
| 13832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13833 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13834 | fi |
| 13835 | if test -z "$ac_cv_prog_STRIP"; then |
| 13836 | ac_ct_STRIP=$STRIP |
| 13837 | # Extract the first word of "strip", so it can be a program name with args. |
| 13838 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13841 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13843 | else |
| 13844 | if test -n "$ac_ct_STRIP"; then |
| 13845 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13846 | else |
| 13847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13848 | for as_dir in $PATH |
| 13849 | do |
| 13850 | IFS=$as_save_IFS |
| 13851 | test -z "$as_dir" && as_dir=. |
| 13852 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13854 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13856 | break 2 |
| 13857 | fi |
| 13858 | done |
| 13859 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13860 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13861 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13862 | fi |
| 13863 | fi |
| 13864 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13865 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13866 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13867 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13868 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13870 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13871 | fi |
| 13872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13873 | if test "x$ac_ct_STRIP" = x; then |
| 13874 | STRIP=":" |
| 13875 | else |
| 13876 | case $cross_compiling:$ac_tool_warned in |
| 13877 | yes:) |
| 13878 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13879 | whose name does not start with the host triplet. If you think this |
| 13880 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13881 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13882 | whose name does not start with the host triplet. If you think this |
| 13883 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13884 | ac_tool_warned=yes ;; |
| 13885 | esac |
| 13886 | STRIP=$ac_ct_STRIP |
| 13887 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13888 | else |
| 13889 | STRIP="$ac_cv_prog_STRIP" |
| 13890 | fi |
| 13891 | |
| 13892 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13893 | old_CC="$CC" |
| 13894 | old_CFLAGS="$CFLAGS" |
| 13895 | |
| 13896 | # Set sane defaults for various variables |
| 13897 | test -z "$AR" && AR=ar |
| 13898 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13899 | test -z "$AS" && AS=as |
| 13900 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13901 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13902 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13903 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13904 | test -z "$LD" && LD=ld |
| 13905 | test -z "$LN_S" && LN_S="ln -s" |
| 13906 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13907 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13908 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13909 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13910 | test -z "$RANLIB" && RANLIB=: |
| 13911 | test -z "$STRIP" && STRIP=: |
| 13912 | test -z "$ac_objext" && ac_objext=o |
| 13913 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13914 | # Determine commands to create old-style static archives. |
| 13915 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13916 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13917 | old_postuninstall_cmds= |
| 13918 | |
| 13919 | if test -n "$RANLIB"; then |
| 13920 | case $host_os in |
| 13921 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13922 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13923 | ;; |
| 13924 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13925 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13926 | ;; |
| 13927 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13928 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13929 | fi |
| 13930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13931 | for cc_temp in $compiler""; do |
| 13932 | case $cc_temp in |
| 13933 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13934 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13935 | \-*) ;; |
| 13936 | *) break;; |
| 13937 | esac |
| 13938 | done |
| 13939 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13940 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13942 | # Only perform the check for file, if the check method requires it |
| 13943 | case $deplibs_check_method in |
| 13944 | file_magic*) |
| 13945 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13946 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13947 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13948 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13950 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13951 | case $MAGIC_CMD in |
| 13952 | [\\/*] | ?:[\\/]*) |
| 13953 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13954 | ;; |
| 13955 | *) |
| 13956 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13957 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13958 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13959 | for ac_dir in $ac_dummy; do |
| 13960 | IFS="$lt_save_ifs" |
| 13961 | test -z "$ac_dir" && ac_dir=. |
| 13962 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13963 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13964 | if test -n "$file_magic_test_file"; then |
| 13965 | case $deplibs_check_method in |
| 13966 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13967 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13968 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13969 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13970 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13971 | : |
| 13972 | else |
| 13973 | cat <<EOF 1>&2 |
| 13974 | |
| 13975 | *** Warning: the command libtool uses to detect shared libraries, |
| 13976 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13977 | *** The result is that libtool may fail to recognize shared libraries |
| 13978 | *** as such. This will affect the creation of libtool libraries that |
| 13979 | *** depend on shared libraries, but programs linked with such libtool |
| 13980 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13981 | *** may want to report the problem to your system manager and/or to |
| 13982 | *** bug-libtool@gnu.org |
| 13983 | |
| 13984 | EOF |
| 13985 | fi ;; |
| 13986 | esac |
| 13987 | fi |
| 13988 | break |
| 13989 | fi |
| 13990 | done |
| 13991 | IFS="$lt_save_ifs" |
| 13992 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13993 | ;; |
| 13994 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13995 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13996 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13997 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13998 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13999 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14000 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14001 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14003 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14004 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14005 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14006 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14007 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14008 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14009 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14010 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14012 | else |
| 14013 | case $MAGIC_CMD in |
| 14014 | [\\/*] | ?:[\\/]*) |
| 14015 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14016 | ;; |
| 14017 | *) |
| 14018 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14019 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14020 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14021 | for ac_dir in $ac_dummy; do |
| 14022 | IFS="$lt_save_ifs" |
| 14023 | test -z "$ac_dir" && ac_dir=. |
| 14024 | if test -f $ac_dir/file; then |
| 14025 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14026 | if test -n "$file_magic_test_file"; then |
| 14027 | case $deplibs_check_method in |
| 14028 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14029 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14030 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14031 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14032 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14033 | : |
| 14034 | else |
| 14035 | cat <<EOF 1>&2 |
| 14036 | |
| 14037 | *** Warning: the command libtool uses to detect shared libraries, |
| 14038 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14039 | *** The result is that libtool may fail to recognize shared libraries |
| 14040 | *** as such. This will affect the creation of libtool libraries that |
| 14041 | *** depend on shared libraries, but programs linked with such libtool |
| 14042 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14043 | *** may want to report the problem to your system manager and/or to |
| 14044 | *** bug-libtool@gnu.org |
| 14045 | |
| 14046 | EOF |
| 14047 | fi ;; |
| 14048 | esac |
| 14049 | fi |
| 14050 | break |
| 14051 | fi |
| 14052 | done |
| 14053 | IFS="$lt_save_ifs" |
| 14054 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14055 | ;; |
| 14056 | esac |
| 14057 | fi |
| 14058 | |
| 14059 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14060 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14061 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14062 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14063 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14064 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14065 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14066 | fi |
| 14067 | |
| 14068 | else |
| 14069 | MAGIC_CMD=: |
| 14070 | fi |
| 14071 | fi |
| 14072 | |
| 14073 | fi |
| 14074 | ;; |
| 14075 | esac |
| 14076 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14077 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14078 | enable_win32_dll=no |
| 14079 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14080 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14081 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14082 | enableval=$enable_libtool_lock; |
| 14083 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14084 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14085 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14088 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14089 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14090 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14091 | else |
| 14092 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14093 | fi |
| 14094 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14095 | test -z "$pic_mode" && pic_mode=default |
| 14096 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14097 | # Use C for the default configuration in the libtool script |
| 14098 | tagname= |
| 14099 | lt_save_CC="$CC" |
| 14100 | ac_ext=c |
| 14101 | ac_cpp='$CPP $CPPFLAGS' |
| 14102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14105 | |
| 14106 | |
| 14107 | # Source file extension for C test sources. |
| 14108 | ac_ext=c |
| 14109 | |
| 14110 | # Object file extension for compiled C test sources. |
| 14111 | objext=o |
| 14112 | objext=$objext |
| 14113 | |
| 14114 | # Code to be used in simple compile tests |
| 14115 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14116 | |
| 14117 | # Code to be used in simple link tests |
| 14118 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14119 | |
| 14120 | |
| 14121 | # If no C compiler was specified, use CC. |
| 14122 | LTCC=${LTCC-"$CC"} |
| 14123 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14124 | # If no C compiler flags were specified, use CFLAGS. |
| 14125 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14126 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14127 | # Allow CC to be a program name with arguments. |
| 14128 | compiler=$CC |
| 14129 | |
| 14130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14131 | # save warnings/boilerplate of simple test code |
| 14132 | ac_outfile=conftest.$ac_objext |
| 14133 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14134 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14135 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14136 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14138 | ac_outfile=conftest.$ac_objext |
| 14139 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14140 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14141 | _lt_linker_boilerplate=`cat conftest.err` |
| 14142 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14143 | |
| 14144 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14145 | |
| 14146 | lt_prog_compiler_no_builtin_flag= |
| 14147 | |
| 14148 | if test "$GCC" = yes; then |
| 14149 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14150 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14152 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14153 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14154 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14156 | else |
| 14157 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14158 | ac_outfile=conftest.$ac_objext |
| 14159 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14160 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14161 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14162 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14163 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14164 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14165 | # The option is referenced via a variable to avoid confusing sed. |
| 14166 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14167 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14168 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14169 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14170 | (eval echo "\"\$as_me:14170: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14171 | (eval "$lt_compile" 2>conftest.err) |
| 14172 | ac_status=$? |
| 14173 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14174 | echo "$as_me:14174: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14175 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14176 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14177 | # So say no if there are warnings other than the usual output. |
| 14178 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14179 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14180 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14181 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14182 | fi |
| 14183 | fi |
| 14184 | $rm conftest* |
| 14185 | |
| 14186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14187 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14188 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14189 | |
| 14190 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14191 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14192 | else |
| 14193 | : |
| 14194 | fi |
| 14195 | |
| 14196 | fi |
| 14197 | |
| 14198 | lt_prog_compiler_wl= |
| 14199 | lt_prog_compiler_pic= |
| 14200 | lt_prog_compiler_static= |
| 14201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14202 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14203 | 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] | 14204 | |
| 14205 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14206 | lt_prog_compiler_wl='-Wl,' |
| 14207 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14208 | |
| 14209 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14210 | aix*) |
| 14211 | # All AIX code is PIC. |
| 14212 | if test "$host_cpu" = ia64; then |
| 14213 | # AIX 5 now supports IA64 processor |
| 14214 | lt_prog_compiler_static='-Bstatic' |
| 14215 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14216 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14217 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14218 | amigaos*) |
| 14219 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14220 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14221 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14222 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14223 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14224 | |
| 14225 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14226 | # PIC is the default for these OSes. |
| 14227 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14228 | |
| 14229 | mingw* | pw32* | os2*) |
| 14230 | # This hack is so that the source file can tell whether it is being |
| 14231 | # built for inclusion in a dll (and should export symbols for example). |
| 14232 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14233 | ;; |
| 14234 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14235 | darwin* | rhapsody*) |
| 14236 | # PIC is the default on this platform |
| 14237 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14238 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14239 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14241 | interix3*) |
| 14242 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14243 | # Instead, we relocate shared libraries at runtime. |
| 14244 | ;; |
| 14245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | msdosdjgpp*) |
| 14247 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14248 | # on systems that don't support them. |
| 14249 | lt_prog_compiler_can_build_shared=no |
| 14250 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14251 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14253 | sysv4*MP*) |
| 14254 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14255 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14256 | fi |
| 14257 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14258 | |
| 14259 | hpux*) |
| 14260 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14261 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14262 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14263 | hppa*64*|ia64*) |
| 14264 | # +Z the default |
| 14265 | ;; |
| 14266 | *) |
| 14267 | lt_prog_compiler_pic='-fPIC' |
| 14268 | ;; |
| 14269 | esac |
| 14270 | ;; |
| 14271 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14272 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14273 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14274 | ;; |
| 14275 | esac |
| 14276 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14277 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14278 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14279 | aix*) |
| 14280 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14281 | if test "$host_cpu" = ia64; then |
| 14282 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14283 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14284 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14285 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14286 | fi |
| 14287 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14288 | darwin*) |
| 14289 | # PIC is the default on this platform |
| 14290 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14291 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14292 | xlc*) |
| 14293 | lt_prog_compiler_pic='-qnocommon' |
| 14294 | lt_prog_compiler_wl='-Wl,' |
| 14295 | ;; |
| 14296 | esac |
| 14297 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14298 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14299 | mingw* | pw32* | os2*) |
| 14300 | # This hack is so that the source file can tell whether it is being |
| 14301 | # built for inclusion in a dll (and should export symbols for example). |
| 14302 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14303 | ;; |
| 14304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14305 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14306 | lt_prog_compiler_wl='-Wl,' |
| 14307 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14308 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14309 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14310 | hppa*64*|ia64*) |
| 14311 | # +Z the default |
| 14312 | ;; |
| 14313 | *) |
| 14314 | lt_prog_compiler_pic='+Z' |
| 14315 | ;; |
| 14316 | esac |
| 14317 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14318 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14319 | ;; |
| 14320 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14321 | irix5* | irix6* | nonstopux*) |
| 14322 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14323 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14324 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14325 | ;; |
| 14326 | |
| 14327 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14328 | lt_prog_compiler_pic='-KPIC' |
| 14329 | lt_prog_compiler_static='-Bstatic' |
| 14330 | ;; |
| 14331 | |
| 14332 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14333 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14334 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14335 | lt_prog_compiler_wl='-Wl,' |
| 14336 | lt_prog_compiler_pic='-KPIC' |
| 14337 | lt_prog_compiler_static='-static' |
| 14338 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14339 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14340 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14341 | # which looks to be a dead project) |
| 14342 | lt_prog_compiler_wl='-Wl,' |
| 14343 | lt_prog_compiler_pic='-fpic' |
| 14344 | lt_prog_compiler_static='-Bstatic' |
| 14345 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14346 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14347 | lt_prog_compiler_wl='-Wl,' |
| 14348 | # All Alpha code is PIC. |
| 14349 | lt_prog_compiler_static='-non_shared' |
| 14350 | ;; |
| 14351 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14352 | ;; |
| 14353 | |
| 14354 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14355 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14356 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14357 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14358 | ;; |
| 14359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14360 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14361 | lt_prog_compiler_pic='-KPIC' |
| 14362 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14363 | case $cc_basename in |
| 14364 | f77* | f90* | f95*) |
| 14365 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14366 | *) |
| 14367 | lt_prog_compiler_wl='-Wl,';; |
| 14368 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14369 | ;; |
| 14370 | |
| 14371 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14372 | lt_prog_compiler_wl='-Qoption ld ' |
| 14373 | lt_prog_compiler_pic='-PIC' |
| 14374 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14375 | ;; |
| 14376 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14377 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14378 | lt_prog_compiler_wl='-Wl,' |
| 14379 | lt_prog_compiler_pic='-KPIC' |
| 14380 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14381 | ;; |
| 14382 | |
| 14383 | sysv4*MP*) |
| 14384 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14385 | lt_prog_compiler_pic='-Kconform_pic' |
| 14386 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14387 | fi |
| 14388 | ;; |
| 14389 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14390 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14391 | lt_prog_compiler_wl='-Wl,' |
| 14392 | lt_prog_compiler_pic='-KPIC' |
| 14393 | lt_prog_compiler_static='-Bstatic' |
| 14394 | ;; |
| 14395 | |
| 14396 | unicos*) |
| 14397 | lt_prog_compiler_wl='-Wl,' |
| 14398 | lt_prog_compiler_can_build_shared=no |
| 14399 | ;; |
| 14400 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14401 | uts4*) |
| 14402 | lt_prog_compiler_pic='-pic' |
| 14403 | lt_prog_compiler_static='-Bstatic' |
| 14404 | ;; |
| 14405 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14406 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14407 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14408 | ;; |
| 14409 | esac |
| 14410 | fi |
| 14411 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14412 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14413 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14414 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14415 | # |
| 14416 | # Check to make sure the PIC flag actually works. |
| 14417 | # |
| 14418 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14420 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14421 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14422 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14424 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14425 | lt_prog_compiler_pic_works=no |
| 14426 | ac_outfile=conftest.$ac_objext |
| 14427 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14428 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14429 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14430 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14431 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14432 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14433 | # The option is referenced via a variable to avoid confusing sed. |
| 14434 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14435 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14436 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14437 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14438 | (eval echo "\"\$as_me:14438: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14439 | (eval "$lt_compile" 2>conftest.err) |
| 14440 | ac_status=$? |
| 14441 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14442 | echo "$as_me:14442: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14443 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14444 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14445 | # So say no if there are warnings other than the usual output. |
| 14446 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14447 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14448 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14449 | lt_prog_compiler_pic_works=yes |
| 14450 | fi |
| 14451 | fi |
| 14452 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14453 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14455 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14456 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14457 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14458 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14459 | case $lt_prog_compiler_pic in |
| 14460 | "" | " "*) ;; |
| 14461 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14462 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14463 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14464 | lt_prog_compiler_pic= |
| 14465 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14466 | fi |
| 14467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14469 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14470 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14471 | *djgpp*) |
| 14472 | lt_prog_compiler_pic= |
| 14473 | ;; |
| 14474 | *) |
| 14475 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14476 | ;; |
| 14477 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14479 | # |
| 14480 | # Check to make sure the static flag actually works. |
| 14481 | # |
| 14482 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14483 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14484 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14485 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14487 | else |
| 14488 | lt_prog_compiler_static_works=no |
| 14489 | save_LDFLAGS="$LDFLAGS" |
| 14490 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14491 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14492 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14493 | # The linker can only warn and ignore the option if not recognized |
| 14494 | # So say no if there are warnings |
| 14495 | if test -s conftest.err; then |
| 14496 | # Append any errors to the config.log. |
| 14497 | cat conftest.err 1>&5 |
| 14498 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14500 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14501 | lt_prog_compiler_static_works=yes |
| 14502 | fi |
| 14503 | else |
| 14504 | lt_prog_compiler_static_works=yes |
| 14505 | fi |
| 14506 | fi |
| 14507 | $rm conftest* |
| 14508 | LDFLAGS="$save_LDFLAGS" |
| 14509 | |
| 14510 | fi |
| 14511 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14512 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14513 | |
| 14514 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14515 | : |
| 14516 | else |
| 14517 | lt_prog_compiler_static= |
| 14518 | fi |
| 14519 | |
| 14520 | |
| 14521 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14522 | 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] | 14523 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14525 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14526 | lt_cv_prog_compiler_c_o=no |
| 14527 | $rm -r conftest 2>/dev/null |
| 14528 | mkdir conftest |
| 14529 | cd conftest |
| 14530 | mkdir out |
| 14531 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14533 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14534 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14535 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14536 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14537 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14538 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14539 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14540 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14541 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14542 | (eval echo "\"\$as_me:14542: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14543 | (eval "$lt_compile" 2>out/conftest.err) |
| 14544 | ac_status=$? |
| 14545 | cat out/conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14546 | echo "$as_me:14546: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14547 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14548 | then |
| 14549 | # The compiler can only warn and ignore the option if not recognized |
| 14550 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14551 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14552 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14553 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14554 | lt_cv_prog_compiler_c_o=yes |
| 14555 | fi |
| 14556 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14557 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14558 | $rm conftest* |
| 14559 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14560 | # template instantiation |
| 14561 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14562 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14563 | cd .. |
| 14564 | rmdir conftest |
| 14565 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14566 | |
| 14567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14568 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14569 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14570 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14571 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14572 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14573 | 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] | 14574 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14575 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14576 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14577 | hard_links=yes |
| 14578 | $rm conftest* |
| 14579 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14580 | touch conftest.a |
| 14581 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14582 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14583 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14584 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14585 | if test "$hard_links" = no; then |
| 14586 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14587 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14588 | need_locks=warn |
| 14589 | fi |
| 14590 | else |
| 14591 | need_locks=no |
| 14592 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14594 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14595 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14596 | |
| 14597 | runpath_var= |
| 14598 | allow_undefined_flag= |
| 14599 | enable_shared_with_static_runtimes=no |
| 14600 | archive_cmds= |
| 14601 | archive_expsym_cmds= |
| 14602 | old_archive_From_new_cmds= |
| 14603 | old_archive_from_expsyms_cmds= |
| 14604 | export_dynamic_flag_spec= |
| 14605 | whole_archive_flag_spec= |
| 14606 | thread_safe_flag_spec= |
| 14607 | hardcode_libdir_flag_spec= |
| 14608 | hardcode_libdir_flag_spec_ld= |
| 14609 | hardcode_libdir_separator= |
| 14610 | hardcode_direct=no |
| 14611 | hardcode_minus_L=no |
| 14612 | hardcode_shlibpath_var=unsupported |
| 14613 | link_all_deplibs=unknown |
| 14614 | hardcode_automatic=no |
| 14615 | module_cmds= |
| 14616 | module_expsym_cmds= |
| 14617 | always_export_symbols=no |
| 14618 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14619 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14620 | # included in the symbol list |
| 14621 | include_expsyms= |
| 14622 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14623 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14624 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14625 | # as well as any symbol that contains `d'. |
| 14626 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14627 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14628 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14629 | # the symbol is explicitly referenced. Since portable code cannot |
| 14630 | # rely on this symbol name, it's probably fine to never include it in |
| 14631 | # preloaded symbol tables. |
| 14632 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14633 | # Just being paranoid about ensuring that cc_basename is set. |
| 14634 | for cc_temp in $compiler""; do |
| 14635 | case $cc_temp in |
| 14636 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14637 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14638 | \-*) ;; |
| 14639 | *) break;; |
| 14640 | esac |
| 14641 | done |
| 14642 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14643 | |
| 14644 | case $host_os in |
| 14645 | cygwin* | mingw* | pw32*) |
| 14646 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14647 | # When not using gcc, we currently assume that we are using |
| 14648 | # Microsoft Visual C++. |
| 14649 | if test "$GCC" != yes; then |
| 14650 | with_gnu_ld=no |
| 14651 | fi |
| 14652 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14653 | interix*) |
| 14654 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14655 | with_gnu_ld=yes |
| 14656 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14657 | openbsd*) |
| 14658 | with_gnu_ld=no |
| 14659 | ;; |
| 14660 | esac |
| 14661 | |
| 14662 | ld_shlibs=yes |
| 14663 | if test "$with_gnu_ld" = yes; then |
| 14664 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14665 | wlarc='${wl}' |
| 14666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14667 | # Set some defaults for GNU ld with shared library support. These |
| 14668 | # are reset later if shared libraries are not supported. Putting them |
| 14669 | # here allows them to be overridden if necessary. |
| 14670 | runpath_var=LD_RUN_PATH |
| 14671 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14672 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14673 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14674 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14675 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14676 | else |
| 14677 | whole_archive_flag_spec= |
| 14678 | fi |
| 14679 | supports_anon_versioning=no |
| 14680 | case `$LD -v 2>/dev/null` in |
| 14681 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14682 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14683 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14684 | *\ 2.11.*) ;; # other 2.11 versions |
| 14685 | *) supports_anon_versioning=yes ;; |
| 14686 | esac |
| 14687 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14688 | # See if GNU ld supports shared libraries. |
| 14689 | case $host_os in |
| 14690 | aix3* | aix4* | aix5*) |
| 14691 | # On AIX/PPC, the GNU linker is very broken |
| 14692 | if test "$host_cpu" != ia64; then |
| 14693 | ld_shlibs=no |
| 14694 | cat <<EOF 1>&2 |
| 14695 | |
| 14696 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14697 | *** to be unable to reliably create shared libraries on AIX. |
| 14698 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14699 | *** really care for shared libraries, you may want to modify your PATH |
| 14700 | *** so that a non-GNU linker is found, and then restart. |
| 14701 | |
| 14702 | EOF |
| 14703 | fi |
| 14704 | ;; |
| 14705 | |
| 14706 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14707 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14708 | hardcode_libdir_flag_spec='-L$libdir' |
| 14709 | hardcode_minus_L=yes |
| 14710 | |
| 14711 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14712 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14713 | # to version 4, is to share data among multiple programs linked |
| 14714 | # with the same dynamic library. Since this doesn't match the |
| 14715 | # behavior of shared libraries on other platforms, we can't use |
| 14716 | # them. |
| 14717 | ld_shlibs=no |
| 14718 | ;; |
| 14719 | |
| 14720 | beos*) |
| 14721 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14722 | allow_undefined_flag=unsupported |
| 14723 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14724 | # support --undefined. This deserves some investigation. FIXME |
| 14725 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14726 | else |
| 14727 | ld_shlibs=no |
| 14728 | fi |
| 14729 | ;; |
| 14730 | |
| 14731 | cygwin* | mingw* | pw32*) |
| 14732 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14733 | # as there is no search path for DLLs. |
| 14734 | hardcode_libdir_flag_spec='-L$libdir' |
| 14735 | allow_undefined_flag=unsupported |
| 14736 | always_export_symbols=no |
| 14737 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14738 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14739 | |
| 14740 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14741 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14742 | # If the export-symbols file already is a .def file (1st line |
| 14743 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14744 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14745 | cp $export_symbols $output_objdir/$soname.def; |
| 14746 | else |
| 14747 | echo EXPORTS > $output_objdir/$soname.def; |
| 14748 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14749 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14750 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14751 | else |
| 14752 | ld_shlibs=no |
| 14753 | fi |
| 14754 | ;; |
| 14755 | |
| 14756 | interix3*) |
| 14757 | hardcode_direct=no |
| 14758 | hardcode_shlibpath_var=no |
| 14759 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14760 | export_dynamic_flag_spec='${wl}-E' |
| 14761 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14762 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14763 | # default) and relocated if they conflict, which is a slow very memory |
| 14764 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14765 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14766 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14767 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14768 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14769 | ;; |
| 14770 | |
| 14771 | linux*) |
| 14772 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14773 | tmp_addflag= |
| 14774 | case $cc_basename,$host_cpu in |
| 14775 | pgcc*) # Portland Group C compiler |
| 14776 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14777 | tmp_addflag=' $pic_flag' |
| 14778 | ;; |
| 14779 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14780 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14781 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14782 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14783 | tmp_addflag=' -i_dynamic' ;; |
| 14784 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14785 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14786 | ifc* | ifort*) # Intel Fortran compiler |
| 14787 | tmp_addflag=' -nofor_main' ;; |
| 14788 | esac |
| 14789 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14790 | |
| 14791 | if test $supports_anon_versioning = yes; then |
| 14792 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14793 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14794 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14795 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14796 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14797 | else |
| 14798 | ld_shlibs=no |
| 14799 | fi |
| 14800 | ;; |
| 14801 | |
| 14802 | netbsd*) |
| 14803 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14804 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14805 | wlarc= |
| 14806 | else |
| 14807 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14808 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14809 | fi |
| 14810 | ;; |
| 14811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14812 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14813 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14814 | ld_shlibs=no |
| 14815 | cat <<EOF 1>&2 |
| 14816 | |
| 14817 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14818 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14819 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14820 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14821 | *** your PATH or compiler configuration so that the native linker is |
| 14822 | *** used, and then restart. |
| 14823 | |
| 14824 | EOF |
| 14825 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14826 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14827 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14828 | else |
| 14829 | ld_shlibs=no |
| 14830 | fi |
| 14831 | ;; |
| 14832 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14833 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14834 | case `$LD -v 2>&1` in |
| 14835 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14836 | ld_shlibs=no |
| 14837 | cat <<_LT_EOF 1>&2 |
| 14838 | |
| 14839 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14840 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14841 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14842 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14843 | *** your PATH or compiler configuration so that the native linker is |
| 14844 | *** used, and then restart. |
| 14845 | |
| 14846 | _LT_EOF |
| 14847 | ;; |
| 14848 | *) |
| 14849 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14850 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14851 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14852 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14853 | else |
| 14854 | ld_shlibs=no |
| 14855 | fi |
| 14856 | ;; |
| 14857 | esac |
| 14858 | ;; |
| 14859 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14860 | sunos4*) |
| 14861 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14862 | wlarc= |
| 14863 | hardcode_direct=yes |
| 14864 | hardcode_shlibpath_var=no |
| 14865 | ;; |
| 14866 | |
| 14867 | *) |
| 14868 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14869 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14870 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14871 | else |
| 14872 | ld_shlibs=no |
| 14873 | fi |
| 14874 | ;; |
| 14875 | esac |
| 14876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14877 | if test "$ld_shlibs" = no; then |
| 14878 | runpath_var= |
| 14879 | hardcode_libdir_flag_spec= |
| 14880 | export_dynamic_flag_spec= |
| 14881 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14882 | fi |
| 14883 | else |
| 14884 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14885 | case $host_os in |
| 14886 | aix3*) |
| 14887 | allow_undefined_flag=unsupported |
| 14888 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14889 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14890 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14891 | # are no directories specified by -L. |
| 14892 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14893 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14894 | # Neither direct hardcoding nor static linking is supported with a |
| 14895 | # broken collect2. |
| 14896 | hardcode_direct=unsupported |
| 14897 | fi |
| 14898 | ;; |
| 14899 | |
| 14900 | aix4* | aix5*) |
| 14901 | if test "$host_cpu" = ia64; then |
| 14902 | # On IA64, the linker does run time linking by default, so we don't |
| 14903 | # have to do anything special. |
| 14904 | aix_use_runtimelinking=no |
| 14905 | exp_sym_flag='-Bexport' |
| 14906 | no_entry_flag="" |
| 14907 | else |
| 14908 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14909 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14910 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14911 | 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' |
| 14912 | else |
| 14913 | 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' |
| 14914 | fi |
| 14915 | aix_use_runtimelinking=no |
| 14916 | |
| 14917 | # Test if we are trying to use run time linking or normal |
| 14918 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14919 | # need to do runtime linking. |
| 14920 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14921 | for ld_flag in $LDFLAGS; do |
| 14922 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14923 | aix_use_runtimelinking=yes |
| 14924 | break |
| 14925 | fi |
| 14926 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14927 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14928 | esac |
| 14929 | |
| 14930 | exp_sym_flag='-bexport' |
| 14931 | no_entry_flag='-bnoentry' |
| 14932 | fi |
| 14933 | |
| 14934 | # When large executables or shared objects are built, AIX ld can |
| 14935 | # have problems creating the table of contents. If linking a library |
| 14936 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14937 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14938 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14939 | |
| 14940 | archive_cmds='' |
| 14941 | hardcode_direct=yes |
| 14942 | hardcode_libdir_separator=':' |
| 14943 | link_all_deplibs=yes |
| 14944 | |
| 14945 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14946 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14947 | # We only want to do this on AIX 4.2 and lower, the check |
| 14948 | # below for broken collect2 doesn't work under 4.3+ |
| 14949 | collect2name=`${CC} -print-prog-name=collect2` |
| 14950 | if test -f "$collect2name" && \ |
| 14951 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14952 | then |
| 14953 | # We have reworked collect2 |
| 14954 | hardcode_direct=yes |
| 14955 | else |
| 14956 | # We have old collect2 |
| 14957 | hardcode_direct=unsupported |
| 14958 | # It fails to find uninstalled libraries when the uninstalled |
| 14959 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14960 | # to unsupported forces relinking |
| 14961 | hardcode_minus_L=yes |
| 14962 | hardcode_libdir_flag_spec='-L$libdir' |
| 14963 | hardcode_libdir_separator= |
| 14964 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14965 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14966 | esac |
| 14967 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14968 | if test "$aix_use_runtimelinking" = yes; then |
| 14969 | shared_flag="$shared_flag "'${wl}-G' |
| 14970 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14971 | else |
| 14972 | # not using gcc |
| 14973 | if test "$host_cpu" = ia64; then |
| 14974 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14975 | # chokes on -Wl,-G. The following line is correct: |
| 14976 | shared_flag='-G' |
| 14977 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14978 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14979 | shared_flag='${wl}-G' |
| 14980 | else |
| 14981 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14982 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14983 | fi |
| 14984 | fi |
| 14985 | |
| 14986 | # It seems that -bexpall does not export symbols beginning with |
| 14987 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14988 | always_export_symbols=yes |
| 14989 | if test "$aix_use_runtimelinking" = yes; then |
| 14990 | # Warning - without using the other runtime loading flags (-brtl), |
| 14991 | # -berok will link without error, but may produce a broken library. |
| 14992 | allow_undefined_flag='-berok' |
| 14993 | # Determine the default libpath from the value encoded in an empty executable. |
| 14994 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14995 | /* confdefs.h. */ |
| 14996 | _ACEOF |
| 14997 | cat confdefs.h >>conftest.$ac_ext |
| 14998 | cat >>conftest.$ac_ext <<_ACEOF |
| 14999 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15000 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15001 | int |
| 15002 | main () |
| 15003 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15005 | ; |
| 15006 | return 0; |
| 15007 | } |
| 15008 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15009 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15010 | if { (ac_try="$ac_link" |
| 15011 | case "(($ac_try" in |
| 15012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15013 | *) ac_try_echo=$ac_try;; |
| 15014 | esac |
| 15015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15016 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15017 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15019 | rm -f conftest.er1 |
| 15020 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15022 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15024 | { (case "(($ac_try" in |
| 15025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15026 | *) ac_try_echo=$ac_try;; |
| 15027 | esac |
| 15028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15029 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15030 | ac_status=$? |
| 15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15032 | (exit $ac_status); }; } && |
| 15033 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15034 | { (case "(($ac_try" in |
| 15035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15036 | *) ac_try_echo=$ac_try;; |
| 15037 | esac |
| 15038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15039 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15040 | ac_status=$? |
| 15041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15042 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15043 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15044 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15045 | }'` |
| 15046 | # Check for a 64-bit object if we didn't find anything. |
| 15047 | 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; } |
| 15048 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15049 | else |
| 15050 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15053 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15054 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15055 | |
| 15056 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15057 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15058 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15059 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15060 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15061 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15062 | else |
| 15063 | if test "$host_cpu" = ia64; then |
| 15064 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15065 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15066 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15067 | else |
| 15068 | # Determine the default libpath from the value encoded in an empty executable. |
| 15069 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15070 | /* confdefs.h. */ |
| 15071 | _ACEOF |
| 15072 | cat confdefs.h >>conftest.$ac_ext |
| 15073 | cat >>conftest.$ac_ext <<_ACEOF |
| 15074 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15075 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15076 | int |
| 15077 | main () |
| 15078 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15079 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15080 | ; |
| 15081 | return 0; |
| 15082 | } |
| 15083 | _ACEOF |
| 15084 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15085 | if { (ac_try="$ac_link" |
| 15086 | case "(($ac_try" in |
| 15087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15088 | *) ac_try_echo=$ac_try;; |
| 15089 | esac |
| 15090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15091 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15094 | rm -f conftest.er1 |
| 15095 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15097 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15099 | { (case "(($ac_try" in |
| 15100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15101 | *) ac_try_echo=$ac_try;; |
| 15102 | esac |
| 15103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15104 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15105 | ac_status=$? |
| 15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15107 | (exit $ac_status); }; } && |
| 15108 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15109 | { (case "(($ac_try" in |
| 15110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15111 | *) ac_try_echo=$ac_try;; |
| 15112 | esac |
| 15113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15114 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15115 | ac_status=$? |
| 15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15117 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15118 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15119 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15120 | }'` |
| 15121 | # Check for a 64-bit object if we didn't find anything. |
| 15122 | 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; } |
| 15123 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15124 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15125 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15128 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15130 | |
| 15131 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15132 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15133 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15134 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15135 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15136 | # Warning - without using the other run time loading flags, |
| 15137 | # -berok will link without error, but may produce a broken library. |
| 15138 | no_undefined_flag=' ${wl}-bernotok' |
| 15139 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15140 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15141 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15142 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15143 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15144 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15145 | fi |
| 15146 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15147 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15148 | |
| 15149 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15150 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15151 | hardcode_libdir_flag_spec='-L$libdir' |
| 15152 | hardcode_minus_L=yes |
| 15153 | # see comment about different semantics on the GNU ld section |
| 15154 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15155 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15156 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15157 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15158 | export_dynamic_flag_spec=-rdynamic |
| 15159 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15160 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15161 | cygwin* | mingw* | pw32*) |
| 15162 | # When not using gcc, we currently assume that we are using |
| 15163 | # Microsoft Visual C++. |
| 15164 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15165 | # no search path for DLLs. |
| 15166 | hardcode_libdir_flag_spec=' ' |
| 15167 | allow_undefined_flag=unsupported |
| 15168 | # Tell ltmain to make .lib files, not .a files. |
| 15169 | libext=lib |
| 15170 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15171 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15172 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15173 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15174 | # The linker will automatically build a .lib file if we build a DLL. |
| 15175 | old_archive_From_new_cmds='true' |
| 15176 | # FIXME: Should let the user specify the lib program. |
| 15177 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15178 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15179 | enable_shared_with_static_runtimes=yes |
| 15180 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15181 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15182 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15183 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15184 | rhapsody* | darwin1.[012]) |
| 15185 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15186 | ;; |
| 15187 | *) # Darwin 1.3 on |
| 15188 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15189 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15190 | else |
| 15191 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15192 | 10.[012]) |
| 15193 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15194 | ;; |
| 15195 | 10.*) |
| 15196 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15197 | ;; |
| 15198 | esac |
| 15199 | fi |
| 15200 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15201 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15202 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15203 | hardcode_direct=no |
| 15204 | hardcode_automatic=yes |
| 15205 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15206 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15207 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15208 | if test "$GCC" = yes ; then |
| 15209 | output_verbose_link_cmd='echo' |
| 15210 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15211 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15212 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15213 | 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}' |
| 15214 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15215 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15216 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15217 | xlc*) |
| 15218 | output_verbose_link_cmd='echo' |
| 15219 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15220 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15221 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15222 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 15223 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15224 | ;; |
| 15225 | *) |
| 15226 | ld_shlibs=no |
| 15227 | ;; |
| 15228 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15229 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15230 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15231 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15232 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15233 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15234 | hardcode_libdir_flag_spec='-L$libdir' |
| 15235 | hardcode_shlibpath_var=no |
| 15236 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15237 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15238 | freebsd1*) |
| 15239 | ld_shlibs=no |
| 15240 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15241 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15242 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15243 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15244 | # does not break anything, and helps significantly (at the cost of a little |
| 15245 | # extra space). |
| 15246 | freebsd2.2*) |
| 15247 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15248 | hardcode_libdir_flag_spec='-R$libdir' |
| 15249 | hardcode_direct=yes |
| 15250 | hardcode_shlibpath_var=no |
| 15251 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15252 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15253 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15254 | freebsd2*) |
| 15255 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15256 | hardcode_direct=yes |
| 15257 | hardcode_minus_L=yes |
| 15258 | hardcode_shlibpath_var=no |
| 15259 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15260 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15261 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15262 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15263 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15264 | hardcode_libdir_flag_spec='-R$libdir' |
| 15265 | hardcode_direct=yes |
| 15266 | hardcode_shlibpath_var=no |
| 15267 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15268 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15269 | hpux9*) |
| 15270 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15271 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15272 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15273 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15274 | fi |
| 15275 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15276 | hardcode_libdir_separator=: |
| 15277 | hardcode_direct=yes |
| 15278 | |
| 15279 | # hardcode_minus_L: Not really in the search PATH, |
| 15280 | # but as the default location of the library. |
| 15281 | hardcode_minus_L=yes |
| 15282 | export_dynamic_flag_spec='${wl}-E' |
| 15283 | ;; |
| 15284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15285 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15286 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15287 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15288 | else |
| 15289 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15290 | fi |
| 15291 | if test "$with_gnu_ld" = no; then |
| 15292 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15293 | hardcode_libdir_separator=: |
| 15294 | |
| 15295 | hardcode_direct=yes |
| 15296 | export_dynamic_flag_spec='${wl}-E' |
| 15297 | |
| 15298 | # hardcode_minus_L: Not really in the search PATH, |
| 15299 | # but as the default location of the library. |
| 15300 | hardcode_minus_L=yes |
| 15301 | fi |
| 15302 | ;; |
| 15303 | |
| 15304 | hpux11*) |
| 15305 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15306 | case $host_cpu in |
| 15307 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15308 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15309 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15310 | ia64*) |
| 15311 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15312 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15313 | *) |
| 15314 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15315 | ;; |
| 15316 | esac |
| 15317 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15318 | case $host_cpu in |
| 15319 | hppa*64*) |
| 15320 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15321 | ;; |
| 15322 | ia64*) |
| 15323 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15324 | ;; |
| 15325 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15326 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15327 | ;; |
| 15328 | esac |
| 15329 | fi |
| 15330 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15331 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15332 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15334 | case $host_cpu in |
| 15335 | hppa*64*|ia64*) |
| 15336 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15337 | hardcode_direct=no |
| 15338 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15339 | ;; |
| 15340 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15341 | hardcode_direct=yes |
| 15342 | export_dynamic_flag_spec='${wl}-E' |
| 15343 | |
| 15344 | # hardcode_minus_L: Not really in the search PATH, |
| 15345 | # but as the default location of the library. |
| 15346 | hardcode_minus_L=yes |
| 15347 | ;; |
| 15348 | esac |
| 15349 | fi |
| 15350 | ;; |
| 15351 | |
| 15352 | irix5* | irix6* | nonstopux*) |
| 15353 | if test "$GCC" = yes; then |
| 15354 | 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' |
| 15355 | else |
| 15356 | 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' |
| 15357 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15358 | fi |
| 15359 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15360 | hardcode_libdir_separator=: |
| 15361 | link_all_deplibs=yes |
| 15362 | ;; |
| 15363 | |
| 15364 | netbsd*) |
| 15365 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15366 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15367 | else |
| 15368 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15369 | fi |
| 15370 | hardcode_libdir_flag_spec='-R$libdir' |
| 15371 | hardcode_direct=yes |
| 15372 | hardcode_shlibpath_var=no |
| 15373 | ;; |
| 15374 | |
| 15375 | newsos6) |
| 15376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15377 | hardcode_direct=yes |
| 15378 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15379 | hardcode_libdir_separator=: |
| 15380 | hardcode_shlibpath_var=no |
| 15381 | ;; |
| 15382 | |
| 15383 | openbsd*) |
| 15384 | hardcode_direct=yes |
| 15385 | hardcode_shlibpath_var=no |
| 15386 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15387 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15388 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15389 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15390 | export_dynamic_flag_spec='${wl}-E' |
| 15391 | else |
| 15392 | case $host_os in |
| 15393 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15394 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15395 | hardcode_libdir_flag_spec='-R$libdir' |
| 15396 | ;; |
| 15397 | *) |
| 15398 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15399 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15400 | ;; |
| 15401 | esac |
| 15402 | fi |
| 15403 | ;; |
| 15404 | |
| 15405 | os2*) |
| 15406 | hardcode_libdir_flag_spec='-L$libdir' |
| 15407 | hardcode_minus_L=yes |
| 15408 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15409 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15410 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15411 | ;; |
| 15412 | |
| 15413 | osf3*) |
| 15414 | if test "$GCC" = yes; then |
| 15415 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15416 | 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' |
| 15417 | else |
| 15418 | allow_undefined_flag=' -expect_unresolved \*' |
| 15419 | 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' |
| 15420 | fi |
| 15421 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15422 | hardcode_libdir_separator=: |
| 15423 | ;; |
| 15424 | |
| 15425 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15426 | if test "$GCC" = yes; then |
| 15427 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15428 | 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' |
| 15429 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15430 | else |
| 15431 | allow_undefined_flag=' -expect_unresolved \*' |
| 15432 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15433 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15434 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15435 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15436 | # Both c and cxx compiler support -rpath directly |
| 15437 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15438 | fi |
| 15439 | hardcode_libdir_separator=: |
| 15440 | ;; |
| 15441 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15442 | solaris*) |
| 15443 | no_undefined_flag=' -z text' |
| 15444 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15445 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15446 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15447 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15448 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15449 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15450 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15451 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15452 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15453 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15454 | fi |
| 15455 | hardcode_libdir_flag_spec='-R$libdir' |
| 15456 | hardcode_shlibpath_var=no |
| 15457 | case $host_os in |
| 15458 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15459 | *) |
| 15460 | # The compiler driver will combine linker options so we |
| 15461 | # cannot just pass the convience library names through |
| 15462 | # without $wl, iff we do not link with $LD. |
| 15463 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15464 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15465 | case $wlarc in |
| 15466 | '') |
| 15467 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15468 | *) |
| 15469 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 15470 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15471 | esac |
| 15472 | link_all_deplibs=yes |
| 15473 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15474 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15475 | sunos4*) |
| 15476 | if test "x$host_vendor" = xsequent; then |
| 15477 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15478 | # files that make .init and .fini sections work. |
| 15479 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15480 | else |
| 15481 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15482 | fi |
| 15483 | hardcode_libdir_flag_spec='-L$libdir' |
| 15484 | hardcode_direct=yes |
| 15485 | hardcode_minus_L=yes |
| 15486 | hardcode_shlibpath_var=no |
| 15487 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15488 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15489 | sysv4) |
| 15490 | case $host_vendor in |
| 15491 | sni) |
| 15492 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15493 | hardcode_direct=yes # is this really true??? |
| 15494 | ;; |
| 15495 | siemens) |
| 15496 | ## LD is ld it makes a PLAMLIB |
| 15497 | ## CC just makes a GrossModule. |
| 15498 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15499 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15500 | hardcode_direct=no |
| 15501 | ;; |
| 15502 | motorola) |
| 15503 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15504 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15505 | ;; |
| 15506 | esac |
| 15507 | runpath_var='LD_RUN_PATH' |
| 15508 | hardcode_shlibpath_var=no |
| 15509 | ;; |
| 15510 | |
| 15511 | sysv4.3*) |
| 15512 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15513 | hardcode_shlibpath_var=no |
| 15514 | export_dynamic_flag_spec='-Bexport' |
| 15515 | ;; |
| 15516 | |
| 15517 | sysv4*MP*) |
| 15518 | if test -d /usr/nec; then |
| 15519 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15520 | hardcode_shlibpath_var=no |
| 15521 | runpath_var=LD_RUN_PATH |
| 15522 | hardcode_runpath_var=yes |
| 15523 | ld_shlibs=yes |
| 15524 | fi |
| 15525 | ;; |
| 15526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15527 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15528 | no_undefined_flag='${wl}-z,text' |
| 15529 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15530 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15531 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15532 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15533 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15534 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15535 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15536 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15537 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15538 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15539 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15540 | ;; |
| 15541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15542 | sysv5* | sco3.2v5* | sco5v6*) |
| 15543 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15544 | # link with -lc, and that would cause any symbols used from libc to |
| 15545 | # always be unresolved, which means just about no library would |
| 15546 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15547 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15548 | # as -z defs. |
| 15549 | no_undefined_flag='${wl}-z,text' |
| 15550 | allow_undefined_flag='${wl}-z,nodefs' |
| 15551 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15552 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15553 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15554 | hardcode_libdir_separator=':' |
| 15555 | link_all_deplibs=yes |
| 15556 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15557 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15558 | |
| 15559 | if test "$GCC" = yes; then |
| 15560 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15561 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15562 | else |
| 15563 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15564 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15565 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15566 | ;; |
| 15567 | |
| 15568 | uts4*) |
| 15569 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15570 | hardcode_libdir_flag_spec='-L$libdir' |
| 15571 | hardcode_shlibpath_var=no |
| 15572 | ;; |
| 15573 | |
| 15574 | *) |
| 15575 | ld_shlibs=no |
| 15576 | ;; |
| 15577 | esac |
| 15578 | fi |
| 15579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15580 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15581 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15582 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15583 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15584 | # |
| 15585 | # Do we need to explicitly link libc? |
| 15586 | # |
| 15587 | case "x$archive_cmds_need_lc" in |
| 15588 | x|xyes) |
| 15589 | # Assume -lc should be added |
| 15590 | archive_cmds_need_lc=yes |
| 15591 | |
| 15592 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15593 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15594 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15595 | # FIXME: we may have to deal with multi-command sequences. |
| 15596 | ;; |
| 15597 | '$CC '*) |
| 15598 | # Test whether the compiler implicitly links with -lc since on some |
| 15599 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15600 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15601 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15602 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15603 | $rm conftest* |
| 15604 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15605 | |
| 15606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15607 | (eval $ac_compile) 2>&5 |
| 15608 | ac_status=$? |
| 15609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15610 | (exit $ac_status); } 2>conftest.err; then |
| 15611 | soname=conftest |
| 15612 | lib=conftest |
| 15613 | libobjs=conftest.$ac_objext |
| 15614 | deplibs= |
| 15615 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15616 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15617 | compiler_flags=-v |
| 15618 | linker_flags=-v |
| 15619 | verstring= |
| 15620 | output_objdir=. |
| 15621 | libname=conftest |
| 15622 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15623 | allow_undefined_flag= |
| 15624 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15625 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15626 | ac_status=$? |
| 15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15628 | (exit $ac_status); } |
| 15629 | then |
| 15630 | archive_cmds_need_lc=no |
| 15631 | else |
| 15632 | archive_cmds_need_lc=yes |
| 15633 | fi |
| 15634 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15635 | else |
| 15636 | cat conftest.err 1>&5 |
| 15637 | fi |
| 15638 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15639 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15640 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15641 | ;; |
| 15642 | esac |
| 15643 | fi |
| 15644 | ;; |
| 15645 | esac |
| 15646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15647 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15648 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15649 | library_names_spec= |
| 15650 | libname_spec='lib$name' |
| 15651 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15652 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15653 | postinstall_cmds= |
| 15654 | postuninstall_cmds= |
| 15655 | finish_cmds= |
| 15656 | finish_eval= |
| 15657 | shlibpath_var= |
| 15658 | shlibpath_overrides_runpath=unknown |
| 15659 | version_type=none |
| 15660 | dynamic_linker="$host_os ld.so" |
| 15661 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15662 | if test "$GCC" = yes; then |
| 15663 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15664 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15665 | # if the path contains ";" then we assume it to be the separator |
| 15666 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15667 | # assumed that no part of a normal pathname contains ";" but that should |
| 15668 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15669 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15670 | else |
| 15671 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15672 | fi |
| 15673 | else |
| 15674 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15675 | fi |
| 15676 | need_lib_prefix=unknown |
| 15677 | hardcode_into_libs=no |
| 15678 | |
| 15679 | # when you set need_version to no, make sure it does not cause -set_version |
| 15680 | # flags to be left without arguments |
| 15681 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15682 | |
| 15683 | case $host_os in |
| 15684 | aix3*) |
| 15685 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15686 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15687 | shlibpath_var=LIBPATH |
| 15688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15689 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15690 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15691 | ;; |
| 15692 | |
| 15693 | aix4* | aix5*) |
| 15694 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15695 | need_lib_prefix=no |
| 15696 | need_version=no |
| 15697 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15698 | if test "$host_cpu" = ia64; then |
| 15699 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15700 | 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] | 15701 | shlibpath_var=LD_LIBRARY_PATH |
| 15702 | else |
| 15703 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15704 | # for dependence libraries. The import file would start with |
| 15705 | # the line `#! .'. This would cause the generated library to |
| 15706 | # depend on `.', always an invalid library. This was fixed in |
| 15707 | # development snapshots of GCC prior to 3.0. |
| 15708 | case $host_os in |
| 15709 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15710 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15711 | echo ' yes ' |
| 15712 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15713 | : |
| 15714 | else |
| 15715 | can_build_shared=no |
| 15716 | fi |
| 15717 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15718 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15719 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15720 | # soname into executable. Probably we can add versioning support to |
| 15721 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15722 | if test "$aix_use_runtimelinking" = yes; then |
| 15723 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15724 | # instead of lib<name>.a to let people know that these are not |
| 15725 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15726 | 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] | 15727 | else |
| 15728 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15729 | # and later when we are not doing run time linking. |
| 15730 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15731 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15732 | fi |
| 15733 | shlibpath_var=LIBPATH |
| 15734 | fi |
| 15735 | ;; |
| 15736 | |
| 15737 | amigaos*) |
| 15738 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15739 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15740 | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15741 | ;; |
| 15742 | |
| 15743 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15744 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15745 | dynamic_linker="$host_os ld.so" |
| 15746 | shlibpath_var=LIBRARY_PATH |
| 15747 | ;; |
| 15748 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15749 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15750 | version_type=linux |
| 15751 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15753 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15754 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15755 | shlibpath_var=LD_LIBRARY_PATH |
| 15756 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15757 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15758 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15759 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15760 | # libtool to hard-code these into programs |
| 15761 | ;; |
| 15762 | |
| 15763 | cygwin* | mingw* | pw32*) |
| 15764 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15765 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15766 | need_version=no |
| 15767 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15769 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15770 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15771 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15772 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15773 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15774 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15775 | dldir=$destdir/`dirname \$dlpath`~ |
| 15776 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15777 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15778 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15779 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15780 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15781 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15782 | shlibpath_overrides_runpath=yes |
| 15783 | |
| 15784 | case $host_os in |
| 15785 | cygwin*) |
| 15786 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15787 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15788 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15789 | ;; |
| 15790 | mingw*) |
| 15791 | # MinGW DLLs use traditional 'lib' prefix |
| 15792 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15793 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15794 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15795 | # It is most probably a Windows format PATH printed by |
| 15796 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15797 | # path with ; separators, and with drive letters. We can handle the |
| 15798 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15799 | # especially as we might pass files found there to a mingw objdump, |
| 15800 | # which wouldn't understand a cygwinified path. Ahh. |
| 15801 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15802 | else |
| 15803 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15804 | fi |
| 15805 | ;; |
| 15806 | pw32*) |
| 15807 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15808 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15809 | ;; |
| 15810 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15811 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15812 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15813 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15814 | 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] | 15815 | ;; |
| 15816 | esac |
| 15817 | dynamic_linker='Win32 ld.exe' |
| 15818 | # FIXME: first we should search . and the directory the executable is in |
| 15819 | shlibpath_var=PATH |
| 15820 | ;; |
| 15821 | |
| 15822 | darwin* | rhapsody*) |
| 15823 | dynamic_linker="$host_os dyld" |
| 15824 | version_type=darwin |
| 15825 | need_lib_prefix=no |
| 15826 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15827 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15828 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15829 | shlibpath_overrides_runpath=yes |
| 15830 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15831 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15832 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15833 | if test "$GCC" = yes; then |
| 15834 | 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"` |
| 15835 | else |
| 15836 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15837 | fi |
| 15838 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15839 | ;; |
| 15840 | |
| 15841 | dgux*) |
| 15842 | version_type=linux |
| 15843 | need_lib_prefix=no |
| 15844 | need_version=no |
| 15845 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15846 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15847 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15848 | ;; |
| 15849 | |
| 15850 | freebsd1*) |
| 15851 | dynamic_linker=no |
| 15852 | ;; |
| 15853 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15854 | kfreebsd*-gnu) |
| 15855 | version_type=linux |
| 15856 | need_lib_prefix=no |
| 15857 | need_version=no |
| 15858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15859 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15860 | shlibpath_var=LD_LIBRARY_PATH |
| 15861 | shlibpath_overrides_runpath=no |
| 15862 | hardcode_into_libs=yes |
| 15863 | dynamic_linker='GNU ld.so' |
| 15864 | ;; |
| 15865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15866 | freebsd* | dragonfly*) |
| 15867 | # DragonFly does not have aout. When/if they implement a new |
| 15868 | # versioning mechanism, adjust this. |
| 15869 | if test -x /usr/bin/objformat; then |
| 15870 | objformat=`/usr/bin/objformat` |
| 15871 | else |
| 15872 | case $host_os in |
| 15873 | freebsd[123]*) objformat=aout ;; |
| 15874 | *) objformat=elf ;; |
| 15875 | esac |
| 15876 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15877 | version_type=freebsd-$objformat |
| 15878 | case $version_type in |
| 15879 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15880 | 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] | 15881 | need_version=no |
| 15882 | need_lib_prefix=no |
| 15883 | ;; |
| 15884 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15885 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15886 | need_version=yes |
| 15887 | ;; |
| 15888 | esac |
| 15889 | shlibpath_var=LD_LIBRARY_PATH |
| 15890 | case $host_os in |
| 15891 | freebsd2*) |
| 15892 | shlibpath_overrides_runpath=yes |
| 15893 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15894 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15895 | shlibpath_overrides_runpath=yes |
| 15896 | hardcode_into_libs=yes |
| 15897 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15898 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15899 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15900 | shlibpath_overrides_runpath=no |
| 15901 | hardcode_into_libs=yes |
| 15902 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15903 | freebsd*) # from 4.6 on |
| 15904 | shlibpath_overrides_runpath=yes |
| 15905 | hardcode_into_libs=yes |
| 15906 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15907 | esac |
| 15908 | ;; |
| 15909 | |
| 15910 | gnu*) |
| 15911 | version_type=linux |
| 15912 | need_lib_prefix=no |
| 15913 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15915 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15916 | shlibpath_var=LD_LIBRARY_PATH |
| 15917 | hardcode_into_libs=yes |
| 15918 | ;; |
| 15919 | |
| 15920 | hpux9* | hpux10* | hpux11*) |
| 15921 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15922 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15923 | version_type=sunos |
| 15924 | need_lib_prefix=no |
| 15925 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15926 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15927 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15928 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15929 | hardcode_into_libs=yes |
| 15930 | dynamic_linker="$host_os dld.so" |
| 15931 | shlibpath_var=LD_LIBRARY_PATH |
| 15932 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15934 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15935 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15936 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15937 | else |
| 15938 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15939 | fi |
| 15940 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15941 | ;; |
| 15942 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15943 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15944 | hardcode_into_libs=yes |
| 15945 | dynamic_linker="$host_os dld.sl" |
| 15946 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15947 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15948 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15949 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15950 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15951 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15952 | ;; |
| 15953 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15954 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15955 | dynamic_linker="$host_os dld.sl" |
| 15956 | shlibpath_var=SHLIB_PATH |
| 15957 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15960 | ;; |
| 15961 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15962 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15963 | postinstall_cmds='chmod 555 $lib' |
| 15964 | ;; |
| 15965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15966 | interix3*) |
| 15967 | version_type=linux |
| 15968 | need_lib_prefix=no |
| 15969 | need_version=no |
| 15970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15971 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15972 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15973 | shlibpath_var=LD_LIBRARY_PATH |
| 15974 | shlibpath_overrides_runpath=no |
| 15975 | hardcode_into_libs=yes |
| 15976 | ;; |
| 15977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15978 | irix5* | irix6* | nonstopux*) |
| 15979 | case $host_os in |
| 15980 | nonstopux*) version_type=nonstopux ;; |
| 15981 | *) |
| 15982 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15983 | version_type=linux |
| 15984 | else |
| 15985 | version_type=irix |
| 15986 | fi ;; |
| 15987 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15988 | need_lib_prefix=no |
| 15989 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15990 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15991 | 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] | 15992 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15993 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15994 | libsuff= shlibsuff= |
| 15995 | ;; |
| 15996 | *) |
| 15997 | 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] | 15998 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15999 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16000 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16001 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16002 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16003 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16004 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16005 | esac |
| 16006 | ;; |
| 16007 | esac |
| 16008 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16009 | shlibpath_overrides_runpath=no |
| 16010 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16011 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16012 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16013 | ;; |
| 16014 | |
| 16015 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16016 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16017 | dynamic_linker=no |
| 16018 | ;; |
| 16019 | |
| 16020 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16021 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16022 | version_type=linux |
| 16023 | need_lib_prefix=no |
| 16024 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16026 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16027 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16028 | shlibpath_var=LD_LIBRARY_PATH |
| 16029 | shlibpath_overrides_runpath=no |
| 16030 | # This implies no fast_install, which is unacceptable. |
| 16031 | # Some rework will be needed to allow for fast_install |
| 16032 | # before this can be enabled. |
| 16033 | hardcode_into_libs=yes |
| 16034 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16035 | # Append ld.so.conf contents to the search path |
| 16036 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16037 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16038 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16039 | fi |
| 16040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16041 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16042 | # powerpc, because MkLinux only supported shared libraries with the |
| 16043 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16044 | # most powerpc-linux boxes support dynamic linking these days and |
| 16045 | # people can always --disable-shared, the test was removed, and we |
| 16046 | # assume the GNU/Linux dynamic linker is in use. |
| 16047 | dynamic_linker='GNU/Linux ld.so' |
| 16048 | ;; |
| 16049 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16050 | knetbsd*-gnu) |
| 16051 | version_type=linux |
| 16052 | need_lib_prefix=no |
| 16053 | need_version=no |
| 16054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16055 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16056 | shlibpath_var=LD_LIBRARY_PATH |
| 16057 | shlibpath_overrides_runpath=no |
| 16058 | hardcode_into_libs=yes |
| 16059 | dynamic_linker='GNU ld.so' |
| 16060 | ;; |
| 16061 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16062 | netbsd*) |
| 16063 | version_type=sunos |
| 16064 | need_lib_prefix=no |
| 16065 | need_version=no |
| 16066 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16068 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16069 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16070 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16072 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16073 | dynamic_linker='NetBSD ld.elf_so' |
| 16074 | fi |
| 16075 | shlibpath_var=LD_LIBRARY_PATH |
| 16076 | shlibpath_overrides_runpath=yes |
| 16077 | hardcode_into_libs=yes |
| 16078 | ;; |
| 16079 | |
| 16080 | newsos6) |
| 16081 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16083 | shlibpath_var=LD_LIBRARY_PATH |
| 16084 | shlibpath_overrides_runpath=yes |
| 16085 | ;; |
| 16086 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16087 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16088 | version_type=linux |
| 16089 | need_lib_prefix=no |
| 16090 | need_version=no |
| 16091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16092 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16093 | shlibpath_var=LD_LIBRARY_PATH |
| 16094 | shlibpath_overrides_runpath=yes |
| 16095 | ;; |
| 16096 | |
| 16097 | openbsd*) |
| 16098 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16099 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16100 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16101 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16102 | case $host_os in |
| 16103 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16104 | *) need_version=no ;; |
| 16105 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16107 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16108 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16109 | 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] | 16110 | case $host_os in |
| 16111 | openbsd2.[89] | openbsd2.[89].*) |
| 16112 | shlibpath_overrides_runpath=no |
| 16113 | ;; |
| 16114 | *) |
| 16115 | shlibpath_overrides_runpath=yes |
| 16116 | ;; |
| 16117 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16118 | else |
| 16119 | shlibpath_overrides_runpath=yes |
| 16120 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16121 | ;; |
| 16122 | |
| 16123 | os2*) |
| 16124 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16125 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16126 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16127 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16128 | dynamic_linker='OS/2 ld.exe' |
| 16129 | shlibpath_var=LIBPATH |
| 16130 | ;; |
| 16131 | |
| 16132 | osf3* | osf4* | osf5*) |
| 16133 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16134 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16135 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16136 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16137 | 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] | 16138 | shlibpath_var=LD_LIBRARY_PATH |
| 16139 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16140 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16141 | ;; |
| 16142 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16143 | solaris*) |
| 16144 | version_type=linux |
| 16145 | need_lib_prefix=no |
| 16146 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16148 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16149 | shlibpath_var=LD_LIBRARY_PATH |
| 16150 | shlibpath_overrides_runpath=yes |
| 16151 | hardcode_into_libs=yes |
| 16152 | # ldd complains unless libraries are executable |
| 16153 | postinstall_cmds='chmod +x $lib' |
| 16154 | ;; |
| 16155 | |
| 16156 | sunos4*) |
| 16157 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16159 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16160 | shlibpath_var=LD_LIBRARY_PATH |
| 16161 | shlibpath_overrides_runpath=yes |
| 16162 | if test "$with_gnu_ld" = yes; then |
| 16163 | need_lib_prefix=no |
| 16164 | fi |
| 16165 | need_version=yes |
| 16166 | ;; |
| 16167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16168 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16169 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16171 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16172 | shlibpath_var=LD_LIBRARY_PATH |
| 16173 | case $host_vendor in |
| 16174 | sni) |
| 16175 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16176 | need_lib_prefix=no |
| 16177 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16178 | runpath_var=LD_RUN_PATH |
| 16179 | ;; |
| 16180 | siemens) |
| 16181 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16182 | ;; |
| 16183 | motorola) |
| 16184 | need_lib_prefix=no |
| 16185 | need_version=no |
| 16186 | shlibpath_overrides_runpath=no |
| 16187 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16188 | ;; |
| 16189 | esac |
| 16190 | ;; |
| 16191 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16192 | sysv4*MP*) |
| 16193 | if test -d /usr/nec ;then |
| 16194 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16195 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16196 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16197 | shlibpath_var=LD_LIBRARY_PATH |
| 16198 | fi |
| 16199 | ;; |
| 16200 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16201 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16202 | version_type=freebsd-elf |
| 16203 | need_lib_prefix=no |
| 16204 | need_version=no |
| 16205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16206 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16207 | shlibpath_var=LD_LIBRARY_PATH |
| 16208 | hardcode_into_libs=yes |
| 16209 | if test "$with_gnu_ld" = yes; then |
| 16210 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16211 | shlibpath_overrides_runpath=no |
| 16212 | else |
| 16213 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16214 | shlibpath_overrides_runpath=yes |
| 16215 | case $host_os in |
| 16216 | sco3.2v5*) |
| 16217 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16218 | ;; |
| 16219 | esac |
| 16220 | fi |
| 16221 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16222 | ;; |
| 16223 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16224 | uts4*) |
| 16225 | version_type=linux |
| 16226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16227 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16228 | shlibpath_var=LD_LIBRARY_PATH |
| 16229 | ;; |
| 16230 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16231 | *) |
| 16232 | dynamic_linker=no |
| 16233 | ;; |
| 16234 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16235 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16236 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16237 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16239 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16240 | if test "$GCC" = yes; then |
| 16241 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16242 | fi |
| 16243 | |
| 16244 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16245 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16246 | hardcode_action= |
| 16247 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16248 | test -n "$runpath_var" || \ |
| 16249 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16250 | |
| 16251 | # We can hardcode non-existant directories. |
| 16252 | if test "$hardcode_direct" != no && |
| 16253 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16254 | # have to relink, otherwise we might link with an installed library |
| 16255 | # when we should be linking with a yet-to-be-installed one |
| 16256 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16257 | test "$hardcode_minus_L" != no; then |
| 16258 | # Linking always hardcodes the temporary library directory. |
| 16259 | hardcode_action=relink |
| 16260 | else |
| 16261 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16262 | hardcode_action=immediate |
| 16263 | fi |
| 16264 | else |
| 16265 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16266 | # directories. |
| 16267 | hardcode_action=unsupported |
| 16268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16269 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16270 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16271 | |
| 16272 | if test "$hardcode_action" = relink; then |
| 16273 | # Fast installation is not supported |
| 16274 | enable_fast_install=no |
| 16275 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16276 | test "$enable_shared" = no; then |
| 16277 | # Fast installation is not necessary |
| 16278 | enable_fast_install=needless |
| 16279 | fi |
| 16280 | |
| 16281 | striplib= |
| 16282 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16283 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16284 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16285 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16286 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16287 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16288 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16289 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16290 | else |
| 16291 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16292 | case $host_os in |
| 16293 | darwin*) |
| 16294 | if test -n "$STRIP" ; then |
| 16295 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16296 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16297 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16298 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16299 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16300 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16301 | fi |
| 16302 | ;; |
| 16303 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16304 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16305 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16306 | ;; |
| 16307 | esac |
| 16308 | fi |
| 16309 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16310 | if test "x$enable_dlopen" != xyes; then |
| 16311 | enable_dlopen=unknown |
| 16312 | enable_dlopen_self=unknown |
| 16313 | enable_dlopen_self_static=unknown |
| 16314 | else |
| 16315 | lt_cv_dlopen=no |
| 16316 | lt_cv_dlopen_libs= |
| 16317 | |
| 16318 | case $host_os in |
| 16319 | beos*) |
| 16320 | lt_cv_dlopen="load_add_on" |
| 16321 | lt_cv_dlopen_libs= |
| 16322 | lt_cv_dlopen_self=yes |
| 16323 | ;; |
| 16324 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16325 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16326 | lt_cv_dlopen="LoadLibrary" |
| 16327 | lt_cv_dlopen_libs= |
| 16328 | ;; |
| 16329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16330 | cygwin*) |
| 16331 | lt_cv_dlopen="dlopen" |
| 16332 | lt_cv_dlopen_libs= |
| 16333 | ;; |
| 16334 | |
| 16335 | darwin*) |
| 16336 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16337 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16338 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16339 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16341 | else |
| 16342 | ac_check_lib_save_LIBS=$LIBS |
| 16343 | LIBS="-ldl $LIBS" |
| 16344 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16345 | /* confdefs.h. */ |
| 16346 | _ACEOF |
| 16347 | cat confdefs.h >>conftest.$ac_ext |
| 16348 | cat >>conftest.$ac_ext <<_ACEOF |
| 16349 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16351 | /* Override any GCC internal prototype to avoid an error. |
| 16352 | Use char because int might match the return type of a GCC |
| 16353 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16354 | #ifdef __cplusplus |
| 16355 | extern "C" |
| 16356 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16357 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16358 | int |
| 16359 | main () |
| 16360 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16361 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16362 | ; |
| 16363 | return 0; |
| 16364 | } |
| 16365 | _ACEOF |
| 16366 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16367 | if { (ac_try="$ac_link" |
| 16368 | case "(($ac_try" in |
| 16369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16370 | *) ac_try_echo=$ac_try;; |
| 16371 | esac |
| 16372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16373 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16374 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16375 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16376 | rm -f conftest.er1 |
| 16377 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16379 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16381 | { (case "(($ac_try" in |
| 16382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16383 | *) ac_try_echo=$ac_try;; |
| 16384 | esac |
| 16385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16386 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16387 | ac_status=$? |
| 16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16389 | (exit $ac_status); }; } && |
| 16390 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16391 | { (case "(($ac_try" in |
| 16392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16393 | *) ac_try_echo=$ac_try;; |
| 16394 | esac |
| 16395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16396 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16397 | ac_status=$? |
| 16398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16399 | (exit $ac_status); }; }; then |
| 16400 | ac_cv_lib_dl_dlopen=yes |
| 16401 | else |
| 16402 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16405 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16406 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16407 | |
| 16408 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16409 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16410 | LIBS=$ac_check_lib_save_LIBS |
| 16411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16412 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16413 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16414 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16415 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16416 | else |
| 16417 | |
| 16418 | lt_cv_dlopen="dyld" |
| 16419 | lt_cv_dlopen_libs= |
| 16420 | lt_cv_dlopen_self=yes |
| 16421 | |
| 16422 | fi |
| 16423 | |
| 16424 | ;; |
| 16425 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16426 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16427 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16428 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16429 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16431 | else |
| 16432 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16433 | /* confdefs.h. */ |
| 16434 | _ACEOF |
| 16435 | cat confdefs.h >>conftest.$ac_ext |
| 16436 | cat >>conftest.$ac_ext <<_ACEOF |
| 16437 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16438 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16440 | #define shl_load innocuous_shl_load |
| 16441 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16442 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16443 | which can conflict with char shl_load (); below. |
| 16444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16445 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16446 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16447 | #ifdef __STDC__ |
| 16448 | # include <limits.h> |
| 16449 | #else |
| 16450 | # include <assert.h> |
| 16451 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16452 | |
| 16453 | #undef shl_load |
| 16454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16455 | /* Override any GCC internal prototype to avoid an error. |
| 16456 | Use char because int might match the return type of a GCC |
| 16457 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16458 | #ifdef __cplusplus |
| 16459 | extern "C" |
| 16460 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16461 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16462 | /* The GNU C library defines this for functions which it implements |
| 16463 | to always fail with ENOSYS. Some functions are actually named |
| 16464 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16465 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16466 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16467 | #endif |
| 16468 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16469 | int |
| 16470 | main () |
| 16471 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16472 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16473 | ; |
| 16474 | return 0; |
| 16475 | } |
| 16476 | _ACEOF |
| 16477 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16478 | if { (ac_try="$ac_link" |
| 16479 | case "(($ac_try" in |
| 16480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16481 | *) ac_try_echo=$ac_try;; |
| 16482 | esac |
| 16483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16484 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16485 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16487 | rm -f conftest.er1 |
| 16488 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16490 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16492 | { (case "(($ac_try" in |
| 16493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16494 | *) ac_try_echo=$ac_try;; |
| 16495 | esac |
| 16496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16497 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16498 | ac_status=$? |
| 16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16500 | (exit $ac_status); }; } && |
| 16501 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16502 | { (case "(($ac_try" in |
| 16503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16504 | *) ac_try_echo=$ac_try;; |
| 16505 | esac |
| 16506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16507 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16508 | ac_status=$? |
| 16509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16510 | (exit $ac_status); }; }; then |
| 16511 | ac_cv_func_shl_load=yes |
| 16512 | else |
| 16513 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16516 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16517 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16518 | |
| 16519 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16520 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16521 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16522 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16523 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16524 | if test $ac_cv_func_shl_load = yes; then |
| 16525 | lt_cv_dlopen="shl_load" |
| 16526 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16527 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16528 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16529 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16531 | else |
| 16532 | ac_check_lib_save_LIBS=$LIBS |
| 16533 | LIBS="-ldld $LIBS" |
| 16534 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16535 | /* confdefs.h. */ |
| 16536 | _ACEOF |
| 16537 | cat confdefs.h >>conftest.$ac_ext |
| 16538 | cat >>conftest.$ac_ext <<_ACEOF |
| 16539 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16541 | /* Override any GCC internal prototype to avoid an error. |
| 16542 | Use char because int might match the return type of a GCC |
| 16543 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16544 | #ifdef __cplusplus |
| 16545 | extern "C" |
| 16546 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16547 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16548 | int |
| 16549 | main () |
| 16550 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16551 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16552 | ; |
| 16553 | return 0; |
| 16554 | } |
| 16555 | _ACEOF |
| 16556 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16557 | if { (ac_try="$ac_link" |
| 16558 | case "(($ac_try" in |
| 16559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16560 | *) ac_try_echo=$ac_try;; |
| 16561 | esac |
| 16562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16563 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16564 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16566 | rm -f conftest.er1 |
| 16567 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16569 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16571 | { (case "(($ac_try" in |
| 16572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16573 | *) ac_try_echo=$ac_try;; |
| 16574 | esac |
| 16575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16576 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16577 | ac_status=$? |
| 16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16579 | (exit $ac_status); }; } && |
| 16580 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16581 | { (case "(($ac_try" in |
| 16582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16583 | *) ac_try_echo=$ac_try;; |
| 16584 | esac |
| 16585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16586 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16587 | ac_status=$? |
| 16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16589 | (exit $ac_status); }; }; then |
| 16590 | ac_cv_lib_dld_shl_load=yes |
| 16591 | else |
| 16592 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16594 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16595 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16597 | |
| 16598 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16599 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16600 | LIBS=$ac_check_lib_save_LIBS |
| 16601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16602 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16603 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16604 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16605 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16606 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16607 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16608 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16609 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16611 | else |
| 16612 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16613 | /* confdefs.h. */ |
| 16614 | _ACEOF |
| 16615 | cat confdefs.h >>conftest.$ac_ext |
| 16616 | cat >>conftest.$ac_ext <<_ACEOF |
| 16617 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16618 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16619 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16620 | #define dlopen innocuous_dlopen |
| 16621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16622 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16623 | which can conflict with char dlopen (); below. |
| 16624 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16625 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16626 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16627 | #ifdef __STDC__ |
| 16628 | # include <limits.h> |
| 16629 | #else |
| 16630 | # include <assert.h> |
| 16631 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16632 | |
| 16633 | #undef dlopen |
| 16634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16635 | /* Override any GCC internal prototype to avoid an error. |
| 16636 | Use char because int might match the return type of a GCC |
| 16637 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16638 | #ifdef __cplusplus |
| 16639 | extern "C" |
| 16640 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16641 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16642 | /* The GNU C library defines this for functions which it implements |
| 16643 | to always fail with ENOSYS. Some functions are actually named |
| 16644 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16645 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16646 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16647 | #endif |
| 16648 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16649 | int |
| 16650 | main () |
| 16651 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16652 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16653 | ; |
| 16654 | return 0; |
| 16655 | } |
| 16656 | _ACEOF |
| 16657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16658 | if { (ac_try="$ac_link" |
| 16659 | case "(($ac_try" in |
| 16660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16661 | *) ac_try_echo=$ac_try;; |
| 16662 | esac |
| 16663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16664 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16667 | rm -f conftest.er1 |
| 16668 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16670 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16672 | { (case "(($ac_try" in |
| 16673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16674 | *) ac_try_echo=$ac_try;; |
| 16675 | esac |
| 16676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16677 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16678 | ac_status=$? |
| 16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16680 | (exit $ac_status); }; } && |
| 16681 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16682 | { (case "(($ac_try" in |
| 16683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16684 | *) ac_try_echo=$ac_try;; |
| 16685 | esac |
| 16686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16687 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16688 | ac_status=$? |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); }; }; then |
| 16691 | ac_cv_func_dlopen=yes |
| 16692 | else |
| 16693 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16696 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16698 | |
| 16699 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16700 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16701 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16702 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16703 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16704 | if test $ac_cv_func_dlopen = yes; then |
| 16705 | lt_cv_dlopen="dlopen" |
| 16706 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16707 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16708 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16709 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16711 | else |
| 16712 | ac_check_lib_save_LIBS=$LIBS |
| 16713 | LIBS="-ldl $LIBS" |
| 16714 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16715 | /* confdefs.h. */ |
| 16716 | _ACEOF |
| 16717 | cat confdefs.h >>conftest.$ac_ext |
| 16718 | cat >>conftest.$ac_ext <<_ACEOF |
| 16719 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16721 | /* Override any GCC internal prototype to avoid an error. |
| 16722 | Use char because int might match the return type of a GCC |
| 16723 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16724 | #ifdef __cplusplus |
| 16725 | extern "C" |
| 16726 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16727 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16728 | int |
| 16729 | main () |
| 16730 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16731 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16732 | ; |
| 16733 | return 0; |
| 16734 | } |
| 16735 | _ACEOF |
| 16736 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16737 | if { (ac_try="$ac_link" |
| 16738 | case "(($ac_try" in |
| 16739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16740 | *) ac_try_echo=$ac_try;; |
| 16741 | esac |
| 16742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16743 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16746 | rm -f conftest.er1 |
| 16747 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16749 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16751 | { (case "(($ac_try" in |
| 16752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16753 | *) ac_try_echo=$ac_try;; |
| 16754 | esac |
| 16755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16756 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16757 | ac_status=$? |
| 16758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16759 | (exit $ac_status); }; } && |
| 16760 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16761 | { (case "(($ac_try" in |
| 16762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16763 | *) ac_try_echo=$ac_try;; |
| 16764 | esac |
| 16765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16766 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16767 | ac_status=$? |
| 16768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16769 | (exit $ac_status); }; }; then |
| 16770 | ac_cv_lib_dl_dlopen=yes |
| 16771 | else |
| 16772 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16775 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16777 | |
| 16778 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16779 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16780 | LIBS=$ac_check_lib_save_LIBS |
| 16781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16782 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16783 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16784 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16785 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16786 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16787 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16788 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16789 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16791 | else |
| 16792 | ac_check_lib_save_LIBS=$LIBS |
| 16793 | LIBS="-lsvld $LIBS" |
| 16794 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16795 | /* confdefs.h. */ |
| 16796 | _ACEOF |
| 16797 | cat confdefs.h >>conftest.$ac_ext |
| 16798 | cat >>conftest.$ac_ext <<_ACEOF |
| 16799 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16801 | /* Override any GCC internal prototype to avoid an error. |
| 16802 | Use char because int might match the return type of a GCC |
| 16803 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16804 | #ifdef __cplusplus |
| 16805 | extern "C" |
| 16806 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16807 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16808 | int |
| 16809 | main () |
| 16810 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16811 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16812 | ; |
| 16813 | return 0; |
| 16814 | } |
| 16815 | _ACEOF |
| 16816 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16817 | if { (ac_try="$ac_link" |
| 16818 | case "(($ac_try" in |
| 16819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16820 | *) ac_try_echo=$ac_try;; |
| 16821 | esac |
| 16822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16823 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16824 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16826 | rm -f conftest.er1 |
| 16827 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16829 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16831 | { (case "(($ac_try" in |
| 16832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16833 | *) ac_try_echo=$ac_try;; |
| 16834 | esac |
| 16835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16836 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16837 | ac_status=$? |
| 16838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16839 | (exit $ac_status); }; } && |
| 16840 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16841 | { (case "(($ac_try" in |
| 16842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16843 | *) ac_try_echo=$ac_try;; |
| 16844 | esac |
| 16845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16846 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16847 | ac_status=$? |
| 16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16849 | (exit $ac_status); }; }; then |
| 16850 | ac_cv_lib_svld_dlopen=yes |
| 16851 | else |
| 16852 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16853 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16855 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16856 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16857 | |
| 16858 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16859 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16860 | LIBS=$ac_check_lib_save_LIBS |
| 16861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16862 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16863 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16864 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16865 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16866 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16867 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16868 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16869 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16871 | else |
| 16872 | ac_check_lib_save_LIBS=$LIBS |
| 16873 | LIBS="-ldld $LIBS" |
| 16874 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16875 | /* confdefs.h. */ |
| 16876 | _ACEOF |
| 16877 | cat confdefs.h >>conftest.$ac_ext |
| 16878 | cat >>conftest.$ac_ext <<_ACEOF |
| 16879 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16881 | /* Override any GCC internal prototype to avoid an error. |
| 16882 | Use char because int might match the return type of a GCC |
| 16883 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16884 | #ifdef __cplusplus |
| 16885 | extern "C" |
| 16886 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16887 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16888 | int |
| 16889 | main () |
| 16890 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16892 | ; |
| 16893 | return 0; |
| 16894 | } |
| 16895 | _ACEOF |
| 16896 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16897 | if { (ac_try="$ac_link" |
| 16898 | case "(($ac_try" in |
| 16899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16900 | *) ac_try_echo=$ac_try;; |
| 16901 | esac |
| 16902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16903 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16904 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16906 | rm -f conftest.er1 |
| 16907 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16909 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16911 | { (case "(($ac_try" in |
| 16912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16913 | *) ac_try_echo=$ac_try;; |
| 16914 | esac |
| 16915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16916 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16917 | ac_status=$? |
| 16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16919 | (exit $ac_status); }; } && |
| 16920 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16921 | { (case "(($ac_try" in |
| 16922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16923 | *) ac_try_echo=$ac_try;; |
| 16924 | esac |
| 16925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16926 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16927 | ac_status=$? |
| 16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16929 | (exit $ac_status); }; }; then |
| 16930 | ac_cv_lib_dld_dld_link=yes |
| 16931 | else |
| 16932 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16934 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16935 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16936 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16937 | |
| 16938 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16939 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16940 | LIBS=$ac_check_lib_save_LIBS |
| 16941 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16942 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16943 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16944 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16945 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16946 | fi |
| 16947 | |
| 16948 | |
| 16949 | fi |
| 16950 | |
| 16951 | |
| 16952 | fi |
| 16953 | |
| 16954 | |
| 16955 | fi |
| 16956 | |
| 16957 | |
| 16958 | fi |
| 16959 | |
| 16960 | |
| 16961 | fi |
| 16962 | |
| 16963 | ;; |
| 16964 | esac |
| 16965 | |
| 16966 | if test "x$lt_cv_dlopen" != xno; then |
| 16967 | enable_dlopen=yes |
| 16968 | else |
| 16969 | enable_dlopen=no |
| 16970 | fi |
| 16971 | |
| 16972 | case $lt_cv_dlopen in |
| 16973 | dlopen) |
| 16974 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16975 | 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] | 16976 | |
| 16977 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16978 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16979 | |
| 16980 | save_LIBS="$LIBS" |
| 16981 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16983 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16984 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16985 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16987 | else |
| 16988 | if test "$cross_compiling" = yes; then : |
| 16989 | lt_cv_dlopen_self=cross |
| 16990 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16991 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16992 | lt_status=$lt_dlunknown |
| 16993 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16994 | #line 16994 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16995 | #include "confdefs.h" |
| 16996 | |
| 16997 | #if HAVE_DLFCN_H |
| 16998 | #include <dlfcn.h> |
| 16999 | #endif |
| 17000 | |
| 17001 | #include <stdio.h> |
| 17002 | |
| 17003 | #ifdef RTLD_GLOBAL |
| 17004 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17005 | #else |
| 17006 | # ifdef DL_GLOBAL |
| 17007 | # define LT_DLGLOBAL DL_GLOBAL |
| 17008 | # else |
| 17009 | # define LT_DLGLOBAL 0 |
| 17010 | # endif |
| 17011 | #endif |
| 17012 | |
| 17013 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17014 | find out it does not work in some platform. */ |
| 17015 | #ifndef LT_DLLAZY_OR_NOW |
| 17016 | # ifdef RTLD_LAZY |
| 17017 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17018 | # else |
| 17019 | # ifdef DL_LAZY |
| 17020 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17021 | # else |
| 17022 | # ifdef RTLD_NOW |
| 17023 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17024 | # else |
| 17025 | # ifdef DL_NOW |
| 17026 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17027 | # else |
| 17028 | # define LT_DLLAZY_OR_NOW 0 |
| 17029 | # endif |
| 17030 | # endif |
| 17031 | # endif |
| 17032 | # endif |
| 17033 | #endif |
| 17034 | |
| 17035 | #ifdef __cplusplus |
| 17036 | extern "C" void exit (int); |
| 17037 | #endif |
| 17038 | |
| 17039 | void fnord() { int i=42;} |
| 17040 | int main () |
| 17041 | { |
| 17042 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17043 | int status = $lt_dlunknown; |
| 17044 | |
| 17045 | if (self) |
| 17046 | { |
| 17047 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17048 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17049 | /* dlclose (self); */ |
| 17050 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17051 | else |
| 17052 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17053 | |
| 17054 | exit (status); |
| 17055 | } |
| 17056 | EOF |
| 17057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17058 | (eval $ac_link) 2>&5 |
| 17059 | ac_status=$? |
| 17060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17061 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17062 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17063 | lt_status=$? |
| 17064 | case x$lt_status in |
| 17065 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17066 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17067 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17068 | esac |
| 17069 | else : |
| 17070 | # compilation failed |
| 17071 | lt_cv_dlopen_self=no |
| 17072 | fi |
| 17073 | fi |
| 17074 | rm -fr conftest* |
| 17075 | |
| 17076 | |
| 17077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17078 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17079 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17080 | |
| 17081 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17082 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17083 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17084 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17085 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17087 | else |
| 17088 | if test "$cross_compiling" = yes; then : |
| 17089 | lt_cv_dlopen_self_static=cross |
| 17090 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17091 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17092 | lt_status=$lt_dlunknown |
| 17093 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17094 | #line 17094 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17095 | #include "confdefs.h" |
| 17096 | |
| 17097 | #if HAVE_DLFCN_H |
| 17098 | #include <dlfcn.h> |
| 17099 | #endif |
| 17100 | |
| 17101 | #include <stdio.h> |
| 17102 | |
| 17103 | #ifdef RTLD_GLOBAL |
| 17104 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17105 | #else |
| 17106 | # ifdef DL_GLOBAL |
| 17107 | # define LT_DLGLOBAL DL_GLOBAL |
| 17108 | # else |
| 17109 | # define LT_DLGLOBAL 0 |
| 17110 | # endif |
| 17111 | #endif |
| 17112 | |
| 17113 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17114 | find out it does not work in some platform. */ |
| 17115 | #ifndef LT_DLLAZY_OR_NOW |
| 17116 | # ifdef RTLD_LAZY |
| 17117 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17118 | # else |
| 17119 | # ifdef DL_LAZY |
| 17120 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17121 | # else |
| 17122 | # ifdef RTLD_NOW |
| 17123 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17124 | # else |
| 17125 | # ifdef DL_NOW |
| 17126 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17127 | # else |
| 17128 | # define LT_DLLAZY_OR_NOW 0 |
| 17129 | # endif |
| 17130 | # endif |
| 17131 | # endif |
| 17132 | # endif |
| 17133 | #endif |
| 17134 | |
| 17135 | #ifdef __cplusplus |
| 17136 | extern "C" void exit (int); |
| 17137 | #endif |
| 17138 | |
| 17139 | void fnord() { int i=42;} |
| 17140 | int main () |
| 17141 | { |
| 17142 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17143 | int status = $lt_dlunknown; |
| 17144 | |
| 17145 | if (self) |
| 17146 | { |
| 17147 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17148 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17149 | /* dlclose (self); */ |
| 17150 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17151 | else |
| 17152 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17153 | |
| 17154 | exit (status); |
| 17155 | } |
| 17156 | EOF |
| 17157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17158 | (eval $ac_link) 2>&5 |
| 17159 | ac_status=$? |
| 17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17161 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17162 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17163 | lt_status=$? |
| 17164 | case x$lt_status in |
| 17165 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17166 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17167 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17168 | esac |
| 17169 | else : |
| 17170 | # compilation failed |
| 17171 | lt_cv_dlopen_self_static=no |
| 17172 | fi |
| 17173 | fi |
| 17174 | rm -fr conftest* |
| 17175 | |
| 17176 | |
| 17177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17178 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17179 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17180 | fi |
| 17181 | |
| 17182 | CPPFLAGS="$save_CPPFLAGS" |
| 17183 | LDFLAGS="$save_LDFLAGS" |
| 17184 | LIBS="$save_LIBS" |
| 17185 | ;; |
| 17186 | esac |
| 17187 | |
| 17188 | case $lt_cv_dlopen_self in |
| 17189 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17190 | *) enable_dlopen_self=unknown ;; |
| 17191 | esac |
| 17192 | |
| 17193 | case $lt_cv_dlopen_self_static in |
| 17194 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17195 | *) enable_dlopen_self_static=unknown ;; |
| 17196 | esac |
| 17197 | fi |
| 17198 | |
| 17199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17200 | # Report which library types will actually be built |
| 17201 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17202 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17203 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17204 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17206 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17207 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17208 | test "$can_build_shared" = "no" && enable_shared=no |
| 17209 | |
| 17210 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17211 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17212 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17213 | aix3*) |
| 17214 | test "$enable_shared" = yes && enable_static=no |
| 17215 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17216 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17217 | postinstall_cmds='$RANLIB $lib' |
| 17218 | fi |
| 17219 | ;; |
| 17220 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17221 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17222 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17223 | test "$enable_shared" = yes && enable_static=no |
| 17224 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17225 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17226 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17227 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17228 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17230 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17231 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17232 | # Make sure either enable_shared or enable_static is yes. |
| 17233 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17234 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17235 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17236 | |
| 17237 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17238 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17239 | # with your package, and you will get complaints that there are |
| 17240 | # no rules to generate ltmain.sh. |
| 17241 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17242 | # See if we are running on zsh, and set the options which allow our commands through |
| 17243 | # without removal of \ escapes. |
| 17244 | if test -n "${ZSH_VERSION+set}" ; then |
| 17245 | setopt NO_GLOB_SUBST |
| 17246 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17247 | # Now quote all the things that may contain metacharacters while being |
| 17248 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17249 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17250 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17251 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17252 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17253 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17254 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17255 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17256 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17257 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17258 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17259 | compiler \ |
| 17260 | CC \ |
| 17261 | LD \ |
| 17262 | lt_prog_compiler_wl \ |
| 17263 | lt_prog_compiler_pic \ |
| 17264 | lt_prog_compiler_static \ |
| 17265 | lt_prog_compiler_no_builtin_flag \ |
| 17266 | export_dynamic_flag_spec \ |
| 17267 | thread_safe_flag_spec \ |
| 17268 | whole_archive_flag_spec \ |
| 17269 | enable_shared_with_static_runtimes \ |
| 17270 | old_archive_cmds \ |
| 17271 | old_archive_from_new_cmds \ |
| 17272 | predep_objects \ |
| 17273 | postdep_objects \ |
| 17274 | predeps \ |
| 17275 | postdeps \ |
| 17276 | compiler_lib_search_path \ |
| 17277 | archive_cmds \ |
| 17278 | archive_expsym_cmds \ |
| 17279 | postinstall_cmds \ |
| 17280 | postuninstall_cmds \ |
| 17281 | old_archive_from_expsyms_cmds \ |
| 17282 | allow_undefined_flag \ |
| 17283 | no_undefined_flag \ |
| 17284 | export_symbols_cmds \ |
| 17285 | hardcode_libdir_flag_spec \ |
| 17286 | hardcode_libdir_flag_spec_ld \ |
| 17287 | hardcode_libdir_separator \ |
| 17288 | hardcode_automatic \ |
| 17289 | module_cmds \ |
| 17290 | module_expsym_cmds \ |
| 17291 | lt_cv_prog_compiler_c_o \ |
| 17292 | exclude_expsyms \ |
| 17293 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17294 | |
| 17295 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17296 | old_archive_cmds | \ |
| 17297 | old_archive_from_new_cmds | \ |
| 17298 | archive_cmds | \ |
| 17299 | archive_expsym_cmds | \ |
| 17300 | module_cmds | \ |
| 17301 | module_expsym_cmds | \ |
| 17302 | old_archive_from_expsyms_cmds | \ |
| 17303 | export_symbols_cmds | \ |
| 17304 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17305 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17306 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17307 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17308 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17309 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17310 | ;; |
| 17311 | *) |
| 17312 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17313 | ;; |
| 17314 | esac |
| 17315 | done |
| 17316 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17317 | case $lt_echo in |
| 17318 | *'\$0 --fallback-echo"') |
| 17319 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17320 | ;; |
| 17321 | esac |
| 17322 | |
| 17323 | cfgfile="${ofile}T" |
| 17324 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17325 | $rm -f "$cfgfile" |
| 17326 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17327 | echo "$as_me: creating $ofile" >&6;} |
| 17328 | |
| 17329 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17330 | #! $SHELL |
| 17331 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17332 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17333 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17334 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17335 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17336 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17337 | # Free Software Foundation, Inc. |
| 17338 | # |
| 17339 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17340 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17341 | # |
| 17342 | # This program is free software; you can redistribute it and/or modify |
| 17343 | # it under the terms of the GNU General Public License as published by |
| 17344 | # the Free Software Foundation; either version 2 of the License, or |
| 17345 | # (at your option) any later version. |
| 17346 | # |
| 17347 | # This program is distributed in the hope that it will be useful, but |
| 17348 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17349 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17350 | # General Public License for more details. |
| 17351 | # |
| 17352 | # You should have received a copy of the GNU General Public License |
| 17353 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17354 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17355 | # |
| 17356 | # As a special exception to the GNU General Public License, if you |
| 17357 | # distribute this file as part of a program that contains a |
| 17358 | # configuration script generated by Autoconf, you may include it under |
| 17359 | # the same distribution terms that you use for the rest of that program. |
| 17360 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17361 | # A sed program that does not truncate output. |
| 17362 | SED=$lt_SED |
| 17363 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17364 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17365 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17366 | |
| 17367 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17368 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17369 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17370 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17371 | # The names of the tagged configurations supported by this script. |
| 17372 | available_tags= |
| 17373 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17374 | # ### BEGIN LIBTOOL CONFIG |
| 17375 | |
| 17376 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17377 | |
| 17378 | # Shell to use when invoking shell scripts. |
| 17379 | SHELL=$lt_SHELL |
| 17380 | |
| 17381 | # Whether or not to build shared libraries. |
| 17382 | build_libtool_libs=$enable_shared |
| 17383 | |
| 17384 | # Whether or not to build static libraries. |
| 17385 | build_old_libs=$enable_static |
| 17386 | |
| 17387 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17388 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17389 | |
| 17390 | # Whether or not to disallow shared libs when runtime libs are static |
| 17391 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17392 | |
| 17393 | # Whether or not to optimize for fast installation. |
| 17394 | fast_install=$enable_fast_install |
| 17395 | |
| 17396 | # The host system. |
| 17397 | host_alias=$host_alias |
| 17398 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17399 | host_os=$host_os |
| 17400 | |
| 17401 | # The build system. |
| 17402 | build_alias=$build_alias |
| 17403 | build=$build |
| 17404 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17405 | |
| 17406 | # An echo program that does not interpret backslashes. |
| 17407 | echo=$lt_echo |
| 17408 | |
| 17409 | # The archiver. |
| 17410 | AR=$lt_AR |
| 17411 | AR_FLAGS=$lt_AR_FLAGS |
| 17412 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17413 | # A C compiler. |
| 17414 | LTCC=$lt_LTCC |
| 17415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17416 | # LTCC compiler flags. |
| 17417 | LTCFLAGS=$lt_LTCFLAGS |
| 17418 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17419 | # A language-specific compiler. |
| 17420 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17421 | |
| 17422 | # Is the compiler the GNU C compiler? |
| 17423 | with_gcc=$GCC |
| 17424 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17425 | # An ERE matcher. |
| 17426 | EGREP=$lt_EGREP |
| 17427 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17428 | # The linker used to build libraries. |
| 17429 | LD=$lt_LD |
| 17430 | |
| 17431 | # Whether we need hard or soft links. |
| 17432 | LN_S=$lt_LN_S |
| 17433 | |
| 17434 | # A BSD-compatible nm program. |
| 17435 | NM=$lt_NM |
| 17436 | |
| 17437 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17438 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17439 | |
| 17440 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17441 | MAGIC_CMD=$MAGIC_CMD |
| 17442 | |
| 17443 | # Used on cygwin: DLL creation program. |
| 17444 | DLLTOOL="$DLLTOOL" |
| 17445 | |
| 17446 | # Used on cygwin: object dumper. |
| 17447 | OBJDUMP="$OBJDUMP" |
| 17448 | |
| 17449 | # Used on cygwin: assembler. |
| 17450 | AS="$AS" |
| 17451 | |
| 17452 | # The name of the directory that contains temporary libtool files. |
| 17453 | objdir=$objdir |
| 17454 | |
| 17455 | # How to create reloadable object files. |
| 17456 | reload_flag=$lt_reload_flag |
| 17457 | reload_cmds=$lt_reload_cmds |
| 17458 | |
| 17459 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17460 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17461 | |
| 17462 | # Object file suffix (normally "o"). |
| 17463 | objext="$ac_objext" |
| 17464 | |
| 17465 | # Old archive suffix (normally "a"). |
| 17466 | libext="$libext" |
| 17467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17468 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17469 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17470 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17471 | # Executable file suffix (normally ""). |
| 17472 | exeext="$exeext" |
| 17473 | |
| 17474 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17475 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17476 | pic_mode=$pic_mode |
| 17477 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17478 | # What is the maximum length of a command? |
| 17479 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17480 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17481 | # Does compiler simultaneously support -c and -o options? |
| 17482 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17484 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17485 | need_locks=$lt_need_locks |
| 17486 | |
| 17487 | # Do we need the lib prefix for modules? |
| 17488 | need_lib_prefix=$need_lib_prefix |
| 17489 | |
| 17490 | # Do we need a version for libraries? |
| 17491 | need_version=$need_version |
| 17492 | |
| 17493 | # Whether dlopen is supported. |
| 17494 | dlopen_support=$enable_dlopen |
| 17495 | |
| 17496 | # Whether dlopen of programs is supported. |
| 17497 | dlopen_self=$enable_dlopen_self |
| 17498 | |
| 17499 | # Whether dlopen of statically linked programs is supported. |
| 17500 | dlopen_self_static=$enable_dlopen_self_static |
| 17501 | |
| 17502 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17503 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17504 | |
| 17505 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17506 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17507 | |
| 17508 | # Compiler flag to allow reflexive dlopens. |
| 17509 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17510 | |
| 17511 | # Compiler flag to generate shared objects directly from archives. |
| 17512 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17513 | |
| 17514 | # Compiler flag to generate thread-safe objects. |
| 17515 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17516 | |
| 17517 | # Library versioning type. |
| 17518 | version_type=$version_type |
| 17519 | |
| 17520 | # Format of library name prefix. |
| 17521 | libname_spec=$lt_libname_spec |
| 17522 | |
| 17523 | # List of archive names. First name is the real one, the rest are links. |
| 17524 | # The last name is the one that the linker finds with -lNAME. |
| 17525 | library_names_spec=$lt_library_names_spec |
| 17526 | |
| 17527 | # The coded name of the library, if different from the real name. |
| 17528 | soname_spec=$lt_soname_spec |
| 17529 | |
| 17530 | # Commands used to build and install an old-style archive. |
| 17531 | RANLIB=$lt_RANLIB |
| 17532 | old_archive_cmds=$lt_old_archive_cmds |
| 17533 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17534 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17535 | |
| 17536 | # Create an old-style archive from a shared archive. |
| 17537 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17538 | |
| 17539 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17540 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17541 | |
| 17542 | # Commands used to build and install a shared archive. |
| 17543 | archive_cmds=$lt_archive_cmds |
| 17544 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17545 | postinstall_cmds=$lt_postinstall_cmds |
| 17546 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17547 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17548 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17549 | module_cmds=$lt_module_cmds |
| 17550 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17552 | # Commands to strip libraries. |
| 17553 | old_striplib=$lt_old_striplib |
| 17554 | striplib=$lt_striplib |
| 17555 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17556 | # Dependencies to place before the objects being linked to create a |
| 17557 | # shared library. |
| 17558 | predep_objects=$lt_predep_objects |
| 17559 | |
| 17560 | # Dependencies to place after the objects being linked to create a |
| 17561 | # shared library. |
| 17562 | postdep_objects=$lt_postdep_objects |
| 17563 | |
| 17564 | # Dependencies to place before the objects being linked to create a |
| 17565 | # shared library. |
| 17566 | predeps=$lt_predeps |
| 17567 | |
| 17568 | # Dependencies to place after the objects being linked to create a |
| 17569 | # shared library. |
| 17570 | postdeps=$lt_postdeps |
| 17571 | |
| 17572 | # The library search path used internally by the compiler when linking |
| 17573 | # a shared library. |
| 17574 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17576 | # Method to check whether dependent libraries are shared objects. |
| 17577 | deplibs_check_method=$lt_deplibs_check_method |
| 17578 | |
| 17579 | # Command to use when deplibs_check_method == file_magic. |
| 17580 | file_magic_cmd=$lt_file_magic_cmd |
| 17581 | |
| 17582 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17583 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17584 | |
| 17585 | # Flag that forces no undefined symbols. |
| 17586 | no_undefined_flag=$lt_no_undefined_flag |
| 17587 | |
| 17588 | # Commands used to finish a libtool library installation in a directory. |
| 17589 | finish_cmds=$lt_finish_cmds |
| 17590 | |
| 17591 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17592 | finish_eval=$lt_finish_eval |
| 17593 | |
| 17594 | # 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] | 17595 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17596 | |
| 17597 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17598 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17599 | |
| 17600 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17601 | 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] | 17602 | |
| 17603 | # This is the shared library runtime path variable. |
| 17604 | runpath_var=$runpath_var |
| 17605 | |
| 17606 | # This is the shared library path variable. |
| 17607 | shlibpath_var=$shlibpath_var |
| 17608 | |
| 17609 | # Is shlibpath searched before the hard-coded library search path? |
| 17610 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17611 | |
| 17612 | # How to hardcode a shared library path into an executable. |
| 17613 | hardcode_action=$hardcode_action |
| 17614 | |
| 17615 | # Whether we should hardcode library paths into libraries. |
| 17616 | hardcode_into_libs=$hardcode_into_libs |
| 17617 | |
| 17618 | # Flag to hardcode \$libdir into a binary during linking. |
| 17619 | # This must work even if \$libdir does not exist. |
| 17620 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17621 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17622 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17623 | # a binary during linking. This must work even if \$libdir does |
| 17624 | # not exist. |
| 17625 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17626 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17627 | # Whether we need a single -rpath flag with a separated argument. |
| 17628 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17629 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17630 | # 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] | 17631 | # resulting binary. |
| 17632 | hardcode_direct=$hardcode_direct |
| 17633 | |
| 17634 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17635 | # resulting binary. |
| 17636 | hardcode_minus_L=$hardcode_minus_L |
| 17637 | |
| 17638 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17639 | # the resulting binary. |
| 17640 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17641 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17642 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17643 | # and all subsequent libraries and executables linked against it. |
| 17644 | hardcode_automatic=$hardcode_automatic |
| 17645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17646 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17647 | # restored at relink time. |
| 17648 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17649 | |
| 17650 | # Whether libtool must link a program against all its dependency libraries. |
| 17651 | link_all_deplibs=$link_all_deplibs |
| 17652 | |
| 17653 | # Compile-time system search path for libraries |
| 17654 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17655 | |
| 17656 | # Run-time system search path for libraries |
| 17657 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17658 | |
| 17659 | # Fix the shell variable \$srcfile for the compiler. |
| 17660 | fix_srcfile_path="$fix_srcfile_path" |
| 17661 | |
| 17662 | # Set to yes if exported symbols are required. |
| 17663 | always_export_symbols=$always_export_symbols |
| 17664 | |
| 17665 | # The commands to list exported symbols. |
| 17666 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17667 | |
| 17668 | # The commands to extract the exported symbol list from a shared archive. |
| 17669 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17670 | |
| 17671 | # Symbols that should not be listed in the preloaded symbols. |
| 17672 | exclude_expsyms=$lt_exclude_expsyms |
| 17673 | |
| 17674 | # Symbols that must always be exported. |
| 17675 | include_expsyms=$lt_include_expsyms |
| 17676 | |
| 17677 | # ### END LIBTOOL CONFIG |
| 17678 | |
| 17679 | __EOF__ |
| 17680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17681 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17682 | case $host_os in |
| 17683 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17684 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17685 | |
| 17686 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17687 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17688 | # vanish in a puff of smoke. |
| 17689 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17690 | COLLECT_NAMES= |
| 17691 | export COLLECT_NAMES |
| 17692 | fi |
| 17693 | EOF |
| 17694 | ;; |
| 17695 | esac |
| 17696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17697 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17698 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17699 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17700 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17701 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17702 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17703 | mv -f "$cfgfile" "$ofile" || \ |
| 17704 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17705 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17706 | |
| 17707 | else |
| 17708 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17709 | # `config.status --recheck' to rerun these tests and create the |
| 17710 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17711 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17712 | if test -f "$ltmain_in"; then |
| 17713 | test -f Makefile && make "$ltmain" |
| 17714 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17715 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17716 | |
| 17717 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17718 | ac_ext=c |
| 17719 | ac_cpp='$CPP $CPPFLAGS' |
| 17720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17723 | |
| 17724 | CC="$lt_save_CC" |
| 17725 | |
| 17726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17727 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17728 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17729 | withval=$with_tags; tagnames="$withval" |
| 17730 | fi |
| 17731 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17732 | |
| 17733 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17734 | if test ! -f "${ofile}"; then |
| 17735 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17736 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17737 | fi |
| 17738 | |
| 17739 | if test -z "$LTCC"; then |
| 17740 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17741 | if test -z "$LTCC"; then |
| 17742 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17743 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17744 | else |
| 17745 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17746 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17747 | fi |
| 17748 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17749 | if test -z "$LTCFLAGS"; then |
| 17750 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17751 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17752 | |
| 17753 | # Extract list of available tagged configurations in $ofile. |
| 17754 | # Note that this assumes the entire list is on one line. |
| 17755 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17756 | |
| 17757 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17758 | for tagname in $tagnames; do |
| 17759 | IFS="$lt_save_ifs" |
| 17760 | # Check whether tagname contains only valid characters |
| 17761 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 17762 | "") ;; |
| 17763 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 17764 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 17765 | { (exit 1); exit 1; }; } |
| 17766 | ;; |
| 17767 | esac |
| 17768 | |
| 17769 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 17770 | then |
| 17771 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 17772 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 17773 | { (exit 1); exit 1; }; } |
| 17774 | fi |
| 17775 | |
| 17776 | # Update the list of available tags. |
| 17777 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17778 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17779 | |
| 17780 | case $tagname in |
| 17781 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17782 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17783 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17784 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17785 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17786 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17787 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17788 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17789 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17790 | |
| 17791 | |
| 17792 | |
| 17793 | |
| 17794 | archive_cmds_need_lc_CXX=no |
| 17795 | allow_undefined_flag_CXX= |
| 17796 | always_export_symbols_CXX=no |
| 17797 | archive_expsym_cmds_CXX= |
| 17798 | export_dynamic_flag_spec_CXX= |
| 17799 | hardcode_direct_CXX=no |
| 17800 | hardcode_libdir_flag_spec_CXX= |
| 17801 | hardcode_libdir_flag_spec_ld_CXX= |
| 17802 | hardcode_libdir_separator_CXX= |
| 17803 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17804 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17805 | hardcode_automatic_CXX=no |
| 17806 | module_cmds_CXX= |
| 17807 | module_expsym_cmds_CXX= |
| 17808 | link_all_deplibs_CXX=unknown |
| 17809 | old_archive_cmds_CXX=$old_archive_cmds |
| 17810 | no_undefined_flag_CXX= |
| 17811 | whole_archive_flag_spec_CXX= |
| 17812 | enable_shared_with_static_runtimes_CXX=no |
| 17813 | |
| 17814 | # Dependencies to place before and after the object being linked: |
| 17815 | predep_objects_CXX= |
| 17816 | postdep_objects_CXX= |
| 17817 | predeps_CXX= |
| 17818 | postdeps_CXX= |
| 17819 | compiler_lib_search_path_CXX= |
| 17820 | |
| 17821 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17822 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17823 | |
| 17824 | # Object file extension for compiled C++ test sources. |
| 17825 | objext=o |
| 17826 | objext_CXX=$objext |
| 17827 | |
| 17828 | # Code to be used in simple compile tests |
| 17829 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17830 | |
| 17831 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17832 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17833 | |
| 17834 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17835 | |
| 17836 | # If no C compiler was specified, use CC. |
| 17837 | LTCC=${LTCC-"$CC"} |
| 17838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17839 | # If no C compiler flags were specified, use CFLAGS. |
| 17840 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17841 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17842 | # Allow CC to be a program name with arguments. |
| 17843 | compiler=$CC |
| 17844 | |
| 17845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17846 | # save warnings/boilerplate of simple test code |
| 17847 | ac_outfile=conftest.$ac_objext |
| 17848 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17849 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17850 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17851 | $rm conftest* |
| 17852 | |
| 17853 | ac_outfile=conftest.$ac_objext |
| 17854 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17855 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17856 | _lt_linker_boilerplate=`cat conftest.err` |
| 17857 | $rm conftest* |
| 17858 | |
| 17859 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17860 | # Allow CC to be a program name with arguments. |
| 17861 | lt_save_CC=$CC |
| 17862 | lt_save_LD=$LD |
| 17863 | lt_save_GCC=$GCC |
| 17864 | GCC=$GXX |
| 17865 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17866 | lt_save_path_LD=$lt_cv_path_LD |
| 17867 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17868 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17869 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17870 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17871 | fi |
| 17872 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17873 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17874 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17875 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17876 | fi |
| 17877 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17878 | CC=${CXX-"c++"} |
| 17879 | compiler=$CC |
| 17880 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17881 | for cc_temp in $compiler""; do |
| 17882 | case $cc_temp in |
| 17883 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17884 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17885 | \-*) ;; |
| 17886 | *) break;; |
| 17887 | esac |
| 17888 | done |
| 17889 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17891 | |
| 17892 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17893 | # no_builtin_flag separately |
| 17894 | if test "$GXX" = yes; then |
| 17895 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17896 | else |
| 17897 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17898 | fi |
| 17899 | |
| 17900 | if test "$GXX" = yes; then |
| 17901 | # Set up default GNU C++ configuration |
| 17902 | |
| 17903 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17904 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17905 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17906 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17907 | else |
| 17908 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17909 | fi |
| 17910 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17911 | ac_prog=ld |
| 17912 | if test "$GCC" = yes; then |
| 17913 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17914 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17915 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17916 | case $host in |
| 17917 | *-*-mingw*) |
| 17918 | # gcc leaves a trailing carriage return which upsets mingw |
| 17919 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17920 | *) |
| 17921 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17922 | esac |
| 17923 | case $ac_prog in |
| 17924 | # Accept absolute paths. |
| 17925 | [\\/]* | ?:[\\/]*) |
| 17926 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17927 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17928 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17929 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17930 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17931 | done |
| 17932 | test -z "$LD" && LD="$ac_prog" |
| 17933 | ;; |
| 17934 | "") |
| 17935 | # If it fails, then pretend we aren't using GCC. |
| 17936 | ac_prog=ld |
| 17937 | ;; |
| 17938 | *) |
| 17939 | # If it is relative, then search for the first ld in PATH. |
| 17940 | with_gnu_ld=unknown |
| 17941 | ;; |
| 17942 | esac |
| 17943 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17944 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17945 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17946 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17947 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17948 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17949 | fi |
| 17950 | if test "${lt_cv_path_LD+set}" = set; then |
| 17951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17952 | else |
| 17953 | if test -z "$LD"; then |
| 17954 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17955 | for ac_dir in $PATH; do |
| 17956 | IFS="$lt_save_ifs" |
| 17957 | test -z "$ac_dir" && ac_dir=. |
| 17958 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17959 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17960 | # Check to see if the program is GNU ld. I'd rather use --version, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17961 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17962 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17963 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17964 | *GNU* | *'with BFD'*) |
| 17965 | test "$with_gnu_ld" != no && break |
| 17966 | ;; |
| 17967 | *) |
| 17968 | test "$with_gnu_ld" != yes && break |
| 17969 | ;; |
| 17970 | esac |
| 17971 | fi |
| 17972 | done |
| 17973 | IFS="$lt_save_ifs" |
| 17974 | else |
| 17975 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17976 | fi |
| 17977 | fi |
| 17978 | |
| 17979 | LD="$lt_cv_path_LD" |
| 17980 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17981 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 17982 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17983 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17984 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17985 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17986 | fi |
| 17987 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 17988 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 17989 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17990 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 17991 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17992 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 17993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17994 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17995 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17996 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17997 | *GNU* | *'with BFD'*) |
| 17998 | lt_cv_prog_gnu_ld=yes |
| 17999 | ;; |
| 18000 | *) |
| 18001 | lt_cv_prog_gnu_ld=no |
| 18002 | ;; |
| 18003 | esac |
| 18004 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18005 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18006 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18007 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18008 | |
| 18009 | |
| 18010 | |
| 18011 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18012 | # archiving commands below assume that GNU ld is being used. |
| 18013 | if test "$with_gnu_ld" = yes; then |
| 18014 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18015 | 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' |
| 18016 | |
| 18017 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18018 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18019 | |
| 18020 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18021 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18022 | # investigate it a little bit more. (MM) |
| 18023 | wlarc='${wl}' |
| 18024 | |
| 18025 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18026 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18027 | grep 'no-whole-archive' > /dev/null; then |
| 18028 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18029 | else |
| 18030 | whole_archive_flag_spec_CXX= |
| 18031 | fi |
| 18032 | else |
| 18033 | with_gnu_ld=no |
| 18034 | wlarc= |
| 18035 | |
| 18036 | # A generic and very simple default shared library creation |
| 18037 | # command for GNU C++ for the case where it uses the native |
| 18038 | # linker, instead of GNU ld. If possible, this setting should |
| 18039 | # overridden to take advantage of the native linker features on |
| 18040 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18041 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18042 | fi |
| 18043 | |
| 18044 | # Commands to make compiler produce verbose output that lists |
| 18045 | # what "hidden" libraries, object files and flags are used when |
| 18046 | # linking a shared library. |
| 18047 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18048 | |
| 18049 | else |
| 18050 | GXX=no |
| 18051 | with_gnu_ld=no |
| 18052 | wlarc= |
| 18053 | fi |
| 18054 | |
| 18055 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18056 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18057 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18058 | ld_shlibs_CXX=yes |
| 18059 | case $host_os in |
| 18060 | aix3*) |
| 18061 | # FIXME: insert proper C++ library support |
| 18062 | ld_shlibs_CXX=no |
| 18063 | ;; |
| 18064 | aix4* | aix5*) |
| 18065 | if test "$host_cpu" = ia64; then |
| 18066 | # On IA64, the linker does run time linking by default, so we don't |
| 18067 | # have to do anything special. |
| 18068 | aix_use_runtimelinking=no |
| 18069 | exp_sym_flag='-Bexport' |
| 18070 | no_entry_flag="" |
| 18071 | else |
| 18072 | aix_use_runtimelinking=no |
| 18073 | |
| 18074 | # Test if we are trying to use run time linking or normal |
| 18075 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18076 | # need to do runtime linking. |
| 18077 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18078 | for ld_flag in $LDFLAGS; do |
| 18079 | case $ld_flag in |
| 18080 | *-brtl*) |
| 18081 | aix_use_runtimelinking=yes |
| 18082 | break |
| 18083 | ;; |
| 18084 | esac |
| 18085 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18086 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18087 | esac |
| 18088 | |
| 18089 | exp_sym_flag='-bexport' |
| 18090 | no_entry_flag='-bnoentry' |
| 18091 | fi |
| 18092 | |
| 18093 | # When large executables or shared objects are built, AIX ld can |
| 18094 | # have problems creating the table of contents. If linking a library |
| 18095 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18096 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18097 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18098 | |
| 18099 | archive_cmds_CXX='' |
| 18100 | hardcode_direct_CXX=yes |
| 18101 | hardcode_libdir_separator_CXX=':' |
| 18102 | link_all_deplibs_CXX=yes |
| 18103 | |
| 18104 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18105 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18106 | # We only want to do this on AIX 4.2 and lower, the check |
| 18107 | # below for broken collect2 doesn't work under 4.3+ |
| 18108 | collect2name=`${CC} -print-prog-name=collect2` |
| 18109 | if test -f "$collect2name" && \ |
| 18110 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18111 | then |
| 18112 | # We have reworked collect2 |
| 18113 | hardcode_direct_CXX=yes |
| 18114 | else |
| 18115 | # We have old collect2 |
| 18116 | hardcode_direct_CXX=unsupported |
| 18117 | # It fails to find uninstalled libraries when the uninstalled |
| 18118 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18119 | # to unsupported forces relinking |
| 18120 | hardcode_minus_L_CXX=yes |
| 18121 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18122 | hardcode_libdir_separator_CXX= |
| 18123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18124 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18125 | esac |
| 18126 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18127 | if test "$aix_use_runtimelinking" = yes; then |
| 18128 | shared_flag="$shared_flag "'${wl}-G' |
| 18129 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18130 | else |
| 18131 | # not using gcc |
| 18132 | if test "$host_cpu" = ia64; then |
| 18133 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18134 | # chokes on -Wl,-G. The following line is correct: |
| 18135 | shared_flag='-G' |
| 18136 | else |
| 18137 | if test "$aix_use_runtimelinking" = yes; then |
| 18138 | shared_flag='${wl}-G' |
| 18139 | else |
| 18140 | shared_flag='${wl}-bM:SRE' |
| 18141 | fi |
| 18142 | fi |
| 18143 | fi |
| 18144 | |
| 18145 | # It seems that -bexpall does not export symbols beginning with |
| 18146 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18147 | always_export_symbols_CXX=yes |
| 18148 | if test "$aix_use_runtimelinking" = yes; then |
| 18149 | # Warning - without using the other runtime loading flags (-brtl), |
| 18150 | # -berok will link without error, but may produce a broken library. |
| 18151 | allow_undefined_flag_CXX='-berok' |
| 18152 | # Determine the default libpath from the value encoded in an empty executable. |
| 18153 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18154 | /* confdefs.h. */ |
| 18155 | _ACEOF |
| 18156 | cat confdefs.h >>conftest.$ac_ext |
| 18157 | cat >>conftest.$ac_ext <<_ACEOF |
| 18158 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18160 | int |
| 18161 | main () |
| 18162 | { |
| 18163 | |
| 18164 | ; |
| 18165 | return 0; |
| 18166 | } |
| 18167 | _ACEOF |
| 18168 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18169 | if { (ac_try="$ac_link" |
| 18170 | case "(($ac_try" in |
| 18171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18172 | *) ac_try_echo=$ac_try;; |
| 18173 | esac |
| 18174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18175 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18176 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18178 | rm -f conftest.er1 |
| 18179 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18181 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18183 | { (case "(($ac_try" in |
| 18184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18185 | *) ac_try_echo=$ac_try;; |
| 18186 | esac |
| 18187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18188 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18189 | ac_status=$? |
| 18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18191 | (exit $ac_status); }; } && |
| 18192 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18193 | { (case "(($ac_try" in |
| 18194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18195 | *) ac_try_echo=$ac_try;; |
| 18196 | esac |
| 18197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18198 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18199 | ac_status=$? |
| 18200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18201 | (exit $ac_status); }; }; then |
| 18202 | |
| 18203 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18204 | }'` |
| 18205 | # Check for a 64-bit object if we didn't find anything. |
| 18206 | 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; } |
| 18207 | }'`; fi |
| 18208 | else |
| 18209 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18211 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18212 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18214 | |
| 18215 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18216 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18217 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18218 | |
| 18219 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18221 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18222 | else |
| 18223 | if test "$host_cpu" = ia64; then |
| 18224 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18225 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18226 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18227 | else |
| 18228 | # Determine the default libpath from the value encoded in an empty executable. |
| 18229 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18230 | /* confdefs.h. */ |
| 18231 | _ACEOF |
| 18232 | cat confdefs.h >>conftest.$ac_ext |
| 18233 | cat >>conftest.$ac_ext <<_ACEOF |
| 18234 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18235 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18236 | int |
| 18237 | main () |
| 18238 | { |
| 18239 | |
| 18240 | ; |
| 18241 | return 0; |
| 18242 | } |
| 18243 | _ACEOF |
| 18244 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18245 | if { (ac_try="$ac_link" |
| 18246 | case "(($ac_try" in |
| 18247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18248 | *) ac_try_echo=$ac_try;; |
| 18249 | esac |
| 18250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18251 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18252 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18253 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18254 | rm -f conftest.er1 |
| 18255 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18257 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18258 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18259 | { (case "(($ac_try" in |
| 18260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18261 | *) ac_try_echo=$ac_try;; |
| 18262 | esac |
| 18263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18264 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18265 | ac_status=$? |
| 18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18267 | (exit $ac_status); }; } && |
| 18268 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18269 | { (case "(($ac_try" in |
| 18270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18271 | *) ac_try_echo=$ac_try;; |
| 18272 | esac |
| 18273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18274 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18275 | ac_status=$? |
| 18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18277 | (exit $ac_status); }; }; then |
| 18278 | |
| 18279 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18280 | }'` |
| 18281 | # Check for a 64-bit object if we didn't find anything. |
| 18282 | 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; } |
| 18283 | }'`; fi |
| 18284 | else |
| 18285 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18288 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18289 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18290 | |
| 18291 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18292 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18293 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18294 | |
| 18295 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18296 | # Warning - without using the other run time loading flags, |
| 18297 | # -berok will link without error, but may produce a broken library. |
| 18298 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18299 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18300 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18301 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18302 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18303 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18304 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18305 | fi |
| 18306 | fi |
| 18307 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18308 | |
| 18309 | beos*) |
| 18310 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18311 | allow_undefined_flag_CXX=unsupported |
| 18312 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18313 | # support --undefined. This deserves some investigation. FIXME |
| 18314 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18315 | else |
| 18316 | ld_shlibs_CXX=no |
| 18317 | fi |
| 18318 | ;; |
| 18319 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18320 | chorus*) |
| 18321 | case $cc_basename in |
| 18322 | *) |
| 18323 | # FIXME: insert proper C++ library support |
| 18324 | ld_shlibs_CXX=no |
| 18325 | ;; |
| 18326 | esac |
| 18327 | ;; |
| 18328 | |
| 18329 | cygwin* | mingw* | pw32*) |
| 18330 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18331 | # as there is no search path for DLLs. |
| 18332 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18333 | allow_undefined_flag_CXX=unsupported |
| 18334 | always_export_symbols_CXX=no |
| 18335 | enable_shared_with_static_runtimes_CXX=yes |
| 18336 | |
| 18337 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18338 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18339 | # If the export-symbols file already is a .def file (1st line |
| 18340 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18341 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18342 | cp $export_symbols $output_objdir/$soname.def; |
| 18343 | else |
| 18344 | echo EXPORTS > $output_objdir/$soname.def; |
| 18345 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18346 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18347 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18348 | else |
| 18349 | ld_shlibs_CXX=no |
| 18350 | fi |
| 18351 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18352 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18353 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18354 | rhapsody* | darwin1.[012]) |
| 18355 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18356 | ;; |
| 18357 | *) # Darwin 1.3 on |
| 18358 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18359 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18360 | else |
| 18361 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18362 | 10.[012]) |
| 18363 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18364 | ;; |
| 18365 | 10.*) |
| 18366 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18367 | ;; |
| 18368 | esac |
| 18369 | fi |
| 18370 | ;; |
| 18371 | esac |
| 18372 | archive_cmds_need_lc_CXX=no |
| 18373 | hardcode_direct_CXX=no |
| 18374 | hardcode_automatic_CXX=yes |
| 18375 | hardcode_shlibpath_var_CXX=unsupported |
| 18376 | whole_archive_flag_spec_CXX='' |
| 18377 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18378 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18379 | if test "$GXX" = yes ; then |
| 18380 | lt_int_apple_cc_single_mod=no |
| 18381 | output_verbose_link_cmd='echo' |
| 18382 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18383 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18384 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18385 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18386 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18387 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18388 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18389 | fi |
| 18390 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18391 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18392 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18393 | 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}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18394 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18395 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18396 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18397 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18398 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18399 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18400 | xlc*) |
| 18401 | output_verbose_link_cmd='echo' |
| 18402 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 18403 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18404 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18405 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 18406 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18407 | ;; |
| 18408 | *) |
| 18409 | ld_shlibs_CXX=no |
| 18410 | ;; |
| 18411 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18412 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18413 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18414 | |
| 18415 | dgux*) |
| 18416 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18417 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18418 | # FIXME: insert proper C++ library support |
| 18419 | ld_shlibs_CXX=no |
| 18420 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18421 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18422 | # Green Hills C++ Compiler |
| 18423 | # FIXME: insert proper C++ library support |
| 18424 | ld_shlibs_CXX=no |
| 18425 | ;; |
| 18426 | *) |
| 18427 | # FIXME: insert proper C++ library support |
| 18428 | ld_shlibs_CXX=no |
| 18429 | ;; |
| 18430 | esac |
| 18431 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18432 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18433 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18434 | ld_shlibs_CXX=no |
| 18435 | ;; |
| 18436 | freebsd-elf*) |
| 18437 | archive_cmds_need_lc_CXX=no |
| 18438 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18439 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18440 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18441 | # conventions |
| 18442 | ld_shlibs_CXX=yes |
| 18443 | ;; |
| 18444 | gnu*) |
| 18445 | ;; |
| 18446 | hpux9*) |
| 18447 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18448 | hardcode_libdir_separator_CXX=: |
| 18449 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18450 | hardcode_direct_CXX=yes |
| 18451 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18452 | # but as the default |
| 18453 | # location of the library. |
| 18454 | |
| 18455 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18456 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | # FIXME: insert proper C++ library support |
| 18458 | ld_shlibs_CXX=no |
| 18459 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18460 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18461 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18462 | # Commands to make compiler produce verbose output that lists |
| 18463 | # what "hidden" libraries, object files and flags are used when |
| 18464 | # linking a shared library. |
| 18465 | # |
| 18466 | # There doesn't appear to be a way to prevent this compiler from |
| 18467 | # explicitly linking system object files so we need to strip them |
| 18468 | # from the output so that they don't get included in the library |
| 18469 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18470 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18471 | ;; |
| 18472 | *) |
| 18473 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18474 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18475 | else |
| 18476 | # FIXME: insert proper C++ library support |
| 18477 | ld_shlibs_CXX=no |
| 18478 | fi |
| 18479 | ;; |
| 18480 | esac |
| 18481 | ;; |
| 18482 | hpux10*|hpux11*) |
| 18483 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18484 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18485 | hardcode_libdir_separator_CXX=: |
| 18486 | |
| 18487 | case $host_cpu in |
| 18488 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18489 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18490 | ;; |
| 18491 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18492 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18493 | ;; |
| 18494 | esac |
| 18495 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18496 | case $host_cpu in |
| 18497 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18498 | hardcode_direct_CXX=no |
| 18499 | hardcode_shlibpath_var_CXX=no |
| 18500 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18501 | *) |
| 18502 | hardcode_direct_CXX=yes |
| 18503 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18504 | # but as the default |
| 18505 | # location of the library. |
| 18506 | ;; |
| 18507 | esac |
| 18508 | |
| 18509 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18510 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18511 | # FIXME: insert proper C++ library support |
| 18512 | ld_shlibs_CXX=no |
| 18513 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18514 | aCC*) |
| 18515 | case $host_cpu in |
| 18516 | hppa*64*) |
| 18517 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18518 | ;; |
| 18519 | ia64*) |
| 18520 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18521 | ;; |
| 18522 | *) |
| 18523 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18524 | ;; |
| 18525 | esac |
| 18526 | # Commands to make compiler produce verbose output that lists |
| 18527 | # what "hidden" libraries, object files and flags are used when |
| 18528 | # linking a shared library. |
| 18529 | # |
| 18530 | # There doesn't appear to be a way to prevent this compiler from |
| 18531 | # explicitly linking system object files so we need to strip them |
| 18532 | # from the output so that they don't get included in the library |
| 18533 | # dependencies. |
| 18534 | 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' |
| 18535 | ;; |
| 18536 | *) |
| 18537 | if test "$GXX" = yes; then |
| 18538 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18539 | case $host_cpu in |
| 18540 | hppa*64*) |
| 18541 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18542 | ;; |
| 18543 | ia64*) |
| 18544 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18545 | ;; |
| 18546 | *) |
| 18547 | 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' |
| 18548 | ;; |
| 18549 | esac |
| 18550 | fi |
| 18551 | else |
| 18552 | # FIXME: insert proper C++ library support |
| 18553 | ld_shlibs_CXX=no |
| 18554 | fi |
| 18555 | ;; |
| 18556 | esac |
| 18557 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18558 | interix3*) |
| 18559 | hardcode_direct_CXX=no |
| 18560 | hardcode_shlibpath_var_CXX=no |
| 18561 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18562 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18563 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18564 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18565 | # default) and relocated if they conflict, which is a slow very memory |
| 18566 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18567 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18568 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18569 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18570 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 18571 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18572 | irix5* | irix6*) |
| 18573 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18574 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18575 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18576 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18577 | |
| 18578 | # Archives containing C++ object files must be created using |
| 18579 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18580 | # necessary to make sure instantiated templates are included |
| 18581 | # in the archive. |
| 18582 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18583 | ;; |
| 18584 | *) |
| 18585 | if test "$GXX" = yes; then |
| 18586 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18587 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18588 | else |
| 18589 | 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' |
| 18590 | fi |
| 18591 | fi |
| 18592 | link_all_deplibs_CXX=yes |
| 18593 | ;; |
| 18594 | esac |
| 18595 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18596 | hardcode_libdir_separator_CXX=: |
| 18597 | ;; |
| 18598 | linux*) |
| 18599 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18600 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18601 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18602 | |
| 18603 | # KCC will only create a shared library if the output file |
| 18604 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18605 | # to its proper name (with version) after linking. |
| 18606 | 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' |
| 18607 | 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' |
| 18608 | # Commands to make compiler produce verbose output that lists |
| 18609 | # what "hidden" libraries, object files and flags are used when |
| 18610 | # linking a shared library. |
| 18611 | # |
| 18612 | # There doesn't appear to be a way to prevent this compiler from |
| 18613 | # explicitly linking system object files so we need to strip them |
| 18614 | # from the output so that they don't get included in the library |
| 18615 | # dependencies. |
| 18616 | 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' |
| 18617 | |
| 18618 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18619 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18620 | |
| 18621 | # Archives containing C++ object files must be created using |
| 18622 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18623 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18624 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18625 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18626 | # Intel C++ |
| 18627 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18628 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18629 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18630 | # earlier do not add the objects themselves. |
| 18631 | case `$CC -V 2>&1` in |
| 18632 | *"Version 7."*) |
| 18633 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18634 | 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' |
| 18635 | ;; |
| 18636 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18637 | tmp_idyn= |
| 18638 | case $host_cpu in |
| 18639 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18640 | esac |
| 18641 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18642 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18643 | ;; |
| 18644 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18645 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18646 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18647 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18648 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18649 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18650 | pgCC*) |
| 18651 | # Portland Group C++ compiler |
| 18652 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18653 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 18654 | |
| 18655 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18656 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18657 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 18658 | ;; |
| 18659 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18660 | # Compaq C++ |
| 18661 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18662 | 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' |
| 18663 | |
| 18664 | runpath_var=LD_RUN_PATH |
| 18665 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18666 | hardcode_libdir_separator_CXX=: |
| 18667 | |
| 18668 | # Commands to make compiler produce verbose output that lists |
| 18669 | # what "hidden" libraries, object files and flags are used when |
| 18670 | # linking a shared library. |
| 18671 | # |
| 18672 | # There doesn't appear to be a way to prevent this compiler from |
| 18673 | # explicitly linking system object files so we need to strip them |
| 18674 | # from the output so that they don't get included in the library |
| 18675 | # dependencies. |
| 18676 | 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' |
| 18677 | ;; |
| 18678 | esac |
| 18679 | ;; |
| 18680 | lynxos*) |
| 18681 | # FIXME: insert proper C++ library support |
| 18682 | ld_shlibs_CXX=no |
| 18683 | ;; |
| 18684 | m88k*) |
| 18685 | # FIXME: insert proper C++ library support |
| 18686 | ld_shlibs_CXX=no |
| 18687 | ;; |
| 18688 | mvs*) |
| 18689 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18690 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18691 | # FIXME: insert proper C++ library support |
| 18692 | ld_shlibs_CXX=no |
| 18693 | ;; |
| 18694 | *) |
| 18695 | # FIXME: insert proper C++ library support |
| 18696 | ld_shlibs_CXX=no |
| 18697 | ;; |
| 18698 | esac |
| 18699 | ;; |
| 18700 | netbsd*) |
| 18701 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18702 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18703 | wlarc= |
| 18704 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18705 | hardcode_direct_CXX=yes |
| 18706 | hardcode_shlibpath_var_CXX=no |
| 18707 | fi |
| 18708 | # Workaround some broken pre-1.5 toolchains |
| 18709 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18710 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18711 | openbsd2*) |
| 18712 | # C++ shared libraries are fairly broken |
| 18713 | ld_shlibs_CXX=no |
| 18714 | ;; |
| 18715 | openbsd*) |
| 18716 | hardcode_direct_CXX=yes |
| 18717 | hardcode_shlibpath_var_CXX=no |
| 18718 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18719 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18720 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18721 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18722 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18723 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18724 | fi |
| 18725 | output_verbose_link_cmd='echo' |
| 18726 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18727 | osf3*) |
| 18728 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18729 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18730 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18731 | |
| 18732 | # KCC will only create a shared library if the output file |
| 18733 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18734 | # to its proper name (with version) after linking. |
| 18735 | 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' |
| 18736 | |
| 18737 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18738 | hardcode_libdir_separator_CXX=: |
| 18739 | |
| 18740 | # Archives containing C++ object files must be created using |
| 18741 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18742 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18743 | |
| 18744 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18745 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18746 | # Rational C++ 2.4.1 |
| 18747 | # FIXME: insert proper C++ library support |
| 18748 | ld_shlibs_CXX=no |
| 18749 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18750 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18751 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18752 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18753 | |
| 18754 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18755 | hardcode_libdir_separator_CXX=: |
| 18756 | |
| 18757 | # Commands to make compiler produce verbose output that lists |
| 18758 | # what "hidden" libraries, object files and flags are used when |
| 18759 | # linking a shared library. |
| 18760 | # |
| 18761 | # There doesn't appear to be a way to prevent this compiler from |
| 18762 | # explicitly linking system object files so we need to strip them |
| 18763 | # from the output so that they don't get included in the library |
| 18764 | # dependencies. |
| 18765 | 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' |
| 18766 | ;; |
| 18767 | *) |
| 18768 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18769 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18770 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18771 | |
| 18772 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18773 | hardcode_libdir_separator_CXX=: |
| 18774 | |
| 18775 | # Commands to make compiler produce verbose output that lists |
| 18776 | # what "hidden" libraries, object files and flags are used when |
| 18777 | # linking a shared library. |
| 18778 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18779 | |
| 18780 | else |
| 18781 | # FIXME: insert proper C++ library support |
| 18782 | ld_shlibs_CXX=no |
| 18783 | fi |
| 18784 | ;; |
| 18785 | esac |
| 18786 | ;; |
| 18787 | osf4* | osf5*) |
| 18788 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18789 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18790 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18791 | |
| 18792 | # KCC will only create a shared library if the output file |
| 18793 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18794 | # to its proper name (with version) after linking. |
| 18795 | 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' |
| 18796 | |
| 18797 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18798 | hardcode_libdir_separator_CXX=: |
| 18799 | |
| 18800 | # Archives containing C++ object files must be created using |
| 18801 | # the KAI C++ compiler. |
| 18802 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 18803 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18804 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18805 | # Rational C++ 2.4.1 |
| 18806 | # FIXME: insert proper C++ library support |
| 18807 | ld_shlibs_CXX=no |
| 18808 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18809 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18810 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18811 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18812 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18813 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18814 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18815 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | |
| 18817 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18818 | hardcode_libdir_separator_CXX=: |
| 18819 | |
| 18820 | # Commands to make compiler produce verbose output that lists |
| 18821 | # what "hidden" libraries, object files and flags are used when |
| 18822 | # linking a shared library. |
| 18823 | # |
| 18824 | # There doesn't appear to be a way to prevent this compiler from |
| 18825 | # explicitly linking system object files so we need to strip them |
| 18826 | # from the output so that they don't get included in the library |
| 18827 | # dependencies. |
| 18828 | 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' |
| 18829 | ;; |
| 18830 | *) |
| 18831 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18832 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18833 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18834 | |
| 18835 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18836 | hardcode_libdir_separator_CXX=: |
| 18837 | |
| 18838 | # Commands to make compiler produce verbose output that lists |
| 18839 | # what "hidden" libraries, object files and flags are used when |
| 18840 | # linking a shared library. |
| 18841 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18842 | |
| 18843 | else |
| 18844 | # FIXME: insert proper C++ library support |
| 18845 | ld_shlibs_CXX=no |
| 18846 | fi |
| 18847 | ;; |
| 18848 | esac |
| 18849 | ;; |
| 18850 | psos*) |
| 18851 | # FIXME: insert proper C++ library support |
| 18852 | ld_shlibs_CXX=no |
| 18853 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18854 | sunos4*) |
| 18855 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18856 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18857 | # Sun C++ 4.x |
| 18858 | # FIXME: insert proper C++ library support |
| 18859 | ld_shlibs_CXX=no |
| 18860 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18861 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18862 | # Lucid |
| 18863 | # FIXME: insert proper C++ library support |
| 18864 | ld_shlibs_CXX=no |
| 18865 | ;; |
| 18866 | *) |
| 18867 | # FIXME: insert proper C++ library support |
| 18868 | ld_shlibs_CXX=no |
| 18869 | ;; |
| 18870 | esac |
| 18871 | ;; |
| 18872 | solaris*) |
| 18873 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18874 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18875 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18876 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18877 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18878 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18879 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18880 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18881 | |
| 18882 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18883 | hardcode_shlibpath_var_CXX=no |
| 18884 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18885 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18886 | *) |
| 18887 | # The C++ compiler is used as linker so we must use $wl |
| 18888 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18889 | # linker. We must also pass each convience library through |
| 18890 | # to the system linker between allextract/defaultextract. |
| 18891 | # The C++ compiler will combine linker options so we |
| 18892 | # cannot just pass the convience library names through |
| 18893 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18894 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18895 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18896 | ;; |
| 18897 | esac |
| 18898 | link_all_deplibs_CXX=yes |
| 18899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18900 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | |
| 18902 | # Archives containing C++ object files must be created using |
| 18903 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18904 | # necessary to make sure instantiated templates are included |
| 18905 | # in the archive. |
| 18906 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18907 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18908 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18909 | # Green Hills C++ Compiler |
| 18910 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18911 | |
| 18912 | # The C++ compiler must be used to create the archive. |
| 18913 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18914 | ;; |
| 18915 | *) |
| 18916 | # GNU C++ compiler with Solaris linker |
| 18917 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18918 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18919 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18920 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18921 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18922 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18923 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18924 | # Commands to make compiler produce verbose output that lists |
| 18925 | # what "hidden" libraries, object files and flags are used when |
| 18926 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18927 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18928 | else |
| 18929 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18930 | # platform. |
| 18931 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18932 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18933 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18934 | |
| 18935 | # Commands to make compiler produce verbose output that lists |
| 18936 | # what "hidden" libraries, object files and flags are used when |
| 18937 | # linking a shared library. |
| 18938 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18939 | fi |
| 18940 | |
| 18941 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18942 | fi |
| 18943 | ;; |
| 18944 | esac |
| 18945 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18946 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18947 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18948 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18949 | hardcode_shlibpath_var_CXX=no |
| 18950 | runpath_var='LD_RUN_PATH' |
| 18951 | |
| 18952 | case $cc_basename in |
| 18953 | CC*) |
| 18954 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18955 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18956 | ;; |
| 18957 | *) |
| 18958 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18959 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18960 | ;; |
| 18961 | esac |
| 18962 | ;; |
| 18963 | sysv5* | sco3.2v5* | sco5v6*) |
| 18964 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18965 | # link with -lc, and that would cause any symbols used from libc to |
| 18966 | # always be unresolved, which means just about no library would |
| 18967 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18968 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18969 | # as -z defs. |
| 18970 | # For security reasons, it is highly recommended that you always |
| 18971 | # use absolute paths for naming shared libraries, and exclude the |
| 18972 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 18973 | # requires that you compile everything twice, which is a pain. |
| 18974 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 18975 | # non-empty value in the environment. Most likely only useful for |
| 18976 | # creating official distributions of packages. |
| 18977 | # This is a hack until libtool officially supports absolute path |
| 18978 | # names for shared libraries. |
| 18979 | no_undefined_flag_CXX='${wl}-z,text' |
| 18980 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18981 | archive_cmds_need_lc_CXX=no |
| 18982 | hardcode_shlibpath_var_CXX=no |
| 18983 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18984 | hardcode_libdir_separator_CXX=':' |
| 18985 | link_all_deplibs_CXX=yes |
| 18986 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18987 | runpath_var='LD_RUN_PATH' |
| 18988 | |
| 18989 | case $cc_basename in |
| 18990 | CC*) |
| 18991 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18992 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18993 | ;; |
| 18994 | *) |
| 18995 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18996 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18997 | ;; |
| 18998 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18999 | ;; |
| 19000 | tandem*) |
| 19001 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19002 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19003 | # NonStop-UX NCC 3.20 |
| 19004 | # FIXME: insert proper C++ library support |
| 19005 | ld_shlibs_CXX=no |
| 19006 | ;; |
| 19007 | *) |
| 19008 | # FIXME: insert proper C++ library support |
| 19009 | ld_shlibs_CXX=no |
| 19010 | ;; |
| 19011 | esac |
| 19012 | ;; |
| 19013 | vxworks*) |
| 19014 | # FIXME: insert proper C++ library support |
| 19015 | ld_shlibs_CXX=no |
| 19016 | ;; |
| 19017 | *) |
| 19018 | # FIXME: insert proper C++ library support |
| 19019 | ld_shlibs_CXX=no |
| 19020 | ;; |
| 19021 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19022 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19023 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19024 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19025 | |
| 19026 | GCC_CXX="$GXX" |
| 19027 | LD_CXX="$LD" |
| 19028 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19029 | |
| 19030 | cat > conftest.$ac_ext <<EOF |
| 19031 | class Foo |
| 19032 | { |
| 19033 | public: |
| 19034 | Foo (void) { a = 0; } |
| 19035 | private: |
| 19036 | int a; |
| 19037 | }; |
| 19038 | EOF |
| 19039 | |
| 19040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19041 | (eval $ac_compile) 2>&5 |
| 19042 | ac_status=$? |
| 19043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19044 | (exit $ac_status); }; then |
| 19045 | # Parse the compiler output and extract the necessary |
| 19046 | # objects, libraries and library flags. |
| 19047 | |
| 19048 | # Sentinel used to keep track of whether or not we are before |
| 19049 | # the conftest object file. |
| 19050 | pre_test_object_deps_done=no |
| 19051 | |
| 19052 | # The `*' in the case matches for architectures that use `case' in |
| 19053 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19054 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19055 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19056 | |
| 19057 | for p in `eval $output_verbose_link_cmd`; do |
| 19058 | case $p in |
| 19059 | |
| 19060 | -L* | -R* | -l*) |
| 19061 | # Some compilers place space between "-{L,R}" and the path. |
| 19062 | # Remove the space. |
| 19063 | if test $p = "-L" \ |
| 19064 | || test $p = "-R"; then |
| 19065 | prev=$p |
| 19066 | continue |
| 19067 | else |
| 19068 | prev= |
| 19069 | fi |
| 19070 | |
| 19071 | if test "$pre_test_object_deps_done" = no; then |
| 19072 | case $p in |
| 19073 | -L* | -R*) |
| 19074 | # Internal compiler library paths should come after those |
| 19075 | # provided the user. The postdeps already come after the |
| 19076 | # user supplied libs so there is no need to process them. |
| 19077 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19078 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19079 | else |
| 19080 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19081 | fi |
| 19082 | ;; |
| 19083 | # The "-l" case would never come before the object being |
| 19084 | # linked, so don't bother handling this case. |
| 19085 | esac |
| 19086 | else |
| 19087 | if test -z "$postdeps_CXX"; then |
| 19088 | postdeps_CXX="${prev}${p}" |
| 19089 | else |
| 19090 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19091 | fi |
| 19092 | fi |
| 19093 | ;; |
| 19094 | |
| 19095 | *.$objext) |
| 19096 | # This assumes that the test object file only shows up |
| 19097 | # once in the compiler output. |
| 19098 | if test "$p" = "conftest.$objext"; then |
| 19099 | pre_test_object_deps_done=yes |
| 19100 | continue |
| 19101 | fi |
| 19102 | |
| 19103 | if test "$pre_test_object_deps_done" = no; then |
| 19104 | if test -z "$predep_objects_CXX"; then |
| 19105 | predep_objects_CXX="$p" |
| 19106 | else |
| 19107 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19108 | fi |
| 19109 | else |
| 19110 | if test -z "$postdep_objects_CXX"; then |
| 19111 | postdep_objects_CXX="$p" |
| 19112 | else |
| 19113 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19114 | fi |
| 19115 | fi |
| 19116 | ;; |
| 19117 | |
| 19118 | *) ;; # Ignore the rest. |
| 19119 | |
| 19120 | esac |
| 19121 | done |
| 19122 | |
| 19123 | # Clean up. |
| 19124 | rm -f a.out a.exe |
| 19125 | else |
| 19126 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19127 | fi |
| 19128 | |
| 19129 | $rm -f confest.$objext |
| 19130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19131 | # PORTME: override above test on systems where it is broken |
| 19132 | case $host_os in |
| 19133 | interix3*) |
| 19134 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19135 | # hack all around it, let's just trust "g++" to DTRT. |
| 19136 | predep_objects_CXX= |
| 19137 | postdep_objects_CXX= |
| 19138 | postdeps_CXX= |
| 19139 | ;; |
| 19140 | |
| 19141 | solaris*) |
| 19142 | case $cc_basename in |
| 19143 | CC*) |
| 19144 | # Adding this requires a known-good setup of shared libraries for |
| 19145 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19146 | # archive will be linked into the output, leading to subtle bugs. |
| 19147 | postdeps_CXX='-lCstd -lCrun' |
| 19148 | ;; |
| 19149 | esac |
| 19150 | ;; |
| 19151 | esac |
| 19152 | |
| 19153 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19154 | case " $postdeps_CXX " in |
| 19155 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19156 | esac |
| 19157 | |
| 19158 | lt_prog_compiler_wl_CXX= |
| 19159 | lt_prog_compiler_pic_CXX= |
| 19160 | lt_prog_compiler_static_CXX= |
| 19161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19162 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19163 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19164 | |
| 19165 | # C++ specific cases for pic, static, wl, etc. |
| 19166 | if test "$GXX" = yes; then |
| 19167 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19168 | lt_prog_compiler_static_CXX='-static' |
| 19169 | |
| 19170 | case $host_os in |
| 19171 | aix*) |
| 19172 | # All AIX code is PIC. |
| 19173 | if test "$host_cpu" = ia64; then |
| 19174 | # AIX 5 now supports IA64 processor |
| 19175 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19176 | fi |
| 19177 | ;; |
| 19178 | amigaos*) |
| 19179 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19180 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19181 | # like `-m68040'. |
| 19182 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19183 | ;; |
| 19184 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19185 | # PIC is the default for these OSes. |
| 19186 | ;; |
| 19187 | mingw* | os2* | pw32*) |
| 19188 | # This hack is so that the source file can tell whether it is being |
| 19189 | # built for inclusion in a dll (and should export symbols for example). |
| 19190 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19191 | ;; |
| 19192 | darwin* | rhapsody*) |
| 19193 | # PIC is the default on this platform |
| 19194 | # Common symbols not allowed in MH_DYLIB files |
| 19195 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19196 | ;; |
| 19197 | *djgpp*) |
| 19198 | # DJGPP does not support shared libraries at all |
| 19199 | lt_prog_compiler_pic_CXX= |
| 19200 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19201 | interix3*) |
| 19202 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19203 | # Instead, we relocate shared libraries at runtime. |
| 19204 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19205 | sysv4*MP*) |
| 19206 | if test -d /usr/nec; then |
| 19207 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19208 | fi |
| 19209 | ;; |
| 19210 | hpux*) |
| 19211 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19212 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19213 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19214 | hppa*64*|ia64*) |
| 19215 | ;; |
| 19216 | *) |
| 19217 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19218 | ;; |
| 19219 | esac |
| 19220 | ;; |
| 19221 | *) |
| 19222 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19223 | ;; |
| 19224 | esac |
| 19225 | else |
| 19226 | case $host_os in |
| 19227 | aix4* | aix5*) |
| 19228 | # All AIX code is PIC. |
| 19229 | if test "$host_cpu" = ia64; then |
| 19230 | # AIX 5 now supports IA64 processor |
| 19231 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19232 | else |
| 19233 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19234 | fi |
| 19235 | ;; |
| 19236 | chorus*) |
| 19237 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19238 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19239 | # Green Hills C++ Compiler |
| 19240 | # _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" |
| 19241 | ;; |
| 19242 | esac |
| 19243 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19244 | darwin*) |
| 19245 | # PIC is the default on this platform |
| 19246 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19247 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19248 | xlc*) |
| 19249 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19250 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19251 | ;; |
| 19252 | esac |
| 19253 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19254 | dgux*) |
| 19255 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19256 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19257 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19258 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19259 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19260 | # Green Hills C++ Compiler |
| 19261 | lt_prog_compiler_pic_CXX='-pic' |
| 19262 | ;; |
| 19263 | *) |
| 19264 | ;; |
| 19265 | esac |
| 19266 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19267 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19268 | # FreeBSD uses GNU C++ |
| 19269 | ;; |
| 19270 | hpux9* | hpux10* | hpux11*) |
| 19271 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19272 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19273 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19274 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19275 | if test "$host_cpu" != ia64; then |
| 19276 | lt_prog_compiler_pic_CXX='+Z' |
| 19277 | fi |
| 19278 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19279 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19280 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19281 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19282 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19283 | hppa*64*|ia64*) |
| 19284 | # +Z the default |
| 19285 | ;; |
| 19286 | *) |
| 19287 | lt_prog_compiler_pic_CXX='+Z' |
| 19288 | ;; |
| 19289 | esac |
| 19290 | ;; |
| 19291 | *) |
| 19292 | ;; |
| 19293 | esac |
| 19294 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19295 | interix*) |
| 19296 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19297 | # Anyone wants to do a port? |
| 19298 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19299 | irix5* | irix6* | nonstopux*) |
| 19300 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19301 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19302 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19303 | lt_prog_compiler_static_CXX='-non_shared' |
| 19304 | # CC pic flag -KPIC is the default. |
| 19305 | ;; |
| 19306 | *) |
| 19307 | ;; |
| 19308 | esac |
| 19309 | ;; |
| 19310 | linux*) |
| 19311 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19312 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19313 | # KAI C++ Compiler |
| 19314 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19315 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19316 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19317 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19318 | # Intel C++ |
| 19319 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19320 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19321 | lt_prog_compiler_static_CXX='-static' |
| 19322 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19323 | pgCC*) |
| 19324 | # Portland Group C++ compiler. |
| 19325 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19326 | lt_prog_compiler_pic_CXX='-fpic' |
| 19327 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19328 | ;; |
| 19329 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19330 | # Compaq C++ |
| 19331 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19332 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19333 | lt_prog_compiler_pic_CXX= |
| 19334 | lt_prog_compiler_static_CXX='-non_shared' |
| 19335 | ;; |
| 19336 | *) |
| 19337 | ;; |
| 19338 | esac |
| 19339 | ;; |
| 19340 | lynxos*) |
| 19341 | ;; |
| 19342 | m88k*) |
| 19343 | ;; |
| 19344 | mvs*) |
| 19345 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19346 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19347 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19348 | ;; |
| 19349 | *) |
| 19350 | ;; |
| 19351 | esac |
| 19352 | ;; |
| 19353 | netbsd*) |
| 19354 | ;; |
| 19355 | osf3* | osf4* | osf5*) |
| 19356 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19357 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19358 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19359 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19360 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19361 | # Rational C++ 2.4.1 |
| 19362 | lt_prog_compiler_pic_CXX='-pic' |
| 19363 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19364 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19365 | # Digital/Compaq C++ |
| 19366 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19367 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19368 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19369 | lt_prog_compiler_pic_CXX= |
| 19370 | lt_prog_compiler_static_CXX='-non_shared' |
| 19371 | ;; |
| 19372 | *) |
| 19373 | ;; |
| 19374 | esac |
| 19375 | ;; |
| 19376 | psos*) |
| 19377 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19378 | solaris*) |
| 19379 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19380 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19381 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19382 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19383 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19384 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19385 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19386 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19387 | # Green Hills C++ Compiler |
| 19388 | lt_prog_compiler_pic_CXX='-PIC' |
| 19389 | ;; |
| 19390 | *) |
| 19391 | ;; |
| 19392 | esac |
| 19393 | ;; |
| 19394 | sunos4*) |
| 19395 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19396 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19397 | # Sun C++ 4.x |
| 19398 | lt_prog_compiler_pic_CXX='-pic' |
| 19399 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19400 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19401 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19402 | # Lucid |
| 19403 | lt_prog_compiler_pic_CXX='-pic' |
| 19404 | ;; |
| 19405 | *) |
| 19406 | ;; |
| 19407 | esac |
| 19408 | ;; |
| 19409 | tandem*) |
| 19410 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19411 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19412 | # NonStop-UX NCC 3.20 |
| 19413 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19414 | ;; |
| 19415 | *) |
| 19416 | ;; |
| 19417 | esac |
| 19418 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19419 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19420 | case $cc_basename in |
| 19421 | CC*) |
| 19422 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19423 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19424 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19425 | ;; |
| 19426 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19427 | ;; |
| 19428 | vxworks*) |
| 19429 | ;; |
| 19430 | *) |
| 19431 | lt_prog_compiler_can_build_shared_CXX=no |
| 19432 | ;; |
| 19433 | esac |
| 19434 | fi |
| 19435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19436 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19437 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19438 | |
| 19439 | # |
| 19440 | # Check to make sure the PIC flag actually works. |
| 19441 | # |
| 19442 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19444 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19445 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19446 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19448 | else |
| 19449 | lt_prog_compiler_pic_works_CXX=no |
| 19450 | ac_outfile=conftest.$ac_objext |
| 19451 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19452 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19453 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19454 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19455 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19456 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19457 | # The option is referenced via a variable to avoid confusing sed. |
| 19458 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19459 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19460 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19461 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19462 | (eval echo "\"\$as_me:19462: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19463 | (eval "$lt_compile" 2>conftest.err) |
| 19464 | ac_status=$? |
| 19465 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19466 | echo "$as_me:19466: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19467 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19468 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19469 | # So say no if there are warnings other than the usual output. |
| 19470 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19471 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19472 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19473 | lt_prog_compiler_pic_works_CXX=yes |
| 19474 | fi |
| 19475 | fi |
| 19476 | $rm conftest* |
| 19477 | |
| 19478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19479 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19480 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19481 | |
| 19482 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19483 | case $lt_prog_compiler_pic_CXX in |
| 19484 | "" | " "*) ;; |
| 19485 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19486 | esac |
| 19487 | else |
| 19488 | lt_prog_compiler_pic_CXX= |
| 19489 | lt_prog_compiler_can_build_shared_CXX=no |
| 19490 | fi |
| 19491 | |
| 19492 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19493 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19494 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19495 | *djgpp*) |
| 19496 | lt_prog_compiler_pic_CXX= |
| 19497 | ;; |
| 19498 | *) |
| 19499 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19500 | ;; |
| 19501 | esac |
| 19502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | # |
| 19504 | # Check to make sure the static flag actually works. |
| 19505 | # |
| 19506 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19507 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19508 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19509 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19511 | else |
| 19512 | lt_prog_compiler_static_works_CXX=no |
| 19513 | save_LDFLAGS="$LDFLAGS" |
| 19514 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19515 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19516 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19517 | # The linker can only warn and ignore the option if not recognized |
| 19518 | # So say no if there are warnings |
| 19519 | if test -s conftest.err; then |
| 19520 | # Append any errors to the config.log. |
| 19521 | cat conftest.err 1>&5 |
| 19522 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19523 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19524 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19525 | lt_prog_compiler_static_works_CXX=yes |
| 19526 | fi |
| 19527 | else |
| 19528 | lt_prog_compiler_static_works_CXX=yes |
| 19529 | fi |
| 19530 | fi |
| 19531 | $rm conftest* |
| 19532 | LDFLAGS="$save_LDFLAGS" |
| 19533 | |
| 19534 | fi |
| 19535 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19536 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19537 | |
| 19538 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19539 | : |
| 19540 | else |
| 19541 | lt_prog_compiler_static_CXX= |
| 19542 | fi |
| 19543 | |
| 19544 | |
| 19545 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19546 | 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] | 19547 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19549 | else |
| 19550 | lt_cv_prog_compiler_c_o_CXX=no |
| 19551 | $rm -r conftest 2>/dev/null |
| 19552 | mkdir conftest |
| 19553 | cd conftest |
| 19554 | mkdir out |
| 19555 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19556 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19557 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19558 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19559 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19560 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19561 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19562 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19563 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19564 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19565 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19566 | (eval echo "\"\$as_me:19566: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19567 | (eval "$lt_compile" 2>out/conftest.err) |
| 19568 | ac_status=$? |
| 19569 | cat out/conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19570 | echo "$as_me:19570: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19571 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19572 | then |
| 19573 | # The compiler can only warn and ignore the option if not recognized |
| 19574 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19575 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19576 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19577 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19578 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19579 | fi |
| 19580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19581 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19582 | $rm conftest* |
| 19583 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19584 | # template instantiation |
| 19585 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19586 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19587 | cd .. |
| 19588 | rmdir conftest |
| 19589 | $rm conftest* |
| 19590 | |
| 19591 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19592 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19593 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19594 | |
| 19595 | |
| 19596 | hard_links="nottested" |
| 19597 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19598 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19599 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19600 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19601 | hard_links=yes |
| 19602 | $rm conftest* |
| 19603 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19604 | touch conftest.a |
| 19605 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19606 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19607 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19608 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19609 | if test "$hard_links" = no; then |
| 19610 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19611 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19612 | need_locks=warn |
| 19613 | fi |
| 19614 | else |
| 19615 | need_locks=no |
| 19616 | fi |
| 19617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19618 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19619 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19620 | |
| 19621 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19622 | case $host_os in |
| 19623 | aix4* | aix5*) |
| 19624 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19625 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19626 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19627 | 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' |
| 19628 | else |
| 19629 | 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' |
| 19630 | fi |
| 19631 | ;; |
| 19632 | pw32*) |
| 19633 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19634 | ;; |
| 19635 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19636 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19637 | ;; |
| 19638 | *) |
| 19639 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19640 | ;; |
| 19641 | esac |
| 19642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19643 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19644 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19645 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19646 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19647 | # |
| 19648 | # Do we need to explicitly link libc? |
| 19649 | # |
| 19650 | case "x$archive_cmds_need_lc_CXX" in |
| 19651 | x|xyes) |
| 19652 | # Assume -lc should be added |
| 19653 | archive_cmds_need_lc_CXX=yes |
| 19654 | |
| 19655 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19656 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19657 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19658 | # FIXME: we may have to deal with multi-command sequences. |
| 19659 | ;; |
| 19660 | '$CC '*) |
| 19661 | # Test whether the compiler implicitly links with -lc since on some |
| 19662 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19663 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19664 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19665 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19666 | $rm conftest* |
| 19667 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19668 | |
| 19669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19670 | (eval $ac_compile) 2>&5 |
| 19671 | ac_status=$? |
| 19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19673 | (exit $ac_status); } 2>conftest.err; then |
| 19674 | soname=conftest |
| 19675 | lib=conftest |
| 19676 | libobjs=conftest.$ac_objext |
| 19677 | deplibs= |
| 19678 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19679 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19680 | compiler_flags=-v |
| 19681 | linker_flags=-v |
| 19682 | verstring= |
| 19683 | output_objdir=. |
| 19684 | libname=conftest |
| 19685 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19686 | allow_undefined_flag_CXX= |
| 19687 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19688 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19689 | ac_status=$? |
| 19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19691 | (exit $ac_status); } |
| 19692 | then |
| 19693 | archive_cmds_need_lc_CXX=no |
| 19694 | else |
| 19695 | archive_cmds_need_lc_CXX=yes |
| 19696 | fi |
| 19697 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19698 | else |
| 19699 | cat conftest.err 1>&5 |
| 19700 | fi |
| 19701 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19702 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19703 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19704 | ;; |
| 19705 | esac |
| 19706 | fi |
| 19707 | ;; |
| 19708 | esac |
| 19709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19710 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19711 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19712 | library_names_spec= |
| 19713 | libname_spec='lib$name' |
| 19714 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19715 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19716 | postinstall_cmds= |
| 19717 | postuninstall_cmds= |
| 19718 | finish_cmds= |
| 19719 | finish_eval= |
| 19720 | shlibpath_var= |
| 19721 | shlibpath_overrides_runpath=unknown |
| 19722 | version_type=none |
| 19723 | dynamic_linker="$host_os ld.so" |
| 19724 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19725 | if test "$GCC" = yes; then |
| 19726 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19727 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19728 | # if the path contains ";" then we assume it to be the separator |
| 19729 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19730 | # assumed that no part of a normal pathname contains ";" but that should |
| 19731 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19732 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19733 | else |
| 19734 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19735 | fi |
| 19736 | else |
| 19737 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19738 | fi |
| 19739 | need_lib_prefix=unknown |
| 19740 | hardcode_into_libs=no |
| 19741 | |
| 19742 | # when you set need_version to no, make sure it does not cause -set_version |
| 19743 | # flags to be left without arguments |
| 19744 | need_version=unknown |
| 19745 | |
| 19746 | case $host_os in |
| 19747 | aix3*) |
| 19748 | version_type=linux |
| 19749 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19750 | shlibpath_var=LIBPATH |
| 19751 | |
| 19752 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19753 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19754 | ;; |
| 19755 | |
| 19756 | aix4* | aix5*) |
| 19757 | version_type=linux |
| 19758 | need_lib_prefix=no |
| 19759 | need_version=no |
| 19760 | hardcode_into_libs=yes |
| 19761 | if test "$host_cpu" = ia64; then |
| 19762 | # AIX 5 supports IA64 |
| 19763 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19764 | shlibpath_var=LD_LIBRARY_PATH |
| 19765 | else |
| 19766 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19767 | # for dependence libraries. The import file would start with |
| 19768 | # the line `#! .'. This would cause the generated library to |
| 19769 | # depend on `.', always an invalid library. This was fixed in |
| 19770 | # development snapshots of GCC prior to 3.0. |
| 19771 | case $host_os in |
| 19772 | aix4 | aix4.[01] | aix4.[01].*) |
| 19773 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19774 | echo ' yes ' |
| 19775 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19776 | : |
| 19777 | else |
| 19778 | can_build_shared=no |
| 19779 | fi |
| 19780 | ;; |
| 19781 | esac |
| 19782 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19783 | # soname into executable. Probably we can add versioning support to |
| 19784 | # collect2, so additional links can be useful in future. |
| 19785 | if test "$aix_use_runtimelinking" = yes; then |
| 19786 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19787 | # instead of lib<name>.a to let people know that these are not |
| 19788 | # typical AIX shared libraries. |
| 19789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19790 | else |
| 19791 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19792 | # and later when we are not doing run time linking. |
| 19793 | library_names_spec='${libname}${release}.a $libname.a' |
| 19794 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19795 | fi |
| 19796 | shlibpath_var=LIBPATH |
| 19797 | fi |
| 19798 | ;; |
| 19799 | |
| 19800 | amigaos*) |
| 19801 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19802 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19803 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19804 | ;; |
| 19805 | |
| 19806 | beos*) |
| 19807 | library_names_spec='${libname}${shared_ext}' |
| 19808 | dynamic_linker="$host_os ld.so" |
| 19809 | shlibpath_var=LIBRARY_PATH |
| 19810 | ;; |
| 19811 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19812 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19813 | version_type=linux |
| 19814 | need_version=no |
| 19815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19816 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19817 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19818 | shlibpath_var=LD_LIBRARY_PATH |
| 19819 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19820 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19821 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19822 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19823 | # libtool to hard-code these into programs |
| 19824 | ;; |
| 19825 | |
| 19826 | cygwin* | mingw* | pw32*) |
| 19827 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19828 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19829 | need_version=no |
| 19830 | need_lib_prefix=no |
| 19831 | |
| 19832 | case $GCC,$host_os in |
| 19833 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19834 | library_names_spec='$libname.dll.a' |
| 19835 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19836 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19837 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19838 | dldir=$destdir/`dirname \$dlpath`~ |
| 19839 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19840 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19841 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19842 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19843 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19844 | $rm \$dlpath' |
| 19845 | shlibpath_overrides_runpath=yes |
| 19846 | |
| 19847 | case $host_os in |
| 19848 | cygwin*) |
| 19849 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19850 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19851 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19852 | ;; |
| 19853 | mingw*) |
| 19854 | # MinGW DLLs use traditional 'lib' prefix |
| 19855 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19856 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19857 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19858 | # It is most probably a Windows format PATH printed by |
| 19859 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19860 | # path with ; separators, and with drive letters. We can handle the |
| 19861 | # drive letters (cygwin fileutils understands them), so leave them, |
| 19862 | # especially as we might pass files found there to a mingw objdump, |
| 19863 | # which wouldn't understand a cygwinified path. Ahh. |
| 19864 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19865 | else |
| 19866 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19867 | fi |
| 19868 | ;; |
| 19869 | pw32*) |
| 19870 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19871 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19872 | ;; |
| 19873 | esac |
| 19874 | ;; |
| 19875 | |
| 19876 | *) |
| 19877 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19878 | ;; |
| 19879 | esac |
| 19880 | dynamic_linker='Win32 ld.exe' |
| 19881 | # FIXME: first we should search . and the directory the executable is in |
| 19882 | shlibpath_var=PATH |
| 19883 | ;; |
| 19884 | |
| 19885 | darwin* | rhapsody*) |
| 19886 | dynamic_linker="$host_os dyld" |
| 19887 | version_type=darwin |
| 19888 | need_lib_prefix=no |
| 19889 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19890 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19891 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19892 | shlibpath_overrides_runpath=yes |
| 19893 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19894 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19895 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19896 | if test "$GCC" = yes; then |
| 19897 | 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"` |
| 19898 | else |
| 19899 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19900 | fi |
| 19901 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19902 | ;; |
| 19903 | |
| 19904 | dgux*) |
| 19905 | version_type=linux |
| 19906 | need_lib_prefix=no |
| 19907 | need_version=no |
| 19908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19909 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19910 | shlibpath_var=LD_LIBRARY_PATH |
| 19911 | ;; |
| 19912 | |
| 19913 | freebsd1*) |
| 19914 | dynamic_linker=no |
| 19915 | ;; |
| 19916 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19917 | kfreebsd*-gnu) |
| 19918 | version_type=linux |
| 19919 | need_lib_prefix=no |
| 19920 | need_version=no |
| 19921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19922 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19923 | shlibpath_var=LD_LIBRARY_PATH |
| 19924 | shlibpath_overrides_runpath=no |
| 19925 | hardcode_into_libs=yes |
| 19926 | dynamic_linker='GNU ld.so' |
| 19927 | ;; |
| 19928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19929 | freebsd* | dragonfly*) |
| 19930 | # DragonFly does not have aout. When/if they implement a new |
| 19931 | # versioning mechanism, adjust this. |
| 19932 | if test -x /usr/bin/objformat; then |
| 19933 | objformat=`/usr/bin/objformat` |
| 19934 | else |
| 19935 | case $host_os in |
| 19936 | freebsd[123]*) objformat=aout ;; |
| 19937 | *) objformat=elf ;; |
| 19938 | esac |
| 19939 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19940 | version_type=freebsd-$objformat |
| 19941 | case $version_type in |
| 19942 | freebsd-elf*) |
| 19943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19944 | need_version=no |
| 19945 | need_lib_prefix=no |
| 19946 | ;; |
| 19947 | freebsd-*) |
| 19948 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19949 | need_version=yes |
| 19950 | ;; |
| 19951 | esac |
| 19952 | shlibpath_var=LD_LIBRARY_PATH |
| 19953 | case $host_os in |
| 19954 | freebsd2*) |
| 19955 | shlibpath_overrides_runpath=yes |
| 19956 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19957 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19958 | shlibpath_overrides_runpath=yes |
| 19959 | hardcode_into_libs=yes |
| 19960 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19961 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19962 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19963 | shlibpath_overrides_runpath=no |
| 19964 | hardcode_into_libs=yes |
| 19965 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19966 | freebsd*) # from 4.6 on |
| 19967 | shlibpath_overrides_runpath=yes |
| 19968 | hardcode_into_libs=yes |
| 19969 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19970 | esac |
| 19971 | ;; |
| 19972 | |
| 19973 | gnu*) |
| 19974 | version_type=linux |
| 19975 | need_lib_prefix=no |
| 19976 | need_version=no |
| 19977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19978 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19979 | shlibpath_var=LD_LIBRARY_PATH |
| 19980 | hardcode_into_libs=yes |
| 19981 | ;; |
| 19982 | |
| 19983 | hpux9* | hpux10* | hpux11*) |
| 19984 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19985 | # link against other versions. |
| 19986 | version_type=sunos |
| 19987 | need_lib_prefix=no |
| 19988 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19989 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19990 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19991 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19992 | hardcode_into_libs=yes |
| 19993 | dynamic_linker="$host_os dld.so" |
| 19994 | shlibpath_var=LD_LIBRARY_PATH |
| 19995 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19997 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19998 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19999 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20000 | else |
| 20001 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20002 | fi |
| 20003 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20004 | ;; |
| 20005 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20006 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20007 | hardcode_into_libs=yes |
| 20008 | dynamic_linker="$host_os dld.sl" |
| 20009 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20010 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20012 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20013 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20014 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20015 | ;; |
| 20016 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20017 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20018 | dynamic_linker="$host_os dld.sl" |
| 20019 | shlibpath_var=SHLIB_PATH |
| 20020 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20022 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20023 | ;; |
| 20024 | esac |
| 20025 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20026 | postinstall_cmds='chmod 555 $lib' |
| 20027 | ;; |
| 20028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20029 | interix3*) |
| 20030 | version_type=linux |
| 20031 | need_lib_prefix=no |
| 20032 | need_version=no |
| 20033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20034 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20035 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20036 | shlibpath_var=LD_LIBRARY_PATH |
| 20037 | shlibpath_overrides_runpath=no |
| 20038 | hardcode_into_libs=yes |
| 20039 | ;; |
| 20040 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20041 | irix5* | irix6* | nonstopux*) |
| 20042 | case $host_os in |
| 20043 | nonstopux*) version_type=nonstopux ;; |
| 20044 | *) |
| 20045 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20046 | version_type=linux |
| 20047 | else |
| 20048 | version_type=irix |
| 20049 | fi ;; |
| 20050 | esac |
| 20051 | need_lib_prefix=no |
| 20052 | need_version=no |
| 20053 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20054 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20055 | case $host_os in |
| 20056 | irix5* | nonstopux*) |
| 20057 | libsuff= shlibsuff= |
| 20058 | ;; |
| 20059 | *) |
| 20060 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20061 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20062 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20063 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20064 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20065 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20066 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20067 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20068 | esac |
| 20069 | ;; |
| 20070 | esac |
| 20071 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20072 | shlibpath_overrides_runpath=no |
| 20073 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20074 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20075 | hardcode_into_libs=yes |
| 20076 | ;; |
| 20077 | |
| 20078 | # No shared lib support for Linux oldld, aout, or coff. |
| 20079 | linux*oldld* | linux*aout* | linux*coff*) |
| 20080 | dynamic_linker=no |
| 20081 | ;; |
| 20082 | |
| 20083 | # This must be Linux ELF. |
| 20084 | linux*) |
| 20085 | version_type=linux |
| 20086 | need_lib_prefix=no |
| 20087 | need_version=no |
| 20088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20089 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20090 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20091 | shlibpath_var=LD_LIBRARY_PATH |
| 20092 | shlibpath_overrides_runpath=no |
| 20093 | # This implies no fast_install, which is unacceptable. |
| 20094 | # Some rework will be needed to allow for fast_install |
| 20095 | # before this can be enabled. |
| 20096 | hardcode_into_libs=yes |
| 20097 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20098 | # Append ld.so.conf contents to the search path |
| 20099 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20100 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20101 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20102 | fi |
| 20103 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20104 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20105 | # powerpc, because MkLinux only supported shared libraries with the |
| 20106 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20107 | # most powerpc-linux boxes support dynamic linking these days and |
| 20108 | # people can always --disable-shared, the test was removed, and we |
| 20109 | # assume the GNU/Linux dynamic linker is in use. |
| 20110 | dynamic_linker='GNU/Linux ld.so' |
| 20111 | ;; |
| 20112 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20113 | knetbsd*-gnu) |
| 20114 | version_type=linux |
| 20115 | need_lib_prefix=no |
| 20116 | need_version=no |
| 20117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20119 | shlibpath_var=LD_LIBRARY_PATH |
| 20120 | shlibpath_overrides_runpath=no |
| 20121 | hardcode_into_libs=yes |
| 20122 | dynamic_linker='GNU ld.so' |
| 20123 | ;; |
| 20124 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20125 | netbsd*) |
| 20126 | version_type=sunos |
| 20127 | need_lib_prefix=no |
| 20128 | need_version=no |
| 20129 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20131 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20132 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20133 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20135 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20136 | dynamic_linker='NetBSD ld.elf_so' |
| 20137 | fi |
| 20138 | shlibpath_var=LD_LIBRARY_PATH |
| 20139 | shlibpath_overrides_runpath=yes |
| 20140 | hardcode_into_libs=yes |
| 20141 | ;; |
| 20142 | |
| 20143 | newsos6) |
| 20144 | version_type=linux |
| 20145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20146 | shlibpath_var=LD_LIBRARY_PATH |
| 20147 | shlibpath_overrides_runpath=yes |
| 20148 | ;; |
| 20149 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20150 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20151 | version_type=linux |
| 20152 | need_lib_prefix=no |
| 20153 | need_version=no |
| 20154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20155 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20156 | shlibpath_var=LD_LIBRARY_PATH |
| 20157 | shlibpath_overrides_runpath=yes |
| 20158 | ;; |
| 20159 | |
| 20160 | openbsd*) |
| 20161 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20162 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20163 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20164 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20165 | case $host_os in |
| 20166 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20167 | *) need_version=no ;; |
| 20168 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20170 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20171 | shlibpath_var=LD_LIBRARY_PATH |
| 20172 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20173 | case $host_os in |
| 20174 | openbsd2.[89] | openbsd2.[89].*) |
| 20175 | shlibpath_overrides_runpath=no |
| 20176 | ;; |
| 20177 | *) |
| 20178 | shlibpath_overrides_runpath=yes |
| 20179 | ;; |
| 20180 | esac |
| 20181 | else |
| 20182 | shlibpath_overrides_runpath=yes |
| 20183 | fi |
| 20184 | ;; |
| 20185 | |
| 20186 | os2*) |
| 20187 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20188 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20189 | need_lib_prefix=no |
| 20190 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20191 | dynamic_linker='OS/2 ld.exe' |
| 20192 | shlibpath_var=LIBPATH |
| 20193 | ;; |
| 20194 | |
| 20195 | osf3* | osf4* | osf5*) |
| 20196 | version_type=osf |
| 20197 | need_lib_prefix=no |
| 20198 | need_version=no |
| 20199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20201 | shlibpath_var=LD_LIBRARY_PATH |
| 20202 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20203 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20204 | ;; |
| 20205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20206 | solaris*) |
| 20207 | version_type=linux |
| 20208 | need_lib_prefix=no |
| 20209 | need_version=no |
| 20210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20211 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20212 | shlibpath_var=LD_LIBRARY_PATH |
| 20213 | shlibpath_overrides_runpath=yes |
| 20214 | hardcode_into_libs=yes |
| 20215 | # ldd complains unless libraries are executable |
| 20216 | postinstall_cmds='chmod +x $lib' |
| 20217 | ;; |
| 20218 | |
| 20219 | sunos4*) |
| 20220 | version_type=sunos |
| 20221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20222 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20223 | shlibpath_var=LD_LIBRARY_PATH |
| 20224 | shlibpath_overrides_runpath=yes |
| 20225 | if test "$with_gnu_ld" = yes; then |
| 20226 | need_lib_prefix=no |
| 20227 | fi |
| 20228 | need_version=yes |
| 20229 | ;; |
| 20230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20231 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20232 | version_type=linux |
| 20233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20234 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20235 | shlibpath_var=LD_LIBRARY_PATH |
| 20236 | case $host_vendor in |
| 20237 | sni) |
| 20238 | shlibpath_overrides_runpath=no |
| 20239 | need_lib_prefix=no |
| 20240 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20241 | runpath_var=LD_RUN_PATH |
| 20242 | ;; |
| 20243 | siemens) |
| 20244 | need_lib_prefix=no |
| 20245 | ;; |
| 20246 | motorola) |
| 20247 | need_lib_prefix=no |
| 20248 | need_version=no |
| 20249 | shlibpath_overrides_runpath=no |
| 20250 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20251 | ;; |
| 20252 | esac |
| 20253 | ;; |
| 20254 | |
| 20255 | sysv4*MP*) |
| 20256 | if test -d /usr/nec ;then |
| 20257 | version_type=linux |
| 20258 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20259 | soname_spec='$libname${shared_ext}.$major' |
| 20260 | shlibpath_var=LD_LIBRARY_PATH |
| 20261 | fi |
| 20262 | ;; |
| 20263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20264 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20265 | version_type=freebsd-elf |
| 20266 | need_lib_prefix=no |
| 20267 | need_version=no |
| 20268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20270 | shlibpath_var=LD_LIBRARY_PATH |
| 20271 | hardcode_into_libs=yes |
| 20272 | if test "$with_gnu_ld" = yes; then |
| 20273 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20274 | shlibpath_overrides_runpath=no |
| 20275 | else |
| 20276 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20277 | shlibpath_overrides_runpath=yes |
| 20278 | case $host_os in |
| 20279 | sco3.2v5*) |
| 20280 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20281 | ;; |
| 20282 | esac |
| 20283 | fi |
| 20284 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20285 | ;; |
| 20286 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20287 | uts4*) |
| 20288 | version_type=linux |
| 20289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20290 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20291 | shlibpath_var=LD_LIBRARY_PATH |
| 20292 | ;; |
| 20293 | |
| 20294 | *) |
| 20295 | dynamic_linker=no |
| 20296 | ;; |
| 20297 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20298 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20299 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20300 | test "$dynamic_linker" = no && can_build_shared=no |
| 20301 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20302 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20303 | if test "$GCC" = yes; then |
| 20304 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20305 | fi |
| 20306 | |
| 20307 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20308 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20309 | hardcode_action_CXX= |
| 20310 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20311 | test -n "$runpath_var_CXX" || \ |
| 20312 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20313 | |
| 20314 | # We can hardcode non-existant directories. |
| 20315 | if test "$hardcode_direct_CXX" != no && |
| 20316 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20317 | # have to relink, otherwise we might link with an installed library |
| 20318 | # when we should be linking with a yet-to-be-installed one |
| 20319 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20320 | test "$hardcode_minus_L_CXX" != no; then |
| 20321 | # Linking always hardcodes the temporary library directory. |
| 20322 | hardcode_action_CXX=relink |
| 20323 | else |
| 20324 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20325 | hardcode_action_CXX=immediate |
| 20326 | fi |
| 20327 | else |
| 20328 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20329 | # directories. |
| 20330 | hardcode_action_CXX=unsupported |
| 20331 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20332 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20333 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20334 | |
| 20335 | if test "$hardcode_action_CXX" = relink; then |
| 20336 | # Fast installation is not supported |
| 20337 | enable_fast_install=no |
| 20338 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20339 | test "$enable_shared" = no; then |
| 20340 | # Fast installation is not necessary |
| 20341 | enable_fast_install=needless |
| 20342 | fi |
| 20343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20344 | |
| 20345 | # The else clause should only fire when bootstrapping the |
| 20346 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20347 | # with your package, and you will get complaints that there are |
| 20348 | # no rules to generate ltmain.sh. |
| 20349 | if test -f "$ltmain"; then |
| 20350 | # See if we are running on zsh, and set the options which allow our commands through |
| 20351 | # without removal of \ escapes. |
| 20352 | if test -n "${ZSH_VERSION+set}" ; then |
| 20353 | setopt NO_GLOB_SUBST |
| 20354 | fi |
| 20355 | # Now quote all the things that may contain metacharacters while being |
| 20356 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20357 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20358 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20359 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20360 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20361 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20362 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20363 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20364 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20365 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20366 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20367 | compiler_CXX \ |
| 20368 | CC_CXX \ |
| 20369 | LD_CXX \ |
| 20370 | lt_prog_compiler_wl_CXX \ |
| 20371 | lt_prog_compiler_pic_CXX \ |
| 20372 | lt_prog_compiler_static_CXX \ |
| 20373 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20374 | export_dynamic_flag_spec_CXX \ |
| 20375 | thread_safe_flag_spec_CXX \ |
| 20376 | whole_archive_flag_spec_CXX \ |
| 20377 | enable_shared_with_static_runtimes_CXX \ |
| 20378 | old_archive_cmds_CXX \ |
| 20379 | old_archive_from_new_cmds_CXX \ |
| 20380 | predep_objects_CXX \ |
| 20381 | postdep_objects_CXX \ |
| 20382 | predeps_CXX \ |
| 20383 | postdeps_CXX \ |
| 20384 | compiler_lib_search_path_CXX \ |
| 20385 | archive_cmds_CXX \ |
| 20386 | archive_expsym_cmds_CXX \ |
| 20387 | postinstall_cmds_CXX \ |
| 20388 | postuninstall_cmds_CXX \ |
| 20389 | old_archive_from_expsyms_cmds_CXX \ |
| 20390 | allow_undefined_flag_CXX \ |
| 20391 | no_undefined_flag_CXX \ |
| 20392 | export_symbols_cmds_CXX \ |
| 20393 | hardcode_libdir_flag_spec_CXX \ |
| 20394 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20395 | hardcode_libdir_separator_CXX \ |
| 20396 | hardcode_automatic_CXX \ |
| 20397 | module_cmds_CXX \ |
| 20398 | module_expsym_cmds_CXX \ |
| 20399 | lt_cv_prog_compiler_c_o_CXX \ |
| 20400 | exclude_expsyms_CXX \ |
| 20401 | include_expsyms_CXX; do |
| 20402 | |
| 20403 | case $var in |
| 20404 | old_archive_cmds_CXX | \ |
| 20405 | old_archive_from_new_cmds_CXX | \ |
| 20406 | archive_cmds_CXX | \ |
| 20407 | archive_expsym_cmds_CXX | \ |
| 20408 | module_cmds_CXX | \ |
| 20409 | module_expsym_cmds_CXX | \ |
| 20410 | old_archive_from_expsyms_cmds_CXX | \ |
| 20411 | export_symbols_cmds_CXX | \ |
| 20412 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20413 | postinstall_cmds | postuninstall_cmds | \ |
| 20414 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20415 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20416 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20417 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20418 | ;; |
| 20419 | *) |
| 20420 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20421 | ;; |
| 20422 | esac |
| 20423 | done |
| 20424 | |
| 20425 | case $lt_echo in |
| 20426 | *'\$0 --fallback-echo"') |
| 20427 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20428 | ;; |
| 20429 | esac |
| 20430 | |
| 20431 | cfgfile="$ofile" |
| 20432 | |
| 20433 | cat <<__EOF__ >> "$cfgfile" |
| 20434 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20435 | |
| 20436 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20437 | |
| 20438 | # Shell to use when invoking shell scripts. |
| 20439 | SHELL=$lt_SHELL |
| 20440 | |
| 20441 | # Whether or not to build shared libraries. |
| 20442 | build_libtool_libs=$enable_shared |
| 20443 | |
| 20444 | # Whether or not to build static libraries. |
| 20445 | build_old_libs=$enable_static |
| 20446 | |
| 20447 | # Whether or not to add -lc for building shared libraries. |
| 20448 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20449 | |
| 20450 | # Whether or not to disallow shared libs when runtime libs are static |
| 20451 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20452 | |
| 20453 | # Whether or not to optimize for fast installation. |
| 20454 | fast_install=$enable_fast_install |
| 20455 | |
| 20456 | # The host system. |
| 20457 | host_alias=$host_alias |
| 20458 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20459 | host_os=$host_os |
| 20460 | |
| 20461 | # The build system. |
| 20462 | build_alias=$build_alias |
| 20463 | build=$build |
| 20464 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20465 | |
| 20466 | # An echo program that does not interpret backslashes. |
| 20467 | echo=$lt_echo |
| 20468 | |
| 20469 | # The archiver. |
| 20470 | AR=$lt_AR |
| 20471 | AR_FLAGS=$lt_AR_FLAGS |
| 20472 | |
| 20473 | # A C compiler. |
| 20474 | LTCC=$lt_LTCC |
| 20475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20476 | # LTCC compiler flags. |
| 20477 | LTCFLAGS=$lt_LTCFLAGS |
| 20478 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20479 | # A language-specific compiler. |
| 20480 | CC=$lt_compiler_CXX |
| 20481 | |
| 20482 | # Is the compiler the GNU C compiler? |
| 20483 | with_gcc=$GCC_CXX |
| 20484 | |
| 20485 | # An ERE matcher. |
| 20486 | EGREP=$lt_EGREP |
| 20487 | |
| 20488 | # The linker used to build libraries. |
| 20489 | LD=$lt_LD_CXX |
| 20490 | |
| 20491 | # Whether we need hard or soft links. |
| 20492 | LN_S=$lt_LN_S |
| 20493 | |
| 20494 | # A BSD-compatible nm program. |
| 20495 | NM=$lt_NM |
| 20496 | |
| 20497 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20498 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20499 | |
| 20500 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20501 | MAGIC_CMD=$MAGIC_CMD |
| 20502 | |
| 20503 | # Used on cygwin: DLL creation program. |
| 20504 | DLLTOOL="$DLLTOOL" |
| 20505 | |
| 20506 | # Used on cygwin: object dumper. |
| 20507 | OBJDUMP="$OBJDUMP" |
| 20508 | |
| 20509 | # Used on cygwin: assembler. |
| 20510 | AS="$AS" |
| 20511 | |
| 20512 | # The name of the directory that contains temporary libtool files. |
| 20513 | objdir=$objdir |
| 20514 | |
| 20515 | # How to create reloadable object files. |
| 20516 | reload_flag=$lt_reload_flag |
| 20517 | reload_cmds=$lt_reload_cmds |
| 20518 | |
| 20519 | # How to pass a linker flag through the compiler. |
| 20520 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20521 | |
| 20522 | # Object file suffix (normally "o"). |
| 20523 | objext="$ac_objext" |
| 20524 | |
| 20525 | # Old archive suffix (normally "a"). |
| 20526 | libext="$libext" |
| 20527 | |
| 20528 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20529 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20530 | |
| 20531 | # Executable file suffix (normally ""). |
| 20532 | exeext="$exeext" |
| 20533 | |
| 20534 | # Additional compiler flags for building library objects. |
| 20535 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20536 | pic_mode=$pic_mode |
| 20537 | |
| 20538 | # What is the maximum length of a command? |
| 20539 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20540 | |
| 20541 | # Does compiler simultaneously support -c and -o options? |
| 20542 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20544 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20545 | need_locks=$lt_need_locks |
| 20546 | |
| 20547 | # Do we need the lib prefix for modules? |
| 20548 | need_lib_prefix=$need_lib_prefix |
| 20549 | |
| 20550 | # Do we need a version for libraries? |
| 20551 | need_version=$need_version |
| 20552 | |
| 20553 | # Whether dlopen is supported. |
| 20554 | dlopen_support=$enable_dlopen |
| 20555 | |
| 20556 | # Whether dlopen of programs is supported. |
| 20557 | dlopen_self=$enable_dlopen_self |
| 20558 | |
| 20559 | # Whether dlopen of statically linked programs is supported. |
| 20560 | dlopen_self_static=$enable_dlopen_self_static |
| 20561 | |
| 20562 | # Compiler flag to prevent dynamic linking. |
| 20563 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20564 | |
| 20565 | # Compiler flag to turn off builtin functions. |
| 20566 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20567 | |
| 20568 | # Compiler flag to allow reflexive dlopens. |
| 20569 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20570 | |
| 20571 | # Compiler flag to generate shared objects directly from archives. |
| 20572 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20573 | |
| 20574 | # Compiler flag to generate thread-safe objects. |
| 20575 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20576 | |
| 20577 | # Library versioning type. |
| 20578 | version_type=$version_type |
| 20579 | |
| 20580 | # Format of library name prefix. |
| 20581 | libname_spec=$lt_libname_spec |
| 20582 | |
| 20583 | # List of archive names. First name is the real one, the rest are links. |
| 20584 | # The last name is the one that the linker finds with -lNAME. |
| 20585 | library_names_spec=$lt_library_names_spec |
| 20586 | |
| 20587 | # The coded name of the library, if different from the real name. |
| 20588 | soname_spec=$lt_soname_spec |
| 20589 | |
| 20590 | # Commands used to build and install an old-style archive. |
| 20591 | RANLIB=$lt_RANLIB |
| 20592 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20593 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20594 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20595 | |
| 20596 | # Create an old-style archive from a shared archive. |
| 20597 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20598 | |
| 20599 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20600 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20601 | |
| 20602 | # Commands used to build and install a shared archive. |
| 20603 | archive_cmds=$lt_archive_cmds_CXX |
| 20604 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20605 | postinstall_cmds=$lt_postinstall_cmds |
| 20606 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20607 | |
| 20608 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20609 | module_cmds=$lt_module_cmds_CXX |
| 20610 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20611 | |
| 20612 | # Commands to strip libraries. |
| 20613 | old_striplib=$lt_old_striplib |
| 20614 | striplib=$lt_striplib |
| 20615 | |
| 20616 | # Dependencies to place before the objects being linked to create a |
| 20617 | # shared library. |
| 20618 | predep_objects=$lt_predep_objects_CXX |
| 20619 | |
| 20620 | # Dependencies to place after the objects being linked to create a |
| 20621 | # shared library. |
| 20622 | postdep_objects=$lt_postdep_objects_CXX |
| 20623 | |
| 20624 | # Dependencies to place before the objects being linked to create a |
| 20625 | # shared library. |
| 20626 | predeps=$lt_predeps_CXX |
| 20627 | |
| 20628 | # Dependencies to place after the objects being linked to create a |
| 20629 | # shared library. |
| 20630 | postdeps=$lt_postdeps_CXX |
| 20631 | |
| 20632 | # The library search path used internally by the compiler when linking |
| 20633 | # a shared library. |
| 20634 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20635 | |
| 20636 | # Method to check whether dependent libraries are shared objects. |
| 20637 | deplibs_check_method=$lt_deplibs_check_method |
| 20638 | |
| 20639 | # Command to use when deplibs_check_method == file_magic. |
| 20640 | file_magic_cmd=$lt_file_magic_cmd |
| 20641 | |
| 20642 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20643 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20644 | |
| 20645 | # Flag that forces no undefined symbols. |
| 20646 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20647 | |
| 20648 | # Commands used to finish a libtool library installation in a directory. |
| 20649 | finish_cmds=$lt_finish_cmds |
| 20650 | |
| 20651 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20652 | finish_eval=$lt_finish_eval |
| 20653 | |
| 20654 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20655 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20656 | |
| 20657 | # Transform the output of nm in a proper C declaration |
| 20658 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20659 | |
| 20660 | # Transform the output of nm in a C name address pair |
| 20661 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20662 | |
| 20663 | # This is the shared library runtime path variable. |
| 20664 | runpath_var=$runpath_var |
| 20665 | |
| 20666 | # This is the shared library path variable. |
| 20667 | shlibpath_var=$shlibpath_var |
| 20668 | |
| 20669 | # Is shlibpath searched before the hard-coded library search path? |
| 20670 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20671 | |
| 20672 | # How to hardcode a shared library path into an executable. |
| 20673 | hardcode_action=$hardcode_action_CXX |
| 20674 | |
| 20675 | # Whether we should hardcode library paths into libraries. |
| 20676 | hardcode_into_libs=$hardcode_into_libs |
| 20677 | |
| 20678 | # Flag to hardcode \$libdir into a binary during linking. |
| 20679 | # This must work even if \$libdir does not exist. |
| 20680 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20681 | |
| 20682 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20683 | # a binary during linking. This must work even if \$libdir does |
| 20684 | # not exist. |
| 20685 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20686 | |
| 20687 | # Whether we need a single -rpath flag with a separated argument. |
| 20688 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20689 | |
| 20690 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20691 | # resulting binary. |
| 20692 | hardcode_direct=$hardcode_direct_CXX |
| 20693 | |
| 20694 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20695 | # resulting binary. |
| 20696 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20697 | |
| 20698 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20699 | # the resulting binary. |
| 20700 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20701 | |
| 20702 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20703 | # and all subsequent libraries and executables linked against it. |
| 20704 | hardcode_automatic=$hardcode_automatic_CXX |
| 20705 | |
| 20706 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20707 | # restored at relink time. |
| 20708 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20709 | |
| 20710 | # Whether libtool must link a program against all its dependency libraries. |
| 20711 | link_all_deplibs=$link_all_deplibs_CXX |
| 20712 | |
| 20713 | # Compile-time system search path for libraries |
| 20714 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20715 | |
| 20716 | # Run-time system search path for libraries |
| 20717 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20718 | |
| 20719 | # Fix the shell variable \$srcfile for the compiler. |
| 20720 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20721 | |
| 20722 | # Set to yes if exported symbols are required. |
| 20723 | always_export_symbols=$always_export_symbols_CXX |
| 20724 | |
| 20725 | # The commands to list exported symbols. |
| 20726 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20727 | |
| 20728 | # The commands to extract the exported symbol list from a shared archive. |
| 20729 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20730 | |
| 20731 | # Symbols that should not be listed in the preloaded symbols. |
| 20732 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20733 | |
| 20734 | # Symbols that must always be exported. |
| 20735 | include_expsyms=$lt_include_expsyms_CXX |
| 20736 | |
| 20737 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20738 | |
| 20739 | __EOF__ |
| 20740 | |
| 20741 | |
| 20742 | else |
| 20743 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20744 | # `config.status --recheck' to rerun these tests and create the |
| 20745 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20746 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20747 | if test -f "$ltmain_in"; then |
| 20748 | test -f Makefile && make "$ltmain" |
| 20749 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20750 | fi |
| 20751 | |
| 20752 | |
| 20753 | ac_ext=c |
| 20754 | ac_cpp='$CPP $CPPFLAGS' |
| 20755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20758 | |
| 20759 | CC=$lt_save_CC |
| 20760 | LDCXX=$LD |
| 20761 | LD=$lt_save_LD |
| 20762 | GCC=$lt_save_GCC |
| 20763 | with_gnu_ldcxx=$with_gnu_ld |
| 20764 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20765 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20766 | lt_cv_path_LD=$lt_save_path_LD |
| 20767 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20768 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20769 | |
| 20770 | else |
| 20771 | tagname="" |
| 20772 | fi |
| 20773 | ;; |
| 20774 | |
| 20775 | F77) |
| 20776 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 20777 | |
| 20778 | ac_ext=f |
| 20779 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 20780 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20781 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 20782 | |
| 20783 | |
| 20784 | archive_cmds_need_lc_F77=no |
| 20785 | allow_undefined_flag_F77= |
| 20786 | always_export_symbols_F77=no |
| 20787 | archive_expsym_cmds_F77= |
| 20788 | export_dynamic_flag_spec_F77= |
| 20789 | hardcode_direct_F77=no |
| 20790 | hardcode_libdir_flag_spec_F77= |
| 20791 | hardcode_libdir_flag_spec_ld_F77= |
| 20792 | hardcode_libdir_separator_F77= |
| 20793 | hardcode_minus_L_F77=no |
| 20794 | hardcode_automatic_F77=no |
| 20795 | module_cmds_F77= |
| 20796 | module_expsym_cmds_F77= |
| 20797 | link_all_deplibs_F77=unknown |
| 20798 | old_archive_cmds_F77=$old_archive_cmds |
| 20799 | no_undefined_flag_F77= |
| 20800 | whole_archive_flag_spec_F77= |
| 20801 | enable_shared_with_static_runtimes_F77=no |
| 20802 | |
| 20803 | # Source file extension for f77 test sources. |
| 20804 | ac_ext=f |
| 20805 | |
| 20806 | # Object file extension for compiled f77 test sources. |
| 20807 | objext=o |
| 20808 | objext_F77=$objext |
| 20809 | |
| 20810 | # Code to be used in simple compile tests |
| 20811 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20812 | |
| 20813 | # Code to be used in simple link tests |
| 20814 | lt_simple_link_test_code=" program t\n end\n" |
| 20815 | |
| 20816 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20817 | |
| 20818 | # If no C compiler was specified, use CC. |
| 20819 | LTCC=${LTCC-"$CC"} |
| 20820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20821 | # If no C compiler flags were specified, use CFLAGS. |
| 20822 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20823 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20824 | # Allow CC to be a program name with arguments. |
| 20825 | compiler=$CC |
| 20826 | |
| 20827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20828 | # save warnings/boilerplate of simple test code |
| 20829 | ac_outfile=conftest.$ac_objext |
| 20830 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20831 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20832 | _lt_compiler_boilerplate=`cat conftest.err` |
| 20833 | $rm conftest* |
| 20834 | |
| 20835 | ac_outfile=conftest.$ac_objext |
| 20836 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20837 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20838 | _lt_linker_boilerplate=`cat conftest.err` |
| 20839 | $rm conftest* |
| 20840 | |
| 20841 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20842 | # Allow CC to be a program name with arguments. |
| 20843 | lt_save_CC="$CC" |
| 20844 | CC=${F77-"f77"} |
| 20845 | compiler=$CC |
| 20846 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20847 | for cc_temp in $compiler""; do |
| 20848 | case $cc_temp in |
| 20849 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20850 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20851 | \-*) ;; |
| 20852 | *) break;; |
| 20853 | esac |
| 20854 | done |
| 20855 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20856 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20858 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 20859 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 20860 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 20861 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 20862 | |
| 20863 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 20864 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20865 | test "$can_build_shared" = "no" && enable_shared=no |
| 20866 | |
| 20867 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 20868 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20869 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20870 | aix3*) |
| 20871 | test "$enable_shared" = yes && enable_static=no |
| 20872 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20873 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20874 | postinstall_cmds='$RANLIB $lib' |
| 20875 | fi |
| 20876 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20877 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20878 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20879 | test "$enable_shared" = yes && enable_static=no |
| 20880 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20881 | ;; |
| 20882 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20883 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 20884 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20886 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 20887 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20888 | # Make sure either enable_shared or enable_static is yes. |
| 20889 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20890 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 20891 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20892 | |
| 20893 | GCC_F77="$G77" |
| 20894 | LD_F77="$LD" |
| 20895 | |
| 20896 | lt_prog_compiler_wl_F77= |
| 20897 | lt_prog_compiler_pic_F77= |
| 20898 | lt_prog_compiler_static_F77= |
| 20899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20900 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20901 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20902 | |
| 20903 | if test "$GCC" = yes; then |
| 20904 | lt_prog_compiler_wl_F77='-Wl,' |
| 20905 | lt_prog_compiler_static_F77='-static' |
| 20906 | |
| 20907 | case $host_os in |
| 20908 | aix*) |
| 20909 | # All AIX code is PIC. |
| 20910 | if test "$host_cpu" = ia64; then |
| 20911 | # AIX 5 now supports IA64 processor |
| 20912 | lt_prog_compiler_static_F77='-Bstatic' |
| 20913 | fi |
| 20914 | ;; |
| 20915 | |
| 20916 | amigaos*) |
| 20917 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20918 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20919 | # like `-m68040'. |
| 20920 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20921 | ;; |
| 20922 | |
| 20923 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20924 | # PIC is the default for these OSes. |
| 20925 | ;; |
| 20926 | |
| 20927 | mingw* | pw32* | os2*) |
| 20928 | # This hack is so that the source file can tell whether it is being |
| 20929 | # built for inclusion in a dll (and should export symbols for example). |
| 20930 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20931 | ;; |
| 20932 | |
| 20933 | darwin* | rhapsody*) |
| 20934 | # PIC is the default on this platform |
| 20935 | # Common symbols not allowed in MH_DYLIB files |
| 20936 | lt_prog_compiler_pic_F77='-fno-common' |
| 20937 | ;; |
| 20938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20939 | interix3*) |
| 20940 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20941 | # Instead, we relocate shared libraries at runtime. |
| 20942 | ;; |
| 20943 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20944 | msdosdjgpp*) |
| 20945 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20946 | # on systems that don't support them. |
| 20947 | lt_prog_compiler_can_build_shared_F77=no |
| 20948 | enable_shared=no |
| 20949 | ;; |
| 20950 | |
| 20951 | sysv4*MP*) |
| 20952 | if test -d /usr/nec; then |
| 20953 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20954 | fi |
| 20955 | ;; |
| 20956 | |
| 20957 | hpux*) |
| 20958 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20959 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20960 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20961 | hppa*64*|ia64*) |
| 20962 | # +Z the default |
| 20963 | ;; |
| 20964 | *) |
| 20965 | lt_prog_compiler_pic_F77='-fPIC' |
| 20966 | ;; |
| 20967 | esac |
| 20968 | ;; |
| 20969 | |
| 20970 | *) |
| 20971 | lt_prog_compiler_pic_F77='-fPIC' |
| 20972 | ;; |
| 20973 | esac |
| 20974 | else |
| 20975 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 20976 | case $host_os in |
| 20977 | aix*) |
| 20978 | lt_prog_compiler_wl_F77='-Wl,' |
| 20979 | if test "$host_cpu" = ia64; then |
| 20980 | # AIX 5 now supports IA64 processor |
| 20981 | lt_prog_compiler_static_F77='-Bstatic' |
| 20982 | else |
| 20983 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 20984 | fi |
| 20985 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20986 | darwin*) |
| 20987 | # PIC is the default on this platform |
| 20988 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20989 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20990 | xlc*) |
| 20991 | lt_prog_compiler_pic_F77='-qnocommon' |
| 20992 | lt_prog_compiler_wl_F77='-Wl,' |
| 20993 | ;; |
| 20994 | esac |
| 20995 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20996 | |
| 20997 | mingw* | pw32* | os2*) |
| 20998 | # This hack is so that the source file can tell whether it is being |
| 20999 | # built for inclusion in a dll (and should export symbols for example). |
| 21000 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21001 | ;; |
| 21002 | |
| 21003 | hpux9* | hpux10* | hpux11*) |
| 21004 | lt_prog_compiler_wl_F77='-Wl,' |
| 21005 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21006 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21007 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21008 | hppa*64*|ia64*) |
| 21009 | # +Z the default |
| 21010 | ;; |
| 21011 | *) |
| 21012 | lt_prog_compiler_pic_F77='+Z' |
| 21013 | ;; |
| 21014 | esac |
| 21015 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21016 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21017 | ;; |
| 21018 | |
| 21019 | irix5* | irix6* | nonstopux*) |
| 21020 | lt_prog_compiler_wl_F77='-Wl,' |
| 21021 | # PIC (with -KPIC) is the default. |
| 21022 | lt_prog_compiler_static_F77='-non_shared' |
| 21023 | ;; |
| 21024 | |
| 21025 | newsos6) |
| 21026 | lt_prog_compiler_pic_F77='-KPIC' |
| 21027 | lt_prog_compiler_static_F77='-Bstatic' |
| 21028 | ;; |
| 21029 | |
| 21030 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21031 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21032 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21033 | lt_prog_compiler_wl_F77='-Wl,' |
| 21034 | lt_prog_compiler_pic_F77='-KPIC' |
| 21035 | lt_prog_compiler_static_F77='-static' |
| 21036 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21037 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21038 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21039 | # which looks to be a dead project) |
| 21040 | lt_prog_compiler_wl_F77='-Wl,' |
| 21041 | lt_prog_compiler_pic_F77='-fpic' |
| 21042 | lt_prog_compiler_static_F77='-Bstatic' |
| 21043 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21044 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21045 | lt_prog_compiler_wl_F77='-Wl,' |
| 21046 | # All Alpha code is PIC. |
| 21047 | lt_prog_compiler_static_F77='-non_shared' |
| 21048 | ;; |
| 21049 | esac |
| 21050 | ;; |
| 21051 | |
| 21052 | osf3* | osf4* | osf5*) |
| 21053 | lt_prog_compiler_wl_F77='-Wl,' |
| 21054 | # All OSF/1 code is PIC. |
| 21055 | lt_prog_compiler_static_F77='-non_shared' |
| 21056 | ;; |
| 21057 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21058 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21059 | lt_prog_compiler_pic_F77='-KPIC' |
| 21060 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21061 | case $cc_basename in |
| 21062 | f77* | f90* | f95*) |
| 21063 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21064 | *) |
| 21065 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21066 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21067 | ;; |
| 21068 | |
| 21069 | sunos4*) |
| 21070 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21071 | lt_prog_compiler_pic_F77='-PIC' |
| 21072 | lt_prog_compiler_static_F77='-Bstatic' |
| 21073 | ;; |
| 21074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21075 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21076 | lt_prog_compiler_wl_F77='-Wl,' |
| 21077 | lt_prog_compiler_pic_F77='-KPIC' |
| 21078 | lt_prog_compiler_static_F77='-Bstatic' |
| 21079 | ;; |
| 21080 | |
| 21081 | sysv4*MP*) |
| 21082 | if test -d /usr/nec ;then |
| 21083 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21084 | lt_prog_compiler_static_F77='-Bstatic' |
| 21085 | fi |
| 21086 | ;; |
| 21087 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21088 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21089 | lt_prog_compiler_wl_F77='-Wl,' |
| 21090 | lt_prog_compiler_pic_F77='-KPIC' |
| 21091 | lt_prog_compiler_static_F77='-Bstatic' |
| 21092 | ;; |
| 21093 | |
| 21094 | unicos*) |
| 21095 | lt_prog_compiler_wl_F77='-Wl,' |
| 21096 | lt_prog_compiler_can_build_shared_F77=no |
| 21097 | ;; |
| 21098 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21099 | uts4*) |
| 21100 | lt_prog_compiler_pic_F77='-pic' |
| 21101 | lt_prog_compiler_static_F77='-Bstatic' |
| 21102 | ;; |
| 21103 | |
| 21104 | *) |
| 21105 | lt_prog_compiler_can_build_shared_F77=no |
| 21106 | ;; |
| 21107 | esac |
| 21108 | fi |
| 21109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21110 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21111 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21112 | |
| 21113 | # |
| 21114 | # Check to make sure the PIC flag actually works. |
| 21115 | # |
| 21116 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21118 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21119 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21120 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21122 | else |
| 21123 | lt_prog_compiler_pic_works_F77=no |
| 21124 | ac_outfile=conftest.$ac_objext |
| 21125 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21126 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21127 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21128 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21129 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21130 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21131 | # The option is referenced via a variable to avoid confusing sed. |
| 21132 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21133 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21134 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21135 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21136 | (eval echo "\"\$as_me:21136: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21137 | (eval "$lt_compile" 2>conftest.err) |
| 21138 | ac_status=$? |
| 21139 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21140 | echo "$as_me:21140: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21141 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21142 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21143 | # So say no if there are warnings other than the usual output. |
| 21144 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21145 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21146 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21147 | lt_prog_compiler_pic_works_F77=yes |
| 21148 | fi |
| 21149 | fi |
| 21150 | $rm conftest* |
| 21151 | |
| 21152 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21153 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21154 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21155 | |
| 21156 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21157 | case $lt_prog_compiler_pic_F77 in |
| 21158 | "" | " "*) ;; |
| 21159 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21160 | esac |
| 21161 | else |
| 21162 | lt_prog_compiler_pic_F77= |
| 21163 | lt_prog_compiler_can_build_shared_F77=no |
| 21164 | fi |
| 21165 | |
| 21166 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21167 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21168 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21169 | *djgpp*) |
| 21170 | lt_prog_compiler_pic_F77= |
| 21171 | ;; |
| 21172 | *) |
| 21173 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21174 | ;; |
| 21175 | esac |
| 21176 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | # |
| 21178 | # Check to make sure the static flag actually works. |
| 21179 | # |
| 21180 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21181 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21182 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21183 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21185 | else |
| 21186 | lt_prog_compiler_static_works_F77=no |
| 21187 | save_LDFLAGS="$LDFLAGS" |
| 21188 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21189 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21190 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21191 | # The linker can only warn and ignore the option if not recognized |
| 21192 | # So say no if there are warnings |
| 21193 | if test -s conftest.err; then |
| 21194 | # Append any errors to the config.log. |
| 21195 | cat conftest.err 1>&5 |
| 21196 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21197 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21198 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21199 | lt_prog_compiler_static_works_F77=yes |
| 21200 | fi |
| 21201 | else |
| 21202 | lt_prog_compiler_static_works_F77=yes |
| 21203 | fi |
| 21204 | fi |
| 21205 | $rm conftest* |
| 21206 | LDFLAGS="$save_LDFLAGS" |
| 21207 | |
| 21208 | fi |
| 21209 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21210 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21211 | |
| 21212 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21213 | : |
| 21214 | else |
| 21215 | lt_prog_compiler_static_F77= |
| 21216 | fi |
| 21217 | |
| 21218 | |
| 21219 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21220 | 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] | 21221 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21223 | else |
| 21224 | lt_cv_prog_compiler_c_o_F77=no |
| 21225 | $rm -r conftest 2>/dev/null |
| 21226 | mkdir conftest |
| 21227 | cd conftest |
| 21228 | mkdir out |
| 21229 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21230 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21231 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21232 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21233 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21234 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21235 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21236 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21239 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21240 | (eval echo "\"\$as_me:21240: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21241 | (eval "$lt_compile" 2>out/conftest.err) |
| 21242 | ac_status=$? |
| 21243 | cat out/conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21244 | echo "$as_me:21244: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21245 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21246 | then |
| 21247 | # The compiler can only warn and ignore the option if not recognized |
| 21248 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21249 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21250 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21251 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21252 | lt_cv_prog_compiler_c_o_F77=yes |
| 21253 | fi |
| 21254 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21255 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21256 | $rm conftest* |
| 21257 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21258 | # template instantiation |
| 21259 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21260 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21261 | cd .. |
| 21262 | rmdir conftest |
| 21263 | $rm conftest* |
| 21264 | |
| 21265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21266 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21267 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21268 | |
| 21269 | |
| 21270 | hard_links="nottested" |
| 21271 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21272 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21273 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21274 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21275 | hard_links=yes |
| 21276 | $rm conftest* |
| 21277 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21278 | touch conftest.a |
| 21279 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21280 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21281 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21282 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21283 | if test "$hard_links" = no; then |
| 21284 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21285 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21286 | need_locks=warn |
| 21287 | fi |
| 21288 | else |
| 21289 | need_locks=no |
| 21290 | fi |
| 21291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21292 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21293 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21294 | |
| 21295 | runpath_var= |
| 21296 | allow_undefined_flag_F77= |
| 21297 | enable_shared_with_static_runtimes_F77=no |
| 21298 | archive_cmds_F77= |
| 21299 | archive_expsym_cmds_F77= |
| 21300 | old_archive_From_new_cmds_F77= |
| 21301 | old_archive_from_expsyms_cmds_F77= |
| 21302 | export_dynamic_flag_spec_F77= |
| 21303 | whole_archive_flag_spec_F77= |
| 21304 | thread_safe_flag_spec_F77= |
| 21305 | hardcode_libdir_flag_spec_F77= |
| 21306 | hardcode_libdir_flag_spec_ld_F77= |
| 21307 | hardcode_libdir_separator_F77= |
| 21308 | hardcode_direct_F77=no |
| 21309 | hardcode_minus_L_F77=no |
| 21310 | hardcode_shlibpath_var_F77=unsupported |
| 21311 | link_all_deplibs_F77=unknown |
| 21312 | hardcode_automatic_F77=no |
| 21313 | module_cmds_F77= |
| 21314 | module_expsym_cmds_F77= |
| 21315 | always_export_symbols_F77=no |
| 21316 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21317 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21318 | # included in the symbol list |
| 21319 | include_expsyms_F77= |
| 21320 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21321 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21322 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21323 | # as well as any symbol that contains `d'. |
| 21324 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21325 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21326 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21327 | # the symbol is explicitly referenced. Since portable code cannot |
| 21328 | # rely on this symbol name, it's probably fine to never include it in |
| 21329 | # preloaded symbol tables. |
| 21330 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21331 | # Just being paranoid about ensuring that cc_basename is set. |
| 21332 | for cc_temp in $compiler""; do |
| 21333 | case $cc_temp in |
| 21334 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21335 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21336 | \-*) ;; |
| 21337 | *) break;; |
| 21338 | esac |
| 21339 | done |
| 21340 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21341 | |
| 21342 | case $host_os in |
| 21343 | cygwin* | mingw* | pw32*) |
| 21344 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21345 | # When not using gcc, we currently assume that we are using |
| 21346 | # Microsoft Visual C++. |
| 21347 | if test "$GCC" != yes; then |
| 21348 | with_gnu_ld=no |
| 21349 | fi |
| 21350 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21351 | interix*) |
| 21352 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21353 | with_gnu_ld=yes |
| 21354 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21355 | openbsd*) |
| 21356 | with_gnu_ld=no |
| 21357 | ;; |
| 21358 | esac |
| 21359 | |
| 21360 | ld_shlibs_F77=yes |
| 21361 | if test "$with_gnu_ld" = yes; then |
| 21362 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21363 | wlarc='${wl}' |
| 21364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21365 | # Set some defaults for GNU ld with shared library support. These |
| 21366 | # are reset later if shared libraries are not supported. Putting them |
| 21367 | # here allows them to be overridden if necessary. |
| 21368 | runpath_var=LD_RUN_PATH |
| 21369 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21370 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21371 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21372 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21373 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21374 | else |
| 21375 | whole_archive_flag_spec_F77= |
| 21376 | fi |
| 21377 | supports_anon_versioning=no |
| 21378 | case `$LD -v 2>/dev/null` in |
| 21379 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21380 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21381 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21382 | *\ 2.11.*) ;; # other 2.11 versions |
| 21383 | *) supports_anon_versioning=yes ;; |
| 21384 | esac |
| 21385 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21386 | # See if GNU ld supports shared libraries. |
| 21387 | case $host_os in |
| 21388 | aix3* | aix4* | aix5*) |
| 21389 | # On AIX/PPC, the GNU linker is very broken |
| 21390 | if test "$host_cpu" != ia64; then |
| 21391 | ld_shlibs_F77=no |
| 21392 | cat <<EOF 1>&2 |
| 21393 | |
| 21394 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21395 | *** to be unable to reliably create shared libraries on AIX. |
| 21396 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21397 | *** really care for shared libraries, you may want to modify your PATH |
| 21398 | *** so that a non-GNU linker is found, and then restart. |
| 21399 | |
| 21400 | EOF |
| 21401 | fi |
| 21402 | ;; |
| 21403 | |
| 21404 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21405 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21406 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21407 | hardcode_minus_L_F77=yes |
| 21408 | |
| 21409 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21410 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21411 | # to version 4, is to share data among multiple programs linked |
| 21412 | # with the same dynamic library. Since this doesn't match the |
| 21413 | # behavior of shared libraries on other platforms, we can't use |
| 21414 | # them. |
| 21415 | ld_shlibs_F77=no |
| 21416 | ;; |
| 21417 | |
| 21418 | beos*) |
| 21419 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21420 | allow_undefined_flag_F77=unsupported |
| 21421 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21422 | # support --undefined. This deserves some investigation. FIXME |
| 21423 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21424 | else |
| 21425 | ld_shlibs_F77=no |
| 21426 | fi |
| 21427 | ;; |
| 21428 | |
| 21429 | cygwin* | mingw* | pw32*) |
| 21430 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21431 | # as there is no search path for DLLs. |
| 21432 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21433 | allow_undefined_flag_F77=unsupported |
| 21434 | always_export_symbols_F77=no |
| 21435 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21436 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21437 | |
| 21438 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21439 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21440 | # If the export-symbols file already is a .def file (1st line |
| 21441 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21442 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21443 | cp $export_symbols $output_objdir/$soname.def; |
| 21444 | else |
| 21445 | echo EXPORTS > $output_objdir/$soname.def; |
| 21446 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21447 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21448 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21449 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21450 | ld_shlibs_F77=no |
| 21451 | fi |
| 21452 | ;; |
| 21453 | |
| 21454 | interix3*) |
| 21455 | hardcode_direct_F77=no |
| 21456 | hardcode_shlibpath_var_F77=no |
| 21457 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21458 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21459 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21460 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21461 | # default) and relocated if they conflict, which is a slow very memory |
| 21462 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21463 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21464 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21465 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 21466 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 21467 | ;; |
| 21468 | |
| 21469 | linux*) |
| 21470 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21471 | tmp_addflag= |
| 21472 | case $cc_basename,$host_cpu in |
| 21473 | pgcc*) # Portland Group C compiler |
| 21474 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 21475 | tmp_addflag=' $pic_flag' |
| 21476 | ;; |
| 21477 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21478 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 21479 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21480 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21481 | tmp_addflag=' -i_dynamic' ;; |
| 21482 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21483 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21484 | ifc* | ifort*) # Intel Fortran compiler |
| 21485 | tmp_addflag=' -nofor_main' ;; |
| 21486 | esac |
| 21487 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21488 | |
| 21489 | if test $supports_anon_versioning = yes; then |
| 21490 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21491 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21492 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21493 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21494 | fi |
| 21495 | else |
| 21496 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21497 | fi |
| 21498 | ;; |
| 21499 | |
| 21500 | netbsd*) |
| 21501 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21502 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21503 | wlarc= |
| 21504 | else |
| 21505 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21506 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21507 | fi |
| 21508 | ;; |
| 21509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21510 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21511 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21512 | ld_shlibs_F77=no |
| 21513 | cat <<EOF 1>&2 |
| 21514 | |
| 21515 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21516 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21517 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21518 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21519 | *** your PATH or compiler configuration so that the native linker is |
| 21520 | *** used, and then restart. |
| 21521 | |
| 21522 | EOF |
| 21523 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21524 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21525 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21526 | else |
| 21527 | ld_shlibs_F77=no |
| 21528 | fi |
| 21529 | ;; |
| 21530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21531 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21532 | case `$LD -v 2>&1` in |
| 21533 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21534 | ld_shlibs_F77=no |
| 21535 | cat <<_LT_EOF 1>&2 |
| 21536 | |
| 21537 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21538 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21539 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21540 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21541 | *** your PATH or compiler configuration so that the native linker is |
| 21542 | *** used, and then restart. |
| 21543 | |
| 21544 | _LT_EOF |
| 21545 | ;; |
| 21546 | *) |
| 21547 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21548 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21549 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21550 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21551 | else |
| 21552 | ld_shlibs_F77=no |
| 21553 | fi |
| 21554 | ;; |
| 21555 | esac |
| 21556 | ;; |
| 21557 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21558 | sunos4*) |
| 21559 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21560 | wlarc= |
| 21561 | hardcode_direct_F77=yes |
| 21562 | hardcode_shlibpath_var_F77=no |
| 21563 | ;; |
| 21564 | |
| 21565 | *) |
| 21566 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21567 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21568 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21569 | else |
| 21570 | ld_shlibs_F77=no |
| 21571 | fi |
| 21572 | ;; |
| 21573 | esac |
| 21574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21575 | if test "$ld_shlibs_F77" = no; then |
| 21576 | runpath_var= |
| 21577 | hardcode_libdir_flag_spec_F77= |
| 21578 | export_dynamic_flag_spec_F77= |
| 21579 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21580 | fi |
| 21581 | else |
| 21582 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21583 | case $host_os in |
| 21584 | aix3*) |
| 21585 | allow_undefined_flag_F77=unsupported |
| 21586 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21587 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21588 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21589 | # are no directories specified by -L. |
| 21590 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21591 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21592 | # Neither direct hardcoding nor static linking is supported with a |
| 21593 | # broken collect2. |
| 21594 | hardcode_direct_F77=unsupported |
| 21595 | fi |
| 21596 | ;; |
| 21597 | |
| 21598 | aix4* | aix5*) |
| 21599 | if test "$host_cpu" = ia64; then |
| 21600 | # On IA64, the linker does run time linking by default, so we don't |
| 21601 | # have to do anything special. |
| 21602 | aix_use_runtimelinking=no |
| 21603 | exp_sym_flag='-Bexport' |
| 21604 | no_entry_flag="" |
| 21605 | else |
| 21606 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21607 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21608 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21609 | 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' |
| 21610 | else |
| 21611 | 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' |
| 21612 | fi |
| 21613 | aix_use_runtimelinking=no |
| 21614 | |
| 21615 | # Test if we are trying to use run time linking or normal |
| 21616 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21617 | # need to do runtime linking. |
| 21618 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21619 | for ld_flag in $LDFLAGS; do |
| 21620 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21621 | aix_use_runtimelinking=yes |
| 21622 | break |
| 21623 | fi |
| 21624 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21625 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21626 | esac |
| 21627 | |
| 21628 | exp_sym_flag='-bexport' |
| 21629 | no_entry_flag='-bnoentry' |
| 21630 | fi |
| 21631 | |
| 21632 | # When large executables or shared objects are built, AIX ld can |
| 21633 | # have problems creating the table of contents. If linking a library |
| 21634 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21635 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21636 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21637 | |
| 21638 | archive_cmds_F77='' |
| 21639 | hardcode_direct_F77=yes |
| 21640 | hardcode_libdir_separator_F77=':' |
| 21641 | link_all_deplibs_F77=yes |
| 21642 | |
| 21643 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21645 | # We only want to do this on AIX 4.2 and lower, the check |
| 21646 | # below for broken collect2 doesn't work under 4.3+ |
| 21647 | collect2name=`${CC} -print-prog-name=collect2` |
| 21648 | if test -f "$collect2name" && \ |
| 21649 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21650 | then |
| 21651 | # We have reworked collect2 |
| 21652 | hardcode_direct_F77=yes |
| 21653 | else |
| 21654 | # We have old collect2 |
| 21655 | hardcode_direct_F77=unsupported |
| 21656 | # It fails to find uninstalled libraries when the uninstalled |
| 21657 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21658 | # to unsupported forces relinking |
| 21659 | hardcode_minus_L_F77=yes |
| 21660 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21661 | hardcode_libdir_separator_F77= |
| 21662 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21663 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21664 | esac |
| 21665 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21666 | if test "$aix_use_runtimelinking" = yes; then |
| 21667 | shared_flag="$shared_flag "'${wl}-G' |
| 21668 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21669 | else |
| 21670 | # not using gcc |
| 21671 | if test "$host_cpu" = ia64; then |
| 21672 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21673 | # chokes on -Wl,-G. The following line is correct: |
| 21674 | shared_flag='-G' |
| 21675 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21676 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21677 | shared_flag='${wl}-G' |
| 21678 | else |
| 21679 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21680 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21681 | fi |
| 21682 | fi |
| 21683 | |
| 21684 | # It seems that -bexpall does not export symbols beginning with |
| 21685 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21686 | always_export_symbols_F77=yes |
| 21687 | if test "$aix_use_runtimelinking" = yes; then |
| 21688 | # Warning - without using the other runtime loading flags (-brtl), |
| 21689 | # -berok will link without error, but may produce a broken library. |
| 21690 | allow_undefined_flag_F77='-berok' |
| 21691 | # Determine the default libpath from the value encoded in an empty executable. |
| 21692 | cat >conftest.$ac_ext <<_ACEOF |
| 21693 | program main |
| 21694 | |
| 21695 | end |
| 21696 | _ACEOF |
| 21697 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21698 | if { (ac_try="$ac_link" |
| 21699 | case "(($ac_try" in |
| 21700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21701 | *) ac_try_echo=$ac_try;; |
| 21702 | esac |
| 21703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21704 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21705 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21707 | rm -f conftest.er1 |
| 21708 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21710 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21711 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21712 | { (case "(($ac_try" in |
| 21713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21714 | *) ac_try_echo=$ac_try;; |
| 21715 | esac |
| 21716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21717 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21718 | ac_status=$? |
| 21719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21720 | (exit $ac_status); }; } && |
| 21721 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21722 | { (case "(($ac_try" in |
| 21723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21724 | *) ac_try_echo=$ac_try;; |
| 21725 | esac |
| 21726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21727 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21728 | ac_status=$? |
| 21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21730 | (exit $ac_status); }; }; then |
| 21731 | |
| 21732 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21733 | }'` |
| 21734 | # Check for a 64-bit object if we didn't find anything. |
| 21735 | 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; } |
| 21736 | }'`; fi |
| 21737 | else |
| 21738 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21741 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21743 | |
| 21744 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21745 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21746 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21747 | |
| 21748 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21749 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21750 | else |
| 21751 | if test "$host_cpu" = ia64; then |
| 21752 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21753 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21754 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21755 | else |
| 21756 | # Determine the default libpath from the value encoded in an empty executable. |
| 21757 | cat >conftest.$ac_ext <<_ACEOF |
| 21758 | program main |
| 21759 | |
| 21760 | end |
| 21761 | _ACEOF |
| 21762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21763 | if { (ac_try="$ac_link" |
| 21764 | case "(($ac_try" in |
| 21765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21766 | *) ac_try_echo=$ac_try;; |
| 21767 | esac |
| 21768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21769 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21770 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21772 | rm -f conftest.er1 |
| 21773 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21775 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21776 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21777 | { (case "(($ac_try" in |
| 21778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21779 | *) ac_try_echo=$ac_try;; |
| 21780 | esac |
| 21781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21782 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21783 | ac_status=$? |
| 21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21785 | (exit $ac_status); }; } && |
| 21786 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21787 | { (case "(($ac_try" in |
| 21788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21789 | *) ac_try_echo=$ac_try;; |
| 21790 | esac |
| 21791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21792 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21793 | ac_status=$? |
| 21794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21795 | (exit $ac_status); }; }; then |
| 21796 | |
| 21797 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21798 | }'` |
| 21799 | # Check for a 64-bit object if we didn't find anything. |
| 21800 | 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; } |
| 21801 | }'`; fi |
| 21802 | else |
| 21803 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21805 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21806 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21807 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21808 | |
| 21809 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21810 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21811 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21812 | |
| 21813 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21814 | # Warning - without using the other run time loading flags, |
| 21815 | # -berok will link without error, but may produce a broken library. |
| 21816 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 21817 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21818 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21819 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21820 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21821 | # This is similar to how AIX traditionally builds its shared libraries. |
| 21822 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21823 | fi |
| 21824 | fi |
| 21825 | ;; |
| 21826 | |
| 21827 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21828 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21829 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21830 | hardcode_minus_L_F77=yes |
| 21831 | # see comment about different semantics on the GNU ld section |
| 21832 | ld_shlibs_F77=no |
| 21833 | ;; |
| 21834 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21835 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21836 | export_dynamic_flag_spec_F77=-rdynamic |
| 21837 | ;; |
| 21838 | |
| 21839 | cygwin* | mingw* | pw32*) |
| 21840 | # When not using gcc, we currently assume that we are using |
| 21841 | # Microsoft Visual C++. |
| 21842 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21843 | # no search path for DLLs. |
| 21844 | hardcode_libdir_flag_spec_F77=' ' |
| 21845 | allow_undefined_flag_F77=unsupported |
| 21846 | # Tell ltmain to make .lib files, not .a files. |
| 21847 | libext=lib |
| 21848 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21849 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21850 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21851 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21852 | # The linker will automatically build a .lib file if we build a DLL. |
| 21853 | old_archive_From_new_cmds_F77='true' |
| 21854 | # FIXME: Should let the user specify the lib program. |
| 21855 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21856 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21857 | enable_shared_with_static_runtimes_F77=yes |
| 21858 | ;; |
| 21859 | |
| 21860 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21861 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21862 | rhapsody* | darwin1.[012]) |
| 21863 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 21864 | ;; |
| 21865 | *) # Darwin 1.3 on |
| 21866 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21867 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21868 | else |
| 21869 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21870 | 10.[012]) |
| 21871 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21872 | ;; |
| 21873 | 10.*) |
| 21874 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 21875 | ;; |
| 21876 | esac |
| 21877 | fi |
| 21878 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21879 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21880 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21881 | hardcode_direct_F77=no |
| 21882 | hardcode_automatic_F77=yes |
| 21883 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21884 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21885 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21886 | if test "$GCC" = yes ; then |
| 21887 | output_verbose_link_cmd='echo' |
| 21888 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21889 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21890 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21891 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 21892 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21893 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21894 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21895 | xlc*) |
| 21896 | output_verbose_link_cmd='echo' |
| 21897 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21898 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21899 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21900 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 21901 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21902 | ;; |
| 21903 | *) |
| 21904 | ld_shlibs_F77=no |
| 21905 | ;; |
| 21906 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21907 | fi |
| 21908 | ;; |
| 21909 | |
| 21910 | dgux*) |
| 21911 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21912 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21913 | hardcode_shlibpath_var_F77=no |
| 21914 | ;; |
| 21915 | |
| 21916 | freebsd1*) |
| 21917 | ld_shlibs_F77=no |
| 21918 | ;; |
| 21919 | |
| 21920 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21921 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21922 | # does not break anything, and helps significantly (at the cost of a little |
| 21923 | # extra space). |
| 21924 | freebsd2.2*) |
| 21925 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21926 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21927 | hardcode_direct_F77=yes |
| 21928 | hardcode_shlibpath_var_F77=no |
| 21929 | ;; |
| 21930 | |
| 21931 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21932 | freebsd2*) |
| 21933 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21934 | hardcode_direct_F77=yes |
| 21935 | hardcode_minus_L_F77=yes |
| 21936 | hardcode_shlibpath_var_F77=no |
| 21937 | ;; |
| 21938 | |
| 21939 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21940 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21941 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21942 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21943 | hardcode_direct_F77=yes |
| 21944 | hardcode_shlibpath_var_F77=no |
| 21945 | ;; |
| 21946 | |
| 21947 | hpux9*) |
| 21948 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21949 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21950 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21951 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21952 | fi |
| 21953 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21954 | hardcode_libdir_separator_F77=: |
| 21955 | hardcode_direct_F77=yes |
| 21956 | |
| 21957 | # hardcode_minus_L: Not really in the search PATH, |
| 21958 | # but as the default location of the library. |
| 21959 | hardcode_minus_L_F77=yes |
| 21960 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21961 | ;; |
| 21962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21963 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21964 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21965 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21966 | else |
| 21967 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21968 | fi |
| 21969 | if test "$with_gnu_ld" = no; then |
| 21970 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21971 | hardcode_libdir_separator_F77=: |
| 21972 | |
| 21973 | hardcode_direct_F77=yes |
| 21974 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21975 | |
| 21976 | # hardcode_minus_L: Not really in the search PATH, |
| 21977 | # but as the default location of the library. |
| 21978 | hardcode_minus_L_F77=yes |
| 21979 | fi |
| 21980 | ;; |
| 21981 | |
| 21982 | hpux11*) |
| 21983 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21984 | case $host_cpu in |
| 21985 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21986 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21987 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21988 | ia64*) |
| 21989 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21990 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21991 | *) |
| 21992 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21993 | ;; |
| 21994 | esac |
| 21995 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21996 | case $host_cpu in |
| 21997 | hppa*64*) |
| 21998 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21999 | ;; |
| 22000 | ia64*) |
| 22001 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22002 | ;; |
| 22003 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22004 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22005 | ;; |
| 22006 | esac |
| 22007 | fi |
| 22008 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22009 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22010 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22012 | case $host_cpu in |
| 22013 | hppa*64*|ia64*) |
| 22014 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22015 | hardcode_direct_F77=no |
| 22016 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22017 | ;; |
| 22018 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22019 | hardcode_direct_F77=yes |
| 22020 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22021 | |
| 22022 | # hardcode_minus_L: Not really in the search PATH, |
| 22023 | # but as the default location of the library. |
| 22024 | hardcode_minus_L_F77=yes |
| 22025 | ;; |
| 22026 | esac |
| 22027 | fi |
| 22028 | ;; |
| 22029 | |
| 22030 | irix5* | irix6* | nonstopux*) |
| 22031 | if test "$GCC" = yes; then |
| 22032 | 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' |
| 22033 | else |
| 22034 | 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' |
| 22035 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22036 | fi |
| 22037 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22038 | hardcode_libdir_separator_F77=: |
| 22039 | link_all_deplibs_F77=yes |
| 22040 | ;; |
| 22041 | |
| 22042 | netbsd*) |
| 22043 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22044 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22045 | else |
| 22046 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22047 | fi |
| 22048 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22049 | hardcode_direct_F77=yes |
| 22050 | hardcode_shlibpath_var_F77=no |
| 22051 | ;; |
| 22052 | |
| 22053 | newsos6) |
| 22054 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22055 | hardcode_direct_F77=yes |
| 22056 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22057 | hardcode_libdir_separator_F77=: |
| 22058 | hardcode_shlibpath_var_F77=no |
| 22059 | ;; |
| 22060 | |
| 22061 | openbsd*) |
| 22062 | hardcode_direct_F77=yes |
| 22063 | hardcode_shlibpath_var_F77=no |
| 22064 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22065 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22066 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22067 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22068 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22069 | else |
| 22070 | case $host_os in |
| 22071 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22072 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22073 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22074 | ;; |
| 22075 | *) |
| 22076 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22077 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22078 | ;; |
| 22079 | esac |
| 22080 | fi |
| 22081 | ;; |
| 22082 | |
| 22083 | os2*) |
| 22084 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22085 | hardcode_minus_L_F77=yes |
| 22086 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22087 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22088 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22089 | ;; |
| 22090 | |
| 22091 | osf3*) |
| 22092 | if test "$GCC" = yes; then |
| 22093 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22094 | 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' |
| 22095 | else |
| 22096 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22097 | 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' |
| 22098 | fi |
| 22099 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22100 | hardcode_libdir_separator_F77=: |
| 22101 | ;; |
| 22102 | |
| 22103 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22104 | if test "$GCC" = yes; then |
| 22105 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22106 | 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' |
| 22107 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22108 | else |
| 22109 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22110 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22111 | 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~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22112 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22114 | # Both c and cxx compiler support -rpath directly |
| 22115 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22116 | fi |
| 22117 | hardcode_libdir_separator_F77=: |
| 22118 | ;; |
| 22119 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22120 | solaris*) |
| 22121 | no_undefined_flag_F77=' -z text' |
| 22122 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22123 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22124 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22125 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22126 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22127 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22128 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22129 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22130 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22131 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22132 | fi |
| 22133 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22134 | hardcode_shlibpath_var_F77=no |
| 22135 | case $host_os in |
| 22136 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22137 | *) |
| 22138 | # The compiler driver will combine linker options so we |
| 22139 | # cannot just pass the convience library names through |
| 22140 | # without $wl, iff we do not link with $LD. |
| 22141 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22142 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22143 | case $wlarc in |
| 22144 | '') |
| 22145 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22146 | *) |
| 22147 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 22148 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22149 | esac |
| 22150 | link_all_deplibs_F77=yes |
| 22151 | ;; |
| 22152 | |
| 22153 | sunos4*) |
| 22154 | if test "x$host_vendor" = xsequent; then |
| 22155 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22156 | # files that make .init and .fini sections work. |
| 22157 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22158 | else |
| 22159 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22160 | fi |
| 22161 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22162 | hardcode_direct_F77=yes |
| 22163 | hardcode_minus_L_F77=yes |
| 22164 | hardcode_shlibpath_var_F77=no |
| 22165 | ;; |
| 22166 | |
| 22167 | sysv4) |
| 22168 | case $host_vendor in |
| 22169 | sni) |
| 22170 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22171 | hardcode_direct_F77=yes # is this really true??? |
| 22172 | ;; |
| 22173 | siemens) |
| 22174 | ## LD is ld it makes a PLAMLIB |
| 22175 | ## CC just makes a GrossModule. |
| 22176 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22177 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22178 | hardcode_direct_F77=no |
| 22179 | ;; |
| 22180 | motorola) |
| 22181 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22182 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22183 | ;; |
| 22184 | esac |
| 22185 | runpath_var='LD_RUN_PATH' |
| 22186 | hardcode_shlibpath_var_F77=no |
| 22187 | ;; |
| 22188 | |
| 22189 | sysv4.3*) |
| 22190 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22191 | hardcode_shlibpath_var_F77=no |
| 22192 | export_dynamic_flag_spec_F77='-Bexport' |
| 22193 | ;; |
| 22194 | |
| 22195 | sysv4*MP*) |
| 22196 | if test -d /usr/nec; then |
| 22197 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22198 | hardcode_shlibpath_var_F77=no |
| 22199 | runpath_var=LD_RUN_PATH |
| 22200 | hardcode_runpath_var=yes |
| 22201 | ld_shlibs_F77=yes |
| 22202 | fi |
| 22203 | ;; |
| 22204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22205 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22206 | no_undefined_flag_F77='${wl}-z,text' |
| 22207 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22208 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22209 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22210 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22211 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22212 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22213 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22214 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22215 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22216 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22217 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22218 | ;; |
| 22219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22220 | sysv5* | sco3.2v5* | sco5v6*) |
| 22221 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22222 | # link with -lc, and that would cause any symbols used from libc to |
| 22223 | # always be unresolved, which means just about no library would |
| 22224 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22225 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22226 | # as -z defs. |
| 22227 | no_undefined_flag_F77='${wl}-z,text' |
| 22228 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22229 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22230 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22231 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22232 | hardcode_libdir_separator_F77=':' |
| 22233 | link_all_deplibs_F77=yes |
| 22234 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22235 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22236 | |
| 22237 | if test "$GCC" = yes; then |
| 22238 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22239 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22240 | else |
| 22241 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22242 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22243 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22244 | ;; |
| 22245 | |
| 22246 | uts4*) |
| 22247 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22248 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22249 | hardcode_shlibpath_var_F77=no |
| 22250 | ;; |
| 22251 | |
| 22252 | *) |
| 22253 | ld_shlibs_F77=no |
| 22254 | ;; |
| 22255 | esac |
| 22256 | fi |
| 22257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22258 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22259 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22260 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22261 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22262 | # |
| 22263 | # Do we need to explicitly link libc? |
| 22264 | # |
| 22265 | case "x$archive_cmds_need_lc_F77" in |
| 22266 | x|xyes) |
| 22267 | # Assume -lc should be added |
| 22268 | archive_cmds_need_lc_F77=yes |
| 22269 | |
| 22270 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22271 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22272 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22273 | # FIXME: we may have to deal with multi-command sequences. |
| 22274 | ;; |
| 22275 | '$CC '*) |
| 22276 | # Test whether the compiler implicitly links with -lc since on some |
| 22277 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22278 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22279 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22280 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22281 | $rm conftest* |
| 22282 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22283 | |
| 22284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22285 | (eval $ac_compile) 2>&5 |
| 22286 | ac_status=$? |
| 22287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22288 | (exit $ac_status); } 2>conftest.err; then |
| 22289 | soname=conftest |
| 22290 | lib=conftest |
| 22291 | libobjs=conftest.$ac_objext |
| 22292 | deplibs= |
| 22293 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22294 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22295 | compiler_flags=-v |
| 22296 | linker_flags=-v |
| 22297 | verstring= |
| 22298 | output_objdir=. |
| 22299 | libname=conftest |
| 22300 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22301 | allow_undefined_flag_F77= |
| 22302 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22303 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22304 | ac_status=$? |
| 22305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22306 | (exit $ac_status); } |
| 22307 | then |
| 22308 | archive_cmds_need_lc_F77=no |
| 22309 | else |
| 22310 | archive_cmds_need_lc_F77=yes |
| 22311 | fi |
| 22312 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22313 | else |
| 22314 | cat conftest.err 1>&5 |
| 22315 | fi |
| 22316 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22317 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22318 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22319 | ;; |
| 22320 | esac |
| 22321 | fi |
| 22322 | ;; |
| 22323 | esac |
| 22324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22325 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22326 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22327 | library_names_spec= |
| 22328 | libname_spec='lib$name' |
| 22329 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22330 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22331 | postinstall_cmds= |
| 22332 | postuninstall_cmds= |
| 22333 | finish_cmds= |
| 22334 | finish_eval= |
| 22335 | shlibpath_var= |
| 22336 | shlibpath_overrides_runpath=unknown |
| 22337 | version_type=none |
| 22338 | dynamic_linker="$host_os ld.so" |
| 22339 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22340 | if test "$GCC" = yes; then |
| 22341 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22342 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22343 | # if the path contains ";" then we assume it to be the separator |
| 22344 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22345 | # assumed that no part of a normal pathname contains ";" but that should |
| 22346 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22347 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22348 | else |
| 22349 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22350 | fi |
| 22351 | else |
| 22352 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22353 | fi |
| 22354 | need_lib_prefix=unknown |
| 22355 | hardcode_into_libs=no |
| 22356 | |
| 22357 | # when you set need_version to no, make sure it does not cause -set_version |
| 22358 | # flags to be left without arguments |
| 22359 | need_version=unknown |
| 22360 | |
| 22361 | case $host_os in |
| 22362 | aix3*) |
| 22363 | version_type=linux |
| 22364 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22365 | shlibpath_var=LIBPATH |
| 22366 | |
| 22367 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22368 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22369 | ;; |
| 22370 | |
| 22371 | aix4* | aix5*) |
| 22372 | version_type=linux |
| 22373 | need_lib_prefix=no |
| 22374 | need_version=no |
| 22375 | hardcode_into_libs=yes |
| 22376 | if test "$host_cpu" = ia64; then |
| 22377 | # AIX 5 supports IA64 |
| 22378 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22379 | shlibpath_var=LD_LIBRARY_PATH |
| 22380 | else |
| 22381 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22382 | # for dependence libraries. The import file would start with |
| 22383 | # the line `#! .'. This would cause the generated library to |
| 22384 | # depend on `.', always an invalid library. This was fixed in |
| 22385 | # development snapshots of GCC prior to 3.0. |
| 22386 | case $host_os in |
| 22387 | aix4 | aix4.[01] | aix4.[01].*) |
| 22388 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22389 | echo ' yes ' |
| 22390 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22391 | : |
| 22392 | else |
| 22393 | can_build_shared=no |
| 22394 | fi |
| 22395 | ;; |
| 22396 | esac |
| 22397 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22398 | # soname into executable. Probably we can add versioning support to |
| 22399 | # collect2, so additional links can be useful in future. |
| 22400 | if test "$aix_use_runtimelinking" = yes; then |
| 22401 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22402 | # instead of lib<name>.a to let people know that these are not |
| 22403 | # typical AIX shared libraries. |
| 22404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22405 | else |
| 22406 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22407 | # and later when we are not doing run time linking. |
| 22408 | library_names_spec='${libname}${release}.a $libname.a' |
| 22409 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22410 | fi |
| 22411 | shlibpath_var=LIBPATH |
| 22412 | fi |
| 22413 | ;; |
| 22414 | |
| 22415 | amigaos*) |
| 22416 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22417 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22418 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22419 | ;; |
| 22420 | |
| 22421 | beos*) |
| 22422 | library_names_spec='${libname}${shared_ext}' |
| 22423 | dynamic_linker="$host_os ld.so" |
| 22424 | shlibpath_var=LIBRARY_PATH |
| 22425 | ;; |
| 22426 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22427 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22428 | version_type=linux |
| 22429 | need_version=no |
| 22430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22431 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22432 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22433 | shlibpath_var=LD_LIBRARY_PATH |
| 22434 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22435 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22436 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22437 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22438 | # libtool to hard-code these into programs |
| 22439 | ;; |
| 22440 | |
| 22441 | cygwin* | mingw* | pw32*) |
| 22442 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22443 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22444 | need_version=no |
| 22445 | need_lib_prefix=no |
| 22446 | |
| 22447 | case $GCC,$host_os in |
| 22448 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22449 | library_names_spec='$libname.dll.a' |
| 22450 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22451 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22452 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22453 | dldir=$destdir/`dirname \$dlpath`~ |
| 22454 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22455 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22456 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22457 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22458 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22459 | $rm \$dlpath' |
| 22460 | shlibpath_overrides_runpath=yes |
| 22461 | |
| 22462 | case $host_os in |
| 22463 | cygwin*) |
| 22464 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22465 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22466 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22467 | ;; |
| 22468 | mingw*) |
| 22469 | # MinGW DLLs use traditional 'lib' prefix |
| 22470 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22471 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22472 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22473 | # It is most probably a Windows format PATH printed by |
| 22474 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22475 | # path with ; separators, and with drive letters. We can handle the |
| 22476 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22477 | # especially as we might pass files found there to a mingw objdump, |
| 22478 | # which wouldn't understand a cygwinified path. Ahh. |
| 22479 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22480 | else |
| 22481 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22482 | fi |
| 22483 | ;; |
| 22484 | pw32*) |
| 22485 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22486 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22487 | ;; |
| 22488 | esac |
| 22489 | ;; |
| 22490 | |
| 22491 | *) |
| 22492 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22493 | ;; |
| 22494 | esac |
| 22495 | dynamic_linker='Win32 ld.exe' |
| 22496 | # FIXME: first we should search . and the directory the executable is in |
| 22497 | shlibpath_var=PATH |
| 22498 | ;; |
| 22499 | |
| 22500 | darwin* | rhapsody*) |
| 22501 | dynamic_linker="$host_os dyld" |
| 22502 | version_type=darwin |
| 22503 | need_lib_prefix=no |
| 22504 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22505 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22506 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22507 | shlibpath_overrides_runpath=yes |
| 22508 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22509 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22510 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22511 | if test "$GCC" = yes; then |
| 22512 | 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"` |
| 22513 | else |
| 22514 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22515 | fi |
| 22516 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22517 | ;; |
| 22518 | |
| 22519 | dgux*) |
| 22520 | version_type=linux |
| 22521 | need_lib_prefix=no |
| 22522 | need_version=no |
| 22523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22524 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22525 | shlibpath_var=LD_LIBRARY_PATH |
| 22526 | ;; |
| 22527 | |
| 22528 | freebsd1*) |
| 22529 | dynamic_linker=no |
| 22530 | ;; |
| 22531 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22532 | kfreebsd*-gnu) |
| 22533 | version_type=linux |
| 22534 | need_lib_prefix=no |
| 22535 | need_version=no |
| 22536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22537 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22538 | shlibpath_var=LD_LIBRARY_PATH |
| 22539 | shlibpath_overrides_runpath=no |
| 22540 | hardcode_into_libs=yes |
| 22541 | dynamic_linker='GNU ld.so' |
| 22542 | ;; |
| 22543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22544 | freebsd* | dragonfly*) |
| 22545 | # DragonFly does not have aout. When/if they implement a new |
| 22546 | # versioning mechanism, adjust this. |
| 22547 | if test -x /usr/bin/objformat; then |
| 22548 | objformat=`/usr/bin/objformat` |
| 22549 | else |
| 22550 | case $host_os in |
| 22551 | freebsd[123]*) objformat=aout ;; |
| 22552 | *) objformat=elf ;; |
| 22553 | esac |
| 22554 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22555 | version_type=freebsd-$objformat |
| 22556 | case $version_type in |
| 22557 | freebsd-elf*) |
| 22558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22559 | need_version=no |
| 22560 | need_lib_prefix=no |
| 22561 | ;; |
| 22562 | freebsd-*) |
| 22563 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22564 | need_version=yes |
| 22565 | ;; |
| 22566 | esac |
| 22567 | shlibpath_var=LD_LIBRARY_PATH |
| 22568 | case $host_os in |
| 22569 | freebsd2*) |
| 22570 | shlibpath_overrides_runpath=yes |
| 22571 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22572 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22573 | shlibpath_overrides_runpath=yes |
| 22574 | hardcode_into_libs=yes |
| 22575 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22576 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22577 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22578 | shlibpath_overrides_runpath=no |
| 22579 | hardcode_into_libs=yes |
| 22580 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22581 | freebsd*) # from 4.6 on |
| 22582 | shlibpath_overrides_runpath=yes |
| 22583 | hardcode_into_libs=yes |
| 22584 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22585 | esac |
| 22586 | ;; |
| 22587 | |
| 22588 | gnu*) |
| 22589 | version_type=linux |
| 22590 | need_lib_prefix=no |
| 22591 | need_version=no |
| 22592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22594 | shlibpath_var=LD_LIBRARY_PATH |
| 22595 | hardcode_into_libs=yes |
| 22596 | ;; |
| 22597 | |
| 22598 | hpux9* | hpux10* | hpux11*) |
| 22599 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22600 | # link against other versions. |
| 22601 | version_type=sunos |
| 22602 | need_lib_prefix=no |
| 22603 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22604 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22605 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22606 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22607 | hardcode_into_libs=yes |
| 22608 | dynamic_linker="$host_os dld.so" |
| 22609 | shlibpath_var=LD_LIBRARY_PATH |
| 22610 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22613 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22614 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22615 | else |
| 22616 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22617 | fi |
| 22618 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22619 | ;; |
| 22620 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22621 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22622 | hardcode_into_libs=yes |
| 22623 | dynamic_linker="$host_os dld.sl" |
| 22624 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22625 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22627 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22628 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22629 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22630 | ;; |
| 22631 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22632 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22633 | dynamic_linker="$host_os dld.sl" |
| 22634 | shlibpath_var=SHLIB_PATH |
| 22635 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22637 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22638 | ;; |
| 22639 | esac |
| 22640 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22641 | postinstall_cmds='chmod 555 $lib' |
| 22642 | ;; |
| 22643 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22644 | interix3*) |
| 22645 | version_type=linux |
| 22646 | need_lib_prefix=no |
| 22647 | need_version=no |
| 22648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22650 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22651 | shlibpath_var=LD_LIBRARY_PATH |
| 22652 | shlibpath_overrides_runpath=no |
| 22653 | hardcode_into_libs=yes |
| 22654 | ;; |
| 22655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22656 | irix5* | irix6* | nonstopux*) |
| 22657 | case $host_os in |
| 22658 | nonstopux*) version_type=nonstopux ;; |
| 22659 | *) |
| 22660 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22661 | version_type=linux |
| 22662 | else |
| 22663 | version_type=irix |
| 22664 | fi ;; |
| 22665 | esac |
| 22666 | need_lib_prefix=no |
| 22667 | need_version=no |
| 22668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22670 | case $host_os in |
| 22671 | irix5* | nonstopux*) |
| 22672 | libsuff= shlibsuff= |
| 22673 | ;; |
| 22674 | *) |
| 22675 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22676 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22677 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22678 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22679 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22680 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22681 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22682 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22683 | esac |
| 22684 | ;; |
| 22685 | esac |
| 22686 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22687 | shlibpath_overrides_runpath=no |
| 22688 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22689 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22690 | hardcode_into_libs=yes |
| 22691 | ;; |
| 22692 | |
| 22693 | # No shared lib support for Linux oldld, aout, or coff. |
| 22694 | linux*oldld* | linux*aout* | linux*coff*) |
| 22695 | dynamic_linker=no |
| 22696 | ;; |
| 22697 | |
| 22698 | # This must be Linux ELF. |
| 22699 | linux*) |
| 22700 | version_type=linux |
| 22701 | need_lib_prefix=no |
| 22702 | need_version=no |
| 22703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22704 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22705 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22706 | shlibpath_var=LD_LIBRARY_PATH |
| 22707 | shlibpath_overrides_runpath=no |
| 22708 | # This implies no fast_install, which is unacceptable. |
| 22709 | # Some rework will be needed to allow for fast_install |
| 22710 | # before this can be enabled. |
| 22711 | hardcode_into_libs=yes |
| 22712 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22713 | # Append ld.so.conf contents to the search path |
| 22714 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22715 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22716 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22717 | fi |
| 22718 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22719 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22720 | # powerpc, because MkLinux only supported shared libraries with the |
| 22721 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22722 | # most powerpc-linux boxes support dynamic linking these days and |
| 22723 | # people can always --disable-shared, the test was removed, and we |
| 22724 | # assume the GNU/Linux dynamic linker is in use. |
| 22725 | dynamic_linker='GNU/Linux ld.so' |
| 22726 | ;; |
| 22727 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22728 | knetbsd*-gnu) |
| 22729 | version_type=linux |
| 22730 | need_lib_prefix=no |
| 22731 | need_version=no |
| 22732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22734 | shlibpath_var=LD_LIBRARY_PATH |
| 22735 | shlibpath_overrides_runpath=no |
| 22736 | hardcode_into_libs=yes |
| 22737 | dynamic_linker='GNU ld.so' |
| 22738 | ;; |
| 22739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22740 | netbsd*) |
| 22741 | version_type=sunos |
| 22742 | need_lib_prefix=no |
| 22743 | need_version=no |
| 22744 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22746 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22747 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22748 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22750 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22751 | dynamic_linker='NetBSD ld.elf_so' |
| 22752 | fi |
| 22753 | shlibpath_var=LD_LIBRARY_PATH |
| 22754 | shlibpath_overrides_runpath=yes |
| 22755 | hardcode_into_libs=yes |
| 22756 | ;; |
| 22757 | |
| 22758 | newsos6) |
| 22759 | version_type=linux |
| 22760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22761 | shlibpath_var=LD_LIBRARY_PATH |
| 22762 | shlibpath_overrides_runpath=yes |
| 22763 | ;; |
| 22764 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22765 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22766 | version_type=linux |
| 22767 | need_lib_prefix=no |
| 22768 | need_version=no |
| 22769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22770 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22771 | shlibpath_var=LD_LIBRARY_PATH |
| 22772 | shlibpath_overrides_runpath=yes |
| 22773 | ;; |
| 22774 | |
| 22775 | openbsd*) |
| 22776 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22777 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22778 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22779 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 22780 | case $host_os in |
| 22781 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 22782 | *) need_version=no ;; |
| 22783 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22785 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22786 | shlibpath_var=LD_LIBRARY_PATH |
| 22787 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22788 | case $host_os in |
| 22789 | openbsd2.[89] | openbsd2.[89].*) |
| 22790 | shlibpath_overrides_runpath=no |
| 22791 | ;; |
| 22792 | *) |
| 22793 | shlibpath_overrides_runpath=yes |
| 22794 | ;; |
| 22795 | esac |
| 22796 | else |
| 22797 | shlibpath_overrides_runpath=yes |
| 22798 | fi |
| 22799 | ;; |
| 22800 | |
| 22801 | os2*) |
| 22802 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22803 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22804 | need_lib_prefix=no |
| 22805 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22806 | dynamic_linker='OS/2 ld.exe' |
| 22807 | shlibpath_var=LIBPATH |
| 22808 | ;; |
| 22809 | |
| 22810 | osf3* | osf4* | osf5*) |
| 22811 | version_type=osf |
| 22812 | need_lib_prefix=no |
| 22813 | need_version=no |
| 22814 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22816 | shlibpath_var=LD_LIBRARY_PATH |
| 22817 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22818 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22819 | ;; |
| 22820 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22821 | solaris*) |
| 22822 | version_type=linux |
| 22823 | need_lib_prefix=no |
| 22824 | need_version=no |
| 22825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22827 | shlibpath_var=LD_LIBRARY_PATH |
| 22828 | shlibpath_overrides_runpath=yes |
| 22829 | hardcode_into_libs=yes |
| 22830 | # ldd complains unless libraries are executable |
| 22831 | postinstall_cmds='chmod +x $lib' |
| 22832 | ;; |
| 22833 | |
| 22834 | sunos4*) |
| 22835 | version_type=sunos |
| 22836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22837 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22838 | shlibpath_var=LD_LIBRARY_PATH |
| 22839 | shlibpath_overrides_runpath=yes |
| 22840 | if test "$with_gnu_ld" = yes; then |
| 22841 | need_lib_prefix=no |
| 22842 | fi |
| 22843 | need_version=yes |
| 22844 | ;; |
| 22845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22846 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22847 | version_type=linux |
| 22848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22849 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22850 | shlibpath_var=LD_LIBRARY_PATH |
| 22851 | case $host_vendor in |
| 22852 | sni) |
| 22853 | shlibpath_overrides_runpath=no |
| 22854 | need_lib_prefix=no |
| 22855 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22856 | runpath_var=LD_RUN_PATH |
| 22857 | ;; |
| 22858 | siemens) |
| 22859 | need_lib_prefix=no |
| 22860 | ;; |
| 22861 | motorola) |
| 22862 | need_lib_prefix=no |
| 22863 | need_version=no |
| 22864 | shlibpath_overrides_runpath=no |
| 22865 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22866 | ;; |
| 22867 | esac |
| 22868 | ;; |
| 22869 | |
| 22870 | sysv4*MP*) |
| 22871 | if test -d /usr/nec ;then |
| 22872 | version_type=linux |
| 22873 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22874 | soname_spec='$libname${shared_ext}.$major' |
| 22875 | shlibpath_var=LD_LIBRARY_PATH |
| 22876 | fi |
| 22877 | ;; |
| 22878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22879 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 22880 | version_type=freebsd-elf |
| 22881 | need_lib_prefix=no |
| 22882 | need_version=no |
| 22883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22884 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22885 | shlibpath_var=LD_LIBRARY_PATH |
| 22886 | hardcode_into_libs=yes |
| 22887 | if test "$with_gnu_ld" = yes; then |
| 22888 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 22889 | shlibpath_overrides_runpath=no |
| 22890 | else |
| 22891 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 22892 | shlibpath_overrides_runpath=yes |
| 22893 | case $host_os in |
| 22894 | sco3.2v5*) |
| 22895 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 22896 | ;; |
| 22897 | esac |
| 22898 | fi |
| 22899 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 22900 | ;; |
| 22901 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22902 | uts4*) |
| 22903 | version_type=linux |
| 22904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22906 | shlibpath_var=LD_LIBRARY_PATH |
| 22907 | ;; |
| 22908 | |
| 22909 | *) |
| 22910 | dynamic_linker=no |
| 22911 | ;; |
| 22912 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22913 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22914 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22915 | test "$dynamic_linker" = no && can_build_shared=no |
| 22916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22917 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22918 | if test "$GCC" = yes; then |
| 22919 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22920 | fi |
| 22921 | |
| 22922 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22923 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22924 | hardcode_action_F77= |
| 22925 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 22926 | test -n "$runpath_var_F77" || \ |
| 22927 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22928 | |
| 22929 | # We can hardcode non-existant directories. |
| 22930 | if test "$hardcode_direct_F77" != no && |
| 22931 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22932 | # have to relink, otherwise we might link with an installed library |
| 22933 | # when we should be linking with a yet-to-be-installed one |
| 22934 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22935 | test "$hardcode_minus_L_F77" != no; then |
| 22936 | # Linking always hardcodes the temporary library directory. |
| 22937 | hardcode_action_F77=relink |
| 22938 | else |
| 22939 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22940 | hardcode_action_F77=immediate |
| 22941 | fi |
| 22942 | else |
| 22943 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22944 | # directories. |
| 22945 | hardcode_action_F77=unsupported |
| 22946 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22947 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22948 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22949 | |
| 22950 | if test "$hardcode_action_F77" = relink; then |
| 22951 | # Fast installation is not supported |
| 22952 | enable_fast_install=no |
| 22953 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22954 | test "$enable_shared" = no; then |
| 22955 | # Fast installation is not necessary |
| 22956 | enable_fast_install=needless |
| 22957 | fi |
| 22958 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22959 | |
| 22960 | # The else clause should only fire when bootstrapping the |
| 22961 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22962 | # with your package, and you will get complaints that there are |
| 22963 | # no rules to generate ltmain.sh. |
| 22964 | if test -f "$ltmain"; then |
| 22965 | # See if we are running on zsh, and set the options which allow our commands through |
| 22966 | # without removal of \ escapes. |
| 22967 | if test -n "${ZSH_VERSION+set}" ; then |
| 22968 | setopt NO_GLOB_SUBST |
| 22969 | fi |
| 22970 | # Now quote all the things that may contain metacharacters while being |
| 22971 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 22972 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22973 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22974 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22975 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 22976 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 22977 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 22978 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 22979 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 22980 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 22981 | old_postinstall_cmds old_postuninstall_cmds \ |
| 22982 | compiler_F77 \ |
| 22983 | CC_F77 \ |
| 22984 | LD_F77 \ |
| 22985 | lt_prog_compiler_wl_F77 \ |
| 22986 | lt_prog_compiler_pic_F77 \ |
| 22987 | lt_prog_compiler_static_F77 \ |
| 22988 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 22989 | export_dynamic_flag_spec_F77 \ |
| 22990 | thread_safe_flag_spec_F77 \ |
| 22991 | whole_archive_flag_spec_F77 \ |
| 22992 | enable_shared_with_static_runtimes_F77 \ |
| 22993 | old_archive_cmds_F77 \ |
| 22994 | old_archive_from_new_cmds_F77 \ |
| 22995 | predep_objects_F77 \ |
| 22996 | postdep_objects_F77 \ |
| 22997 | predeps_F77 \ |
| 22998 | postdeps_F77 \ |
| 22999 | compiler_lib_search_path_F77 \ |
| 23000 | archive_cmds_F77 \ |
| 23001 | archive_expsym_cmds_F77 \ |
| 23002 | postinstall_cmds_F77 \ |
| 23003 | postuninstall_cmds_F77 \ |
| 23004 | old_archive_from_expsyms_cmds_F77 \ |
| 23005 | allow_undefined_flag_F77 \ |
| 23006 | no_undefined_flag_F77 \ |
| 23007 | export_symbols_cmds_F77 \ |
| 23008 | hardcode_libdir_flag_spec_F77 \ |
| 23009 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23010 | hardcode_libdir_separator_F77 \ |
| 23011 | hardcode_automatic_F77 \ |
| 23012 | module_cmds_F77 \ |
| 23013 | module_expsym_cmds_F77 \ |
| 23014 | lt_cv_prog_compiler_c_o_F77 \ |
| 23015 | exclude_expsyms_F77 \ |
| 23016 | include_expsyms_F77; do |
| 23017 | |
| 23018 | case $var in |
| 23019 | old_archive_cmds_F77 | \ |
| 23020 | old_archive_from_new_cmds_F77 | \ |
| 23021 | archive_cmds_F77 | \ |
| 23022 | archive_expsym_cmds_F77 | \ |
| 23023 | module_cmds_F77 | \ |
| 23024 | module_expsym_cmds_F77 | \ |
| 23025 | old_archive_from_expsyms_cmds_F77 | \ |
| 23026 | export_symbols_cmds_F77 | \ |
| 23027 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23028 | postinstall_cmds | postuninstall_cmds | \ |
| 23029 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23030 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23031 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23032 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23033 | ;; |
| 23034 | *) |
| 23035 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23036 | ;; |
| 23037 | esac |
| 23038 | done |
| 23039 | |
| 23040 | case $lt_echo in |
| 23041 | *'\$0 --fallback-echo"') |
| 23042 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23043 | ;; |
| 23044 | esac |
| 23045 | |
| 23046 | cfgfile="$ofile" |
| 23047 | |
| 23048 | cat <<__EOF__ >> "$cfgfile" |
| 23049 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23050 | |
| 23051 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23052 | |
| 23053 | # Shell to use when invoking shell scripts. |
| 23054 | SHELL=$lt_SHELL |
| 23055 | |
| 23056 | # Whether or not to build shared libraries. |
| 23057 | build_libtool_libs=$enable_shared |
| 23058 | |
| 23059 | # Whether or not to build static libraries. |
| 23060 | build_old_libs=$enable_static |
| 23061 | |
| 23062 | # Whether or not to add -lc for building shared libraries. |
| 23063 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23064 | |
| 23065 | # Whether or not to disallow shared libs when runtime libs are static |
| 23066 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23067 | |
| 23068 | # Whether or not to optimize for fast installation. |
| 23069 | fast_install=$enable_fast_install |
| 23070 | |
| 23071 | # The host system. |
| 23072 | host_alias=$host_alias |
| 23073 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23074 | host_os=$host_os |
| 23075 | |
| 23076 | # The build system. |
| 23077 | build_alias=$build_alias |
| 23078 | build=$build |
| 23079 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23080 | |
| 23081 | # An echo program that does not interpret backslashes. |
| 23082 | echo=$lt_echo |
| 23083 | |
| 23084 | # The archiver. |
| 23085 | AR=$lt_AR |
| 23086 | AR_FLAGS=$lt_AR_FLAGS |
| 23087 | |
| 23088 | # A C compiler. |
| 23089 | LTCC=$lt_LTCC |
| 23090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23091 | # LTCC compiler flags. |
| 23092 | LTCFLAGS=$lt_LTCFLAGS |
| 23093 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23094 | # A language-specific compiler. |
| 23095 | CC=$lt_compiler_F77 |
| 23096 | |
| 23097 | # Is the compiler the GNU C compiler? |
| 23098 | with_gcc=$GCC_F77 |
| 23099 | |
| 23100 | # An ERE matcher. |
| 23101 | EGREP=$lt_EGREP |
| 23102 | |
| 23103 | # The linker used to build libraries. |
| 23104 | LD=$lt_LD_F77 |
| 23105 | |
| 23106 | # Whether we need hard or soft links. |
| 23107 | LN_S=$lt_LN_S |
| 23108 | |
| 23109 | # A BSD-compatible nm program. |
| 23110 | NM=$lt_NM |
| 23111 | |
| 23112 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23113 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23114 | |
| 23115 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23116 | MAGIC_CMD=$MAGIC_CMD |
| 23117 | |
| 23118 | # Used on cygwin: DLL creation program. |
| 23119 | DLLTOOL="$DLLTOOL" |
| 23120 | |
| 23121 | # Used on cygwin: object dumper. |
| 23122 | OBJDUMP="$OBJDUMP" |
| 23123 | |
| 23124 | # Used on cygwin: assembler. |
| 23125 | AS="$AS" |
| 23126 | |
| 23127 | # The name of the directory that contains temporary libtool files. |
| 23128 | objdir=$objdir |
| 23129 | |
| 23130 | # How to create reloadable object files. |
| 23131 | reload_flag=$lt_reload_flag |
| 23132 | reload_cmds=$lt_reload_cmds |
| 23133 | |
| 23134 | # How to pass a linker flag through the compiler. |
| 23135 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23136 | |
| 23137 | # Object file suffix (normally "o"). |
| 23138 | objext="$ac_objext" |
| 23139 | |
| 23140 | # Old archive suffix (normally "a"). |
| 23141 | libext="$libext" |
| 23142 | |
| 23143 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23144 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23145 | |
| 23146 | # Executable file suffix (normally ""). |
| 23147 | exeext="$exeext" |
| 23148 | |
| 23149 | # Additional compiler flags for building library objects. |
| 23150 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23151 | pic_mode=$pic_mode |
| 23152 | |
| 23153 | # What is the maximum length of a command? |
| 23154 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23155 | |
| 23156 | # Does compiler simultaneously support -c and -o options? |
| 23157 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23159 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23160 | need_locks=$lt_need_locks |
| 23161 | |
| 23162 | # Do we need the lib prefix for modules? |
| 23163 | need_lib_prefix=$need_lib_prefix |
| 23164 | |
| 23165 | # Do we need a version for libraries? |
| 23166 | need_version=$need_version |
| 23167 | |
| 23168 | # Whether dlopen is supported. |
| 23169 | dlopen_support=$enable_dlopen |
| 23170 | |
| 23171 | # Whether dlopen of programs is supported. |
| 23172 | dlopen_self=$enable_dlopen_self |
| 23173 | |
| 23174 | # Whether dlopen of statically linked programs is supported. |
| 23175 | dlopen_self_static=$enable_dlopen_self_static |
| 23176 | |
| 23177 | # Compiler flag to prevent dynamic linking. |
| 23178 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23179 | |
| 23180 | # Compiler flag to turn off builtin functions. |
| 23181 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23182 | |
| 23183 | # Compiler flag to allow reflexive dlopens. |
| 23184 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23185 | |
| 23186 | # Compiler flag to generate shared objects directly from archives. |
| 23187 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23188 | |
| 23189 | # Compiler flag to generate thread-safe objects. |
| 23190 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23191 | |
| 23192 | # Library versioning type. |
| 23193 | version_type=$version_type |
| 23194 | |
| 23195 | # Format of library name prefix. |
| 23196 | libname_spec=$lt_libname_spec |
| 23197 | |
| 23198 | # List of archive names. First name is the real one, the rest are links. |
| 23199 | # The last name is the one that the linker finds with -lNAME. |
| 23200 | library_names_spec=$lt_library_names_spec |
| 23201 | |
| 23202 | # The coded name of the library, if different from the real name. |
| 23203 | soname_spec=$lt_soname_spec |
| 23204 | |
| 23205 | # Commands used to build and install an old-style archive. |
| 23206 | RANLIB=$lt_RANLIB |
| 23207 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23208 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23209 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23210 | |
| 23211 | # Create an old-style archive from a shared archive. |
| 23212 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23213 | |
| 23214 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23215 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23216 | |
| 23217 | # Commands used to build and install a shared archive. |
| 23218 | archive_cmds=$lt_archive_cmds_F77 |
| 23219 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23220 | postinstall_cmds=$lt_postinstall_cmds |
| 23221 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23222 | |
| 23223 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23224 | module_cmds=$lt_module_cmds_F77 |
| 23225 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23226 | |
| 23227 | # Commands to strip libraries. |
| 23228 | old_striplib=$lt_old_striplib |
| 23229 | striplib=$lt_striplib |
| 23230 | |
| 23231 | # Dependencies to place before the objects being linked to create a |
| 23232 | # shared library. |
| 23233 | predep_objects=$lt_predep_objects_F77 |
| 23234 | |
| 23235 | # Dependencies to place after the objects being linked to create a |
| 23236 | # shared library. |
| 23237 | postdep_objects=$lt_postdep_objects_F77 |
| 23238 | |
| 23239 | # Dependencies to place before the objects being linked to create a |
| 23240 | # shared library. |
| 23241 | predeps=$lt_predeps_F77 |
| 23242 | |
| 23243 | # Dependencies to place after the objects being linked to create a |
| 23244 | # shared library. |
| 23245 | postdeps=$lt_postdeps_F77 |
| 23246 | |
| 23247 | # The library search path used internally by the compiler when linking |
| 23248 | # a shared library. |
| 23249 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23250 | |
| 23251 | # Method to check whether dependent libraries are shared objects. |
| 23252 | deplibs_check_method=$lt_deplibs_check_method |
| 23253 | |
| 23254 | # Command to use when deplibs_check_method == file_magic. |
| 23255 | file_magic_cmd=$lt_file_magic_cmd |
| 23256 | |
| 23257 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23258 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23259 | |
| 23260 | # Flag that forces no undefined symbols. |
| 23261 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23262 | |
| 23263 | # Commands used to finish a libtool library installation in a directory. |
| 23264 | finish_cmds=$lt_finish_cmds |
| 23265 | |
| 23266 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23267 | finish_eval=$lt_finish_eval |
| 23268 | |
| 23269 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23270 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23271 | |
| 23272 | # Transform the output of nm in a proper C declaration |
| 23273 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23274 | |
| 23275 | # Transform the output of nm in a C name address pair |
| 23276 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23277 | |
| 23278 | # This is the shared library runtime path variable. |
| 23279 | runpath_var=$runpath_var |
| 23280 | |
| 23281 | # This is the shared library path variable. |
| 23282 | shlibpath_var=$shlibpath_var |
| 23283 | |
| 23284 | # Is shlibpath searched before the hard-coded library search path? |
| 23285 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23286 | |
| 23287 | # How to hardcode a shared library path into an executable. |
| 23288 | hardcode_action=$hardcode_action_F77 |
| 23289 | |
| 23290 | # Whether we should hardcode library paths into libraries. |
| 23291 | hardcode_into_libs=$hardcode_into_libs |
| 23292 | |
| 23293 | # Flag to hardcode \$libdir into a binary during linking. |
| 23294 | # This must work even if \$libdir does not exist. |
| 23295 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23296 | |
| 23297 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23298 | # a binary during linking. This must work even if \$libdir does |
| 23299 | # not exist. |
| 23300 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23301 | |
| 23302 | # Whether we need a single -rpath flag with a separated argument. |
| 23303 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23304 | |
| 23305 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23306 | # resulting binary. |
| 23307 | hardcode_direct=$hardcode_direct_F77 |
| 23308 | |
| 23309 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23310 | # resulting binary. |
| 23311 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23312 | |
| 23313 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23314 | # the resulting binary. |
| 23315 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23316 | |
| 23317 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23318 | # and all subsequent libraries and executables linked against it. |
| 23319 | hardcode_automatic=$hardcode_automatic_F77 |
| 23320 | |
| 23321 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23322 | # restored at relink time. |
| 23323 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23324 | |
| 23325 | # Whether libtool must link a program against all its dependency libraries. |
| 23326 | link_all_deplibs=$link_all_deplibs_F77 |
| 23327 | |
| 23328 | # Compile-time system search path for libraries |
| 23329 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23330 | |
| 23331 | # Run-time system search path for libraries |
| 23332 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23333 | |
| 23334 | # Fix the shell variable \$srcfile for the compiler. |
| 23335 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23336 | |
| 23337 | # Set to yes if exported symbols are required. |
| 23338 | always_export_symbols=$always_export_symbols_F77 |
| 23339 | |
| 23340 | # The commands to list exported symbols. |
| 23341 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23342 | |
| 23343 | # The commands to extract the exported symbol list from a shared archive. |
| 23344 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23345 | |
| 23346 | # Symbols that should not be listed in the preloaded symbols. |
| 23347 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23348 | |
| 23349 | # Symbols that must always be exported. |
| 23350 | include_expsyms=$lt_include_expsyms_F77 |
| 23351 | |
| 23352 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23353 | |
| 23354 | __EOF__ |
| 23355 | |
| 23356 | |
| 23357 | else |
| 23358 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23359 | # `config.status --recheck' to rerun these tests and create the |
| 23360 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23361 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23362 | if test -f "$ltmain_in"; then |
| 23363 | test -f Makefile && make "$ltmain" |
| 23364 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23365 | fi |
| 23366 | |
| 23367 | |
| 23368 | ac_ext=c |
| 23369 | ac_cpp='$CPP $CPPFLAGS' |
| 23370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23373 | |
| 23374 | CC="$lt_save_CC" |
| 23375 | |
| 23376 | else |
| 23377 | tagname="" |
| 23378 | fi |
| 23379 | ;; |
| 23380 | |
| 23381 | GCJ) |
| 23382 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23383 | ac_ext=c |
| 23384 | ac_cpp='$CPP $CPPFLAGS' |
| 23385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23388 | |
| 23389 | |
| 23390 | # Source file extension for Java test sources. |
| 23391 | ac_ext=java |
| 23392 | |
| 23393 | # Object file extension for compiled Java test sources. |
| 23394 | objext=o |
| 23395 | objext_GCJ=$objext |
| 23396 | |
| 23397 | # Code to be used in simple compile tests |
| 23398 | lt_simple_compile_test_code="class foo {}\n" |
| 23399 | |
| 23400 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23401 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23402 | |
| 23403 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23404 | |
| 23405 | # If no C compiler was specified, use CC. |
| 23406 | LTCC=${LTCC-"$CC"} |
| 23407 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23408 | # If no C compiler flags were specified, use CFLAGS. |
| 23409 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23410 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23411 | # Allow CC to be a program name with arguments. |
| 23412 | compiler=$CC |
| 23413 | |
| 23414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23415 | # save warnings/boilerplate of simple test code |
| 23416 | ac_outfile=conftest.$ac_objext |
| 23417 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23418 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23419 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23420 | $rm conftest* |
| 23421 | |
| 23422 | ac_outfile=conftest.$ac_objext |
| 23423 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23424 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23425 | _lt_linker_boilerplate=`cat conftest.err` |
| 23426 | $rm conftest* |
| 23427 | |
| 23428 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23429 | # Allow CC to be a program name with arguments. |
| 23430 | lt_save_CC="$CC" |
| 23431 | CC=${GCJ-"gcj"} |
| 23432 | compiler=$CC |
| 23433 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23434 | for cc_temp in $compiler""; do |
| 23435 | case $cc_temp in |
| 23436 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23437 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23438 | \-*) ;; |
| 23439 | *) break;; |
| 23440 | esac |
| 23441 | done |
| 23442 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23443 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23444 | |
| 23445 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23446 | archive_cmds_need_lc_GCJ=no |
| 23447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23448 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23449 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23450 | |
| 23451 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23452 | |
| 23453 | if test "$GCC" = yes; then |
| 23454 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23455 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23457 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23458 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23459 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23461 | else |
| 23462 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23463 | ac_outfile=conftest.$ac_objext |
| 23464 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23465 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23466 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23467 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23468 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23469 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23470 | # The option is referenced via a variable to avoid confusing sed. |
| 23471 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23472 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23473 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23474 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23475 | (eval echo "\"\$as_me:23475: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23476 | (eval "$lt_compile" 2>conftest.err) |
| 23477 | ac_status=$? |
| 23478 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23479 | echo "$as_me:23479: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23480 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23481 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23482 | # So say no if there are warnings other than the usual output. |
| 23483 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23484 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23485 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23486 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23487 | fi |
| 23488 | fi |
| 23489 | $rm conftest* |
| 23490 | |
| 23491 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23492 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23493 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23494 | |
| 23495 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23496 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23497 | else |
| 23498 | : |
| 23499 | fi |
| 23500 | |
| 23501 | fi |
| 23502 | |
| 23503 | lt_prog_compiler_wl_GCJ= |
| 23504 | lt_prog_compiler_pic_GCJ= |
| 23505 | lt_prog_compiler_static_GCJ= |
| 23506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23507 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23508 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23509 | |
| 23510 | if test "$GCC" = yes; then |
| 23511 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23512 | lt_prog_compiler_static_GCJ='-static' |
| 23513 | |
| 23514 | case $host_os in |
| 23515 | aix*) |
| 23516 | # All AIX code is PIC. |
| 23517 | if test "$host_cpu" = ia64; then |
| 23518 | # AIX 5 now supports IA64 processor |
| 23519 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23520 | fi |
| 23521 | ;; |
| 23522 | |
| 23523 | amigaos*) |
| 23524 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23525 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23526 | # like `-m68040'. |
| 23527 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23528 | ;; |
| 23529 | |
| 23530 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23531 | # PIC is the default for these OSes. |
| 23532 | ;; |
| 23533 | |
| 23534 | mingw* | pw32* | os2*) |
| 23535 | # This hack is so that the source file can tell whether it is being |
| 23536 | # built for inclusion in a dll (and should export symbols for example). |
| 23537 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23538 | ;; |
| 23539 | |
| 23540 | darwin* | rhapsody*) |
| 23541 | # PIC is the default on this platform |
| 23542 | # Common symbols not allowed in MH_DYLIB files |
| 23543 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23544 | ;; |
| 23545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23546 | interix3*) |
| 23547 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23548 | # Instead, we relocate shared libraries at runtime. |
| 23549 | ;; |
| 23550 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23551 | msdosdjgpp*) |
| 23552 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23553 | # on systems that don't support them. |
| 23554 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23555 | enable_shared=no |
| 23556 | ;; |
| 23557 | |
| 23558 | sysv4*MP*) |
| 23559 | if test -d /usr/nec; then |
| 23560 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23561 | fi |
| 23562 | ;; |
| 23563 | |
| 23564 | hpux*) |
| 23565 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23566 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23567 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23568 | hppa*64*|ia64*) |
| 23569 | # +Z the default |
| 23570 | ;; |
| 23571 | *) |
| 23572 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23573 | ;; |
| 23574 | esac |
| 23575 | ;; |
| 23576 | |
| 23577 | *) |
| 23578 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23579 | ;; |
| 23580 | esac |
| 23581 | else |
| 23582 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23583 | case $host_os in |
| 23584 | aix*) |
| 23585 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23586 | if test "$host_cpu" = ia64; then |
| 23587 | # AIX 5 now supports IA64 processor |
| 23588 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23589 | else |
| 23590 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23591 | fi |
| 23592 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23593 | darwin*) |
| 23594 | # PIC is the default on this platform |
| 23595 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23596 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23597 | xlc*) |
| 23598 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23599 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23600 | ;; |
| 23601 | esac |
| 23602 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23603 | |
| 23604 | mingw* | pw32* | os2*) |
| 23605 | # This hack is so that the source file can tell whether it is being |
| 23606 | # built for inclusion in a dll (and should export symbols for example). |
| 23607 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23608 | ;; |
| 23609 | |
| 23610 | hpux9* | hpux10* | hpux11*) |
| 23611 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23612 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23613 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23614 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23615 | hppa*64*|ia64*) |
| 23616 | # +Z the default |
| 23617 | ;; |
| 23618 | *) |
| 23619 | lt_prog_compiler_pic_GCJ='+Z' |
| 23620 | ;; |
| 23621 | esac |
| 23622 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23623 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23624 | ;; |
| 23625 | |
| 23626 | irix5* | irix6* | nonstopux*) |
| 23627 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23628 | # PIC (with -KPIC) is the default. |
| 23629 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23630 | ;; |
| 23631 | |
| 23632 | newsos6) |
| 23633 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23634 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23635 | ;; |
| 23636 | |
| 23637 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23638 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23639 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23640 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23641 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23642 | lt_prog_compiler_static_GCJ='-static' |
| 23643 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23644 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23645 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23646 | # which looks to be a dead project) |
| 23647 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23648 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23649 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23650 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23651 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23652 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23653 | # All Alpha code is PIC. |
| 23654 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23655 | ;; |
| 23656 | esac |
| 23657 | ;; |
| 23658 | |
| 23659 | osf3* | osf4* | osf5*) |
| 23660 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23661 | # All OSF/1 code is PIC. |
| 23662 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23663 | ;; |
| 23664 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23665 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23666 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23667 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23668 | case $cc_basename in |
| 23669 | f77* | f90* | f95*) |
| 23670 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23671 | *) |
| 23672 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23673 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23674 | ;; |
| 23675 | |
| 23676 | sunos4*) |
| 23677 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23678 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23679 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23680 | ;; |
| 23681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23682 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23683 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23684 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23685 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23686 | ;; |
| 23687 | |
| 23688 | sysv4*MP*) |
| 23689 | if test -d /usr/nec ;then |
| 23690 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23691 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23692 | fi |
| 23693 | ;; |
| 23694 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23695 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23696 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23697 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23698 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23699 | ;; |
| 23700 | |
| 23701 | unicos*) |
| 23702 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23703 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23704 | ;; |
| 23705 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23706 | uts4*) |
| 23707 | lt_prog_compiler_pic_GCJ='-pic' |
| 23708 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23709 | ;; |
| 23710 | |
| 23711 | *) |
| 23712 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23713 | ;; |
| 23714 | esac |
| 23715 | fi |
| 23716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23717 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23718 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23719 | |
| 23720 | # |
| 23721 | # Check to make sure the PIC flag actually works. |
| 23722 | # |
| 23723 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23724 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23725 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23726 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23727 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23729 | else |
| 23730 | lt_prog_compiler_pic_works_GCJ=no |
| 23731 | ac_outfile=conftest.$ac_objext |
| 23732 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23733 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23734 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23735 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23736 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23737 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23738 | # The option is referenced via a variable to avoid confusing sed. |
| 23739 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23740 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23741 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23742 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23743 | (eval echo "\"\$as_me:23743: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23744 | (eval "$lt_compile" 2>conftest.err) |
| 23745 | ac_status=$? |
| 23746 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23747 | echo "$as_me:23747: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23748 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23749 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23750 | # So say no if there are warnings other than the usual output. |
| 23751 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23752 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23753 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23754 | lt_prog_compiler_pic_works_GCJ=yes |
| 23755 | fi |
| 23756 | fi |
| 23757 | $rm conftest* |
| 23758 | |
| 23759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23760 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 23761 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23762 | |
| 23763 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 23764 | case $lt_prog_compiler_pic_GCJ in |
| 23765 | "" | " "*) ;; |
| 23766 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 23767 | esac |
| 23768 | else |
| 23769 | lt_prog_compiler_pic_GCJ= |
| 23770 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23771 | fi |
| 23772 | |
| 23773 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23774 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23775 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 23776 | *djgpp*) |
| 23777 | lt_prog_compiler_pic_GCJ= |
| 23778 | ;; |
| 23779 | *) |
| 23780 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 23781 | ;; |
| 23782 | esac |
| 23783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23784 | # |
| 23785 | # Check to make sure the static flag actually works. |
| 23786 | # |
| 23787 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 23788 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 23789 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 23790 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 23791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23792 | else |
| 23793 | lt_prog_compiler_static_works_GCJ=no |
| 23794 | save_LDFLAGS="$LDFLAGS" |
| 23795 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 23796 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 23797 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 23798 | # The linker can only warn and ignore the option if not recognized |
| 23799 | # So say no if there are warnings |
| 23800 | if test -s conftest.err; then |
| 23801 | # Append any errors to the config.log. |
| 23802 | cat conftest.err 1>&5 |
| 23803 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 23804 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23805 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 23806 | lt_prog_compiler_static_works_GCJ=yes |
| 23807 | fi |
| 23808 | else |
| 23809 | lt_prog_compiler_static_works_GCJ=yes |
| 23810 | fi |
| 23811 | fi |
| 23812 | $rm conftest* |
| 23813 | LDFLAGS="$save_LDFLAGS" |
| 23814 | |
| 23815 | fi |
| 23816 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 23817 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 23818 | |
| 23819 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 23820 | : |
| 23821 | else |
| 23822 | lt_prog_compiler_static_GCJ= |
| 23823 | fi |
| 23824 | |
| 23825 | |
| 23826 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 23827 | 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] | 23828 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 23829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23830 | else |
| 23831 | lt_cv_prog_compiler_c_o_GCJ=no |
| 23832 | $rm -r conftest 2>/dev/null |
| 23833 | mkdir conftest |
| 23834 | cd conftest |
| 23835 | mkdir out |
| 23836 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23837 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23838 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 23839 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23840 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23841 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23842 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23843 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23844 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23845 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23846 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23847 | (eval echo "\"\$as_me:23847: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23848 | (eval "$lt_compile" 2>out/conftest.err) |
| 23849 | ac_status=$? |
| 23850 | cat out/conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23851 | echo "$as_me:23851: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23852 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 23853 | then |
| 23854 | # The compiler can only warn and ignore the option if not recognized |
| 23855 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23856 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 23857 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 23858 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23859 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 23860 | fi |
| 23861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23862 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23863 | $rm conftest* |
| 23864 | # SGI C++ compiler will create directory out/ii_files/ for |
| 23865 | # template instantiation |
| 23866 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 23867 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23868 | cd .. |
| 23869 | rmdir conftest |
| 23870 | $rm conftest* |
| 23871 | |
| 23872 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23873 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 23874 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23875 | |
| 23876 | |
| 23877 | hard_links="nottested" |
| 23878 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 23879 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23880 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 23881 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23882 | hard_links=yes |
| 23883 | $rm conftest* |
| 23884 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 23885 | touch conftest.a |
| 23886 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 23887 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23888 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 23889 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23890 | if test "$hard_links" = no; then |
| 23891 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 23892 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 23893 | need_locks=warn |
| 23894 | fi |
| 23895 | else |
| 23896 | need_locks=no |
| 23897 | fi |
| 23898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23899 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 23900 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23901 | |
| 23902 | runpath_var= |
| 23903 | allow_undefined_flag_GCJ= |
| 23904 | enable_shared_with_static_runtimes_GCJ=no |
| 23905 | archive_cmds_GCJ= |
| 23906 | archive_expsym_cmds_GCJ= |
| 23907 | old_archive_From_new_cmds_GCJ= |
| 23908 | old_archive_from_expsyms_cmds_GCJ= |
| 23909 | export_dynamic_flag_spec_GCJ= |
| 23910 | whole_archive_flag_spec_GCJ= |
| 23911 | thread_safe_flag_spec_GCJ= |
| 23912 | hardcode_libdir_flag_spec_GCJ= |
| 23913 | hardcode_libdir_flag_spec_ld_GCJ= |
| 23914 | hardcode_libdir_separator_GCJ= |
| 23915 | hardcode_direct_GCJ=no |
| 23916 | hardcode_minus_L_GCJ=no |
| 23917 | hardcode_shlibpath_var_GCJ=unsupported |
| 23918 | link_all_deplibs_GCJ=unknown |
| 23919 | hardcode_automatic_GCJ=no |
| 23920 | module_cmds_GCJ= |
| 23921 | module_expsym_cmds_GCJ= |
| 23922 | always_export_symbols_GCJ=no |
| 23923 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 23924 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 23925 | # included in the symbol list |
| 23926 | include_expsyms_GCJ= |
| 23927 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23928 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23929 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23930 | # as well as any symbol that contains `d'. |
| 23931 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23932 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23933 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23934 | # the symbol is explicitly referenced. Since portable code cannot |
| 23935 | # rely on this symbol name, it's probably fine to never include it in |
| 23936 | # preloaded symbol tables. |
| 23937 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23938 | # Just being paranoid about ensuring that cc_basename is set. |
| 23939 | for cc_temp in $compiler""; do |
| 23940 | case $cc_temp in |
| 23941 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23942 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23943 | \-*) ;; |
| 23944 | *) break;; |
| 23945 | esac |
| 23946 | done |
| 23947 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23948 | |
| 23949 | case $host_os in |
| 23950 | cygwin* | mingw* | pw32*) |
| 23951 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23952 | # When not using gcc, we currently assume that we are using |
| 23953 | # Microsoft Visual C++. |
| 23954 | if test "$GCC" != yes; then |
| 23955 | with_gnu_ld=no |
| 23956 | fi |
| 23957 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23958 | interix*) |
| 23959 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23960 | with_gnu_ld=yes |
| 23961 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23962 | openbsd*) |
| 23963 | with_gnu_ld=no |
| 23964 | ;; |
| 23965 | esac |
| 23966 | |
| 23967 | ld_shlibs_GCJ=yes |
| 23968 | if test "$with_gnu_ld" = yes; then |
| 23969 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 23970 | wlarc='${wl}' |
| 23971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23972 | # Set some defaults for GNU ld with shared library support. These |
| 23973 | # are reset later if shared libraries are not supported. Putting them |
| 23974 | # here allows them to be overridden if necessary. |
| 23975 | runpath_var=LD_RUN_PATH |
| 23976 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 23977 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 23978 | # ancient GNU ld didn't support --whole-archive et. al. |
| 23979 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 23980 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 23981 | else |
| 23982 | whole_archive_flag_spec_GCJ= |
| 23983 | fi |
| 23984 | supports_anon_versioning=no |
| 23985 | case `$LD -v 2>/dev/null` in |
| 23986 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 23987 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 23988 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 23989 | *\ 2.11.*) ;; # other 2.11 versions |
| 23990 | *) supports_anon_versioning=yes ;; |
| 23991 | esac |
| 23992 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23993 | # See if GNU ld supports shared libraries. |
| 23994 | case $host_os in |
| 23995 | aix3* | aix4* | aix5*) |
| 23996 | # On AIX/PPC, the GNU linker is very broken |
| 23997 | if test "$host_cpu" != ia64; then |
| 23998 | ld_shlibs_GCJ=no |
| 23999 | cat <<EOF 1>&2 |
| 24000 | |
| 24001 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24002 | *** to be unable to reliably create shared libraries on AIX. |
| 24003 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24004 | *** really care for shared libraries, you may want to modify your PATH |
| 24005 | *** so that a non-GNU linker is found, and then restart. |
| 24006 | |
| 24007 | EOF |
| 24008 | fi |
| 24009 | ;; |
| 24010 | |
| 24011 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24012 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24013 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24014 | hardcode_minus_L_GCJ=yes |
| 24015 | |
| 24016 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24017 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24018 | # to version 4, is to share data among multiple programs linked |
| 24019 | # with the same dynamic library. Since this doesn't match the |
| 24020 | # behavior of shared libraries on other platforms, we can't use |
| 24021 | # them. |
| 24022 | ld_shlibs_GCJ=no |
| 24023 | ;; |
| 24024 | |
| 24025 | beos*) |
| 24026 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24027 | allow_undefined_flag_GCJ=unsupported |
| 24028 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24029 | # support --undefined. This deserves some investigation. FIXME |
| 24030 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24031 | else |
| 24032 | ld_shlibs_GCJ=no |
| 24033 | fi |
| 24034 | ;; |
| 24035 | |
| 24036 | cygwin* | mingw* | pw32*) |
| 24037 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24038 | # as there is no search path for DLLs. |
| 24039 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24040 | allow_undefined_flag_GCJ=unsupported |
| 24041 | always_export_symbols_GCJ=no |
| 24042 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24043 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24044 | |
| 24045 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24046 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24047 | # If the export-symbols file already is a .def file (1st line |
| 24048 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24049 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24050 | cp $export_symbols $output_objdir/$soname.def; |
| 24051 | else |
| 24052 | echo EXPORTS > $output_objdir/$soname.def; |
| 24053 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24054 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24055 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24056 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24057 | ld_shlibs_GCJ=no |
| 24058 | fi |
| 24059 | ;; |
| 24060 | |
| 24061 | interix3*) |
| 24062 | hardcode_direct_GCJ=no |
| 24063 | hardcode_shlibpath_var_GCJ=no |
| 24064 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24065 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24066 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24067 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24068 | # default) and relocated if they conflict, which is a slow very memory |
| 24069 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24070 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24071 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24072 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 24073 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 24074 | ;; |
| 24075 | |
| 24076 | linux*) |
| 24077 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24078 | tmp_addflag= |
| 24079 | case $cc_basename,$host_cpu in |
| 24080 | pgcc*) # Portland Group C compiler |
| 24081 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 24082 | tmp_addflag=' $pic_flag' |
| 24083 | ;; |
| 24084 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24085 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 24086 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24087 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24088 | tmp_addflag=' -i_dynamic' ;; |
| 24089 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24090 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24091 | ifc* | ifort*) # Intel Fortran compiler |
| 24092 | tmp_addflag=' -nofor_main' ;; |
| 24093 | esac |
| 24094 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24095 | |
| 24096 | if test $supports_anon_versioning = yes; then |
| 24097 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24098 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24099 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24100 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24101 | fi |
| 24102 | else |
| 24103 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24104 | fi |
| 24105 | ;; |
| 24106 | |
| 24107 | netbsd*) |
| 24108 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24109 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24110 | wlarc= |
| 24111 | else |
| 24112 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24113 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24114 | fi |
| 24115 | ;; |
| 24116 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24117 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24118 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24119 | ld_shlibs_GCJ=no |
| 24120 | cat <<EOF 1>&2 |
| 24121 | |
| 24122 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24123 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24124 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24125 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24126 | *** your PATH or compiler configuration so that the native linker is |
| 24127 | *** used, and then restart. |
| 24128 | |
| 24129 | EOF |
| 24130 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24131 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24132 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24133 | else |
| 24134 | ld_shlibs_GCJ=no |
| 24135 | fi |
| 24136 | ;; |
| 24137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24138 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24139 | case `$LD -v 2>&1` in |
| 24140 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24141 | ld_shlibs_GCJ=no |
| 24142 | cat <<_LT_EOF 1>&2 |
| 24143 | |
| 24144 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24145 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24146 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24147 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24148 | *** your PATH or compiler configuration so that the native linker is |
| 24149 | *** used, and then restart. |
| 24150 | |
| 24151 | _LT_EOF |
| 24152 | ;; |
| 24153 | *) |
| 24154 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24155 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24156 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24157 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24158 | else |
| 24159 | ld_shlibs_GCJ=no |
| 24160 | fi |
| 24161 | ;; |
| 24162 | esac |
| 24163 | ;; |
| 24164 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24165 | sunos4*) |
| 24166 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24167 | wlarc= |
| 24168 | hardcode_direct_GCJ=yes |
| 24169 | hardcode_shlibpath_var_GCJ=no |
| 24170 | ;; |
| 24171 | |
| 24172 | *) |
| 24173 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24174 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24175 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24176 | else |
| 24177 | ld_shlibs_GCJ=no |
| 24178 | fi |
| 24179 | ;; |
| 24180 | esac |
| 24181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24182 | if test "$ld_shlibs_GCJ" = no; then |
| 24183 | runpath_var= |
| 24184 | hardcode_libdir_flag_spec_GCJ= |
| 24185 | export_dynamic_flag_spec_GCJ= |
| 24186 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24187 | fi |
| 24188 | else |
| 24189 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24190 | case $host_os in |
| 24191 | aix3*) |
| 24192 | allow_undefined_flag_GCJ=unsupported |
| 24193 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24194 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24195 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24196 | # are no directories specified by -L. |
| 24197 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24198 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24199 | # Neither direct hardcoding nor static linking is supported with a |
| 24200 | # broken collect2. |
| 24201 | hardcode_direct_GCJ=unsupported |
| 24202 | fi |
| 24203 | ;; |
| 24204 | |
| 24205 | aix4* | aix5*) |
| 24206 | if test "$host_cpu" = ia64; then |
| 24207 | # On IA64, the linker does run time linking by default, so we don't |
| 24208 | # have to do anything special. |
| 24209 | aix_use_runtimelinking=no |
| 24210 | exp_sym_flag='-Bexport' |
| 24211 | no_entry_flag="" |
| 24212 | else |
| 24213 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24214 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24215 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24216 | 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' |
| 24217 | else |
| 24218 | 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' |
| 24219 | fi |
| 24220 | aix_use_runtimelinking=no |
| 24221 | |
| 24222 | # Test if we are trying to use run time linking or normal |
| 24223 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24224 | # need to do runtime linking. |
| 24225 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24226 | for ld_flag in $LDFLAGS; do |
| 24227 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24228 | aix_use_runtimelinking=yes |
| 24229 | break |
| 24230 | fi |
| 24231 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24232 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24233 | esac |
| 24234 | |
| 24235 | exp_sym_flag='-bexport' |
| 24236 | no_entry_flag='-bnoentry' |
| 24237 | fi |
| 24238 | |
| 24239 | # When large executables or shared objects are built, AIX ld can |
| 24240 | # have problems creating the table of contents. If linking a library |
| 24241 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24242 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24243 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24244 | |
| 24245 | archive_cmds_GCJ='' |
| 24246 | hardcode_direct_GCJ=yes |
| 24247 | hardcode_libdir_separator_GCJ=':' |
| 24248 | link_all_deplibs_GCJ=yes |
| 24249 | |
| 24250 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24251 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24252 | # We only want to do this on AIX 4.2 and lower, the check |
| 24253 | # below for broken collect2 doesn't work under 4.3+ |
| 24254 | collect2name=`${CC} -print-prog-name=collect2` |
| 24255 | if test -f "$collect2name" && \ |
| 24256 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24257 | then |
| 24258 | # We have reworked collect2 |
| 24259 | hardcode_direct_GCJ=yes |
| 24260 | else |
| 24261 | # We have old collect2 |
| 24262 | hardcode_direct_GCJ=unsupported |
| 24263 | # It fails to find uninstalled libraries when the uninstalled |
| 24264 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24265 | # to unsupported forces relinking |
| 24266 | hardcode_minus_L_GCJ=yes |
| 24267 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24268 | hardcode_libdir_separator_GCJ= |
| 24269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24270 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24271 | esac |
| 24272 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24273 | if test "$aix_use_runtimelinking" = yes; then |
| 24274 | shared_flag="$shared_flag "'${wl}-G' |
| 24275 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24276 | else |
| 24277 | # not using gcc |
| 24278 | if test "$host_cpu" = ia64; then |
| 24279 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24280 | # chokes on -Wl,-G. The following line is correct: |
| 24281 | shared_flag='-G' |
| 24282 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24283 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24284 | shared_flag='${wl}-G' |
| 24285 | else |
| 24286 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24287 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24288 | fi |
| 24289 | fi |
| 24290 | |
| 24291 | # It seems that -bexpall does not export symbols beginning with |
| 24292 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24293 | always_export_symbols_GCJ=yes |
| 24294 | if test "$aix_use_runtimelinking" = yes; then |
| 24295 | # Warning - without using the other runtime loading flags (-brtl), |
| 24296 | # -berok will link without error, but may produce a broken library. |
| 24297 | allow_undefined_flag_GCJ='-berok' |
| 24298 | # Determine the default libpath from the value encoded in an empty executable. |
| 24299 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24300 | /* confdefs.h. */ |
| 24301 | _ACEOF |
| 24302 | cat confdefs.h >>conftest.$ac_ext |
| 24303 | cat >>conftest.$ac_ext <<_ACEOF |
| 24304 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24305 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24306 | int |
| 24307 | main () |
| 24308 | { |
| 24309 | |
| 24310 | ; |
| 24311 | return 0; |
| 24312 | } |
| 24313 | _ACEOF |
| 24314 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24315 | if { (ac_try="$ac_link" |
| 24316 | case "(($ac_try" in |
| 24317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24318 | *) ac_try_echo=$ac_try;; |
| 24319 | esac |
| 24320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24321 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24322 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24324 | rm -f conftest.er1 |
| 24325 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24327 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24329 | { (case "(($ac_try" in |
| 24330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24331 | *) ac_try_echo=$ac_try;; |
| 24332 | esac |
| 24333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24334 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24335 | ac_status=$? |
| 24336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24337 | (exit $ac_status); }; } && |
| 24338 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24339 | { (case "(($ac_try" in |
| 24340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24341 | *) ac_try_echo=$ac_try;; |
| 24342 | esac |
| 24343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24344 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24345 | ac_status=$? |
| 24346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24347 | (exit $ac_status); }; }; then |
| 24348 | |
| 24349 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24350 | }'` |
| 24351 | # Check for a 64-bit object if we didn't find anything. |
| 24352 | 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; } |
| 24353 | }'`; fi |
| 24354 | else |
| 24355 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24358 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24359 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24360 | |
| 24361 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24362 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24363 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24364 | |
| 24365 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24366 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24367 | else |
| 24368 | if test "$host_cpu" = ia64; then |
| 24369 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24370 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24371 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24372 | else |
| 24373 | # Determine the default libpath from the value encoded in an empty executable. |
| 24374 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24375 | /* confdefs.h. */ |
| 24376 | _ACEOF |
| 24377 | cat confdefs.h >>conftest.$ac_ext |
| 24378 | cat >>conftest.$ac_ext <<_ACEOF |
| 24379 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24380 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24381 | int |
| 24382 | main () |
| 24383 | { |
| 24384 | |
| 24385 | ; |
| 24386 | return 0; |
| 24387 | } |
| 24388 | _ACEOF |
| 24389 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24390 | if { (ac_try="$ac_link" |
| 24391 | case "(($ac_try" in |
| 24392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24393 | *) ac_try_echo=$ac_try;; |
| 24394 | esac |
| 24395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24396 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24397 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24399 | rm -f conftest.er1 |
| 24400 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24402 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24404 | { (case "(($ac_try" in |
| 24405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24406 | *) ac_try_echo=$ac_try;; |
| 24407 | esac |
| 24408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24409 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24410 | ac_status=$? |
| 24411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24412 | (exit $ac_status); }; } && |
| 24413 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24414 | { (case "(($ac_try" in |
| 24415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24416 | *) ac_try_echo=$ac_try;; |
| 24417 | esac |
| 24418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24419 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24420 | ac_status=$? |
| 24421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24422 | (exit $ac_status); }; }; then |
| 24423 | |
| 24424 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24425 | }'` |
| 24426 | # Check for a 64-bit object if we didn't find anything. |
| 24427 | 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; } |
| 24428 | }'`; fi |
| 24429 | else |
| 24430 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24432 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24433 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24435 | |
| 24436 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24437 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24438 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24439 | |
| 24440 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24441 | # Warning - without using the other run time loading flags, |
| 24442 | # -berok will link without error, but may produce a broken library. |
| 24443 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24444 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24445 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24446 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24447 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24448 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24449 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24450 | fi |
| 24451 | fi |
| 24452 | ;; |
| 24453 | |
| 24454 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24455 | 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)' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24456 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24457 | hardcode_minus_L_GCJ=yes |
| 24458 | # see comment about different semantics on the GNU ld section |
| 24459 | ld_shlibs_GCJ=no |
| 24460 | ;; |
| 24461 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24462 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24463 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24464 | ;; |
| 24465 | |
| 24466 | cygwin* | mingw* | pw32*) |
| 24467 | # When not using gcc, we currently assume that we are using |
| 24468 | # Microsoft Visual C++. |
| 24469 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24470 | # no search path for DLLs. |
| 24471 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24472 | allow_undefined_flag_GCJ=unsupported |
| 24473 | # Tell ltmain to make .lib files, not .a files. |
| 24474 | libext=lib |
| 24475 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24476 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24477 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24478 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24479 | # The linker will automatically build a .lib file if we build a DLL. |
| 24480 | old_archive_From_new_cmds_GCJ='true' |
| 24481 | # FIXME: Should let the user specify the lib program. |
| 24482 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24483 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24484 | enable_shared_with_static_runtimes_GCJ=yes |
| 24485 | ;; |
| 24486 | |
| 24487 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24488 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24489 | rhapsody* | darwin1.[012]) |
| 24490 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24491 | ;; |
| 24492 | *) # Darwin 1.3 on |
| 24493 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24494 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24495 | else |
| 24496 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24497 | 10.[012]) |
| 24498 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24499 | ;; |
| 24500 | 10.*) |
| 24501 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24502 | ;; |
| 24503 | esac |
| 24504 | fi |
| 24505 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24506 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24507 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24508 | hardcode_direct_GCJ=no |
| 24509 | hardcode_automatic_GCJ=yes |
| 24510 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24511 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24512 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24513 | if test "$GCC" = yes ; then |
| 24514 | output_verbose_link_cmd='echo' |
| 24515 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24516 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24517 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24518 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 24519 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24520 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24521 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24522 | xlc*) |
| 24523 | output_verbose_link_cmd='echo' |
| 24524 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24525 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24526 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24527 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 24528 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24529 | ;; |
| 24530 | *) |
| 24531 | ld_shlibs_GCJ=no |
| 24532 | ;; |
| 24533 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24534 | fi |
| 24535 | ;; |
| 24536 | |
| 24537 | dgux*) |
| 24538 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24539 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24540 | hardcode_shlibpath_var_GCJ=no |
| 24541 | ;; |
| 24542 | |
| 24543 | freebsd1*) |
| 24544 | ld_shlibs_GCJ=no |
| 24545 | ;; |
| 24546 | |
| 24547 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24548 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24549 | # does not break anything, and helps significantly (at the cost of a little |
| 24550 | # extra space). |
| 24551 | freebsd2.2*) |
| 24552 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24553 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24554 | hardcode_direct_GCJ=yes |
| 24555 | hardcode_shlibpath_var_GCJ=no |
| 24556 | ;; |
| 24557 | |
| 24558 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24559 | freebsd2*) |
| 24560 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24561 | hardcode_direct_GCJ=yes |
| 24562 | hardcode_minus_L_GCJ=yes |
| 24563 | hardcode_shlibpath_var_GCJ=no |
| 24564 | ;; |
| 24565 | |
| 24566 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24567 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24568 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24569 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24570 | hardcode_direct_GCJ=yes |
| 24571 | hardcode_shlibpath_var_GCJ=no |
| 24572 | ;; |
| 24573 | |
| 24574 | hpux9*) |
| 24575 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24576 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24577 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24578 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24579 | fi |
| 24580 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24581 | hardcode_libdir_separator_GCJ=: |
| 24582 | hardcode_direct_GCJ=yes |
| 24583 | |
| 24584 | # hardcode_minus_L: Not really in the search PATH, |
| 24585 | # but as the default location of the library. |
| 24586 | hardcode_minus_L_GCJ=yes |
| 24587 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24588 | ;; |
| 24589 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24590 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24591 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24592 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24593 | else |
| 24594 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24595 | fi |
| 24596 | if test "$with_gnu_ld" = no; then |
| 24597 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24598 | hardcode_libdir_separator_GCJ=: |
| 24599 | |
| 24600 | hardcode_direct_GCJ=yes |
| 24601 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24602 | |
| 24603 | # hardcode_minus_L: Not really in the search PATH, |
| 24604 | # but as the default location of the library. |
| 24605 | hardcode_minus_L_GCJ=yes |
| 24606 | fi |
| 24607 | ;; |
| 24608 | |
| 24609 | hpux11*) |
| 24610 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24611 | case $host_cpu in |
| 24612 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24613 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24614 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24615 | ia64*) |
| 24616 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24617 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24618 | *) |
| 24619 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24620 | ;; |
| 24621 | esac |
| 24622 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24623 | case $host_cpu in |
| 24624 | hppa*64*) |
| 24625 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24626 | ;; |
| 24627 | ia64*) |
| 24628 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24629 | ;; |
| 24630 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24631 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24632 | ;; |
| 24633 | esac |
| 24634 | fi |
| 24635 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24636 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24637 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24639 | case $host_cpu in |
| 24640 | hppa*64*|ia64*) |
| 24641 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24642 | hardcode_direct_GCJ=no |
| 24643 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24644 | ;; |
| 24645 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24646 | hardcode_direct_GCJ=yes |
| 24647 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24648 | |
| 24649 | # hardcode_minus_L: Not really in the search PATH, |
| 24650 | # but as the default location of the library. |
| 24651 | hardcode_minus_L_GCJ=yes |
| 24652 | ;; |
| 24653 | esac |
| 24654 | fi |
| 24655 | ;; |
| 24656 | |
| 24657 | irix5* | irix6* | nonstopux*) |
| 24658 | if test "$GCC" = yes; then |
| 24659 | 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' |
| 24660 | else |
| 24661 | 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' |
| 24662 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24663 | fi |
| 24664 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24665 | hardcode_libdir_separator_GCJ=: |
| 24666 | link_all_deplibs_GCJ=yes |
| 24667 | ;; |
| 24668 | |
| 24669 | netbsd*) |
| 24670 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24671 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24672 | else |
| 24673 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24674 | fi |
| 24675 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24676 | hardcode_direct_GCJ=yes |
| 24677 | hardcode_shlibpath_var_GCJ=no |
| 24678 | ;; |
| 24679 | |
| 24680 | newsos6) |
| 24681 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24682 | hardcode_direct_GCJ=yes |
| 24683 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24684 | hardcode_libdir_separator_GCJ=: |
| 24685 | hardcode_shlibpath_var_GCJ=no |
| 24686 | ;; |
| 24687 | |
| 24688 | openbsd*) |
| 24689 | hardcode_direct_GCJ=yes |
| 24690 | hardcode_shlibpath_var_GCJ=no |
| 24691 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24692 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24693 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24694 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24695 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24696 | else |
| 24697 | case $host_os in |
| 24698 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24699 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24700 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24701 | ;; |
| 24702 | *) |
| 24703 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24704 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24705 | ;; |
| 24706 | esac |
| 24707 | fi |
| 24708 | ;; |
| 24709 | |
| 24710 | os2*) |
| 24711 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24712 | hardcode_minus_L_GCJ=yes |
| 24713 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24714 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24715 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24716 | ;; |
| 24717 | |
| 24718 | osf3*) |
| 24719 | if test "$GCC" = yes; then |
| 24720 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24721 | 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' |
| 24722 | else |
| 24723 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24724 | 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' |
| 24725 | fi |
| 24726 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24727 | hardcode_libdir_separator_GCJ=: |
| 24728 | ;; |
| 24729 | |
| 24730 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24731 | if test "$GCC" = yes; then |
| 24732 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24733 | 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' |
| 24734 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24735 | else |
| 24736 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24737 | 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' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24738 | 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~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24739 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24740 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24741 | # Both c and cxx compiler support -rpath directly |
| 24742 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24743 | fi |
| 24744 | hardcode_libdir_separator_GCJ=: |
| 24745 | ;; |
| 24746 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24747 | solaris*) |
| 24748 | no_undefined_flag_GCJ=' -z text' |
| 24749 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24750 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24751 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24752 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24753 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24754 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24755 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24756 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24757 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24758 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24759 | fi |
| 24760 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24761 | hardcode_shlibpath_var_GCJ=no |
| 24762 | case $host_os in |
| 24763 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24764 | *) |
| 24765 | # The compiler driver will combine linker options so we |
| 24766 | # cannot just pass the convience library names through |
| 24767 | # without $wl, iff we do not link with $LD. |
| 24768 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 24769 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 24770 | case $wlarc in |
| 24771 | '') |
| 24772 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 24773 | *) |
| 24774 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 24775 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24776 | esac |
| 24777 | link_all_deplibs_GCJ=yes |
| 24778 | ;; |
| 24779 | |
| 24780 | sunos4*) |
| 24781 | if test "x$host_vendor" = xsequent; then |
| 24782 | # Use $CC to link under sequent, because it throws in some extra .o |
| 24783 | # files that make .init and .fini sections work. |
| 24784 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24785 | else |
| 24786 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 24787 | fi |
| 24788 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24789 | hardcode_direct_GCJ=yes |
| 24790 | hardcode_minus_L_GCJ=yes |
| 24791 | hardcode_shlibpath_var_GCJ=no |
| 24792 | ;; |
| 24793 | |
| 24794 | sysv4) |
| 24795 | case $host_vendor in |
| 24796 | sni) |
| 24797 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24798 | hardcode_direct_GCJ=yes # is this really true??? |
| 24799 | ;; |
| 24800 | siemens) |
| 24801 | ## LD is ld it makes a PLAMLIB |
| 24802 | ## CC just makes a GrossModule. |
| 24803 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 24804 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 24805 | hardcode_direct_GCJ=no |
| 24806 | ;; |
| 24807 | motorola) |
| 24808 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24809 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 24810 | ;; |
| 24811 | esac |
| 24812 | runpath_var='LD_RUN_PATH' |
| 24813 | hardcode_shlibpath_var_GCJ=no |
| 24814 | ;; |
| 24815 | |
| 24816 | sysv4.3*) |
| 24817 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24818 | hardcode_shlibpath_var_GCJ=no |
| 24819 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 24820 | ;; |
| 24821 | |
| 24822 | sysv4*MP*) |
| 24823 | if test -d /usr/nec; then |
| 24824 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24825 | hardcode_shlibpath_var_GCJ=no |
| 24826 | runpath_var=LD_RUN_PATH |
| 24827 | hardcode_runpath_var=yes |
| 24828 | ld_shlibs_GCJ=yes |
| 24829 | fi |
| 24830 | ;; |
| 24831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24832 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 24833 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24834 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24835 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24836 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24837 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24838 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24839 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24840 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24841 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24842 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24843 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24844 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24845 | ;; |
| 24846 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24847 | sysv5* | sco3.2v5* | sco5v6*) |
| 24848 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 24849 | # link with -lc, and that would cause any symbols used from libc to |
| 24850 | # always be unresolved, which means just about no library would |
| 24851 | # ever link correctly. If we're not using GNU ld we use -z text |
| 24852 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 24853 | # as -z defs. |
| 24854 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24855 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 24856 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24857 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24858 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 24859 | hardcode_libdir_separator_GCJ=':' |
| 24860 | link_all_deplibs_GCJ=yes |
| 24861 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24862 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24863 | |
| 24864 | if test "$GCC" = yes; then |
| 24865 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24866 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24867 | else |
| 24868 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24869 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24870 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24871 | ;; |
| 24872 | |
| 24873 | uts4*) |
| 24874 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24875 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24876 | hardcode_shlibpath_var_GCJ=no |
| 24877 | ;; |
| 24878 | |
| 24879 | *) |
| 24880 | ld_shlibs_GCJ=no |
| 24881 | ;; |
| 24882 | esac |
| 24883 | fi |
| 24884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24885 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 24886 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24887 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 24888 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24889 | # |
| 24890 | # Do we need to explicitly link libc? |
| 24891 | # |
| 24892 | case "x$archive_cmds_need_lc_GCJ" in |
| 24893 | x|xyes) |
| 24894 | # Assume -lc should be added |
| 24895 | archive_cmds_need_lc_GCJ=yes |
| 24896 | |
| 24897 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 24898 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24899 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24900 | # FIXME: we may have to deal with multi-command sequences. |
| 24901 | ;; |
| 24902 | '$CC '*) |
| 24903 | # Test whether the compiler implicitly links with -lc since on some |
| 24904 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 24905 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24906 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 24907 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24908 | $rm conftest* |
| 24909 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24910 | |
| 24911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24912 | (eval $ac_compile) 2>&5 |
| 24913 | ac_status=$? |
| 24914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24915 | (exit $ac_status); } 2>conftest.err; then |
| 24916 | soname=conftest |
| 24917 | lib=conftest |
| 24918 | libobjs=conftest.$ac_objext |
| 24919 | deplibs= |
| 24920 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24921 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24922 | compiler_flags=-v |
| 24923 | linker_flags=-v |
| 24924 | verstring= |
| 24925 | output_objdir=. |
| 24926 | libname=conftest |
| 24927 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 24928 | allow_undefined_flag_GCJ= |
| 24929 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 24930 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 24931 | ac_status=$? |
| 24932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24933 | (exit $ac_status); } |
| 24934 | then |
| 24935 | archive_cmds_need_lc_GCJ=no |
| 24936 | else |
| 24937 | archive_cmds_need_lc_GCJ=yes |
| 24938 | fi |
| 24939 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 24940 | else |
| 24941 | cat conftest.err 1>&5 |
| 24942 | fi |
| 24943 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24944 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 24945 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24946 | ;; |
| 24947 | esac |
| 24948 | fi |
| 24949 | ;; |
| 24950 | esac |
| 24951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24952 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 24953 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24954 | library_names_spec= |
| 24955 | libname_spec='lib$name' |
| 24956 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24957 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24958 | postinstall_cmds= |
| 24959 | postuninstall_cmds= |
| 24960 | finish_cmds= |
| 24961 | finish_eval= |
| 24962 | shlibpath_var= |
| 24963 | shlibpath_overrides_runpath=unknown |
| 24964 | version_type=none |
| 24965 | dynamic_linker="$host_os ld.so" |
| 24966 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 24967 | if test "$GCC" = yes; then |
| 24968 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24969 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 24970 | # if the path contains ";" then we assume it to be the separator |
| 24971 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 24972 | # assumed that no part of a normal pathname contains ";" but that should |
| 24973 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 24974 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24975 | else |
| 24976 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 24977 | fi |
| 24978 | else |
| 24979 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 24980 | fi |
| 24981 | need_lib_prefix=unknown |
| 24982 | hardcode_into_libs=no |
| 24983 | |
| 24984 | # when you set need_version to no, make sure it does not cause -set_version |
| 24985 | # flags to be left without arguments |
| 24986 | need_version=unknown |
| 24987 | |
| 24988 | case $host_os in |
| 24989 | aix3*) |
| 24990 | version_type=linux |
| 24991 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 24992 | shlibpath_var=LIBPATH |
| 24993 | |
| 24994 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 24995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24996 | ;; |
| 24997 | |
| 24998 | aix4* | aix5*) |
| 24999 | version_type=linux |
| 25000 | need_lib_prefix=no |
| 25001 | need_version=no |
| 25002 | hardcode_into_libs=yes |
| 25003 | if test "$host_cpu" = ia64; then |
| 25004 | # AIX 5 supports IA64 |
| 25005 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25006 | shlibpath_var=LD_LIBRARY_PATH |
| 25007 | else |
| 25008 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25009 | # for dependence libraries. The import file would start with |
| 25010 | # the line `#! .'. This would cause the generated library to |
| 25011 | # depend on `.', always an invalid library. This was fixed in |
| 25012 | # development snapshots of GCC prior to 3.0. |
| 25013 | case $host_os in |
| 25014 | aix4 | aix4.[01] | aix4.[01].*) |
| 25015 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25016 | echo ' yes ' |
| 25017 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25018 | : |
| 25019 | else |
| 25020 | can_build_shared=no |
| 25021 | fi |
| 25022 | ;; |
| 25023 | esac |
| 25024 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25025 | # soname into executable. Probably we can add versioning support to |
| 25026 | # collect2, so additional links can be useful in future. |
| 25027 | if test "$aix_use_runtimelinking" = yes; then |
| 25028 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25029 | # instead of lib<name>.a to let people know that these are not |
| 25030 | # typical AIX shared libraries. |
| 25031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25032 | else |
| 25033 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25034 | # and later when we are not doing run time linking. |
| 25035 | library_names_spec='${libname}${release}.a $libname.a' |
| 25036 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25037 | fi |
| 25038 | shlibpath_var=LIBPATH |
| 25039 | fi |
| 25040 | ;; |
| 25041 | |
| 25042 | amigaos*) |
| 25043 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25044 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25045 | 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' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25046 | ;; |
| 25047 | |
| 25048 | beos*) |
| 25049 | library_names_spec='${libname}${shared_ext}' |
| 25050 | dynamic_linker="$host_os ld.so" |
| 25051 | shlibpath_var=LIBRARY_PATH |
| 25052 | ;; |
| 25053 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25054 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25055 | version_type=linux |
| 25056 | need_version=no |
| 25057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25058 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25059 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25060 | shlibpath_var=LD_LIBRARY_PATH |
| 25061 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25062 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25063 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25064 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25065 | # libtool to hard-code these into programs |
| 25066 | ;; |
| 25067 | |
| 25068 | cygwin* | mingw* | pw32*) |
| 25069 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25070 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25071 | need_version=no |
| 25072 | need_lib_prefix=no |
| 25073 | |
| 25074 | case $GCC,$host_os in |
| 25075 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25076 | library_names_spec='$libname.dll.a' |
| 25077 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25078 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25079 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25080 | dldir=$destdir/`dirname \$dlpath`~ |
| 25081 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25082 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25083 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25084 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25085 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25086 | $rm \$dlpath' |
| 25087 | shlibpath_overrides_runpath=yes |
| 25088 | |
| 25089 | case $host_os in |
| 25090 | cygwin*) |
| 25091 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25092 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25093 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25094 | ;; |
| 25095 | mingw*) |
| 25096 | # MinGW DLLs use traditional 'lib' prefix |
| 25097 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25098 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25099 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25100 | # It is most probably a Windows format PATH printed by |
| 25101 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25102 | # path with ; separators, and with drive letters. We can handle the |
| 25103 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25104 | # especially as we might pass files found there to a mingw objdump, |
| 25105 | # which wouldn't understand a cygwinified path. Ahh. |
| 25106 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25107 | else |
| 25108 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25109 | fi |
| 25110 | ;; |
| 25111 | pw32*) |
| 25112 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25113 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25114 | ;; |
| 25115 | esac |
| 25116 | ;; |
| 25117 | |
| 25118 | *) |
| 25119 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25120 | ;; |
| 25121 | esac |
| 25122 | dynamic_linker='Win32 ld.exe' |
| 25123 | # FIXME: first we should search . and the directory the executable is in |
| 25124 | shlibpath_var=PATH |
| 25125 | ;; |
| 25126 | |
| 25127 | darwin* | rhapsody*) |
| 25128 | dynamic_linker="$host_os dyld" |
| 25129 | version_type=darwin |
| 25130 | need_lib_prefix=no |
| 25131 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25132 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25133 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25134 | shlibpath_overrides_runpath=yes |
| 25135 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25136 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25137 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25138 | if test "$GCC" = yes; then |
| 25139 | 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"` |
| 25140 | else |
| 25141 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25142 | fi |
| 25143 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25144 | ;; |
| 25145 | |
| 25146 | dgux*) |
| 25147 | version_type=linux |
| 25148 | need_lib_prefix=no |
| 25149 | need_version=no |
| 25150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25151 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25152 | shlibpath_var=LD_LIBRARY_PATH |
| 25153 | ;; |
| 25154 | |
| 25155 | freebsd1*) |
| 25156 | dynamic_linker=no |
| 25157 | ;; |
| 25158 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25159 | kfreebsd*-gnu) |
| 25160 | version_type=linux |
| 25161 | need_lib_prefix=no |
| 25162 | need_version=no |
| 25163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25165 | shlibpath_var=LD_LIBRARY_PATH |
| 25166 | shlibpath_overrides_runpath=no |
| 25167 | hardcode_into_libs=yes |
| 25168 | dynamic_linker='GNU ld.so' |
| 25169 | ;; |
| 25170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25171 | freebsd* | dragonfly*) |
| 25172 | # DragonFly does not have aout. When/if they implement a new |
| 25173 | # versioning mechanism, adjust this. |
| 25174 | if test -x /usr/bin/objformat; then |
| 25175 | objformat=`/usr/bin/objformat` |
| 25176 | else |
| 25177 | case $host_os in |
| 25178 | freebsd[123]*) objformat=aout ;; |
| 25179 | *) objformat=elf ;; |
| 25180 | esac |
| 25181 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25182 | version_type=freebsd-$objformat |
| 25183 | case $version_type in |
| 25184 | freebsd-elf*) |
| 25185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25186 | need_version=no |
| 25187 | need_lib_prefix=no |
| 25188 | ;; |
| 25189 | freebsd-*) |
| 25190 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25191 | need_version=yes |
| 25192 | ;; |
| 25193 | esac |
| 25194 | shlibpath_var=LD_LIBRARY_PATH |
| 25195 | case $host_os in |
| 25196 | freebsd2*) |
| 25197 | shlibpath_overrides_runpath=yes |
| 25198 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25199 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25200 | shlibpath_overrides_runpath=yes |
| 25201 | hardcode_into_libs=yes |
| 25202 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25203 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25204 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25205 | shlibpath_overrides_runpath=no |
| 25206 | hardcode_into_libs=yes |
| 25207 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25208 | freebsd*) # from 4.6 on |
| 25209 | shlibpath_overrides_runpath=yes |
| 25210 | hardcode_into_libs=yes |
| 25211 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25212 | esac |
| 25213 | ;; |
| 25214 | |
| 25215 | gnu*) |
| 25216 | version_type=linux |
| 25217 | need_lib_prefix=no |
| 25218 | need_version=no |
| 25219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25220 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25221 | shlibpath_var=LD_LIBRARY_PATH |
| 25222 | hardcode_into_libs=yes |
| 25223 | ;; |
| 25224 | |
| 25225 | hpux9* | hpux10* | hpux11*) |
| 25226 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25227 | # link against other versions. |
| 25228 | version_type=sunos |
| 25229 | need_lib_prefix=no |
| 25230 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25231 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25232 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25233 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25234 | hardcode_into_libs=yes |
| 25235 | dynamic_linker="$host_os dld.so" |
| 25236 | shlibpath_var=LD_LIBRARY_PATH |
| 25237 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25239 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25240 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25241 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25242 | else |
| 25243 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25244 | fi |
| 25245 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25246 | ;; |
| 25247 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25248 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25249 | hardcode_into_libs=yes |
| 25250 | dynamic_linker="$host_os dld.sl" |
| 25251 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25252 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25254 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25255 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25256 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25257 | ;; |
| 25258 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25259 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25260 | dynamic_linker="$host_os dld.sl" |
| 25261 | shlibpath_var=SHLIB_PATH |
| 25262 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25264 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25265 | ;; |
| 25266 | esac |
| 25267 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25268 | postinstall_cmds='chmod 555 $lib' |
| 25269 | ;; |
| 25270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25271 | interix3*) |
| 25272 | version_type=linux |
| 25273 | need_lib_prefix=no |
| 25274 | need_version=no |
| 25275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25276 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25277 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25278 | shlibpath_var=LD_LIBRARY_PATH |
| 25279 | shlibpath_overrides_runpath=no |
| 25280 | hardcode_into_libs=yes |
| 25281 | ;; |
| 25282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25283 | irix5* | irix6* | nonstopux*) |
| 25284 | case $host_os in |
| 25285 | nonstopux*) version_type=nonstopux ;; |
| 25286 | *) |
| 25287 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25288 | version_type=linux |
| 25289 | else |
| 25290 | version_type=irix |
| 25291 | fi ;; |
| 25292 | esac |
| 25293 | need_lib_prefix=no |
| 25294 | need_version=no |
| 25295 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25297 | case $host_os in |
| 25298 | irix5* | nonstopux*) |
| 25299 | libsuff= shlibsuff= |
| 25300 | ;; |
| 25301 | *) |
| 25302 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25303 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25304 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25305 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25306 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25307 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25308 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25309 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25310 | esac |
| 25311 | ;; |
| 25312 | esac |
| 25313 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25314 | shlibpath_overrides_runpath=no |
| 25315 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25316 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25317 | hardcode_into_libs=yes |
| 25318 | ;; |
| 25319 | |
| 25320 | # No shared lib support for Linux oldld, aout, or coff. |
| 25321 | linux*oldld* | linux*aout* | linux*coff*) |
| 25322 | dynamic_linker=no |
| 25323 | ;; |
| 25324 | |
| 25325 | # This must be Linux ELF. |
| 25326 | linux*) |
| 25327 | version_type=linux |
| 25328 | need_lib_prefix=no |
| 25329 | need_version=no |
| 25330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25331 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25332 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25333 | shlibpath_var=LD_LIBRARY_PATH |
| 25334 | shlibpath_overrides_runpath=no |
| 25335 | # This implies no fast_install, which is unacceptable. |
| 25336 | # Some rework will be needed to allow for fast_install |
| 25337 | # before this can be enabled. |
| 25338 | hardcode_into_libs=yes |
| 25339 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25340 | # Append ld.so.conf contents to the search path |
| 25341 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25342 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25343 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25344 | fi |
| 25345 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25346 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25347 | # powerpc, because MkLinux only supported shared libraries with the |
| 25348 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25349 | # most powerpc-linux boxes support dynamic linking these days and |
| 25350 | # people can always --disable-shared, the test was removed, and we |
| 25351 | # assume the GNU/Linux dynamic linker is in use. |
| 25352 | dynamic_linker='GNU/Linux ld.so' |
| 25353 | ;; |
| 25354 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25355 | knetbsd*-gnu) |
| 25356 | version_type=linux |
| 25357 | need_lib_prefix=no |
| 25358 | need_version=no |
| 25359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25360 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25361 | shlibpath_var=LD_LIBRARY_PATH |
| 25362 | shlibpath_overrides_runpath=no |
| 25363 | hardcode_into_libs=yes |
| 25364 | dynamic_linker='GNU ld.so' |
| 25365 | ;; |
| 25366 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25367 | netbsd*) |
| 25368 | version_type=sunos |
| 25369 | need_lib_prefix=no |
| 25370 | need_version=no |
| 25371 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25373 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25374 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25375 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25377 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25378 | dynamic_linker='NetBSD ld.elf_so' |
| 25379 | fi |
| 25380 | shlibpath_var=LD_LIBRARY_PATH |
| 25381 | shlibpath_overrides_runpath=yes |
| 25382 | hardcode_into_libs=yes |
| 25383 | ;; |
| 25384 | |
| 25385 | newsos6) |
| 25386 | version_type=linux |
| 25387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25388 | shlibpath_var=LD_LIBRARY_PATH |
| 25389 | shlibpath_overrides_runpath=yes |
| 25390 | ;; |
| 25391 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25392 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25393 | version_type=linux |
| 25394 | need_lib_prefix=no |
| 25395 | need_version=no |
| 25396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25397 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25398 | shlibpath_var=LD_LIBRARY_PATH |
| 25399 | shlibpath_overrides_runpath=yes |
| 25400 | ;; |
| 25401 | |
| 25402 | openbsd*) |
| 25403 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25404 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25405 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25406 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25407 | case $host_os in |
| 25408 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25409 | *) need_version=no ;; |
| 25410 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25412 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25413 | shlibpath_var=LD_LIBRARY_PATH |
| 25414 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25415 | case $host_os in |
| 25416 | openbsd2.[89] | openbsd2.[89].*) |
| 25417 | shlibpath_overrides_runpath=no |
| 25418 | ;; |
| 25419 | *) |
| 25420 | shlibpath_overrides_runpath=yes |
| 25421 | ;; |
| 25422 | esac |
| 25423 | else |
| 25424 | shlibpath_overrides_runpath=yes |
| 25425 | fi |
| 25426 | ;; |
| 25427 | |
| 25428 | os2*) |
| 25429 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25430 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25431 | need_lib_prefix=no |
| 25432 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25433 | dynamic_linker='OS/2 ld.exe' |
| 25434 | shlibpath_var=LIBPATH |
| 25435 | ;; |
| 25436 | |
| 25437 | osf3* | osf4* | osf5*) |
| 25438 | version_type=osf |
| 25439 | need_lib_prefix=no |
| 25440 | need_version=no |
| 25441 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25443 | shlibpath_var=LD_LIBRARY_PATH |
| 25444 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25445 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25446 | ;; |
| 25447 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25448 | solaris*) |
| 25449 | version_type=linux |
| 25450 | need_lib_prefix=no |
| 25451 | need_version=no |
| 25452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25453 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25454 | shlibpath_var=LD_LIBRARY_PATH |
| 25455 | shlibpath_overrides_runpath=yes |
| 25456 | hardcode_into_libs=yes |
| 25457 | # ldd complains unless libraries are executable |
| 25458 | postinstall_cmds='chmod +x $lib' |
| 25459 | ;; |
| 25460 | |
| 25461 | sunos4*) |
| 25462 | version_type=sunos |
| 25463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25464 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25465 | shlibpath_var=LD_LIBRARY_PATH |
| 25466 | shlibpath_overrides_runpath=yes |
| 25467 | if test "$with_gnu_ld" = yes; then |
| 25468 | need_lib_prefix=no |
| 25469 | fi |
| 25470 | need_version=yes |
| 25471 | ;; |
| 25472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25473 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25474 | version_type=linux |
| 25475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25477 | shlibpath_var=LD_LIBRARY_PATH |
| 25478 | case $host_vendor in |
| 25479 | sni) |
| 25480 | shlibpath_overrides_runpath=no |
| 25481 | need_lib_prefix=no |
| 25482 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25483 | runpath_var=LD_RUN_PATH |
| 25484 | ;; |
| 25485 | siemens) |
| 25486 | need_lib_prefix=no |
| 25487 | ;; |
| 25488 | motorola) |
| 25489 | need_lib_prefix=no |
| 25490 | need_version=no |
| 25491 | shlibpath_overrides_runpath=no |
| 25492 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25493 | ;; |
| 25494 | esac |
| 25495 | ;; |
| 25496 | |
| 25497 | sysv4*MP*) |
| 25498 | if test -d /usr/nec ;then |
| 25499 | version_type=linux |
| 25500 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25501 | soname_spec='$libname${shared_ext}.$major' |
| 25502 | shlibpath_var=LD_LIBRARY_PATH |
| 25503 | fi |
| 25504 | ;; |
| 25505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25506 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25507 | version_type=freebsd-elf |
| 25508 | need_lib_prefix=no |
| 25509 | need_version=no |
| 25510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25511 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25512 | shlibpath_var=LD_LIBRARY_PATH |
| 25513 | hardcode_into_libs=yes |
| 25514 | if test "$with_gnu_ld" = yes; then |
| 25515 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25516 | shlibpath_overrides_runpath=no |
| 25517 | else |
| 25518 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25519 | shlibpath_overrides_runpath=yes |
| 25520 | case $host_os in |
| 25521 | sco3.2v5*) |
| 25522 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25523 | ;; |
| 25524 | esac |
| 25525 | fi |
| 25526 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25527 | ;; |
| 25528 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25529 | uts4*) |
| 25530 | version_type=linux |
| 25531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25533 | shlibpath_var=LD_LIBRARY_PATH |
| 25534 | ;; |
| 25535 | |
| 25536 | *) |
| 25537 | dynamic_linker=no |
| 25538 | ;; |
| 25539 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25540 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25541 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25542 | test "$dynamic_linker" = no && can_build_shared=no |
| 25543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25544 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25545 | if test "$GCC" = yes; then |
| 25546 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25547 | fi |
| 25548 | |
| 25549 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25550 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25551 | hardcode_action_GCJ= |
| 25552 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25553 | test -n "$runpath_var_GCJ" || \ |
| 25554 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25555 | |
| 25556 | # We can hardcode non-existant directories. |
| 25557 | if test "$hardcode_direct_GCJ" != no && |
| 25558 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25559 | # have to relink, otherwise we might link with an installed library |
| 25560 | # when we should be linking with a yet-to-be-installed one |
| 25561 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25562 | test "$hardcode_minus_L_GCJ" != no; then |
| 25563 | # Linking always hardcodes the temporary library directory. |
| 25564 | hardcode_action_GCJ=relink |
| 25565 | else |
| 25566 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25567 | hardcode_action_GCJ=immediate |
| 25568 | fi |
| 25569 | else |
| 25570 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25571 | # directories. |
| 25572 | hardcode_action_GCJ=unsupported |
| 25573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25574 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25575 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25576 | |
| 25577 | if test "$hardcode_action_GCJ" = relink; then |
| 25578 | # Fast installation is not supported |
| 25579 | enable_fast_install=no |
| 25580 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25581 | test "$enable_shared" = no; then |
| 25582 | # Fast installation is not necessary |
| 25583 | enable_fast_install=needless |
| 25584 | fi |
| 25585 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25586 | |
| 25587 | # The else clause should only fire when bootstrapping the |
| 25588 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25589 | # with your package, and you will get complaints that there are |
| 25590 | # no rules to generate ltmain.sh. |
| 25591 | if test -f "$ltmain"; then |
| 25592 | # See if we are running on zsh, and set the options which allow our commands through |
| 25593 | # without removal of \ escapes. |
| 25594 | if test -n "${ZSH_VERSION+set}" ; then |
| 25595 | setopt NO_GLOB_SUBST |
| 25596 | fi |
| 25597 | # Now quote all the things that may contain metacharacters while being |
| 25598 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25599 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25600 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25601 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25602 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25603 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25604 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25605 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25606 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25607 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25608 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25609 | compiler_GCJ \ |
| 25610 | CC_GCJ \ |
| 25611 | LD_GCJ \ |
| 25612 | lt_prog_compiler_wl_GCJ \ |
| 25613 | lt_prog_compiler_pic_GCJ \ |
| 25614 | lt_prog_compiler_static_GCJ \ |
| 25615 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25616 | export_dynamic_flag_spec_GCJ \ |
| 25617 | thread_safe_flag_spec_GCJ \ |
| 25618 | whole_archive_flag_spec_GCJ \ |
| 25619 | enable_shared_with_static_runtimes_GCJ \ |
| 25620 | old_archive_cmds_GCJ \ |
| 25621 | old_archive_from_new_cmds_GCJ \ |
| 25622 | predep_objects_GCJ \ |
| 25623 | postdep_objects_GCJ \ |
| 25624 | predeps_GCJ \ |
| 25625 | postdeps_GCJ \ |
| 25626 | compiler_lib_search_path_GCJ \ |
| 25627 | archive_cmds_GCJ \ |
| 25628 | archive_expsym_cmds_GCJ \ |
| 25629 | postinstall_cmds_GCJ \ |
| 25630 | postuninstall_cmds_GCJ \ |
| 25631 | old_archive_from_expsyms_cmds_GCJ \ |
| 25632 | allow_undefined_flag_GCJ \ |
| 25633 | no_undefined_flag_GCJ \ |
| 25634 | export_symbols_cmds_GCJ \ |
| 25635 | hardcode_libdir_flag_spec_GCJ \ |
| 25636 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25637 | hardcode_libdir_separator_GCJ \ |
| 25638 | hardcode_automatic_GCJ \ |
| 25639 | module_cmds_GCJ \ |
| 25640 | module_expsym_cmds_GCJ \ |
| 25641 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25642 | exclude_expsyms_GCJ \ |
| 25643 | include_expsyms_GCJ; do |
| 25644 | |
| 25645 | case $var in |
| 25646 | old_archive_cmds_GCJ | \ |
| 25647 | old_archive_from_new_cmds_GCJ | \ |
| 25648 | archive_cmds_GCJ | \ |
| 25649 | archive_expsym_cmds_GCJ | \ |
| 25650 | module_cmds_GCJ | \ |
| 25651 | module_expsym_cmds_GCJ | \ |
| 25652 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25653 | export_symbols_cmds_GCJ | \ |
| 25654 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25655 | postinstall_cmds | postuninstall_cmds | \ |
| 25656 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25657 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25658 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25659 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25660 | ;; |
| 25661 | *) |
| 25662 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25663 | ;; |
| 25664 | esac |
| 25665 | done |
| 25666 | |
| 25667 | case $lt_echo in |
| 25668 | *'\$0 --fallback-echo"') |
| 25669 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25670 | ;; |
| 25671 | esac |
| 25672 | |
| 25673 | cfgfile="$ofile" |
| 25674 | |
| 25675 | cat <<__EOF__ >> "$cfgfile" |
| 25676 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25677 | |
| 25678 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25679 | |
| 25680 | # Shell to use when invoking shell scripts. |
| 25681 | SHELL=$lt_SHELL |
| 25682 | |
| 25683 | # Whether or not to build shared libraries. |
| 25684 | build_libtool_libs=$enable_shared |
| 25685 | |
| 25686 | # Whether or not to build static libraries. |
| 25687 | build_old_libs=$enable_static |
| 25688 | |
| 25689 | # Whether or not to add -lc for building shared libraries. |
| 25690 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25691 | |
| 25692 | # Whether or not to disallow shared libs when runtime libs are static |
| 25693 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25694 | |
| 25695 | # Whether or not to optimize for fast installation. |
| 25696 | fast_install=$enable_fast_install |
| 25697 | |
| 25698 | # The host system. |
| 25699 | host_alias=$host_alias |
| 25700 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25701 | host_os=$host_os |
| 25702 | |
| 25703 | # The build system. |
| 25704 | build_alias=$build_alias |
| 25705 | build=$build |
| 25706 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25707 | |
| 25708 | # An echo program that does not interpret backslashes. |
| 25709 | echo=$lt_echo |
| 25710 | |
| 25711 | # The archiver. |
| 25712 | AR=$lt_AR |
| 25713 | AR_FLAGS=$lt_AR_FLAGS |
| 25714 | |
| 25715 | # A C compiler. |
| 25716 | LTCC=$lt_LTCC |
| 25717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25718 | # LTCC compiler flags. |
| 25719 | LTCFLAGS=$lt_LTCFLAGS |
| 25720 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25721 | # A language-specific compiler. |
| 25722 | CC=$lt_compiler_GCJ |
| 25723 | |
| 25724 | # Is the compiler the GNU C compiler? |
| 25725 | with_gcc=$GCC_GCJ |
| 25726 | |
| 25727 | # An ERE matcher. |
| 25728 | EGREP=$lt_EGREP |
| 25729 | |
| 25730 | # The linker used to build libraries. |
| 25731 | LD=$lt_LD_GCJ |
| 25732 | |
| 25733 | # Whether we need hard or soft links. |
| 25734 | LN_S=$lt_LN_S |
| 25735 | |
| 25736 | # A BSD-compatible nm program. |
| 25737 | NM=$lt_NM |
| 25738 | |
| 25739 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25740 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25741 | |
| 25742 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25743 | MAGIC_CMD=$MAGIC_CMD |
| 25744 | |
| 25745 | # Used on cygwin: DLL creation program. |
| 25746 | DLLTOOL="$DLLTOOL" |
| 25747 | |
| 25748 | # Used on cygwin: object dumper. |
| 25749 | OBJDUMP="$OBJDUMP" |
| 25750 | |
| 25751 | # Used on cygwin: assembler. |
| 25752 | AS="$AS" |
| 25753 | |
| 25754 | # The name of the directory that contains temporary libtool files. |
| 25755 | objdir=$objdir |
| 25756 | |
| 25757 | # How to create reloadable object files. |
| 25758 | reload_flag=$lt_reload_flag |
| 25759 | reload_cmds=$lt_reload_cmds |
| 25760 | |
| 25761 | # How to pass a linker flag through the compiler. |
| 25762 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 25763 | |
| 25764 | # Object file suffix (normally "o"). |
| 25765 | objext="$ac_objext" |
| 25766 | |
| 25767 | # Old archive suffix (normally "a"). |
| 25768 | libext="$libext" |
| 25769 | |
| 25770 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25771 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25772 | |
| 25773 | # Executable file suffix (normally ""). |
| 25774 | exeext="$exeext" |
| 25775 | |
| 25776 | # Additional compiler flags for building library objects. |
| 25777 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 25778 | pic_mode=$pic_mode |
| 25779 | |
| 25780 | # What is the maximum length of a command? |
| 25781 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25782 | |
| 25783 | # Does compiler simultaneously support -c and -o options? |
| 25784 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 25785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25786 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25787 | need_locks=$lt_need_locks |
| 25788 | |
| 25789 | # Do we need the lib prefix for modules? |
| 25790 | need_lib_prefix=$need_lib_prefix |
| 25791 | |
| 25792 | # Do we need a version for libraries? |
| 25793 | need_version=$need_version |
| 25794 | |
| 25795 | # Whether dlopen is supported. |
| 25796 | dlopen_support=$enable_dlopen |
| 25797 | |
| 25798 | # Whether dlopen of programs is supported. |
| 25799 | dlopen_self=$enable_dlopen_self |
| 25800 | |
| 25801 | # Whether dlopen of statically linked programs is supported. |
| 25802 | dlopen_self_static=$enable_dlopen_self_static |
| 25803 | |
| 25804 | # Compiler flag to prevent dynamic linking. |
| 25805 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 25806 | |
| 25807 | # Compiler flag to turn off builtin functions. |
| 25808 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 25809 | |
| 25810 | # Compiler flag to allow reflexive dlopens. |
| 25811 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 25812 | |
| 25813 | # Compiler flag to generate shared objects directly from archives. |
| 25814 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 25815 | |
| 25816 | # Compiler flag to generate thread-safe objects. |
| 25817 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 25818 | |
| 25819 | # Library versioning type. |
| 25820 | version_type=$version_type |
| 25821 | |
| 25822 | # Format of library name prefix. |
| 25823 | libname_spec=$lt_libname_spec |
| 25824 | |
| 25825 | # List of archive names. First name is the real one, the rest are links. |
| 25826 | # The last name is the one that the linker finds with -lNAME. |
| 25827 | library_names_spec=$lt_library_names_spec |
| 25828 | |
| 25829 | # The coded name of the library, if different from the real name. |
| 25830 | soname_spec=$lt_soname_spec |
| 25831 | |
| 25832 | # Commands used to build and install an old-style archive. |
| 25833 | RANLIB=$lt_RANLIB |
| 25834 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 25835 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25836 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25837 | |
| 25838 | # Create an old-style archive from a shared archive. |
| 25839 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 25840 | |
| 25841 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25842 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 25843 | |
| 25844 | # Commands used to build and install a shared archive. |
| 25845 | archive_cmds=$lt_archive_cmds_GCJ |
| 25846 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 25847 | postinstall_cmds=$lt_postinstall_cmds |
| 25848 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25849 | |
| 25850 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25851 | module_cmds=$lt_module_cmds_GCJ |
| 25852 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 25853 | |
| 25854 | # Commands to strip libraries. |
| 25855 | old_striplib=$lt_old_striplib |
| 25856 | striplib=$lt_striplib |
| 25857 | |
| 25858 | # Dependencies to place before the objects being linked to create a |
| 25859 | # shared library. |
| 25860 | predep_objects=$lt_predep_objects_GCJ |
| 25861 | |
| 25862 | # Dependencies to place after the objects being linked to create a |
| 25863 | # shared library. |
| 25864 | postdep_objects=$lt_postdep_objects_GCJ |
| 25865 | |
| 25866 | # Dependencies to place before the objects being linked to create a |
| 25867 | # shared library. |
| 25868 | predeps=$lt_predeps_GCJ |
| 25869 | |
| 25870 | # Dependencies to place after the objects being linked to create a |
| 25871 | # shared library. |
| 25872 | postdeps=$lt_postdeps_GCJ |
| 25873 | |
| 25874 | # The library search path used internally by the compiler when linking |
| 25875 | # a shared library. |
| 25876 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 25877 | |
| 25878 | # Method to check whether dependent libraries are shared objects. |
| 25879 | deplibs_check_method=$lt_deplibs_check_method |
| 25880 | |
| 25881 | # Command to use when deplibs_check_method == file_magic. |
| 25882 | file_magic_cmd=$lt_file_magic_cmd |
| 25883 | |
| 25884 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25885 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 25886 | |
| 25887 | # Flag that forces no undefined symbols. |
| 25888 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 25889 | |
| 25890 | # Commands used to finish a libtool library installation in a directory. |
| 25891 | finish_cmds=$lt_finish_cmds |
| 25892 | |
| 25893 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25894 | finish_eval=$lt_finish_eval |
| 25895 | |
| 25896 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25897 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25898 | |
| 25899 | # Transform the output of nm in a proper C declaration |
| 25900 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25901 | |
| 25902 | # Transform the output of nm in a C name address pair |
| 25903 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25904 | |
| 25905 | # This is the shared library runtime path variable. |
| 25906 | runpath_var=$runpath_var |
| 25907 | |
| 25908 | # This is the shared library path variable. |
| 25909 | shlibpath_var=$shlibpath_var |
| 25910 | |
| 25911 | # Is shlibpath searched before the hard-coded library search path? |
| 25912 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25913 | |
| 25914 | # How to hardcode a shared library path into an executable. |
| 25915 | hardcode_action=$hardcode_action_GCJ |
| 25916 | |
| 25917 | # Whether we should hardcode library paths into libraries. |
| 25918 | hardcode_into_libs=$hardcode_into_libs |
| 25919 | |
| 25920 | # Flag to hardcode \$libdir into a binary during linking. |
| 25921 | # This must work even if \$libdir does not exist. |
| 25922 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 25923 | |
| 25924 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25925 | # a binary during linking. This must work even if \$libdir does |
| 25926 | # not exist. |
| 25927 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 25928 | |
| 25929 | # Whether we need a single -rpath flag with a separated argument. |
| 25930 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 25931 | |
| 25932 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25933 | # resulting binary. |
| 25934 | hardcode_direct=$hardcode_direct_GCJ |
| 25935 | |
| 25936 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25937 | # resulting binary. |
| 25938 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 25939 | |
| 25940 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25941 | # the resulting binary. |
| 25942 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 25943 | |
| 25944 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25945 | # and all subsequent libraries and executables linked against it. |
| 25946 | hardcode_automatic=$hardcode_automatic_GCJ |
| 25947 | |
| 25948 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25949 | # restored at relink time. |
| 25950 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25951 | |
| 25952 | # Whether libtool must link a program against all its dependency libraries. |
| 25953 | link_all_deplibs=$link_all_deplibs_GCJ |
| 25954 | |
| 25955 | # Compile-time system search path for libraries |
| 25956 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25957 | |
| 25958 | # Run-time system search path for libraries |
| 25959 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25960 | |
| 25961 | # Fix the shell variable \$srcfile for the compiler. |
| 25962 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25963 | |
| 25964 | # Set to yes if exported symbols are required. |
| 25965 | always_export_symbols=$always_export_symbols_GCJ |
| 25966 | |
| 25967 | # The commands to list exported symbols. |
| 25968 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 25969 | |
| 25970 | # The commands to extract the exported symbol list from a shared archive. |
| 25971 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25972 | |
| 25973 | # Symbols that should not be listed in the preloaded symbols. |
| 25974 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 25975 | |
| 25976 | # Symbols that must always be exported. |
| 25977 | include_expsyms=$lt_include_expsyms_GCJ |
| 25978 | |
| 25979 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25980 | |
| 25981 | __EOF__ |
| 25982 | |
| 25983 | |
| 25984 | else |
| 25985 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25986 | # `config.status --recheck' to rerun these tests and create the |
| 25987 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25988 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25989 | if test -f "$ltmain_in"; then |
| 25990 | test -f Makefile && make "$ltmain" |
| 25991 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25992 | fi |
| 25993 | |
| 25994 | |
| 25995 | ac_ext=c |
| 25996 | ac_cpp='$CPP $CPPFLAGS' |
| 25997 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25998 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25999 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26000 | |
| 26001 | CC="$lt_save_CC" |
| 26002 | |
| 26003 | else |
| 26004 | tagname="" |
| 26005 | fi |
| 26006 | ;; |
| 26007 | |
| 26008 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26009 | ac_ext=c |
| 26010 | ac_cpp='$CPP $CPPFLAGS' |
| 26011 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26012 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26013 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26014 | |
| 26015 | |
| 26016 | # Source file extension for RC test sources. |
| 26017 | ac_ext=rc |
| 26018 | |
| 26019 | # Object file extension for compiled RC test sources. |
| 26020 | objext=o |
| 26021 | objext_RC=$objext |
| 26022 | |
| 26023 | # Code to be used in simple compile tests |
| 26024 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26025 | |
| 26026 | # Code to be used in simple link tests |
| 26027 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26028 | |
| 26029 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26030 | |
| 26031 | # If no C compiler was specified, use CC. |
| 26032 | LTCC=${LTCC-"$CC"} |
| 26033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26034 | # If no C compiler flags were specified, use CFLAGS. |
| 26035 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26036 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26037 | # Allow CC to be a program name with arguments. |
| 26038 | compiler=$CC |
| 26039 | |
| 26040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26041 | # save warnings/boilerplate of simple test code |
| 26042 | ac_outfile=conftest.$ac_objext |
| 26043 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26044 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26045 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26046 | $rm conftest* |
| 26047 | |
| 26048 | ac_outfile=conftest.$ac_objext |
| 26049 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26050 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26051 | _lt_linker_boilerplate=`cat conftest.err` |
| 26052 | $rm conftest* |
| 26053 | |
| 26054 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26055 | # Allow CC to be a program name with arguments. |
| 26056 | lt_save_CC="$CC" |
| 26057 | CC=${RC-"windres"} |
| 26058 | compiler=$CC |
| 26059 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26060 | for cc_temp in $compiler""; do |
| 26061 | case $cc_temp in |
| 26062 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26063 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26064 | \-*) ;; |
| 26065 | *) break;; |
| 26066 | esac |
| 26067 | done |
| 26068 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26069 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26070 | lt_cv_prog_compiler_c_o_RC=yes |
| 26071 | |
| 26072 | # The else clause should only fire when bootstrapping the |
| 26073 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26074 | # with your package, and you will get complaints that there are |
| 26075 | # no rules to generate ltmain.sh. |
| 26076 | if test -f "$ltmain"; then |
| 26077 | # See if we are running on zsh, and set the options which allow our commands through |
| 26078 | # without removal of \ escapes. |
| 26079 | if test -n "${ZSH_VERSION+set}" ; then |
| 26080 | setopt NO_GLOB_SUBST |
| 26081 | fi |
| 26082 | # Now quote all the things that may contain metacharacters while being |
| 26083 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26084 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26085 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26086 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26087 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26088 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26089 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26090 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26091 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26092 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26093 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26094 | compiler_RC \ |
| 26095 | CC_RC \ |
| 26096 | LD_RC \ |
| 26097 | lt_prog_compiler_wl_RC \ |
| 26098 | lt_prog_compiler_pic_RC \ |
| 26099 | lt_prog_compiler_static_RC \ |
| 26100 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26101 | export_dynamic_flag_spec_RC \ |
| 26102 | thread_safe_flag_spec_RC \ |
| 26103 | whole_archive_flag_spec_RC \ |
| 26104 | enable_shared_with_static_runtimes_RC \ |
| 26105 | old_archive_cmds_RC \ |
| 26106 | old_archive_from_new_cmds_RC \ |
| 26107 | predep_objects_RC \ |
| 26108 | postdep_objects_RC \ |
| 26109 | predeps_RC \ |
| 26110 | postdeps_RC \ |
| 26111 | compiler_lib_search_path_RC \ |
| 26112 | archive_cmds_RC \ |
| 26113 | archive_expsym_cmds_RC \ |
| 26114 | postinstall_cmds_RC \ |
| 26115 | postuninstall_cmds_RC \ |
| 26116 | old_archive_from_expsyms_cmds_RC \ |
| 26117 | allow_undefined_flag_RC \ |
| 26118 | no_undefined_flag_RC \ |
| 26119 | export_symbols_cmds_RC \ |
| 26120 | hardcode_libdir_flag_spec_RC \ |
| 26121 | hardcode_libdir_flag_spec_ld_RC \ |
| 26122 | hardcode_libdir_separator_RC \ |
| 26123 | hardcode_automatic_RC \ |
| 26124 | module_cmds_RC \ |
| 26125 | module_expsym_cmds_RC \ |
| 26126 | lt_cv_prog_compiler_c_o_RC \ |
| 26127 | exclude_expsyms_RC \ |
| 26128 | include_expsyms_RC; do |
| 26129 | |
| 26130 | case $var in |
| 26131 | old_archive_cmds_RC | \ |
| 26132 | old_archive_from_new_cmds_RC | \ |
| 26133 | archive_cmds_RC | \ |
| 26134 | archive_expsym_cmds_RC | \ |
| 26135 | module_cmds_RC | \ |
| 26136 | module_expsym_cmds_RC | \ |
| 26137 | old_archive_from_expsyms_cmds_RC | \ |
| 26138 | export_symbols_cmds_RC | \ |
| 26139 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26140 | postinstall_cmds | postuninstall_cmds | \ |
| 26141 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26142 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26143 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26144 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26145 | ;; |
| 26146 | *) |
| 26147 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26148 | ;; |
| 26149 | esac |
| 26150 | done |
| 26151 | |
| 26152 | case $lt_echo in |
| 26153 | *'\$0 --fallback-echo"') |
| 26154 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26155 | ;; |
| 26156 | esac |
| 26157 | |
| 26158 | cfgfile="$ofile" |
| 26159 | |
| 26160 | cat <<__EOF__ >> "$cfgfile" |
| 26161 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26162 | |
| 26163 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26164 | |
| 26165 | # Shell to use when invoking shell scripts. |
| 26166 | SHELL=$lt_SHELL |
| 26167 | |
| 26168 | # Whether or not to build shared libraries. |
| 26169 | build_libtool_libs=$enable_shared |
| 26170 | |
| 26171 | # Whether or not to build static libraries. |
| 26172 | build_old_libs=$enable_static |
| 26173 | |
| 26174 | # Whether or not to add -lc for building shared libraries. |
| 26175 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26176 | |
| 26177 | # Whether or not to disallow shared libs when runtime libs are static |
| 26178 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26179 | |
| 26180 | # Whether or not to optimize for fast installation. |
| 26181 | fast_install=$enable_fast_install |
| 26182 | |
| 26183 | # The host system. |
| 26184 | host_alias=$host_alias |
| 26185 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26186 | host_os=$host_os |
| 26187 | |
| 26188 | # The build system. |
| 26189 | build_alias=$build_alias |
| 26190 | build=$build |
| 26191 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26192 | |
| 26193 | # An echo program that does not interpret backslashes. |
| 26194 | echo=$lt_echo |
| 26195 | |
| 26196 | # The archiver. |
| 26197 | AR=$lt_AR |
| 26198 | AR_FLAGS=$lt_AR_FLAGS |
| 26199 | |
| 26200 | # A C compiler. |
| 26201 | LTCC=$lt_LTCC |
| 26202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26203 | # LTCC compiler flags. |
| 26204 | LTCFLAGS=$lt_LTCFLAGS |
| 26205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26206 | # A language-specific compiler. |
| 26207 | CC=$lt_compiler_RC |
| 26208 | |
| 26209 | # Is the compiler the GNU C compiler? |
| 26210 | with_gcc=$GCC_RC |
| 26211 | |
| 26212 | # An ERE matcher. |
| 26213 | EGREP=$lt_EGREP |
| 26214 | |
| 26215 | # The linker used to build libraries. |
| 26216 | LD=$lt_LD_RC |
| 26217 | |
| 26218 | # Whether we need hard or soft links. |
| 26219 | LN_S=$lt_LN_S |
| 26220 | |
| 26221 | # A BSD-compatible nm program. |
| 26222 | NM=$lt_NM |
| 26223 | |
| 26224 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26225 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26226 | |
| 26227 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26228 | MAGIC_CMD=$MAGIC_CMD |
| 26229 | |
| 26230 | # Used on cygwin: DLL creation program. |
| 26231 | DLLTOOL="$DLLTOOL" |
| 26232 | |
| 26233 | # Used on cygwin: object dumper. |
| 26234 | OBJDUMP="$OBJDUMP" |
| 26235 | |
| 26236 | # Used on cygwin: assembler. |
| 26237 | AS="$AS" |
| 26238 | |
| 26239 | # The name of the directory that contains temporary libtool files. |
| 26240 | objdir=$objdir |
| 26241 | |
| 26242 | # How to create reloadable object files. |
| 26243 | reload_flag=$lt_reload_flag |
| 26244 | reload_cmds=$lt_reload_cmds |
| 26245 | |
| 26246 | # How to pass a linker flag through the compiler. |
| 26247 | wl=$lt_lt_prog_compiler_wl_RC |
| 26248 | |
| 26249 | # Object file suffix (normally "o"). |
| 26250 | objext="$ac_objext" |
| 26251 | |
| 26252 | # Old archive suffix (normally "a"). |
| 26253 | libext="$libext" |
| 26254 | |
| 26255 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26256 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26257 | |
| 26258 | # Executable file suffix (normally ""). |
| 26259 | exeext="$exeext" |
| 26260 | |
| 26261 | # Additional compiler flags for building library objects. |
| 26262 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26263 | pic_mode=$pic_mode |
| 26264 | |
| 26265 | # What is the maximum length of a command? |
| 26266 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26267 | |
| 26268 | # Does compiler simultaneously support -c and -o options? |
| 26269 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26271 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26272 | need_locks=$lt_need_locks |
| 26273 | |
| 26274 | # Do we need the lib prefix for modules? |
| 26275 | need_lib_prefix=$need_lib_prefix |
| 26276 | |
| 26277 | # Do we need a version for libraries? |
| 26278 | need_version=$need_version |
| 26279 | |
| 26280 | # Whether dlopen is supported. |
| 26281 | dlopen_support=$enable_dlopen |
| 26282 | |
| 26283 | # Whether dlopen of programs is supported. |
| 26284 | dlopen_self=$enable_dlopen_self |
| 26285 | |
| 26286 | # Whether dlopen of statically linked programs is supported. |
| 26287 | dlopen_self_static=$enable_dlopen_self_static |
| 26288 | |
| 26289 | # Compiler flag to prevent dynamic linking. |
| 26290 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26291 | |
| 26292 | # Compiler flag to turn off builtin functions. |
| 26293 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26294 | |
| 26295 | # Compiler flag to allow reflexive dlopens. |
| 26296 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26297 | |
| 26298 | # Compiler flag to generate shared objects directly from archives. |
| 26299 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26300 | |
| 26301 | # Compiler flag to generate thread-safe objects. |
| 26302 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26303 | |
| 26304 | # Library versioning type. |
| 26305 | version_type=$version_type |
| 26306 | |
| 26307 | # Format of library name prefix. |
| 26308 | libname_spec=$lt_libname_spec |
| 26309 | |
| 26310 | # List of archive names. First name is the real one, the rest are links. |
| 26311 | # The last name is the one that the linker finds with -lNAME. |
| 26312 | library_names_spec=$lt_library_names_spec |
| 26313 | |
| 26314 | # The coded name of the library, if different from the real name. |
| 26315 | soname_spec=$lt_soname_spec |
| 26316 | |
| 26317 | # Commands used to build and install an old-style archive. |
| 26318 | RANLIB=$lt_RANLIB |
| 26319 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26320 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26321 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26322 | |
| 26323 | # Create an old-style archive from a shared archive. |
| 26324 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26325 | |
| 26326 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26327 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26328 | |
| 26329 | # Commands used to build and install a shared archive. |
| 26330 | archive_cmds=$lt_archive_cmds_RC |
| 26331 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26332 | postinstall_cmds=$lt_postinstall_cmds |
| 26333 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26334 | |
| 26335 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26336 | module_cmds=$lt_module_cmds_RC |
| 26337 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26338 | |
| 26339 | # Commands to strip libraries. |
| 26340 | old_striplib=$lt_old_striplib |
| 26341 | striplib=$lt_striplib |
| 26342 | |
| 26343 | # Dependencies to place before the objects being linked to create a |
| 26344 | # shared library. |
| 26345 | predep_objects=$lt_predep_objects_RC |
| 26346 | |
| 26347 | # Dependencies to place after the objects being linked to create a |
| 26348 | # shared library. |
| 26349 | postdep_objects=$lt_postdep_objects_RC |
| 26350 | |
| 26351 | # Dependencies to place before the objects being linked to create a |
| 26352 | # shared library. |
| 26353 | predeps=$lt_predeps_RC |
| 26354 | |
| 26355 | # Dependencies to place after the objects being linked to create a |
| 26356 | # shared library. |
| 26357 | postdeps=$lt_postdeps_RC |
| 26358 | |
| 26359 | # The library search path used internally by the compiler when linking |
| 26360 | # a shared library. |
| 26361 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26362 | |
| 26363 | # Method to check whether dependent libraries are shared objects. |
| 26364 | deplibs_check_method=$lt_deplibs_check_method |
| 26365 | |
| 26366 | # Command to use when deplibs_check_method == file_magic. |
| 26367 | file_magic_cmd=$lt_file_magic_cmd |
| 26368 | |
| 26369 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26370 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26371 | |
| 26372 | # Flag that forces no undefined symbols. |
| 26373 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26374 | |
| 26375 | # Commands used to finish a libtool library installation in a directory. |
| 26376 | finish_cmds=$lt_finish_cmds |
| 26377 | |
| 26378 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26379 | finish_eval=$lt_finish_eval |
| 26380 | |
| 26381 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26382 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26383 | |
| 26384 | # Transform the output of nm in a proper C declaration |
| 26385 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26386 | |
| 26387 | # Transform the output of nm in a C name address pair |
| 26388 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26389 | |
| 26390 | # This is the shared library runtime path variable. |
| 26391 | runpath_var=$runpath_var |
| 26392 | |
| 26393 | # This is the shared library path variable. |
| 26394 | shlibpath_var=$shlibpath_var |
| 26395 | |
| 26396 | # Is shlibpath searched before the hard-coded library search path? |
| 26397 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26398 | |
| 26399 | # How to hardcode a shared library path into an executable. |
| 26400 | hardcode_action=$hardcode_action_RC |
| 26401 | |
| 26402 | # Whether we should hardcode library paths into libraries. |
| 26403 | hardcode_into_libs=$hardcode_into_libs |
| 26404 | |
| 26405 | # Flag to hardcode \$libdir into a binary during linking. |
| 26406 | # This must work even if \$libdir does not exist. |
| 26407 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26408 | |
| 26409 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26410 | # a binary during linking. This must work even if \$libdir does |
| 26411 | # not exist. |
| 26412 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26413 | |
| 26414 | # Whether we need a single -rpath flag with a separated argument. |
| 26415 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26416 | |
| 26417 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26418 | # resulting binary. |
| 26419 | hardcode_direct=$hardcode_direct_RC |
| 26420 | |
| 26421 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26422 | # resulting binary. |
| 26423 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26424 | |
| 26425 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26426 | # the resulting binary. |
| 26427 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26428 | |
| 26429 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26430 | # and all subsequent libraries and executables linked against it. |
| 26431 | hardcode_automatic=$hardcode_automatic_RC |
| 26432 | |
| 26433 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26434 | # restored at relink time. |
| 26435 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26436 | |
| 26437 | # Whether libtool must link a program against all its dependency libraries. |
| 26438 | link_all_deplibs=$link_all_deplibs_RC |
| 26439 | |
| 26440 | # Compile-time system search path for libraries |
| 26441 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26442 | |
| 26443 | # Run-time system search path for libraries |
| 26444 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26445 | |
| 26446 | # Fix the shell variable \$srcfile for the compiler. |
| 26447 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26448 | |
| 26449 | # Set to yes if exported symbols are required. |
| 26450 | always_export_symbols=$always_export_symbols_RC |
| 26451 | |
| 26452 | # The commands to list exported symbols. |
| 26453 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26454 | |
| 26455 | # The commands to extract the exported symbol list from a shared archive. |
| 26456 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26457 | |
| 26458 | # Symbols that should not be listed in the preloaded symbols. |
| 26459 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26460 | |
| 26461 | # Symbols that must always be exported. |
| 26462 | include_expsyms=$lt_include_expsyms_RC |
| 26463 | |
| 26464 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26465 | |
| 26466 | __EOF__ |
| 26467 | |
| 26468 | |
| 26469 | else |
| 26470 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26471 | # `config.status --recheck' to rerun these tests and create the |
| 26472 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26473 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26474 | if test -f "$ltmain_in"; then |
| 26475 | test -f Makefile && make "$ltmain" |
| 26476 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26477 | fi |
| 26478 | |
| 26479 | |
| 26480 | ac_ext=c |
| 26481 | ac_cpp='$CPP $CPPFLAGS' |
| 26482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26485 | |
| 26486 | CC="$lt_save_CC" |
| 26487 | |
| 26488 | ;; |
| 26489 | |
| 26490 | *) |
| 26491 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26492 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26493 | { (exit 1); exit 1; }; } |
| 26494 | ;; |
| 26495 | esac |
| 26496 | |
| 26497 | # Append the new tag name to the list of available tags. |
| 26498 | if test -n "$tagname" ; then |
| 26499 | available_tags="$available_tags $tagname" |
| 26500 | fi |
| 26501 | fi |
| 26502 | done |
| 26503 | IFS="$lt_save_ifs" |
| 26504 | |
| 26505 | # Now substitute the updated list of available tags. |
| 26506 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26507 | mv "${ofile}T" "$ofile" |
| 26508 | chmod +x "$ofile" |
| 26509 | else |
| 26510 | rm -f "${ofile}T" |
| 26511 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26512 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26513 | { (exit 1); exit 1; }; } |
| 26514 | fi |
| 26515 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26516 | |
| 26517 | |
| 26518 | |
| 26519 | # This can be used to rebuild libtool when needed |
| 26520 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26521 | |
| 26522 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26523 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26524 | |
| 26525 | # Prevent multiple expansion |
| 26526 | |
| 26527 | |
| 26528 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26529 | |
| 26530 | |
| 26531 | |
| 26532 | |
| 26533 | |
| 26534 | |
| 26535 | |
| 26536 | |
| 26537 | |
| 26538 | |
| 26539 | |
| 26540 | |
| 26541 | |
| 26542 | |
| 26543 | |
| 26544 | |
| 26545 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26546 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26547 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26548 | |
| 26549 | cat >>confdefs.h <<\_ACEOF |
| 26550 | #define CAN_DLOPEN_SELF 1 |
| 26551 | _ACEOF |
| 26552 | |
| 26553 | fi |
| 26554 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26555 | etags_version=`$ETAGS --version 2>&1` |
| 26556 | case "$etags_version" in |
| 26557 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 26558 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 26559 | *) ETAGSFLAGS="" ;; |
| 26560 | esac |
| 26561 | ETAGSFLAGS=$ETAGSFLAGS |
| 26562 | |
| 26563 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26564 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26565 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26566 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26567 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26568 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26569 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26570 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26571 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26573 | else |
| 26574 | case $LLVMGCC in |
| 26575 | [\\/]* | ?:[\\/]*) |
| 26576 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26577 | ;; |
| 26578 | *) |
| 26579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26580 | for as_dir in $PATH |
| 26581 | do |
| 26582 | IFS=$as_save_IFS |
| 26583 | test -z "$as_dir" && as_dir=. |
| 26584 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26586 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26588 | break 2 |
| 26589 | fi |
| 26590 | done |
| 26591 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26592 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26593 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26594 | ;; |
| 26595 | esac |
| 26596 | fi |
| 26597 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26598 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26599 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26600 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26601 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26602 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26603 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26604 | fi |
| 26605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26606 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26607 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26608 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26609 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26611 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26613 | else |
| 26614 | case $LLVMGXX in |
| 26615 | [\\/]* | ?:[\\/]*) |
| 26616 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26617 | ;; |
| 26618 | *) |
| 26619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26620 | for as_dir in $PATH |
| 26621 | do |
| 26622 | IFS=$as_save_IFS |
| 26623 | test -z "$as_dir" && as_dir=. |
| 26624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26626 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26628 | break 2 |
| 26629 | fi |
| 26630 | done |
| 26631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26632 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26633 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26634 | ;; |
| 26635 | esac |
| 26636 | fi |
| 26637 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26638 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26639 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26640 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26641 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26643 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26644 | fi |
| 26645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26646 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26647 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26648 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26649 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26650 | LLVMGCC=$LLVMGCC |
| 26651 | |
| 26652 | LLVMGXX=$LLVMGXX |
| 26653 | |
| 26654 | fi |
| 26655 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26656 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26657 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26658 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26659 | ICC=no |
| 26660 | IXX=no |
| 26661 | case $CC in |
| 26662 | icc*|icpc*) |
| 26663 | ICC=yes |
| 26664 | IXX=yes |
| 26665 | ;; |
| 26666 | *) |
| 26667 | ;; |
| 26668 | esac |
| 26669 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26670 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26671 | then |
| 26672 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26673 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26674 | { (exit 1); exit 1; }; } |
| 26675 | fi |
| 26676 | |
| 26677 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26678 | then |
| 26679 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26680 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26681 | { (exit 1); exit 1; }; } |
| 26682 | fi |
| 26683 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26684 | if test "$GCC" = "yes" |
| 26685 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 26686 | gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'` |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26687 | if test "$gccmajor" -lt "3" |
| 26688 | then |
| 26689 | { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26690 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26691 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26692 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26693 | fi |
| 26694 | |
| 26695 | if test -z "$llvm_cv_gnu_make_command" |
| 26696 | then |
| 26697 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26698 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26699 | { (exit 1); exit 1; }; } |
| 26700 | fi |
| 26701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26702 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26703 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26704 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26707 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26708 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26709 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26711 | else |
| 26712 | ac_check_lib_save_LIBS=$LIBS |
| 26713 | LIBS="-lelf $LIBS" |
| 26714 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26715 | /* confdefs.h. */ |
| 26716 | _ACEOF |
| 26717 | cat confdefs.h >>conftest.$ac_ext |
| 26718 | cat >>conftest.$ac_ext <<_ACEOF |
| 26719 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26720 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26721 | /* Override any GCC internal prototype to avoid an error. |
| 26722 | Use char because int might match the return type of a GCC |
| 26723 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26724 | #ifdef __cplusplus |
| 26725 | extern "C" |
| 26726 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26727 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26728 | int |
| 26729 | main () |
| 26730 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26731 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26732 | ; |
| 26733 | return 0; |
| 26734 | } |
| 26735 | _ACEOF |
| 26736 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26737 | if { (ac_try="$ac_link" |
| 26738 | case "(($ac_try" in |
| 26739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26740 | *) ac_try_echo=$ac_try;; |
| 26741 | esac |
| 26742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26743 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26744 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26746 | rm -f conftest.er1 |
| 26747 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26749 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26750 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26751 | { (case "(($ac_try" in |
| 26752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26753 | *) ac_try_echo=$ac_try;; |
| 26754 | esac |
| 26755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26756 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26757 | ac_status=$? |
| 26758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26759 | (exit $ac_status); }; } && |
| 26760 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26761 | { (case "(($ac_try" in |
| 26762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26763 | *) ac_try_echo=$ac_try;; |
| 26764 | esac |
| 26765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26766 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26767 | ac_status=$? |
| 26768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26769 | (exit $ac_status); }; }; then |
| 26770 | ac_cv_lib_elf_elf_begin=yes |
| 26771 | else |
| 26772 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26775 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26777 | |
| 26778 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26779 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26780 | LIBS=$ac_check_lib_save_LIBS |
| 26781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26782 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 26783 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26784 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 26785 | cat >>confdefs.h <<_ACEOF |
| 26786 | #define HAVE_LIBELF 1 |
| 26787 | _ACEOF |
| 26788 | |
| 26789 | LIBS="-lelf $LIBS" |
| 26790 | |
| 26791 | fi |
| 26792 | |
| 26793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26794 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 26795 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26796 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 26797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26798 | else |
| 26799 | ac_check_lib_save_LIBS=$LIBS |
| 26800 | LIBS="-lm $LIBS" |
| 26801 | cat >conftest.$ac_ext <<_ACEOF |
| 26802 | /* confdefs.h. */ |
| 26803 | _ACEOF |
| 26804 | cat confdefs.h >>conftest.$ac_ext |
| 26805 | cat >>conftest.$ac_ext <<_ACEOF |
| 26806 | /* end confdefs.h. */ |
| 26807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26808 | /* Override any GCC internal prototype to avoid an error. |
| 26809 | Use char because int might match the return type of a GCC |
| 26810 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26811 | #ifdef __cplusplus |
| 26812 | extern "C" |
| 26813 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26814 | char sin (); |
| 26815 | int |
| 26816 | main () |
| 26817 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26818 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26819 | ; |
| 26820 | return 0; |
| 26821 | } |
| 26822 | _ACEOF |
| 26823 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26824 | if { (ac_try="$ac_link" |
| 26825 | case "(($ac_try" in |
| 26826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26827 | *) ac_try_echo=$ac_try;; |
| 26828 | esac |
| 26829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26830 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26831 | ac_status=$? |
| 26832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26833 | rm -f conftest.er1 |
| 26834 | cat conftest.err >&5 |
| 26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26836 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26838 | { (case "(($ac_try" in |
| 26839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26840 | *) ac_try_echo=$ac_try;; |
| 26841 | esac |
| 26842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26843 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26844 | ac_status=$? |
| 26845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26846 | (exit $ac_status); }; } && |
| 26847 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26848 | { (case "(($ac_try" in |
| 26849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26850 | *) ac_try_echo=$ac_try;; |
| 26851 | esac |
| 26852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26853 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26854 | ac_status=$? |
| 26855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26856 | (exit $ac_status); }; }; then |
| 26857 | ac_cv_lib_m_sin=yes |
| 26858 | else |
| 26859 | echo "$as_me: failed program was:" >&5 |
| 26860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26862 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26863 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26864 | |
| 26865 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26866 | conftest$ac_exeext conftest.$ac_ext |
| 26867 | LIBS=$ac_check_lib_save_LIBS |
| 26868 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26869 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 26870 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26871 | if test $ac_cv_lib_m_sin = yes; then |
| 26872 | cat >>confdefs.h <<_ACEOF |
| 26873 | #define HAVE_LIBM 1 |
| 26874 | _ACEOF |
| 26875 | |
| 26876 | LIBS="-lm $LIBS" |
| 26877 | |
| 26878 | fi |
| 26879 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26880 | if test "$llvm_cv_os_type" == "MingW" ; then |
| 26881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26882 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 26883 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26884 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26886 | else |
| 26887 | ac_check_lib_save_LIBS=$LIBS |
| 26888 | LIBS="-limagehlp $LIBS" |
| 26889 | cat >conftest.$ac_ext <<_ACEOF |
| 26890 | /* confdefs.h. */ |
| 26891 | _ACEOF |
| 26892 | cat confdefs.h >>conftest.$ac_ext |
| 26893 | cat >>conftest.$ac_ext <<_ACEOF |
| 26894 | /* end confdefs.h. */ |
| 26895 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26896 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26897 | int |
| 26898 | main () |
| 26899 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26900 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26901 | ; |
| 26902 | return 0; |
| 26903 | } |
| 26904 | _ACEOF |
| 26905 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26906 | if { (ac_try="$ac_link" |
| 26907 | case "(($ac_try" in |
| 26908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26909 | *) ac_try_echo=$ac_try;; |
| 26910 | esac |
| 26911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26912 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26913 | ac_status=$? |
| 26914 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26915 | rm -f conftest.er1 |
| 26916 | cat conftest.err >&5 |
| 26917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26918 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26919 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26920 | { (case "(($ac_try" in |
| 26921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26922 | *) ac_try_echo=$ac_try;; |
| 26923 | esac |
| 26924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26925 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26926 | ac_status=$? |
| 26927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26928 | (exit $ac_status); }; } && |
| 26929 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26930 | { (case "(($ac_try" in |
| 26931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26932 | *) ac_try_echo=$ac_try;; |
| 26933 | esac |
| 26934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26935 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26936 | ac_status=$? |
| 26937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26938 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26939 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26940 | else |
| 26941 | echo "$as_me: failed program was:" >&5 |
| 26942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26944 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26945 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26946 | |
| 26947 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26948 | conftest$ac_exeext conftest.$ac_ext |
| 26949 | LIBS=$ac_check_lib_save_LIBS |
| 26950 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26951 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 26952 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26953 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26954 | cat >>confdefs.h <<_ACEOF |
| 26955 | #define HAVE_LIBIMAGEHLP 1 |
| 26956 | _ACEOF |
| 26957 | |
| 26958 | LIBS="-limagehlp $LIBS" |
| 26959 | |
| 26960 | fi |
| 26961 | |
| 26962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26963 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 26964 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26965 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26967 | else |
| 26968 | ac_check_lib_save_LIBS=$LIBS |
| 26969 | LIBS="-lpsapi $LIBS" |
| 26970 | cat >conftest.$ac_ext <<_ACEOF |
| 26971 | /* confdefs.h. */ |
| 26972 | _ACEOF |
| 26973 | cat confdefs.h >>conftest.$ac_ext |
| 26974 | cat >>conftest.$ac_ext <<_ACEOF |
| 26975 | /* end confdefs.h. */ |
| 26976 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26977 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26978 | int |
| 26979 | main () |
| 26980 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26981 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26982 | ; |
| 26983 | return 0; |
| 26984 | } |
| 26985 | _ACEOF |
| 26986 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26987 | if { (ac_try="$ac_link" |
| 26988 | case "(($ac_try" in |
| 26989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26990 | *) ac_try_echo=$ac_try;; |
| 26991 | esac |
| 26992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26993 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26994 | ac_status=$? |
| 26995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26996 | rm -f conftest.er1 |
| 26997 | cat conftest.err >&5 |
| 26998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26999 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27001 | { (case "(($ac_try" in |
| 27002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27003 | *) ac_try_echo=$ac_try;; |
| 27004 | esac |
| 27005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27006 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27007 | ac_status=$? |
| 27008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27009 | (exit $ac_status); }; } && |
| 27010 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27011 | { (case "(($ac_try" in |
| 27012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27013 | *) ac_try_echo=$ac_try;; |
| 27014 | esac |
| 27015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27016 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27017 | ac_status=$? |
| 27018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27019 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27020 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27021 | else |
| 27022 | echo "$as_me: failed program was:" >&5 |
| 27023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27025 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27027 | |
| 27028 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27029 | conftest$ac_exeext conftest.$ac_ext |
| 27030 | LIBS=$ac_check_lib_save_LIBS |
| 27031 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27032 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27033 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27034 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27035 | cat >>confdefs.h <<_ACEOF |
| 27036 | #define HAVE_LIBPSAPI 1 |
| 27037 | _ACEOF |
| 27038 | |
| 27039 | LIBS="-lpsapi $LIBS" |
| 27040 | |
| 27041 | fi |
| 27042 | |
| 27043 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27045 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27046 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27047 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27049 | else |
| 27050 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27051 | cat >conftest.$ac_ext <<_ACEOF |
| 27052 | /* confdefs.h. */ |
| 27053 | _ACEOF |
| 27054 | cat confdefs.h >>conftest.$ac_ext |
| 27055 | cat >>conftest.$ac_ext <<_ACEOF |
| 27056 | /* end confdefs.h. */ |
| 27057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27058 | /* Override any GCC internal prototype to avoid an error. |
| 27059 | Use char because int might match the return type of a GCC |
| 27060 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27061 | #ifdef __cplusplus |
| 27062 | extern "C" |
| 27063 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27064 | char lt_dlopen (); |
| 27065 | int |
| 27066 | main () |
| 27067 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27068 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27069 | ; |
| 27070 | return 0; |
| 27071 | } |
| 27072 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27073 | for ac_lib in '' ltdl; do |
| 27074 | if test -z "$ac_lib"; then |
| 27075 | ac_res="none required" |
| 27076 | else |
| 27077 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27078 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27079 | fi |
| 27080 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27081 | if { (ac_try="$ac_link" |
| 27082 | case "(($ac_try" in |
| 27083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27084 | *) ac_try_echo=$ac_try;; |
| 27085 | esac |
| 27086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27087 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27088 | ac_status=$? |
| 27089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27090 | rm -f conftest.er1 |
| 27091 | cat conftest.err >&5 |
| 27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27093 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27094 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27095 | { (case "(($ac_try" in |
| 27096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27097 | *) ac_try_echo=$ac_try;; |
| 27098 | esac |
| 27099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27100 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27101 | ac_status=$? |
| 27102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27103 | (exit $ac_status); }; } && |
| 27104 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27105 | { (case "(($ac_try" in |
| 27106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27107 | *) ac_try_echo=$ac_try;; |
| 27108 | esac |
| 27109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27110 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27111 | ac_status=$? |
| 27112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27113 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27114 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27115 | else |
| 27116 | echo "$as_me: failed program was:" >&5 |
| 27117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27119 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27120 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27121 | |
| 27122 | rm -f core conftest.err conftest.$ac_objext \ |
| 27123 | conftest$ac_exeext |
| 27124 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27125 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27126 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27127 | done |
| 27128 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27129 | : |
| 27130 | else |
| 27131 | ac_cv_search_lt_dlopen=no |
| 27132 | fi |
| 27133 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27134 | LIBS=$ac_func_search_save_LIBS |
| 27135 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27136 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27137 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27138 | ac_res=$ac_cv_search_lt_dlopen |
| 27139 | if test "$ac_res" != no; then |
| 27140 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27141 | |
| 27142 | cat >>confdefs.h <<\_ACEOF |
| 27143 | #define HAVE_LT_DLOPEN 1 |
| 27144 | _ACEOF |
| 27145 | |
| 27146 | else |
| 27147 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27148 | not be available" >&5 |
| 27149 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27150 | not be available" >&2;} |
| 27151 | fi |
| 27152 | |
| 27153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27154 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27155 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27156 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27158 | else |
| 27159 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27160 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27161 | /* confdefs.h. */ |
| 27162 | _ACEOF |
| 27163 | cat confdefs.h >>conftest.$ac_ext |
| 27164 | cat >>conftest.$ac_ext <<_ACEOF |
| 27165 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27167 | /* Override any GCC internal prototype to avoid an error. |
| 27168 | Use char because int might match the return type of a GCC |
| 27169 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27170 | #ifdef __cplusplus |
| 27171 | extern "C" |
| 27172 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27173 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27174 | int |
| 27175 | main () |
| 27176 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27177 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27178 | ; |
| 27179 | return 0; |
| 27180 | } |
| 27181 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27182 | for ac_lib in '' dl; do |
| 27183 | if test -z "$ac_lib"; then |
| 27184 | ac_res="none required" |
| 27185 | else |
| 27186 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27187 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27188 | fi |
| 27189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27190 | if { (ac_try="$ac_link" |
| 27191 | case "(($ac_try" in |
| 27192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27193 | *) ac_try_echo=$ac_try;; |
| 27194 | esac |
| 27195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27196 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27197 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27199 | rm -f conftest.er1 |
| 27200 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27202 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27204 | { (case "(($ac_try" in |
| 27205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27206 | *) ac_try_echo=$ac_try;; |
| 27207 | esac |
| 27208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27209 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27210 | ac_status=$? |
| 27211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27212 | (exit $ac_status); }; } && |
| 27213 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27214 | { (case "(($ac_try" in |
| 27215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27216 | *) ac_try_echo=$ac_try;; |
| 27217 | esac |
| 27218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27219 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27220 | ac_status=$? |
| 27221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27222 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27223 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27224 | else |
| 27225 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27228 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27229 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27230 | |
| 27231 | rm -f core conftest.err conftest.$ac_objext \ |
| 27232 | conftest$ac_exeext |
| 27233 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27234 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27235 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27236 | done |
| 27237 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27238 | : |
| 27239 | else |
| 27240 | ac_cv_search_dlopen=no |
| 27241 | fi |
| 27242 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27243 | LIBS=$ac_func_search_save_LIBS |
| 27244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27245 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27246 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27247 | ac_res=$ac_cv_search_dlopen |
| 27248 | if test "$ac_res" != no; then |
| 27249 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27250 | |
| 27251 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27252 | #define HAVE_DLOPEN 1 |
| 27253 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27254 | |
| 27255 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27256 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27257 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27258 | fi |
| 27259 | |
| 27260 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27261 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27262 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27263 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27265 | else |
| 27266 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27267 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27268 | /* confdefs.h. */ |
| 27269 | _ACEOF |
| 27270 | cat confdefs.h >>conftest.$ac_ext |
| 27271 | cat >>conftest.$ac_ext <<_ACEOF |
| 27272 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27274 | /* Override any GCC internal prototype to avoid an error. |
| 27275 | Use char because int might match the return type of a GCC |
| 27276 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27277 | #ifdef __cplusplus |
| 27278 | extern "C" |
| 27279 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27280 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27281 | int |
| 27282 | main () |
| 27283 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27284 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27285 | ; |
| 27286 | return 0; |
| 27287 | } |
| 27288 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27289 | for ac_lib in '' malloc; do |
| 27290 | if test -z "$ac_lib"; then |
| 27291 | ac_res="none required" |
| 27292 | else |
| 27293 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27294 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27295 | fi |
| 27296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27297 | if { (ac_try="$ac_link" |
| 27298 | case "(($ac_try" in |
| 27299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27300 | *) ac_try_echo=$ac_try;; |
| 27301 | esac |
| 27302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27303 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27304 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27306 | rm -f conftest.er1 |
| 27307 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27309 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27311 | { (case "(($ac_try" in |
| 27312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27313 | *) ac_try_echo=$ac_try;; |
| 27314 | esac |
| 27315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27316 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27317 | ac_status=$? |
| 27318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27319 | (exit $ac_status); }; } && |
| 27320 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27321 | { (case "(($ac_try" in |
| 27322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27323 | *) ac_try_echo=$ac_try;; |
| 27324 | esac |
| 27325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27326 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27327 | ac_status=$? |
| 27328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27329 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27330 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27331 | else |
| 27332 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27335 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27336 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27337 | |
| 27338 | rm -f core conftest.err conftest.$ac_objext \ |
| 27339 | conftest$ac_exeext |
| 27340 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27341 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27342 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27343 | done |
| 27344 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27345 | : |
| 27346 | else |
| 27347 | ac_cv_search_mallinfo=no |
| 27348 | fi |
| 27349 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27350 | LIBS=$ac_func_search_save_LIBS |
| 27351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27352 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27353 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27354 | ac_res=$ac_cv_search_mallinfo |
| 27355 | if test "$ac_res" != no; then |
| 27356 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27357 | |
| 27358 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27359 | #define HAVE_MALLINFO 1 |
| 27360 | _ACEOF |
| 27361 | |
| 27362 | fi |
| 27363 | |
| 27364 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27365 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27366 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27367 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27368 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27369 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27371 | else |
| 27372 | ac_check_lib_save_LIBS=$LIBS |
| 27373 | LIBS="-lpthread $LIBS" |
| 27374 | cat >conftest.$ac_ext <<_ACEOF |
| 27375 | /* confdefs.h. */ |
| 27376 | _ACEOF |
| 27377 | cat confdefs.h >>conftest.$ac_ext |
| 27378 | cat >>conftest.$ac_ext <<_ACEOF |
| 27379 | /* end confdefs.h. */ |
| 27380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27381 | /* Override any GCC internal prototype to avoid an error. |
| 27382 | Use char because int might match the return type of a GCC |
| 27383 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27384 | #ifdef __cplusplus |
| 27385 | extern "C" |
| 27386 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27387 | char pthread_mutex_init (); |
| 27388 | int |
| 27389 | main () |
| 27390 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27391 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27392 | ; |
| 27393 | return 0; |
| 27394 | } |
| 27395 | _ACEOF |
| 27396 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27397 | if { (ac_try="$ac_link" |
| 27398 | case "(($ac_try" in |
| 27399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27400 | *) ac_try_echo=$ac_try;; |
| 27401 | esac |
| 27402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27403 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27404 | ac_status=$? |
| 27405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27406 | rm -f conftest.er1 |
| 27407 | cat conftest.err >&5 |
| 27408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27409 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27411 | { (case "(($ac_try" in |
| 27412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27413 | *) ac_try_echo=$ac_try;; |
| 27414 | esac |
| 27415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27416 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27417 | ac_status=$? |
| 27418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27419 | (exit $ac_status); }; } && |
| 27420 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27421 | { (case "(($ac_try" in |
| 27422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27423 | *) ac_try_echo=$ac_try;; |
| 27424 | esac |
| 27425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27426 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27427 | ac_status=$? |
| 27428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27429 | (exit $ac_status); }; }; then |
| 27430 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27431 | else |
| 27432 | echo "$as_me: failed program was:" >&5 |
| 27433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27435 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27437 | |
| 27438 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27439 | conftest$ac_exeext conftest.$ac_ext |
| 27440 | LIBS=$ac_check_lib_save_LIBS |
| 27441 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27442 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27443 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27444 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27445 | cat >>confdefs.h <<_ACEOF |
| 27446 | #define HAVE_LIBPTHREAD 1 |
| 27447 | _ACEOF |
| 27448 | |
| 27449 | LIBS="-lpthread $LIBS" |
| 27450 | |
| 27451 | fi |
| 27452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27453 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27454 | echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27455 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27457 | else |
| 27458 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27459 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27460 | /* confdefs.h. */ |
| 27461 | _ACEOF |
| 27462 | cat confdefs.h >>conftest.$ac_ext |
| 27463 | cat >>conftest.$ac_ext <<_ACEOF |
| 27464 | /* end confdefs.h. */ |
| 27465 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27466 | /* Override any GCC internal prototype to avoid an error. |
| 27467 | Use char because int might match the return type of a GCC |
| 27468 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27469 | #ifdef __cplusplus |
| 27470 | extern "C" |
| 27471 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27472 | char pthread_mutex_lock (); |
| 27473 | int |
| 27474 | main () |
| 27475 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27476 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27477 | ; |
| 27478 | return 0; |
| 27479 | } |
| 27480 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27481 | for ac_lib in '' pthread; do |
| 27482 | if test -z "$ac_lib"; then |
| 27483 | ac_res="none required" |
| 27484 | else |
| 27485 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27486 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27487 | fi |
| 27488 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27489 | if { (ac_try="$ac_link" |
| 27490 | case "(($ac_try" in |
| 27491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27492 | *) ac_try_echo=$ac_try;; |
| 27493 | esac |
| 27494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27495 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27496 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27498 | rm -f conftest.er1 |
| 27499 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27501 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27503 | { (case "(($ac_try" in |
| 27504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27505 | *) ac_try_echo=$ac_try;; |
| 27506 | esac |
| 27507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27508 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27509 | ac_status=$? |
| 27510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27511 | (exit $ac_status); }; } && |
| 27512 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27513 | { (case "(($ac_try" in |
| 27514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27515 | *) ac_try_echo=$ac_try;; |
| 27516 | esac |
| 27517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27518 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27519 | ac_status=$? |
| 27520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27521 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27522 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27523 | else |
| 27524 | echo "$as_me: failed program was:" >&5 |
| 27525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27527 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27528 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27529 | |
| 27530 | rm -f core conftest.err conftest.$ac_objext \ |
| 27531 | conftest$ac_exeext |
| 27532 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27533 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27534 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27535 | done |
| 27536 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27537 | : |
| 27538 | else |
| 27539 | ac_cv_search_pthread_mutex_lock=no |
| 27540 | fi |
| 27541 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27542 | LIBS=$ac_func_search_save_LIBS |
| 27543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27544 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27545 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27546 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27547 | if test "$ac_res" != no; then |
| 27548 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27549 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27550 | cat >>confdefs.h <<\_ACEOF |
| 27551 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27552 | _ACEOF |
| 27553 | |
| 27554 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27555 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27556 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27557 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27558 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27559 | |
| 27560 | |
| 27561 | |
| 27562 | |
| 27563 | |
| 27564 | ac_header_dirent=no |
| 27565 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27566 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27567 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27568 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27571 | else |
| 27572 | cat >conftest.$ac_ext <<_ACEOF |
| 27573 | /* confdefs.h. */ |
| 27574 | _ACEOF |
| 27575 | cat confdefs.h >>conftest.$ac_ext |
| 27576 | cat >>conftest.$ac_ext <<_ACEOF |
| 27577 | /* end confdefs.h. */ |
| 27578 | #include <sys/types.h> |
| 27579 | #include <$ac_hdr> |
| 27580 | |
| 27581 | int |
| 27582 | main () |
| 27583 | { |
| 27584 | if ((DIR *) 0) |
| 27585 | return 0; |
| 27586 | ; |
| 27587 | return 0; |
| 27588 | } |
| 27589 | _ACEOF |
| 27590 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27591 | if { (ac_try="$ac_compile" |
| 27592 | case "(($ac_try" in |
| 27593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27594 | *) ac_try_echo=$ac_try;; |
| 27595 | esac |
| 27596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27597 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27598 | ac_status=$? |
| 27599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27600 | rm -f conftest.er1 |
| 27601 | cat conftest.err >&5 |
| 27602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27603 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27605 | { (case "(($ac_try" in |
| 27606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27607 | *) ac_try_echo=$ac_try;; |
| 27608 | esac |
| 27609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27610 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27611 | ac_status=$? |
| 27612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27613 | (exit $ac_status); }; } && |
| 27614 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27615 | { (case "(($ac_try" in |
| 27616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27617 | *) ac_try_echo=$ac_try;; |
| 27618 | esac |
| 27619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27620 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27621 | ac_status=$? |
| 27622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27623 | (exit $ac_status); }; }; then |
| 27624 | eval "$as_ac_Header=yes" |
| 27625 | else |
| 27626 | echo "$as_me: failed program was:" >&5 |
| 27627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27629 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27630 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27631 | |
| 27632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27634 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27635 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27636 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27638 | cat >>confdefs.h <<_ACEOF |
| 27639 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 27640 | _ACEOF |
| 27641 | |
| 27642 | ac_header_dirent=$ac_hdr; break |
| 27643 | fi |
| 27644 | |
| 27645 | done |
| 27646 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 27647 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27648 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27649 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27650 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27652 | else |
| 27653 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27654 | cat >conftest.$ac_ext <<_ACEOF |
| 27655 | /* confdefs.h. */ |
| 27656 | _ACEOF |
| 27657 | cat confdefs.h >>conftest.$ac_ext |
| 27658 | cat >>conftest.$ac_ext <<_ACEOF |
| 27659 | /* end confdefs.h. */ |
| 27660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27661 | /* Override any GCC internal prototype to avoid an error. |
| 27662 | Use char because int might match the return type of a GCC |
| 27663 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27664 | #ifdef __cplusplus |
| 27665 | extern "C" |
| 27666 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27667 | char opendir (); |
| 27668 | int |
| 27669 | main () |
| 27670 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27671 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27672 | ; |
| 27673 | return 0; |
| 27674 | } |
| 27675 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27676 | for ac_lib in '' dir; do |
| 27677 | if test -z "$ac_lib"; then |
| 27678 | ac_res="none required" |
| 27679 | else |
| 27680 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27681 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27682 | fi |
| 27683 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27684 | if { (ac_try="$ac_link" |
| 27685 | case "(($ac_try" in |
| 27686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27687 | *) ac_try_echo=$ac_try;; |
| 27688 | esac |
| 27689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27690 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27691 | ac_status=$? |
| 27692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27693 | rm -f conftest.er1 |
| 27694 | cat conftest.err >&5 |
| 27695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27696 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27698 | { (case "(($ac_try" in |
| 27699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27700 | *) ac_try_echo=$ac_try;; |
| 27701 | esac |
| 27702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27703 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27704 | ac_status=$? |
| 27705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27706 | (exit $ac_status); }; } && |
| 27707 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27708 | { (case "(($ac_try" in |
| 27709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27710 | *) ac_try_echo=$ac_try;; |
| 27711 | esac |
| 27712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27713 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27714 | ac_status=$? |
| 27715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27716 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27717 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27718 | else |
| 27719 | echo "$as_me: failed program was:" >&5 |
| 27720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27722 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27723 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27724 | |
| 27725 | rm -f core conftest.err conftest.$ac_objext \ |
| 27726 | conftest$ac_exeext |
| 27727 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27728 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27729 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27730 | done |
| 27731 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27732 | : |
| 27733 | else |
| 27734 | ac_cv_search_opendir=no |
| 27735 | fi |
| 27736 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27737 | LIBS=$ac_func_search_save_LIBS |
| 27738 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27739 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27740 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27741 | ac_res=$ac_cv_search_opendir |
| 27742 | if test "$ac_res" != no; then |
| 27743 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27744 | |
| 27745 | fi |
| 27746 | |
| 27747 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27748 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27749 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27750 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27752 | else |
| 27753 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27754 | cat >conftest.$ac_ext <<_ACEOF |
| 27755 | /* confdefs.h. */ |
| 27756 | _ACEOF |
| 27757 | cat confdefs.h >>conftest.$ac_ext |
| 27758 | cat >>conftest.$ac_ext <<_ACEOF |
| 27759 | /* end confdefs.h. */ |
| 27760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27761 | /* Override any GCC internal prototype to avoid an error. |
| 27762 | Use char because int might match the return type of a GCC |
| 27763 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27764 | #ifdef __cplusplus |
| 27765 | extern "C" |
| 27766 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27767 | char opendir (); |
| 27768 | int |
| 27769 | main () |
| 27770 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27771 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27772 | ; |
| 27773 | return 0; |
| 27774 | } |
| 27775 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27776 | for ac_lib in '' x; do |
| 27777 | if test -z "$ac_lib"; then |
| 27778 | ac_res="none required" |
| 27779 | else |
| 27780 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27781 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27782 | fi |
| 27783 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27784 | if { (ac_try="$ac_link" |
| 27785 | case "(($ac_try" in |
| 27786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27787 | *) ac_try_echo=$ac_try;; |
| 27788 | esac |
| 27789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27790 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27791 | ac_status=$? |
| 27792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27793 | rm -f conftest.er1 |
| 27794 | cat conftest.err >&5 |
| 27795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27796 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27798 | { (case "(($ac_try" in |
| 27799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27800 | *) ac_try_echo=$ac_try;; |
| 27801 | esac |
| 27802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27803 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27804 | ac_status=$? |
| 27805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27806 | (exit $ac_status); }; } && |
| 27807 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27808 | { (case "(($ac_try" in |
| 27809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27810 | *) ac_try_echo=$ac_try;; |
| 27811 | esac |
| 27812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27813 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27814 | ac_status=$? |
| 27815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27816 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27817 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27818 | else |
| 27819 | echo "$as_me: failed program was:" >&5 |
| 27820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27821 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27822 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27823 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27824 | |
| 27825 | rm -f core conftest.err conftest.$ac_objext \ |
| 27826 | conftest$ac_exeext |
| 27827 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27828 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27829 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27830 | done |
| 27831 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27832 | : |
| 27833 | else |
| 27834 | ac_cv_search_opendir=no |
| 27835 | fi |
| 27836 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27837 | LIBS=$ac_func_search_save_LIBS |
| 27838 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27839 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27840 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27841 | ac_res=$ac_cv_search_opendir |
| 27842 | if test "$ac_res" != no; then |
| 27843 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27844 | |
| 27845 | fi |
| 27846 | |
| 27847 | fi |
| 27848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27849 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 27850 | echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27851 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 27852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27853 | else |
| 27854 | ac_ext=c |
| 27855 | ac_cpp='$CPP $CPPFLAGS' |
| 27856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27859 | |
| 27860 | cat >conftest.$ac_ext <<_ACEOF |
| 27861 | /* confdefs.h. */ |
| 27862 | _ACEOF |
| 27863 | cat confdefs.h >>conftest.$ac_ext |
| 27864 | cat >>conftest.$ac_ext <<_ACEOF |
| 27865 | /* end confdefs.h. */ |
| 27866 | #include <sys/mman.h> |
| 27867 | #include <unistd.h> |
| 27868 | #include <fcntl.h> |
| 27869 | int |
| 27870 | main () |
| 27871 | { |
| 27872 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 27873 | ; |
| 27874 | return 0; |
| 27875 | } |
| 27876 | _ACEOF |
| 27877 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27878 | if { (ac_try="$ac_compile" |
| 27879 | case "(($ac_try" in |
| 27880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27881 | *) ac_try_echo=$ac_try;; |
| 27882 | esac |
| 27883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27884 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27885 | ac_status=$? |
| 27886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27887 | rm -f conftest.er1 |
| 27888 | cat conftest.err >&5 |
| 27889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27890 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27892 | { (case "(($ac_try" in |
| 27893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27894 | *) ac_try_echo=$ac_try;; |
| 27895 | esac |
| 27896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27897 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27898 | ac_status=$? |
| 27899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27900 | (exit $ac_status); }; } && |
| 27901 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27902 | { (case "(($ac_try" in |
| 27903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27904 | *) ac_try_echo=$ac_try;; |
| 27905 | esac |
| 27906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27907 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27908 | ac_status=$? |
| 27909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27910 | (exit $ac_status); }; }; then |
| 27911 | ac_cv_header_mmap_anon=yes |
| 27912 | else |
| 27913 | echo "$as_me: failed program was:" >&5 |
| 27914 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27916 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27918 | |
| 27919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27920 | ac_ext=c |
| 27921 | ac_cpp='$CPP $CPPFLAGS' |
| 27922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27925 | |
| 27926 | |
| 27927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27928 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 27929 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27930 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 27931 | |
| 27932 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 27933 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27934 | _ACEOF |
| 27935 | |
| 27936 | fi |
| 27937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27938 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 27939 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27940 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 27941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27942 | else |
| 27943 | cat >conftest.$ac_ext <<_ACEOF |
| 27944 | /* confdefs.h. */ |
| 27945 | _ACEOF |
| 27946 | cat confdefs.h >>conftest.$ac_ext |
| 27947 | cat >>conftest.$ac_ext <<_ACEOF |
| 27948 | /* end confdefs.h. */ |
| 27949 | #include <sys/types.h> |
| 27950 | #include <sys/stat.h> |
| 27951 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27952 | #if defined S_ISBLK && defined S_IFDIR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27953 | # if S_ISBLK (S_IFDIR) |
| 27954 | You lose. |
| 27955 | # endif |
| 27956 | #endif |
| 27957 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27958 | #if defined S_ISBLK && defined S_IFCHR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27959 | # if S_ISBLK (S_IFCHR) |
| 27960 | You lose. |
| 27961 | # endif |
| 27962 | #endif |
| 27963 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27964 | #if defined S_ISLNK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27965 | # if S_ISLNK (S_IFREG) |
| 27966 | You lose. |
| 27967 | # endif |
| 27968 | #endif |
| 27969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27970 | #if defined S_ISSOCK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27971 | # if S_ISSOCK (S_IFREG) |
| 27972 | You lose. |
| 27973 | # endif |
| 27974 | #endif |
| 27975 | |
| 27976 | _ACEOF |
| 27977 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27978 | $EGREP "You lose" >/dev/null 2>&1; then |
| 27979 | ac_cv_header_stat_broken=yes |
| 27980 | else |
| 27981 | ac_cv_header_stat_broken=no |
| 27982 | fi |
| 27983 | rm -f conftest* |
| 27984 | |
| 27985 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27986 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 27987 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27988 | if test $ac_cv_header_stat_broken = yes; then |
| 27989 | |
| 27990 | cat >>confdefs.h <<\_ACEOF |
| 27991 | #define STAT_MACROS_BROKEN 1 |
| 27992 | _ACEOF |
| 27993 | |
| 27994 | fi |
| 27995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27996 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 27997 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27998 | if test "${ac_cv_header_stdc+set}" = set; then |
| 27999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28000 | else |
| 28001 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28002 | /* confdefs.h. */ |
| 28003 | _ACEOF |
| 28004 | cat confdefs.h >>conftest.$ac_ext |
| 28005 | cat >>conftest.$ac_ext <<_ACEOF |
| 28006 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28007 | #include <stdlib.h> |
| 28008 | #include <stdarg.h> |
| 28009 | #include <string.h> |
| 28010 | #include <float.h> |
| 28011 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28012 | int |
| 28013 | main () |
| 28014 | { |
| 28015 | |
| 28016 | ; |
| 28017 | return 0; |
| 28018 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28019 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28020 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28021 | if { (ac_try="$ac_compile" |
| 28022 | case "(($ac_try" in |
| 28023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28024 | *) ac_try_echo=$ac_try;; |
| 28025 | esac |
| 28026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28027 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28028 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28030 | rm -f conftest.er1 |
| 28031 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28033 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28035 | { (case "(($ac_try" in |
| 28036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28037 | *) ac_try_echo=$ac_try;; |
| 28038 | esac |
| 28039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28040 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28041 | ac_status=$? |
| 28042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28043 | (exit $ac_status); }; } && |
| 28044 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28045 | { (case "(($ac_try" in |
| 28046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28047 | *) ac_try_echo=$ac_try;; |
| 28048 | esac |
| 28049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28050 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28051 | ac_status=$? |
| 28052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28053 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28054 | ac_cv_header_stdc=yes |
| 28055 | else |
| 28056 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28059 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28061 | |
| 28062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28063 | |
| 28064 | if test $ac_cv_header_stdc = yes; then |
| 28065 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28066 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28067 | /* confdefs.h. */ |
| 28068 | _ACEOF |
| 28069 | cat confdefs.h >>conftest.$ac_ext |
| 28070 | cat >>conftest.$ac_ext <<_ACEOF |
| 28071 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28072 | #include <string.h> |
| 28073 | |
| 28074 | _ACEOF |
| 28075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28076 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28077 | : |
| 28078 | else |
| 28079 | ac_cv_header_stdc=no |
| 28080 | fi |
| 28081 | rm -f conftest* |
| 28082 | |
| 28083 | fi |
| 28084 | |
| 28085 | if test $ac_cv_header_stdc = yes; then |
| 28086 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28087 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28088 | /* confdefs.h. */ |
| 28089 | _ACEOF |
| 28090 | cat confdefs.h >>conftest.$ac_ext |
| 28091 | cat >>conftest.$ac_ext <<_ACEOF |
| 28092 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28093 | #include <stdlib.h> |
| 28094 | |
| 28095 | _ACEOF |
| 28096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28097 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28098 | : |
| 28099 | else |
| 28100 | ac_cv_header_stdc=no |
| 28101 | fi |
| 28102 | rm -f conftest* |
| 28103 | |
| 28104 | fi |
| 28105 | |
| 28106 | if test $ac_cv_header_stdc = yes; then |
| 28107 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28108 | if test "$cross_compiling" = yes; then |
| 28109 | : |
| 28110 | else |
| 28111 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28112 | /* confdefs.h. */ |
| 28113 | _ACEOF |
| 28114 | cat confdefs.h >>conftest.$ac_ext |
| 28115 | cat >>conftest.$ac_ext <<_ACEOF |
| 28116 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28117 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28118 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28119 | #if ((' ' & 0x0FF) == 0x020) |
| 28120 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28121 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28122 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28123 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28124 | (('a' <= (c) && (c) <= 'i') \ |
| 28125 | || ('j' <= (c) && (c) <= 'r') \ |
| 28126 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28127 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28128 | #endif |
| 28129 | |
| 28130 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28131 | int |
| 28132 | main () |
| 28133 | { |
| 28134 | int i; |
| 28135 | for (i = 0; i < 256; i++) |
| 28136 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28137 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28138 | return 2; |
| 28139 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28140 | } |
| 28141 | _ACEOF |
| 28142 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28143 | if { (ac_try="$ac_link" |
| 28144 | case "(($ac_try" in |
| 28145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28146 | *) ac_try_echo=$ac_try;; |
| 28147 | esac |
| 28148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28149 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28150 | ac_status=$? |
| 28151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28153 | { (case "(($ac_try" in |
| 28154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28155 | *) ac_try_echo=$ac_try;; |
| 28156 | esac |
| 28157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28158 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28159 | ac_status=$? |
| 28160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28161 | (exit $ac_status); }; }; then |
| 28162 | : |
| 28163 | else |
| 28164 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28165 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28168 | ( exit $ac_status ) |
| 28169 | ac_cv_header_stdc=no |
| 28170 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28172 | fi |
| 28173 | |
| 28174 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28175 | fi |
| 28176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28177 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28178 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28179 | if test $ac_cv_header_stdc = yes; then |
| 28180 | |
| 28181 | cat >>confdefs.h <<\_ACEOF |
| 28182 | #define STDC_HEADERS 1 |
| 28183 | _ACEOF |
| 28184 | |
| 28185 | fi |
| 28186 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28187 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28188 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28189 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28191 | else |
| 28192 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28193 | /* confdefs.h. */ |
| 28194 | _ACEOF |
| 28195 | cat confdefs.h >>conftest.$ac_ext |
| 28196 | cat >>conftest.$ac_ext <<_ACEOF |
| 28197 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28198 | #include <sys/types.h> |
| 28199 | #include <sys/wait.h> |
| 28200 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28201 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28202 | #endif |
| 28203 | #ifndef WIFEXITED |
| 28204 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28205 | #endif |
| 28206 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28207 | int |
| 28208 | main () |
| 28209 | { |
| 28210 | int s; |
| 28211 | wait (&s); |
| 28212 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28213 | ; |
| 28214 | return 0; |
| 28215 | } |
| 28216 | _ACEOF |
| 28217 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28218 | if { (ac_try="$ac_compile" |
| 28219 | case "(($ac_try" in |
| 28220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28221 | *) ac_try_echo=$ac_try;; |
| 28222 | esac |
| 28223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28224 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28225 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28227 | rm -f conftest.er1 |
| 28228 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28230 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28232 | { (case "(($ac_try" in |
| 28233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28234 | *) ac_try_echo=$ac_try;; |
| 28235 | esac |
| 28236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28237 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28238 | ac_status=$? |
| 28239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28240 | (exit $ac_status); }; } && |
| 28241 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28242 | { (case "(($ac_try" in |
| 28243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28244 | *) ac_try_echo=$ac_try;; |
| 28245 | esac |
| 28246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28247 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28248 | ac_status=$? |
| 28249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28250 | (exit $ac_status); }; }; then |
| 28251 | ac_cv_header_sys_wait_h=yes |
| 28252 | else |
| 28253 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28256 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28257 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28258 | |
| 28259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28260 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28261 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28262 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28263 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28264 | |
| 28265 | cat >>confdefs.h <<\_ACEOF |
| 28266 | #define HAVE_SYS_WAIT_H 1 |
| 28267 | _ACEOF |
| 28268 | |
| 28269 | fi |
| 28270 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28271 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28272 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28273 | if test "${ac_cv_header_time+set}" = set; then |
| 28274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28275 | else |
| 28276 | cat >conftest.$ac_ext <<_ACEOF |
| 28277 | /* confdefs.h. */ |
| 28278 | _ACEOF |
| 28279 | cat confdefs.h >>conftest.$ac_ext |
| 28280 | cat >>conftest.$ac_ext <<_ACEOF |
| 28281 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28282 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28283 | #include <sys/time.h> |
| 28284 | #include <time.h> |
| 28285 | |
| 28286 | int |
| 28287 | main () |
| 28288 | { |
| 28289 | if ((struct tm *) 0) |
| 28290 | return 0; |
| 28291 | ; |
| 28292 | return 0; |
| 28293 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28294 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28295 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28296 | if { (ac_try="$ac_compile" |
| 28297 | case "(($ac_try" in |
| 28298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28299 | *) ac_try_echo=$ac_try;; |
| 28300 | esac |
| 28301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28302 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28303 | ac_status=$? |
| 28304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28305 | rm -f conftest.er1 |
| 28306 | cat conftest.err >&5 |
| 28307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28308 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28310 | { (case "(($ac_try" in |
| 28311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28312 | *) ac_try_echo=$ac_try;; |
| 28313 | esac |
| 28314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28315 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28316 | ac_status=$? |
| 28317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28318 | (exit $ac_status); }; } && |
| 28319 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28320 | { (case "(($ac_try" in |
| 28321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28322 | *) ac_try_echo=$ac_try;; |
| 28323 | esac |
| 28324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28325 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28326 | ac_status=$? |
| 28327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28328 | (exit $ac_status); }; }; then |
| 28329 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28330 | else |
| 28331 | echo "$as_me: failed program was:" >&5 |
| 28332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28333 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28334 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28336 | |
| 28337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28338 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28339 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28340 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28341 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28342 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28343 | cat >>confdefs.h <<\_ACEOF |
| 28344 | #define TIME_WITH_SYS_TIME 1 |
| 28345 | _ACEOF |
| 28346 | |
| 28347 | fi |
| 28348 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28349 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28350 | |
| 28351 | |
| 28352 | |
| 28353 | |
| 28354 | |
| 28355 | |
| 28356 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28357 | do |
| 28358 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28359 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28360 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28362 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28365 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28366 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28367 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28368 | else |
| 28369 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28370 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28371 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28372 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28373 | /* confdefs.h. */ |
| 28374 | _ACEOF |
| 28375 | cat confdefs.h >>conftest.$ac_ext |
| 28376 | cat >>conftest.$ac_ext <<_ACEOF |
| 28377 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28378 | $ac_includes_default |
| 28379 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28380 | _ACEOF |
| 28381 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28382 | if { (ac_try="$ac_compile" |
| 28383 | case "(($ac_try" in |
| 28384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28385 | *) ac_try_echo=$ac_try;; |
| 28386 | esac |
| 28387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28388 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28389 | ac_status=$? |
| 28390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28391 | rm -f conftest.er1 |
| 28392 | cat conftest.err >&5 |
| 28393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28394 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28396 | { (case "(($ac_try" in |
| 28397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28398 | *) ac_try_echo=$ac_try;; |
| 28399 | esac |
| 28400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28401 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28402 | ac_status=$? |
| 28403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28404 | (exit $ac_status); }; } && |
| 28405 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28406 | { (case "(($ac_try" in |
| 28407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28408 | *) ac_try_echo=$ac_try;; |
| 28409 | esac |
| 28410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28411 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28412 | ac_status=$? |
| 28413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28414 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28415 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28416 | else |
| 28417 | echo "$as_me: failed program was:" >&5 |
| 28418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28419 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28420 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28421 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28422 | |
| 28423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28424 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28425 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28426 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28427 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28428 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28429 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28430 | cat >conftest.$ac_ext <<_ACEOF |
| 28431 | /* confdefs.h. */ |
| 28432 | _ACEOF |
| 28433 | cat confdefs.h >>conftest.$ac_ext |
| 28434 | cat >>conftest.$ac_ext <<_ACEOF |
| 28435 | /* end confdefs.h. */ |
| 28436 | #include <$ac_header> |
| 28437 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28439 | case "(($ac_try" in |
| 28440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28441 | *) ac_try_echo=$ac_try;; |
| 28442 | esac |
| 28443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28445 | ac_status=$? |
| 28446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28447 | rm -f conftest.er1 |
| 28448 | cat conftest.err >&5 |
| 28449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28450 | (exit $ac_status); } >/dev/null; then |
| 28451 | if test -s conftest.err; then |
| 28452 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28453 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28454 | else |
| 28455 | ac_cpp_err= |
| 28456 | fi |
| 28457 | else |
| 28458 | ac_cpp_err=yes |
| 28459 | fi |
| 28460 | if test -z "$ac_cpp_err"; then |
| 28461 | ac_header_preproc=yes |
| 28462 | else |
| 28463 | echo "$as_me: failed program was:" >&5 |
| 28464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28465 | |
| 28466 | ac_header_preproc=no |
| 28467 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28468 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28469 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28470 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28471 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28472 | |
| 28473 | # So? What about this header? |
| 28474 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28475 | yes:no: ) |
| 28476 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28477 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28478 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28479 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28480 | ac_header_preproc=yes |
| 28481 | ;; |
| 28482 | no:yes:* ) |
| 28483 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28484 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28485 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28486 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28487 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28488 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28489 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28490 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28491 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28492 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28493 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28494 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28495 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28496 | ## ----------------------------------- ## |
| 28497 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28498 | ## ----------------------------------- ## |
| 28499 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28500 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28501 | ;; |
| 28502 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28503 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28507 | else |
| 28508 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28510 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28512 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28513 | |
| 28514 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28515 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28516 | cat >>confdefs.h <<_ACEOF |
| 28517 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28518 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28519 | |
| 28520 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28521 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28522 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28523 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28524 | |
| 28525 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28526 | |
| 28527 | |
| 28528 | |
| 28529 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28530 | for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28531 | do |
| 28532 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28533 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28534 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28535 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28539 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28540 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28541 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28542 | else |
| 28543 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28544 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28545 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28546 | cat >conftest.$ac_ext <<_ACEOF |
| 28547 | /* confdefs.h. */ |
| 28548 | _ACEOF |
| 28549 | cat confdefs.h >>conftest.$ac_ext |
| 28550 | cat >>conftest.$ac_ext <<_ACEOF |
| 28551 | /* end confdefs.h. */ |
| 28552 | $ac_includes_default |
| 28553 | #include <$ac_header> |
| 28554 | _ACEOF |
| 28555 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28556 | if { (ac_try="$ac_compile" |
| 28557 | case "(($ac_try" in |
| 28558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28559 | *) ac_try_echo=$ac_try;; |
| 28560 | esac |
| 28561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28562 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28563 | ac_status=$? |
| 28564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28565 | rm -f conftest.er1 |
| 28566 | cat conftest.err >&5 |
| 28567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28568 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28570 | { (case "(($ac_try" in |
| 28571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28572 | *) ac_try_echo=$ac_try;; |
| 28573 | esac |
| 28574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28575 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28576 | ac_status=$? |
| 28577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28578 | (exit $ac_status); }; } && |
| 28579 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28580 | { (case "(($ac_try" in |
| 28581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28582 | *) ac_try_echo=$ac_try;; |
| 28583 | esac |
| 28584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28585 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28586 | ac_status=$? |
| 28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28588 | (exit $ac_status); }; }; then |
| 28589 | ac_header_compiler=yes |
| 28590 | else |
| 28591 | echo "$as_me: failed program was:" >&5 |
| 28592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28594 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28595 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28596 | |
| 28597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28598 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28599 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28600 | |
| 28601 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28602 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28603 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28604 | cat >conftest.$ac_ext <<_ACEOF |
| 28605 | /* confdefs.h. */ |
| 28606 | _ACEOF |
| 28607 | cat confdefs.h >>conftest.$ac_ext |
| 28608 | cat >>conftest.$ac_ext <<_ACEOF |
| 28609 | /* end confdefs.h. */ |
| 28610 | #include <$ac_header> |
| 28611 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28612 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28613 | case "(($ac_try" in |
| 28614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28615 | *) ac_try_echo=$ac_try;; |
| 28616 | esac |
| 28617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28618 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28619 | ac_status=$? |
| 28620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28621 | rm -f conftest.er1 |
| 28622 | cat conftest.err >&5 |
| 28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28624 | (exit $ac_status); } >/dev/null; then |
| 28625 | if test -s conftest.err; then |
| 28626 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28628 | else |
| 28629 | ac_cpp_err= |
| 28630 | fi |
| 28631 | else |
| 28632 | ac_cpp_err=yes |
| 28633 | fi |
| 28634 | if test -z "$ac_cpp_err"; then |
| 28635 | ac_header_preproc=yes |
| 28636 | else |
| 28637 | echo "$as_me: failed program was:" >&5 |
| 28638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28639 | |
| 28640 | ac_header_preproc=no |
| 28641 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28642 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28643 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28644 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28645 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28646 | |
| 28647 | # So? What about this header? |
| 28648 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28649 | yes:no: ) |
| 28650 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28651 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28653 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28654 | ac_header_preproc=yes |
| 28655 | ;; |
| 28656 | no:yes:* ) |
| 28657 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28658 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28659 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28660 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28661 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28662 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28663 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28664 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28667 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28668 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28669 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28670 | ## ----------------------------------- ## |
| 28671 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28672 | ## ----------------------------------- ## |
| 28673 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28674 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28675 | ;; |
| 28676 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28677 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28681 | else |
| 28682 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28683 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28684 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28686 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28687 | |
| 28688 | fi |
| 28689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28690 | cat >>confdefs.h <<_ACEOF |
| 28691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28692 | _ACEOF |
| 28693 | |
| 28694 | fi |
| 28695 | |
| 28696 | done |
| 28697 | |
| 28698 | |
| 28699 | |
| 28700 | |
| 28701 | |
| 28702 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28703 | for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28704 | do |
| 28705 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28707 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28709 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28711 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28714 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28715 | else |
| 28716 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28717 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28718 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28719 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28720 | /* confdefs.h. */ |
| 28721 | _ACEOF |
| 28722 | cat confdefs.h >>conftest.$ac_ext |
| 28723 | cat >>conftest.$ac_ext <<_ACEOF |
| 28724 | /* end confdefs.h. */ |
| 28725 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28726 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28727 | _ACEOF |
| 28728 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28729 | if { (ac_try="$ac_compile" |
| 28730 | case "(($ac_try" in |
| 28731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28732 | *) ac_try_echo=$ac_try;; |
| 28733 | esac |
| 28734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28735 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28736 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28738 | rm -f conftest.er1 |
| 28739 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28741 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28743 | { (case "(($ac_try" in |
| 28744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28745 | *) ac_try_echo=$ac_try;; |
| 28746 | esac |
| 28747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28748 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28749 | ac_status=$? |
| 28750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28751 | (exit $ac_status); }; } && |
| 28752 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28753 | { (case "(($ac_try" in |
| 28754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28755 | *) ac_try_echo=$ac_try;; |
| 28756 | esac |
| 28757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28758 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28759 | ac_status=$? |
| 28760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28761 | (exit $ac_status); }; }; then |
| 28762 | ac_header_compiler=yes |
| 28763 | else |
| 28764 | echo "$as_me: failed program was:" >&5 |
| 28765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28767 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28768 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28769 | |
| 28770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28771 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28772 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28773 | |
| 28774 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28775 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28776 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28777 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28778 | /* confdefs.h. */ |
| 28779 | _ACEOF |
| 28780 | cat confdefs.h >>conftest.$ac_ext |
| 28781 | cat >>conftest.$ac_ext <<_ACEOF |
| 28782 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28783 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28784 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28785 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28786 | case "(($ac_try" in |
| 28787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28788 | *) ac_try_echo=$ac_try;; |
| 28789 | esac |
| 28790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28791 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28792 | ac_status=$? |
| 28793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28794 | rm -f conftest.er1 |
| 28795 | cat conftest.err >&5 |
| 28796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28797 | (exit $ac_status); } >/dev/null; then |
| 28798 | if test -s conftest.err; then |
| 28799 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28800 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28801 | else |
| 28802 | ac_cpp_err= |
| 28803 | fi |
| 28804 | else |
| 28805 | ac_cpp_err=yes |
| 28806 | fi |
| 28807 | if test -z "$ac_cpp_err"; then |
| 28808 | ac_header_preproc=yes |
| 28809 | else |
| 28810 | echo "$as_me: failed program was:" >&5 |
| 28811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28812 | |
| 28813 | ac_header_preproc=no |
| 28814 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28815 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28816 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28817 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28818 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28819 | |
| 28820 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28821 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28822 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28823 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28824 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28826 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28827 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 28828 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28829 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28830 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28831 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28832 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28833 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28834 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28835 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28836 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28837 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28840 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28841 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28842 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28843 | ## ----------------------------------- ## |
| 28844 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28845 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28846 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28847 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28848 | ;; |
| 28849 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28854 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28855 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28856 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28859 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28860 | |
| 28861 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28862 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28863 | cat >>confdefs.h <<_ACEOF |
| 28864 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28865 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28866 | |
| 28867 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28868 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28869 | done |
| 28870 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 28871 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28872 | |
| 28873 | for ac_header in sys/types.h malloc/malloc.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28874 | do |
| 28875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28876 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28877 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28881 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28882 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28884 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28885 | else |
| 28886 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28887 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28888 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28889 | cat >conftest.$ac_ext <<_ACEOF |
| 28890 | /* confdefs.h. */ |
| 28891 | _ACEOF |
| 28892 | cat confdefs.h >>conftest.$ac_ext |
| 28893 | cat >>conftest.$ac_ext <<_ACEOF |
| 28894 | /* end confdefs.h. */ |
| 28895 | $ac_includes_default |
| 28896 | #include <$ac_header> |
| 28897 | _ACEOF |
| 28898 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28899 | if { (ac_try="$ac_compile" |
| 28900 | case "(($ac_try" in |
| 28901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28902 | *) ac_try_echo=$ac_try;; |
| 28903 | esac |
| 28904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28905 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28906 | ac_status=$? |
| 28907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28908 | rm -f conftest.er1 |
| 28909 | cat conftest.err >&5 |
| 28910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28911 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28913 | { (case "(($ac_try" in |
| 28914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28915 | *) ac_try_echo=$ac_try;; |
| 28916 | esac |
| 28917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28918 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28919 | ac_status=$? |
| 28920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28921 | (exit $ac_status); }; } && |
| 28922 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28923 | { (case "(($ac_try" in |
| 28924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28925 | *) ac_try_echo=$ac_try;; |
| 28926 | esac |
| 28927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28928 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28929 | ac_status=$? |
| 28930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28931 | (exit $ac_status); }; }; then |
| 28932 | ac_header_compiler=yes |
| 28933 | else |
| 28934 | echo "$as_me: failed program was:" >&5 |
| 28935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28937 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28938 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28939 | |
| 28940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28941 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28942 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28943 | |
| 28944 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28945 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28946 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28947 | cat >conftest.$ac_ext <<_ACEOF |
| 28948 | /* confdefs.h. */ |
| 28949 | _ACEOF |
| 28950 | cat confdefs.h >>conftest.$ac_ext |
| 28951 | cat >>conftest.$ac_ext <<_ACEOF |
| 28952 | /* end confdefs.h. */ |
| 28953 | #include <$ac_header> |
| 28954 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28955 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28956 | case "(($ac_try" in |
| 28957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28958 | *) ac_try_echo=$ac_try;; |
| 28959 | esac |
| 28960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28961 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28962 | ac_status=$? |
| 28963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28964 | rm -f conftest.er1 |
| 28965 | cat conftest.err >&5 |
| 28966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28967 | (exit $ac_status); } >/dev/null; then |
| 28968 | if test -s conftest.err; then |
| 28969 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28971 | else |
| 28972 | ac_cpp_err= |
| 28973 | fi |
| 28974 | else |
| 28975 | ac_cpp_err=yes |
| 28976 | fi |
| 28977 | if test -z "$ac_cpp_err"; then |
| 28978 | ac_header_preproc=yes |
| 28979 | else |
| 28980 | echo "$as_me: failed program was:" >&5 |
| 28981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28982 | |
| 28983 | ac_header_preproc=no |
| 28984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28985 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28986 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28987 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28988 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 28989 | |
| 28990 | # So? What about this header? |
| 28991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28992 | yes:no: ) |
| 28993 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28994 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28996 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28997 | ac_header_preproc=yes |
| 28998 | ;; |
| 28999 | no:yes:* ) |
| 29000 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29001 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29002 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29003 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29004 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29005 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29006 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29007 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29009 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29010 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29011 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29012 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29013 | ## ----------------------------------- ## |
| 29014 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29015 | ## ----------------------------------- ## |
| 29016 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29017 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29018 | ;; |
| 29019 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29020 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29022 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29024 | else |
| 29025 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29027 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29029 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29030 | |
| 29031 | fi |
| 29032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29033 | cat >>confdefs.h <<_ACEOF |
| 29034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29035 | _ACEOF |
| 29036 | |
| 29037 | fi |
| 29038 | |
| 29039 | done |
| 29040 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29041 | if test "$ENABLE_THREADS" -eq 1 ; then |
| 29042 | |
| 29043 | for ac_header in pthread.h |
| 29044 | do |
| 29045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29046 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29047 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29049 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29051 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29052 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29053 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29054 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29055 | else |
| 29056 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29057 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29058 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29059 | cat >conftest.$ac_ext <<_ACEOF |
| 29060 | /* confdefs.h. */ |
| 29061 | _ACEOF |
| 29062 | cat confdefs.h >>conftest.$ac_ext |
| 29063 | cat >>conftest.$ac_ext <<_ACEOF |
| 29064 | /* end confdefs.h. */ |
| 29065 | $ac_includes_default |
| 29066 | #include <$ac_header> |
| 29067 | _ACEOF |
| 29068 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29069 | if { (ac_try="$ac_compile" |
| 29070 | case "(($ac_try" in |
| 29071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29072 | *) ac_try_echo=$ac_try;; |
| 29073 | esac |
| 29074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29075 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29076 | ac_status=$? |
| 29077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29078 | rm -f conftest.er1 |
| 29079 | cat conftest.err >&5 |
| 29080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29081 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29083 | { (case "(($ac_try" in |
| 29084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29085 | *) ac_try_echo=$ac_try;; |
| 29086 | esac |
| 29087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29088 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29089 | ac_status=$? |
| 29090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29091 | (exit $ac_status); }; } && |
| 29092 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29093 | { (case "(($ac_try" in |
| 29094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29095 | *) ac_try_echo=$ac_try;; |
| 29096 | esac |
| 29097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29098 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29099 | ac_status=$? |
| 29100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29101 | (exit $ac_status); }; }; then |
| 29102 | ac_header_compiler=yes |
| 29103 | else |
| 29104 | echo "$as_me: failed program was:" >&5 |
| 29105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29107 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29108 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29109 | |
| 29110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29111 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29112 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29113 | |
| 29114 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29115 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29116 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29117 | cat >conftest.$ac_ext <<_ACEOF |
| 29118 | /* confdefs.h. */ |
| 29119 | _ACEOF |
| 29120 | cat confdefs.h >>conftest.$ac_ext |
| 29121 | cat >>conftest.$ac_ext <<_ACEOF |
| 29122 | /* end confdefs.h. */ |
| 29123 | #include <$ac_header> |
| 29124 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29125 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29126 | case "(($ac_try" in |
| 29127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29128 | *) ac_try_echo=$ac_try;; |
| 29129 | esac |
| 29130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29131 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29132 | ac_status=$? |
| 29133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29134 | rm -f conftest.er1 |
| 29135 | cat conftest.err >&5 |
| 29136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29137 | (exit $ac_status); } >/dev/null; then |
| 29138 | if test -s conftest.err; then |
| 29139 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29140 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29141 | else |
| 29142 | ac_cpp_err= |
| 29143 | fi |
| 29144 | else |
| 29145 | ac_cpp_err=yes |
| 29146 | fi |
| 29147 | if test -z "$ac_cpp_err"; then |
| 29148 | ac_header_preproc=yes |
| 29149 | else |
| 29150 | echo "$as_me: failed program was:" >&5 |
| 29151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29152 | |
| 29153 | ac_header_preproc=no |
| 29154 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29155 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29156 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29157 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29158 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29159 | |
| 29160 | # So? What about this header? |
| 29161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29162 | yes:no: ) |
| 29163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29167 | ac_header_preproc=yes |
| 29168 | ;; |
| 29169 | no:yes:* ) |
| 29170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29182 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29183 | ## ----------------------------------- ## |
| 29184 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29185 | ## ----------------------------------- ## |
| 29186 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29187 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29188 | ;; |
| 29189 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29190 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29192 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29194 | else |
| 29195 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29196 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29197 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29198 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29199 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29200 | |
| 29201 | fi |
| 29202 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29203 | cat >>confdefs.h <<_ACEOF |
| 29204 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29205 | _ACEOF |
| 29206 | |
| 29207 | fi |
| 29208 | |
| 29209 | done |
| 29210 | |
| 29211 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29212 | |
| 29213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29214 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29215 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29216 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29218 | else |
| 29219 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29220 | /* confdefs.h. */ |
| 29221 | _ACEOF |
| 29222 | cat confdefs.h >>conftest.$ac_ext |
| 29223 | cat >>conftest.$ac_ext <<_ACEOF |
| 29224 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29225 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29226 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29227 | int |
| 29228 | main () |
| 29229 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29230 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29231 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29232 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29233 | return 0; |
| 29234 | ; |
| 29235 | return 0; |
| 29236 | } |
| 29237 | _ACEOF |
| 29238 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29239 | if { (ac_try="$ac_compile" |
| 29240 | case "(($ac_try" in |
| 29241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29242 | *) ac_try_echo=$ac_try;; |
| 29243 | esac |
| 29244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29245 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29246 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29248 | rm -f conftest.er1 |
| 29249 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29251 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29253 | { (case "(($ac_try" in |
| 29254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29255 | *) ac_try_echo=$ac_try;; |
| 29256 | esac |
| 29257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29258 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29259 | ac_status=$? |
| 29260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29261 | (exit $ac_status); }; } && |
| 29262 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29263 | { (case "(($ac_try" in |
| 29264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29265 | *) ac_try_echo=$ac_try;; |
| 29266 | esac |
| 29267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29268 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29269 | ac_status=$? |
| 29270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29271 | (exit $ac_status); }; }; then |
| 29272 | ac_cv_type_pid_t=yes |
| 29273 | else |
| 29274 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29277 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29278 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29279 | |
| 29280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29281 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29282 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29283 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29284 | if test $ac_cv_type_pid_t = yes; then |
| 29285 | : |
| 29286 | else |
| 29287 | |
| 29288 | cat >>confdefs.h <<_ACEOF |
| 29289 | #define pid_t int |
| 29290 | _ACEOF |
| 29291 | |
| 29292 | fi |
| 29293 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29294 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29295 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29296 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29298 | else |
| 29299 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29300 | /* confdefs.h. */ |
| 29301 | _ACEOF |
| 29302 | cat confdefs.h >>conftest.$ac_ext |
| 29303 | cat >>conftest.$ac_ext <<_ACEOF |
| 29304 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29305 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29306 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29307 | int |
| 29308 | main () |
| 29309 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29310 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29311 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29312 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29313 | return 0; |
| 29314 | ; |
| 29315 | return 0; |
| 29316 | } |
| 29317 | _ACEOF |
| 29318 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29319 | if { (ac_try="$ac_compile" |
| 29320 | case "(($ac_try" in |
| 29321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29322 | *) ac_try_echo=$ac_try;; |
| 29323 | esac |
| 29324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29325 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29326 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29328 | rm -f conftest.er1 |
| 29329 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29331 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29333 | { (case "(($ac_try" in |
| 29334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29335 | *) ac_try_echo=$ac_try;; |
| 29336 | esac |
| 29337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29338 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29339 | ac_status=$? |
| 29340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29341 | (exit $ac_status); }; } && |
| 29342 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29343 | { (case "(($ac_try" in |
| 29344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29345 | *) ac_try_echo=$ac_try;; |
| 29346 | esac |
| 29347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29348 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29349 | ac_status=$? |
| 29350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29351 | (exit $ac_status); }; }; then |
| 29352 | ac_cv_type_size_t=yes |
| 29353 | else |
| 29354 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29357 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29359 | |
| 29360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29361 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29362 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29363 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29364 | if test $ac_cv_type_size_t = yes; then |
| 29365 | : |
| 29366 | else |
| 29367 | |
| 29368 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29369 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29370 | _ACEOF |
| 29371 | |
| 29372 | fi |
| 29373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29374 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29375 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29376 | if test "${ac_cv_type_signal+set}" = set; then |
| 29377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29378 | else |
| 29379 | cat >conftest.$ac_ext <<_ACEOF |
| 29380 | /* confdefs.h. */ |
| 29381 | _ACEOF |
| 29382 | cat confdefs.h >>conftest.$ac_ext |
| 29383 | cat >>conftest.$ac_ext <<_ACEOF |
| 29384 | /* end confdefs.h. */ |
| 29385 | #include <sys/types.h> |
| 29386 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29387 | |
| 29388 | int |
| 29389 | main () |
| 29390 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29391 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29392 | ; |
| 29393 | return 0; |
| 29394 | } |
| 29395 | _ACEOF |
| 29396 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29397 | if { (ac_try="$ac_compile" |
| 29398 | case "(($ac_try" in |
| 29399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29400 | *) ac_try_echo=$ac_try;; |
| 29401 | esac |
| 29402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29403 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29404 | ac_status=$? |
| 29405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29406 | rm -f conftest.er1 |
| 29407 | cat conftest.err >&5 |
| 29408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29409 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29411 | { (case "(($ac_try" in |
| 29412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29413 | *) ac_try_echo=$ac_try;; |
| 29414 | esac |
| 29415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29416 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29417 | ac_status=$? |
| 29418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29419 | (exit $ac_status); }; } && |
| 29420 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29421 | { (case "(($ac_try" in |
| 29422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29423 | *) ac_try_echo=$ac_try;; |
| 29424 | esac |
| 29425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29426 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29427 | ac_status=$? |
| 29428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29429 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29430 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29431 | else |
| 29432 | echo "$as_me: failed program was:" >&5 |
| 29433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29435 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29437 | |
| 29438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29439 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29440 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29441 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29442 | |
| 29443 | cat >>confdefs.h <<_ACEOF |
| 29444 | #define RETSIGTYPE $ac_cv_type_signal |
| 29445 | _ACEOF |
| 29446 | |
| 29447 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29448 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 29449 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29450 | if test "${ac_cv_struct_tm+set}" = set; then |
| 29451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29452 | else |
| 29453 | cat >conftest.$ac_ext <<_ACEOF |
| 29454 | /* confdefs.h. */ |
| 29455 | _ACEOF |
| 29456 | cat confdefs.h >>conftest.$ac_ext |
| 29457 | cat >>conftest.$ac_ext <<_ACEOF |
| 29458 | /* end confdefs.h. */ |
| 29459 | #include <sys/types.h> |
| 29460 | #include <time.h> |
| 29461 | |
| 29462 | int |
| 29463 | main () |
| 29464 | { |
| 29465 | struct tm *tp; tp->tm_sec; |
| 29466 | ; |
| 29467 | return 0; |
| 29468 | } |
| 29469 | _ACEOF |
| 29470 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29471 | if { (ac_try="$ac_compile" |
| 29472 | case "(($ac_try" in |
| 29473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29474 | *) ac_try_echo=$ac_try;; |
| 29475 | esac |
| 29476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29477 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29478 | ac_status=$? |
| 29479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29480 | rm -f conftest.er1 |
| 29481 | cat conftest.err >&5 |
| 29482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29483 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29485 | { (case "(($ac_try" in |
| 29486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29487 | *) ac_try_echo=$ac_try;; |
| 29488 | esac |
| 29489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29490 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29491 | ac_status=$? |
| 29492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29493 | (exit $ac_status); }; } && |
| 29494 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29495 | { (case "(($ac_try" in |
| 29496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29497 | *) ac_try_echo=$ac_try;; |
| 29498 | esac |
| 29499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29500 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29501 | ac_status=$? |
| 29502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29503 | (exit $ac_status); }; }; then |
| 29504 | ac_cv_struct_tm=time.h |
| 29505 | else |
| 29506 | echo "$as_me: failed program was:" >&5 |
| 29507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29508 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29509 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29510 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29511 | |
| 29512 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29513 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29514 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 29515 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29516 | if test $ac_cv_struct_tm = sys/time.h; then |
| 29517 | |
| 29518 | cat >>confdefs.h <<\_ACEOF |
| 29519 | #define TM_IN_SYS_TIME 1 |
| 29520 | _ACEOF |
| 29521 | |
| 29522 | fi |
| 29523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 29525 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29526 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 29527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29528 | else |
| 29529 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29530 | /* confdefs.h. */ |
| 29531 | _ACEOF |
| 29532 | cat confdefs.h >>conftest.$ac_ext |
| 29533 | cat >>conftest.$ac_ext <<_ACEOF |
| 29534 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29535 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29536 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29537 | int |
| 29538 | main () |
| 29539 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29540 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29541 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29542 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29543 | return 0; |
| 29544 | ; |
| 29545 | return 0; |
| 29546 | } |
| 29547 | _ACEOF |
| 29548 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29549 | if { (ac_try="$ac_compile" |
| 29550 | case "(($ac_try" in |
| 29551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29552 | *) ac_try_echo=$ac_try;; |
| 29553 | esac |
| 29554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29555 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29556 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29558 | rm -f conftest.er1 |
| 29559 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29561 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29563 | { (case "(($ac_try" in |
| 29564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29565 | *) ac_try_echo=$ac_try;; |
| 29566 | esac |
| 29567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29568 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29569 | ac_status=$? |
| 29570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29571 | (exit $ac_status); }; } && |
| 29572 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29573 | { (case "(($ac_try" in |
| 29574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29575 | *) ac_try_echo=$ac_try;; |
| 29576 | esac |
| 29577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29578 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29579 | ac_status=$? |
| 29580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29581 | (exit $ac_status); }; }; then |
| 29582 | ac_cv_type_int64_t=yes |
| 29583 | else |
| 29584 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29587 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29589 | |
| 29590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29591 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29592 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 29593 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29594 | if test $ac_cv_type_int64_t = yes; then |
| 29595 | |
| 29596 | cat >>confdefs.h <<_ACEOF |
| 29597 | #define HAVE_INT64_T 1 |
| 29598 | _ACEOF |
| 29599 | |
| 29600 | |
| 29601 | else |
| 29602 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 29603 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 29604 | { (exit 1); exit 1; }; } |
| 29605 | fi |
| 29606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29607 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 29608 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29609 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 29610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29611 | else |
| 29612 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29613 | /* confdefs.h. */ |
| 29614 | _ACEOF |
| 29615 | cat confdefs.h >>conftest.$ac_ext |
| 29616 | cat >>conftest.$ac_ext <<_ACEOF |
| 29617 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29618 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29619 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29620 | int |
| 29621 | main () |
| 29622 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29623 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29624 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29625 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29626 | return 0; |
| 29627 | ; |
| 29628 | return 0; |
| 29629 | } |
| 29630 | _ACEOF |
| 29631 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29632 | if { (ac_try="$ac_compile" |
| 29633 | case "(($ac_try" in |
| 29634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29635 | *) ac_try_echo=$ac_try;; |
| 29636 | esac |
| 29637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29638 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29639 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29641 | rm -f conftest.er1 |
| 29642 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29644 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29646 | { (case "(($ac_try" in |
| 29647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29648 | *) ac_try_echo=$ac_try;; |
| 29649 | esac |
| 29650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29651 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29652 | ac_status=$? |
| 29653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29654 | (exit $ac_status); }; } && |
| 29655 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29656 | { (case "(($ac_try" in |
| 29657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29658 | *) ac_try_echo=$ac_try;; |
| 29659 | esac |
| 29660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29661 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29662 | ac_status=$? |
| 29663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29664 | (exit $ac_status); }; }; then |
| 29665 | ac_cv_type_uint64_t=yes |
| 29666 | else |
| 29667 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29670 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29671 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29672 | |
| 29673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29674 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29675 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 29676 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29677 | if test $ac_cv_type_uint64_t = yes; then |
| 29678 | |
| 29679 | cat >>confdefs.h <<_ACEOF |
| 29680 | #define HAVE_UINT64_T 1 |
| 29681 | _ACEOF |
| 29682 | |
| 29683 | |
| 29684 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29685 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 29686 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29687 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 29688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29689 | else |
| 29690 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29691 | /* confdefs.h. */ |
| 29692 | _ACEOF |
| 29693 | cat confdefs.h >>conftest.$ac_ext |
| 29694 | cat >>conftest.$ac_ext <<_ACEOF |
| 29695 | /* end confdefs.h. */ |
| 29696 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29697 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29698 | int |
| 29699 | main () |
| 29700 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29701 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29702 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29703 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29704 | return 0; |
| 29705 | ; |
| 29706 | return 0; |
| 29707 | } |
| 29708 | _ACEOF |
| 29709 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29710 | if { (ac_try="$ac_compile" |
| 29711 | case "(($ac_try" in |
| 29712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29713 | *) ac_try_echo=$ac_try;; |
| 29714 | esac |
| 29715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29716 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29717 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29719 | rm -f conftest.er1 |
| 29720 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29722 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29724 | { (case "(($ac_try" in |
| 29725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29726 | *) ac_try_echo=$ac_try;; |
| 29727 | esac |
| 29728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29729 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29730 | ac_status=$? |
| 29731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29732 | (exit $ac_status); }; } && |
| 29733 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29734 | { (case "(($ac_try" in |
| 29735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29736 | *) ac_try_echo=$ac_try;; |
| 29737 | esac |
| 29738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29739 | (eval "$ac_try") 2>&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29740 | ac_status=$? |
| 29741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29742 | (exit $ac_status); }; }; then |
| 29743 | ac_cv_type_u_int64_t=yes |
| 29744 | else |
| 29745 | echo "$as_me: failed program was:" >&5 |
| 29746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29748 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29750 | |
| 29751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29753 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 29754 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29755 | if test $ac_cv_type_u_int64_t = yes; then |
| 29756 | |
| 29757 | cat >>confdefs.h <<_ACEOF |
| 29758 | #define HAVE_U_INT64_T 1 |
| 29759 | _ACEOF |
| 29760 | |
| 29761 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 29762 | else |
| 29763 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 29764 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 29765 | { (exit 1); exit 1; }; } |
| 29766 | fi |
| 29767 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29768 | fi |
| 29769 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29770 | |
| 29771 | |
| 29772 | |
| 29773 | |
| 29774 | |
| 29775 | |
| 29776 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 29777 | |
| 29778 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29779 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29780 | do |
| 29781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29782 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29784 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29786 | else |
| 29787 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29788 | /* confdefs.h. */ |
| 29789 | _ACEOF |
| 29790 | cat confdefs.h >>conftest.$ac_ext |
| 29791 | cat >>conftest.$ac_ext <<_ACEOF |
| 29792 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29795 | #define $ac_func innocuous_$ac_func |
| 29796 | |
| 29797 | /* System header to define __stub macros and hopefully few prototypes, |
| 29798 | which can conflict with char $ac_func (); below. |
| 29799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29800 | <limits.h> exists even on freestanding compilers. */ |
| 29801 | |
| 29802 | #ifdef __STDC__ |
| 29803 | # include <limits.h> |
| 29804 | #else |
| 29805 | # include <assert.h> |
| 29806 | #endif |
| 29807 | |
| 29808 | #undef $ac_func |
| 29809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29810 | /* Override any GCC internal prototype to avoid an error. |
| 29811 | Use char because int might match the return type of a GCC |
| 29812 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29813 | #ifdef __cplusplus |
| 29814 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29815 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29816 | char $ac_func (); |
| 29817 | /* The GNU C library defines this for functions which it implements |
| 29818 | to always fail with ENOSYS. Some functions are actually named |
| 29819 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29820 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29821 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29822 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29823 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29824 | int |
| 29825 | main () |
| 29826 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29827 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29828 | ; |
| 29829 | return 0; |
| 29830 | } |
| 29831 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29833 | if { (ac_try="$ac_link" |
| 29834 | case "(($ac_try" in |
| 29835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29836 | *) ac_try_echo=$ac_try;; |
| 29837 | esac |
| 29838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29839 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29840 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29842 | rm -f conftest.er1 |
| 29843 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29845 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29847 | { (case "(($ac_try" in |
| 29848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29849 | *) ac_try_echo=$ac_try;; |
| 29850 | esac |
| 29851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29852 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29853 | ac_status=$? |
| 29854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29855 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29856 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29857 | { (case "(($ac_try" in |
| 29858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29859 | *) ac_try_echo=$ac_try;; |
| 29860 | esac |
| 29861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29862 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29863 | ac_status=$? |
| 29864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29865 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29866 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29867 | else |
| 29868 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29871 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29872 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29873 | |
| 29874 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29875 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29877 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29879 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29881 | cat >>confdefs.h <<_ACEOF |
| 29882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29883 | _ACEOF |
| 29884 | |
| 29885 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29886 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29887 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29888 | |
| 29889 | |
| 29890 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 29891 | |
| 29892 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 29893 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29894 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 29895 | do |
| 29896 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29897 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29898 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29899 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29901 | else |
| 29902 | cat >conftest.$ac_ext <<_ACEOF |
| 29903 | /* confdefs.h. */ |
| 29904 | _ACEOF |
| 29905 | cat confdefs.h >>conftest.$ac_ext |
| 29906 | cat >>conftest.$ac_ext <<_ACEOF |
| 29907 | /* end confdefs.h. */ |
| 29908 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29909 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29910 | #define $ac_func innocuous_$ac_func |
| 29911 | |
| 29912 | /* System header to define __stub macros and hopefully few prototypes, |
| 29913 | which can conflict with char $ac_func (); below. |
| 29914 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29915 | <limits.h> exists even on freestanding compilers. */ |
| 29916 | |
| 29917 | #ifdef __STDC__ |
| 29918 | # include <limits.h> |
| 29919 | #else |
| 29920 | # include <assert.h> |
| 29921 | #endif |
| 29922 | |
| 29923 | #undef $ac_func |
| 29924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29925 | /* Override any GCC internal prototype to avoid an error. |
| 29926 | Use char because int might match the return type of a GCC |
| 29927 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29928 | #ifdef __cplusplus |
| 29929 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29930 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29931 | char $ac_func (); |
| 29932 | /* The GNU C library defines this for functions which it implements |
| 29933 | to always fail with ENOSYS. Some functions are actually named |
| 29934 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29935 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29936 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29937 | #endif |
| 29938 | |
| 29939 | int |
| 29940 | main () |
| 29941 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29942 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29943 | ; |
| 29944 | return 0; |
| 29945 | } |
| 29946 | _ACEOF |
| 29947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29948 | if { (ac_try="$ac_link" |
| 29949 | case "(($ac_try" in |
| 29950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29951 | *) ac_try_echo=$ac_try;; |
| 29952 | esac |
| 29953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29954 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29955 | ac_status=$? |
| 29956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29957 | rm -f conftest.er1 |
| 29958 | cat conftest.err >&5 |
| 29959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29960 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29962 | { (case "(($ac_try" in |
| 29963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29964 | *) ac_try_echo=$ac_try;; |
| 29965 | esac |
| 29966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29967 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29968 | ac_status=$? |
| 29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29970 | (exit $ac_status); }; } && |
| 29971 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29972 | { (case "(($ac_try" in |
| 29973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29974 | *) ac_try_echo=$ac_try;; |
| 29975 | esac |
| 29976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29977 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29978 | ac_status=$? |
| 29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29980 | (exit $ac_status); }; }; then |
| 29981 | eval "$as_ac_var=yes" |
| 29982 | else |
| 29983 | echo "$as_me: failed program was:" >&5 |
| 29984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29986 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29987 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29988 | |
| 29989 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29990 | conftest$ac_exeext conftest.$ac_ext |
| 29991 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29992 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29993 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29994 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29995 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29996 | cat >>confdefs.h <<_ACEOF |
| 29997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29998 | _ACEOF |
| 29999 | |
| 30000 | fi |
| 30001 | done |
| 30002 | |
| 30003 | |
| 30004 | |
| 30005 | |
| 30006 | |
| 30007 | |
| 30008 | |
| 30009 | |
| 30010 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30011 | do |
| 30012 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30013 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30015 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30017 | else |
| 30018 | cat >conftest.$ac_ext <<_ACEOF |
| 30019 | /* confdefs.h. */ |
| 30020 | _ACEOF |
| 30021 | cat confdefs.h >>conftest.$ac_ext |
| 30022 | cat >>conftest.$ac_ext <<_ACEOF |
| 30023 | /* end confdefs.h. */ |
| 30024 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30026 | #define $ac_func innocuous_$ac_func |
| 30027 | |
| 30028 | /* System header to define __stub macros and hopefully few prototypes, |
| 30029 | which can conflict with char $ac_func (); below. |
| 30030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30031 | <limits.h> exists even on freestanding compilers. */ |
| 30032 | |
| 30033 | #ifdef __STDC__ |
| 30034 | # include <limits.h> |
| 30035 | #else |
| 30036 | # include <assert.h> |
| 30037 | #endif |
| 30038 | |
| 30039 | #undef $ac_func |
| 30040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30041 | /* Override any GCC internal prototype to avoid an error. |
| 30042 | Use char because int might match the return type of a GCC |
| 30043 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30044 | #ifdef __cplusplus |
| 30045 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30046 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30047 | char $ac_func (); |
| 30048 | /* The GNU C library defines this for functions which it implements |
| 30049 | to always fail with ENOSYS. Some functions are actually named |
| 30050 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30051 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30052 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30053 | #endif |
| 30054 | |
| 30055 | int |
| 30056 | main () |
| 30057 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30058 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30059 | ; |
| 30060 | return 0; |
| 30061 | } |
| 30062 | _ACEOF |
| 30063 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30064 | if { (ac_try="$ac_link" |
| 30065 | case "(($ac_try" in |
| 30066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30067 | *) ac_try_echo=$ac_try;; |
| 30068 | esac |
| 30069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30070 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30071 | ac_status=$? |
| 30072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30073 | rm -f conftest.er1 |
| 30074 | cat conftest.err >&5 |
| 30075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30076 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30078 | { (case "(($ac_try" in |
| 30079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30080 | *) ac_try_echo=$ac_try;; |
| 30081 | esac |
| 30082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30083 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30084 | ac_status=$? |
| 30085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30086 | (exit $ac_status); }; } && |
| 30087 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30088 | { (case "(($ac_try" in |
| 30089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30090 | *) ac_try_echo=$ac_try;; |
| 30091 | esac |
| 30092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30093 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30094 | ac_status=$? |
| 30095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30096 | (exit $ac_status); }; }; then |
| 30097 | eval "$as_ac_var=yes" |
| 30098 | else |
| 30099 | echo "$as_me: failed program was:" >&5 |
| 30100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30102 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30104 | |
| 30105 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30106 | conftest$ac_exeext conftest.$ac_ext |
| 30107 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30108 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30109 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30110 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30111 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30112 | cat >>confdefs.h <<_ACEOF |
| 30113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30114 | _ACEOF |
| 30115 | |
| 30116 | fi |
| 30117 | done |
| 30118 | |
| 30119 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30120 | |
| 30121 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30122 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30123 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30124 | do |
| 30125 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30126 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30127 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30128 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30130 | else |
| 30131 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30132 | /* confdefs.h. */ |
| 30133 | _ACEOF |
| 30134 | cat confdefs.h >>conftest.$ac_ext |
| 30135 | cat >>conftest.$ac_ext <<_ACEOF |
| 30136 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30137 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30138 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30139 | #define $ac_func innocuous_$ac_func |
| 30140 | |
| 30141 | /* System header to define __stub macros and hopefully few prototypes, |
| 30142 | which can conflict with char $ac_func (); below. |
| 30143 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30144 | <limits.h> exists even on freestanding compilers. */ |
| 30145 | |
| 30146 | #ifdef __STDC__ |
| 30147 | # include <limits.h> |
| 30148 | #else |
| 30149 | # include <assert.h> |
| 30150 | #endif |
| 30151 | |
| 30152 | #undef $ac_func |
| 30153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30154 | /* Override any GCC internal prototype to avoid an error. |
| 30155 | Use char because int might match the return type of a GCC |
| 30156 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30157 | #ifdef __cplusplus |
| 30158 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30159 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30160 | char $ac_func (); |
| 30161 | /* The GNU C library defines this for functions which it implements |
| 30162 | to always fail with ENOSYS. Some functions are actually named |
| 30163 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30164 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30165 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30166 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30168 | int |
| 30169 | main () |
| 30170 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30171 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30172 | ; |
| 30173 | return 0; |
| 30174 | } |
| 30175 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30176 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30177 | if { (ac_try="$ac_link" |
| 30178 | case "(($ac_try" in |
| 30179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30180 | *) ac_try_echo=$ac_try;; |
| 30181 | esac |
| 30182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30183 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30184 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30186 | rm -f conftest.er1 |
| 30187 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30189 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30191 | { (case "(($ac_try" in |
| 30192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30193 | *) ac_try_echo=$ac_try;; |
| 30194 | esac |
| 30195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30196 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30197 | ac_status=$? |
| 30198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30199 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30200 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30201 | { (case "(($ac_try" in |
| 30202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30203 | *) ac_try_echo=$ac_try;; |
| 30204 | esac |
| 30205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30206 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30207 | ac_status=$? |
| 30208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30209 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30210 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30211 | else |
| 30212 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30214 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30215 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30216 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30217 | |
| 30218 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30219 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30221 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30222 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30223 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30224 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30225 | cat >>confdefs.h <<_ACEOF |
| 30226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30227 | _ACEOF |
| 30228 | |
| 30229 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30230 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30231 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30232 | |
| 30233 | |
| 30234 | |
| 30235 | |
| 30236 | |
| 30237 | |
| 30238 | for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp |
| 30239 | do |
| 30240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30241 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30243 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30245 | else |
| 30246 | cat >conftest.$ac_ext <<_ACEOF |
| 30247 | /* confdefs.h. */ |
| 30248 | _ACEOF |
| 30249 | cat confdefs.h >>conftest.$ac_ext |
| 30250 | cat >>conftest.$ac_ext <<_ACEOF |
| 30251 | /* end confdefs.h. */ |
| 30252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30254 | #define $ac_func innocuous_$ac_func |
| 30255 | |
| 30256 | /* System header to define __stub macros and hopefully few prototypes, |
| 30257 | which can conflict with char $ac_func (); below. |
| 30258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30259 | <limits.h> exists even on freestanding compilers. */ |
| 30260 | |
| 30261 | #ifdef __STDC__ |
| 30262 | # include <limits.h> |
| 30263 | #else |
| 30264 | # include <assert.h> |
| 30265 | #endif |
| 30266 | |
| 30267 | #undef $ac_func |
| 30268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30269 | /* Override any GCC internal prototype to avoid an error. |
| 30270 | Use char because int might match the return type of a GCC |
| 30271 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30272 | #ifdef __cplusplus |
| 30273 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30274 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30275 | char $ac_func (); |
| 30276 | /* The GNU C library defines this for functions which it implements |
| 30277 | to always fail with ENOSYS. Some functions are actually named |
| 30278 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30279 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30280 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30281 | #endif |
| 30282 | |
| 30283 | int |
| 30284 | main () |
| 30285 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30286 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30287 | ; |
| 30288 | return 0; |
| 30289 | } |
| 30290 | _ACEOF |
| 30291 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30292 | if { (ac_try="$ac_link" |
| 30293 | case "(($ac_try" in |
| 30294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30295 | *) ac_try_echo=$ac_try;; |
| 30296 | esac |
| 30297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30298 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30299 | ac_status=$? |
| 30300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30301 | rm -f conftest.er1 |
| 30302 | cat conftest.err >&5 |
| 30303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30304 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30306 | { (case "(($ac_try" in |
| 30307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30308 | *) ac_try_echo=$ac_try;; |
| 30309 | esac |
| 30310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30311 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30312 | ac_status=$? |
| 30313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30314 | (exit $ac_status); }; } && |
| 30315 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30316 | { (case "(($ac_try" in |
| 30317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30318 | *) ac_try_echo=$ac_try;; |
| 30319 | esac |
| 30320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30321 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30322 | ac_status=$? |
| 30323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30324 | (exit $ac_status); }; }; then |
| 30325 | eval "$as_ac_var=yes" |
| 30326 | else |
| 30327 | echo "$as_me: failed program was:" >&5 |
| 30328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30330 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30331 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30332 | |
| 30333 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30334 | conftest$ac_exeext conftest.$ac_ext |
| 30335 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30336 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30337 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30338 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30339 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30340 | cat >>confdefs.h <<_ACEOF |
| 30341 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30342 | _ACEOF |
| 30343 | |
| 30344 | fi |
| 30345 | done |
| 30346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30347 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 30348 | echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30349 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30351 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30352 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30353 | ac_cpp='$CPP $CPPFLAGS' |
| 30354 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30355 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30356 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30357 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30358 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30359 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30360 | else |
| 30361 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30362 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30363 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30364 | _ACEOF |
| 30365 | cat confdefs.h >>conftest.$ac_ext |
| 30366 | cat >>conftest.$ac_ext <<_ACEOF |
| 30367 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30368 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30369 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30370 | #include <stdlib.h> |
| 30371 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30372 | int |
| 30373 | main () |
| 30374 | { |
| 30375 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30376 | volatile double A, B; |
| 30377 | char Buffer[100]; |
| 30378 | A = 1; |
| 30379 | A /= 10.0; |
| 30380 | sprintf(Buffer, "%a", A); |
| 30381 | B = atof(Buffer); |
| 30382 | if (A != B) |
| 30383 | return (1); |
| 30384 | if (A != 0x1.999999999999ap-4) |
| 30385 | return (1); |
| 30386 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30387 | ; |
| 30388 | return 0; |
| 30389 | } |
| 30390 | _ACEOF |
| 30391 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30392 | if { (ac_try="$ac_link" |
| 30393 | case "(($ac_try" in |
| 30394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30395 | *) ac_try_echo=$ac_try;; |
| 30396 | esac |
| 30397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30398 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30399 | ac_status=$? |
| 30400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30402 | { (case "(($ac_try" in |
| 30403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30404 | *) ac_try_echo=$ac_try;; |
| 30405 | esac |
| 30406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30407 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30408 | ac_status=$? |
| 30409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30410 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30411 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30412 | else |
| 30413 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30414 | echo "$as_me: failed program was:" >&5 |
| 30415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30416 | |
| 30417 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30418 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30421 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30422 | |
| 30423 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30424 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30425 | ac_cpp='$CPP $CPPFLAGS' |
| 30426 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30427 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30428 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30429 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30431 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 30432 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30433 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30434 | |
| 30435 | cat >>confdefs.h <<\_ACEOF |
| 30436 | #define HAVE_PRINTF_A 1 |
| 30437 | _ACEOF |
| 30438 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30439 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30440 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30441 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 30442 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30443 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 30444 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30445 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30447 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30448 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30449 | /* confdefs.h. */ |
| 30450 | _ACEOF |
| 30451 | cat confdefs.h >>conftest.$ac_ext |
| 30452 | cat >>conftest.$ac_ext <<_ACEOF |
| 30453 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30454 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30455 | int |
| 30456 | main () |
| 30457 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30458 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30459 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30460 | ; |
| 30461 | return 0; |
| 30462 | } |
| 30463 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30464 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30465 | if { (ac_try="$ac_link" |
| 30466 | case "(($ac_try" in |
| 30467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30468 | *) ac_try_echo=$ac_try;; |
| 30469 | esac |
| 30470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30471 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30472 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30474 | rm -f conftest.er1 |
| 30475 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30477 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30479 | { (case "(($ac_try" in |
| 30480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30481 | *) ac_try_echo=$ac_try;; |
| 30482 | esac |
| 30483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30484 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30485 | ac_status=$? |
| 30486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30487 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30488 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30489 | { (case "(($ac_try" in |
| 30490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30491 | *) ac_try_echo=$ac_try;; |
| 30492 | esac |
| 30493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30494 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30495 | ac_status=$? |
| 30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30497 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30498 | ac_cv_working_alloca_h=yes |
| 30499 | else |
| 30500 | echo "$as_me: failed program was:" >&5 |
| 30501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30503 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30505 | |
| 30506 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30507 | conftest$ac_exeext conftest.$ac_ext |
| 30508 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30509 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 30510 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30511 | if test $ac_cv_working_alloca_h = yes; then |
| 30512 | |
| 30513 | cat >>confdefs.h <<\_ACEOF |
| 30514 | #define HAVE_ALLOCA_H 1 |
| 30515 | _ACEOF |
| 30516 | |
| 30517 | fi |
| 30518 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30519 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 30520 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30521 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 30522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30523 | else |
| 30524 | cat >conftest.$ac_ext <<_ACEOF |
| 30525 | /* confdefs.h. */ |
| 30526 | _ACEOF |
| 30527 | cat confdefs.h >>conftest.$ac_ext |
| 30528 | cat >>conftest.$ac_ext <<_ACEOF |
| 30529 | /* end confdefs.h. */ |
| 30530 | #ifdef __GNUC__ |
| 30531 | # define alloca __builtin_alloca |
| 30532 | #else |
| 30533 | # ifdef _MSC_VER |
| 30534 | # include <malloc.h> |
| 30535 | # define alloca _alloca |
| 30536 | # else |
| 30537 | # if HAVE_ALLOCA_H |
| 30538 | # include <alloca.h> |
| 30539 | # else |
| 30540 | # ifdef _AIX |
| 30541 | #pragma alloca |
| 30542 | # else |
| 30543 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 30544 | char *alloca (); |
| 30545 | # endif |
| 30546 | # endif |
| 30547 | # endif |
| 30548 | # endif |
| 30549 | #endif |
| 30550 | |
| 30551 | int |
| 30552 | main () |
| 30553 | { |
| 30554 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30555 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30556 | ; |
| 30557 | return 0; |
| 30558 | } |
| 30559 | _ACEOF |
| 30560 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30561 | if { (ac_try="$ac_link" |
| 30562 | case "(($ac_try" in |
| 30563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30564 | *) ac_try_echo=$ac_try;; |
| 30565 | esac |
| 30566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30567 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30568 | ac_status=$? |
| 30569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30570 | rm -f conftest.er1 |
| 30571 | cat conftest.err >&5 |
| 30572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30573 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30574 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30575 | { (case "(($ac_try" in |
| 30576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30577 | *) ac_try_echo=$ac_try;; |
| 30578 | esac |
| 30579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30580 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30581 | ac_status=$? |
| 30582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30583 | (exit $ac_status); }; } && |
| 30584 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30585 | { (case "(($ac_try" in |
| 30586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30587 | *) ac_try_echo=$ac_try;; |
| 30588 | esac |
| 30589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30590 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30591 | ac_status=$? |
| 30592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30593 | (exit $ac_status); }; }; then |
| 30594 | ac_cv_func_alloca_works=yes |
| 30595 | else |
| 30596 | echo "$as_me: failed program was:" >&5 |
| 30597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30599 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30600 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30601 | |
| 30602 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30603 | conftest$ac_exeext conftest.$ac_ext |
| 30604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30605 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 30606 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30607 | |
| 30608 | if test $ac_cv_func_alloca_works = yes; then |
| 30609 | |
| 30610 | cat >>confdefs.h <<\_ACEOF |
| 30611 | #define HAVE_ALLOCA 1 |
| 30612 | _ACEOF |
| 30613 | |
| 30614 | else |
| 30615 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 30616 | # that cause trouble. Some versions do not even contain alloca or |
| 30617 | # contain a buggy version. If you still want to use their alloca, |
| 30618 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 30619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30620 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30621 | |
| 30622 | cat >>confdefs.h <<\_ACEOF |
| 30623 | #define C_ALLOCA 1 |
| 30624 | _ACEOF |
| 30625 | |
| 30626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30627 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 30628 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30629 | if test "${ac_cv_os_cray+set}" = set; then |
| 30630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30631 | else |
| 30632 | cat >conftest.$ac_ext <<_ACEOF |
| 30633 | /* confdefs.h. */ |
| 30634 | _ACEOF |
| 30635 | cat confdefs.h >>conftest.$ac_ext |
| 30636 | cat >>conftest.$ac_ext <<_ACEOF |
| 30637 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30638 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30639 | webecray |
| 30640 | #else |
| 30641 | wenotbecray |
| 30642 | #endif |
| 30643 | |
| 30644 | _ACEOF |
| 30645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30646 | $EGREP "webecray" >/dev/null 2>&1; then |
| 30647 | ac_cv_os_cray=yes |
| 30648 | else |
| 30649 | ac_cv_os_cray=no |
| 30650 | fi |
| 30651 | rm -f conftest* |
| 30652 | |
| 30653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30654 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 30655 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30656 | if test $ac_cv_os_cray = yes; then |
| 30657 | for ac_func in _getb67 GETB67 getb67; do |
| 30658 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30659 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30660 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30661 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30663 | else |
| 30664 | cat >conftest.$ac_ext <<_ACEOF |
| 30665 | /* confdefs.h. */ |
| 30666 | _ACEOF |
| 30667 | cat confdefs.h >>conftest.$ac_ext |
| 30668 | cat >>conftest.$ac_ext <<_ACEOF |
| 30669 | /* end confdefs.h. */ |
| 30670 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30672 | #define $ac_func innocuous_$ac_func |
| 30673 | |
| 30674 | /* System header to define __stub macros and hopefully few prototypes, |
| 30675 | which can conflict with char $ac_func (); below. |
| 30676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30677 | <limits.h> exists even on freestanding compilers. */ |
| 30678 | |
| 30679 | #ifdef __STDC__ |
| 30680 | # include <limits.h> |
| 30681 | #else |
| 30682 | # include <assert.h> |
| 30683 | #endif |
| 30684 | |
| 30685 | #undef $ac_func |
| 30686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30687 | /* Override any GCC internal prototype to avoid an error. |
| 30688 | Use char because int might match the return type of a GCC |
| 30689 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30690 | #ifdef __cplusplus |
| 30691 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30692 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30693 | char $ac_func (); |
| 30694 | /* The GNU C library defines this for functions which it implements |
| 30695 | to always fail with ENOSYS. Some functions are actually named |
| 30696 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30697 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30698 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30699 | #endif |
| 30700 | |
| 30701 | int |
| 30702 | main () |
| 30703 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30704 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30705 | ; |
| 30706 | return 0; |
| 30707 | } |
| 30708 | _ACEOF |
| 30709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30710 | if { (ac_try="$ac_link" |
| 30711 | case "(($ac_try" in |
| 30712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30713 | *) ac_try_echo=$ac_try;; |
| 30714 | esac |
| 30715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30716 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30717 | ac_status=$? |
| 30718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30719 | rm -f conftest.er1 |
| 30720 | cat conftest.err >&5 |
| 30721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30722 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30724 | { (case "(($ac_try" in |
| 30725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30726 | *) ac_try_echo=$ac_try;; |
| 30727 | esac |
| 30728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30729 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30730 | ac_status=$? |
| 30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30732 | (exit $ac_status); }; } && |
| 30733 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30734 | { (case "(($ac_try" in |
| 30735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30736 | *) ac_try_echo=$ac_try;; |
| 30737 | esac |
| 30738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30739 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30740 | ac_status=$? |
| 30741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30742 | (exit $ac_status); }; }; then |
| 30743 | eval "$as_ac_var=yes" |
| 30744 | else |
| 30745 | echo "$as_me: failed program was:" >&5 |
| 30746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30748 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30749 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30750 | |
| 30751 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30752 | conftest$ac_exeext conftest.$ac_ext |
| 30753 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30754 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30755 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30756 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30757 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30758 | |
| 30759 | cat >>confdefs.h <<_ACEOF |
| 30760 | #define CRAY_STACKSEG_END $ac_func |
| 30761 | _ACEOF |
| 30762 | |
| 30763 | break |
| 30764 | fi |
| 30765 | |
| 30766 | done |
| 30767 | fi |
| 30768 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30769 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 30770 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30771 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 30772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30773 | else |
| 30774 | if test "$cross_compiling" = yes; then |
| 30775 | ac_cv_c_stack_direction=0 |
| 30776 | else |
| 30777 | cat >conftest.$ac_ext <<_ACEOF |
| 30778 | /* confdefs.h. */ |
| 30779 | _ACEOF |
| 30780 | cat confdefs.h >>conftest.$ac_ext |
| 30781 | cat >>conftest.$ac_ext <<_ACEOF |
| 30782 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30783 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30784 | int |
| 30785 | find_stack_direction () |
| 30786 | { |
| 30787 | static char *addr = 0; |
| 30788 | auto char dummy; |
| 30789 | if (addr == 0) |
| 30790 | { |
| 30791 | addr = &dummy; |
| 30792 | return find_stack_direction (); |
| 30793 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30794 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30795 | return (&dummy > addr) ? 1 : -1; |
| 30796 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30797 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30798 | int |
| 30799 | main () |
| 30800 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30801 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30802 | } |
| 30803 | _ACEOF |
| 30804 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30805 | if { (ac_try="$ac_link" |
| 30806 | case "(($ac_try" in |
| 30807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30808 | *) ac_try_echo=$ac_try;; |
| 30809 | esac |
| 30810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30811 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30812 | ac_status=$? |
| 30813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30815 | { (case "(($ac_try" in |
| 30816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30817 | *) ac_try_echo=$ac_try;; |
| 30818 | esac |
| 30819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30820 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30821 | ac_status=$? |
| 30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30823 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30824 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30825 | else |
| 30826 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30827 | echo "$as_me: failed program was:" >&5 |
| 30828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30829 | |
| 30830 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30831 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30832 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30833 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30834 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30835 | |
| 30836 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30837 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30838 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 30839 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30840 | |
| 30841 | cat >>confdefs.h <<_ACEOF |
| 30842 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 30843 | _ACEOF |
| 30844 | |
| 30845 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30846 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30847 | |
| 30848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30849 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 30850 | echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30851 | if test "${ac_cv_func_rand48+set}" = set; then |
| 30852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30853 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30854 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30855 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30856 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30857 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30858 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30859 | |
| 30860 | cat >conftest.$ac_ext <<_ACEOF |
| 30861 | /* confdefs.h. */ |
| 30862 | _ACEOF |
| 30863 | cat confdefs.h >>conftest.$ac_ext |
| 30864 | cat >>conftest.$ac_ext <<_ACEOF |
| 30865 | /* end confdefs.h. */ |
| 30866 | #include <stdlib.h> |
| 30867 | int |
| 30868 | main () |
| 30869 | { |
| 30870 | srand48(0);lrand48();drand48(); |
| 30871 | ; |
| 30872 | return 0; |
| 30873 | } |
| 30874 | _ACEOF |
| 30875 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30876 | if { (ac_try="$ac_compile" |
| 30877 | case "(($ac_try" in |
| 30878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30879 | *) ac_try_echo=$ac_try;; |
| 30880 | esac |
| 30881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30882 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30883 | ac_status=$? |
| 30884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30885 | rm -f conftest.er1 |
| 30886 | cat conftest.err >&5 |
| 30887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30888 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 30890 | { (case "(($ac_try" in |
| 30891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30892 | *) ac_try_echo=$ac_try;; |
| 30893 | esac |
| 30894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30895 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30896 | ac_status=$? |
| 30897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30898 | (exit $ac_status); }; } && |
| 30899 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30900 | { (case "(($ac_try" in |
| 30901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30902 | *) ac_try_echo=$ac_try;; |
| 30903 | esac |
| 30904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30905 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30906 | ac_status=$? |
| 30907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30908 | (exit $ac_status); }; }; then |
| 30909 | ac_cv_func_rand48=yes |
| 30910 | else |
| 30911 | echo "$as_me: failed program was:" >&5 |
| 30912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30913 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30914 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30916 | |
| 30917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30918 | ac_ext=c |
| 30919 | ac_cpp='$CPP $CPPFLAGS' |
| 30920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30923 | |
| 30924 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30925 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 30926 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30927 | |
| 30928 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 30929 | |
| 30930 | cat >>confdefs.h <<\_ACEOF |
| 30931 | #define HAVE_RAND48 1 |
| 30932 | _ACEOF |
| 30933 | |
| 30934 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30935 | |
| 30936 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30937 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 30938 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30939 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 30940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30941 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30942 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30943 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30944 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30945 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30946 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30947 | |
| 30948 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30949 | /* confdefs.h. */ |
| 30950 | _ACEOF |
| 30951 | cat confdefs.h >>conftest.$ac_ext |
| 30952 | cat >>conftest.$ac_ext <<_ACEOF |
| 30953 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30954 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30955 | int |
| 30956 | main () |
| 30957 | { |
| 30958 | using namespace Outer::Inner; return i; |
| 30959 | ; |
| 30960 | return 0; |
| 30961 | } |
| 30962 | _ACEOF |
| 30963 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30964 | if { (ac_try="$ac_compile" |
| 30965 | case "(($ac_try" in |
| 30966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30967 | *) ac_try_echo=$ac_try;; |
| 30968 | esac |
| 30969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30970 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30971 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30973 | rm -f conftest.er1 |
| 30974 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30976 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30977 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 30978 | { (case "(($ac_try" in |
| 30979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30980 | *) ac_try_echo=$ac_try;; |
| 30981 | esac |
| 30982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30983 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30984 | ac_status=$? |
| 30985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30986 | (exit $ac_status); }; } && |
| 30987 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30988 | { (case "(($ac_try" in |
| 30989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30990 | *) ac_try_echo=$ac_try;; |
| 30991 | esac |
| 30992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30993 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30994 | ac_status=$? |
| 30995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30996 | (exit $ac_status); }; }; then |
| 30997 | ac_cv_cxx_namespaces=yes |
| 30998 | else |
| 30999 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31002 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31004 | |
| 31005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31006 | ac_ext=c |
| 31007 | ac_cpp='$CPP $CPPFLAGS' |
| 31008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31011 | |
| 31012 | |
| 31013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31014 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31015 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31016 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31017 | |
| 31018 | cat >>confdefs.h <<\_ACEOF |
| 31019 | #define HAVE_NAMESPACES |
| 31020 | _ACEOF |
| 31021 | |
| 31022 | fi |
| 31023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31024 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31025 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31026 | if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31028 | else |
| 31029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31030 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31031 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31035 | |
| 31036 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31037 | /* confdefs.h. */ |
| 31038 | _ACEOF |
| 31039 | cat confdefs.h >>conftest.$ac_ext |
| 31040 | cat >>conftest.$ac_ext <<_ACEOF |
| 31041 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31042 | #include <ext/hash_map> |
| 31043 | #ifdef HAVE_NAMESPACES |
| 31044 | using namespace std; |
| 31045 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31046 | int |
| 31047 | main () |
| 31048 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31049 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31050 | ; |
| 31051 | return 0; |
| 31052 | } |
| 31053 | _ACEOF |
| 31054 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31055 | if { (ac_try="$ac_compile" |
| 31056 | case "(($ac_try" in |
| 31057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31058 | *) ac_try_echo=$ac_try;; |
| 31059 | esac |
| 31060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31061 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31062 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31064 | rm -f conftest.er1 |
| 31065 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31067 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31068 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31069 | { (case "(($ac_try" in |
| 31070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31071 | *) ac_try_echo=$ac_try;; |
| 31072 | esac |
| 31073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31074 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31075 | ac_status=$? |
| 31076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31077 | (exit $ac_status); }; } && |
| 31078 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31079 | { (case "(($ac_try" in |
| 31080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31081 | *) ac_try_echo=$ac_try;; |
| 31082 | esac |
| 31083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31084 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31085 | ac_status=$? |
| 31086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31087 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31088 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31089 | else |
| 31090 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31093 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31094 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31095 | |
| 31096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31097 | ac_ext=c |
| 31098 | ac_cpp='$CPP $CPPFLAGS' |
| 31099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31102 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31104 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31105 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31106 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31107 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31108 | |
| 31109 | cat >>confdefs.h <<\_ACEOF |
| 31110 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31111 | _ACEOF |
| 31112 | |
| 31113 | else |
| 31114 | |
| 31115 | cat >>confdefs.h <<\_ACEOF |
| 31116 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31117 | _ACEOF |
| 31118 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31119 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31121 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31122 | echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31123 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31125 | else |
| 31126 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31127 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31128 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31129 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31130 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31131 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31132 | |
| 31133 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31134 | /* confdefs.h. */ |
| 31135 | _ACEOF |
| 31136 | cat confdefs.h >>conftest.$ac_ext |
| 31137 | cat >>conftest.$ac_ext <<_ACEOF |
| 31138 | /* end confdefs.h. */ |
| 31139 | #include <ext/hash_map> |
| 31140 | #ifdef HAVE_NAMESPACES |
| 31141 | using namespace __gnu_cxx; |
| 31142 | #endif |
| 31143 | int |
| 31144 | main () |
| 31145 | { |
| 31146 | hash_map<int,int> t; |
| 31147 | ; |
| 31148 | return 0; |
| 31149 | } |
| 31150 | _ACEOF |
| 31151 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31152 | if { (ac_try="$ac_compile" |
| 31153 | case "(($ac_try" in |
| 31154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31155 | *) ac_try_echo=$ac_try;; |
| 31156 | esac |
| 31157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31158 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31159 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31161 | rm -f conftest.er1 |
| 31162 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31164 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31165 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31166 | { (case "(($ac_try" in |
| 31167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31168 | *) ac_try_echo=$ac_try;; |
| 31169 | esac |
| 31170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31171 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31172 | ac_status=$? |
| 31173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31174 | (exit $ac_status); }; } && |
| 31175 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31176 | { (case "(($ac_try" in |
| 31177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31178 | *) ac_try_echo=$ac_try;; |
| 31179 | esac |
| 31180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31181 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31182 | ac_status=$? |
| 31183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31184 | (exit $ac_status); }; }; then |
| 31185 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 31186 | else |
| 31187 | echo "$as_me: failed program was:" >&5 |
| 31188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31190 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31191 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31192 | |
| 31193 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31194 | ac_ext=c |
| 31195 | ac_cpp='$CPP $CPPFLAGS' |
| 31196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31199 | |
| 31200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31201 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 31202 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31203 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 31204 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31205 | |
| 31206 | cat >>confdefs.h <<\_ACEOF |
| 31207 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 31208 | _ACEOF |
| 31209 | |
| 31210 | else |
| 31211 | |
| 31212 | cat >>confdefs.h <<\_ACEOF |
| 31213 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 31214 | _ACEOF |
| 31215 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31216 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31218 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 31219 | echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31220 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 31221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31222 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31224 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31225 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31226 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31227 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31228 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31229 | |
| 31230 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31231 | /* confdefs.h. */ |
| 31232 | _ACEOF |
| 31233 | cat confdefs.h >>conftest.$ac_ext |
| 31234 | cat >>conftest.$ac_ext <<_ACEOF |
| 31235 | /* end confdefs.h. */ |
| 31236 | #include <hash_map> |
| 31237 | int |
| 31238 | main () |
| 31239 | { |
| 31240 | hash_map<int,int> t; |
| 31241 | ; |
| 31242 | return 0; |
| 31243 | } |
| 31244 | _ACEOF |
| 31245 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31246 | if { (ac_try="$ac_compile" |
| 31247 | case "(($ac_try" in |
| 31248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31249 | *) ac_try_echo=$ac_try;; |
| 31250 | esac |
| 31251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31252 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31253 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31255 | rm -f conftest.er1 |
| 31256 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31258 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31259 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31260 | { (case "(($ac_try" in |
| 31261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31262 | *) ac_try_echo=$ac_try;; |
| 31263 | esac |
| 31264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31265 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31266 | ac_status=$? |
| 31267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31268 | (exit $ac_status); }; } && |
| 31269 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31270 | { (case "(($ac_try" in |
| 31271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31272 | *) ac_try_echo=$ac_try;; |
| 31273 | esac |
| 31274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31275 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31276 | ac_status=$? |
| 31277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31278 | (exit $ac_status); }; }; then |
| 31279 | ac_cv_cxx_have_global_hash_map=yes |
| 31280 | else |
| 31281 | echo "$as_me: failed program was:" >&5 |
| 31282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31284 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31285 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31286 | |
| 31287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31288 | ac_ext=c |
| 31289 | ac_cpp='$CPP $CPPFLAGS' |
| 31290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31293 | |
| 31294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31295 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 31296 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31297 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 31298 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31299 | |
| 31300 | cat >>confdefs.h <<\_ACEOF |
| 31301 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 31302 | _ACEOF |
| 31303 | |
| 31304 | else |
| 31305 | |
| 31306 | cat >>confdefs.h <<\_ACEOF |
| 31307 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 31308 | _ACEOF |
| 31309 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31310 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31312 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 31313 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31314 | if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31316 | else |
| 31317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31318 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31319 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31323 | |
| 31324 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31325 | /* confdefs.h. */ |
| 31326 | _ACEOF |
| 31327 | cat confdefs.h >>conftest.$ac_ext |
| 31328 | cat >>conftest.$ac_ext <<_ACEOF |
| 31329 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31330 | #include <ext/hash_set> |
| 31331 | #ifdef HAVE_NAMESPACES |
| 31332 | using namespace std; |
| 31333 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31334 | int |
| 31335 | main () |
| 31336 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31337 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31338 | ; |
| 31339 | return 0; |
| 31340 | } |
| 31341 | _ACEOF |
| 31342 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31343 | if { (ac_try="$ac_compile" |
| 31344 | case "(($ac_try" in |
| 31345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31346 | *) ac_try_echo=$ac_try;; |
| 31347 | esac |
| 31348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31349 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31350 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31352 | rm -f conftest.er1 |
| 31353 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31355 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31356 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31357 | { (case "(($ac_try" in |
| 31358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31359 | *) ac_try_echo=$ac_try;; |
| 31360 | esac |
| 31361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31362 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31363 | ac_status=$? |
| 31364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31365 | (exit $ac_status); }; } && |
| 31366 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31367 | { (case "(($ac_try" in |
| 31368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31369 | *) ac_try_echo=$ac_try;; |
| 31370 | esac |
| 31371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31372 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31373 | ac_status=$? |
| 31374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31375 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31376 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31377 | else |
| 31378 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31381 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31383 | |
| 31384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31385 | ac_ext=c |
| 31386 | ac_cpp='$CPP $CPPFLAGS' |
| 31387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31390 | |
| 31391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31392 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 31393 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31394 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 31395 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31396 | |
| 31397 | cat >>confdefs.h <<\_ACEOF |
| 31398 | #define HAVE_STD_EXT_HASH_SET 1 |
| 31399 | _ACEOF |
| 31400 | |
| 31401 | else |
| 31402 | |
| 31403 | cat >>confdefs.h <<\_ACEOF |
| 31404 | #define HAVE_STD_EXT_HASH_SET 0 |
| 31405 | _ACEOF |
| 31406 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31407 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31409 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 31410 | echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31411 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 31412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31413 | else |
| 31414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31415 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31416 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31417 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31418 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31419 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31420 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31421 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31422 | /* confdefs.h. */ |
| 31423 | _ACEOF |
| 31424 | cat confdefs.h >>conftest.$ac_ext |
| 31425 | cat >>conftest.$ac_ext <<_ACEOF |
| 31426 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31427 | #include <ext/hash_set> |
| 31428 | #ifdef HAVE_NAMESPACES |
| 31429 | using namespace __gnu_cxx; |
| 31430 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31431 | int |
| 31432 | main () |
| 31433 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31434 | hash_set<int> t; |
| 31435 | ; |
| 31436 | return 0; |
| 31437 | } |
| 31438 | _ACEOF |
| 31439 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31440 | if { (ac_try="$ac_compile" |
| 31441 | case "(($ac_try" in |
| 31442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31443 | *) ac_try_echo=$ac_try;; |
| 31444 | esac |
| 31445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31446 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31447 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31448 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31449 | rm -f conftest.er1 |
| 31450 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31452 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31453 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31454 | { (case "(($ac_try" in |
| 31455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31456 | *) ac_try_echo=$ac_try;; |
| 31457 | esac |
| 31458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31459 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31460 | ac_status=$? |
| 31461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31462 | (exit $ac_status); }; } && |
| 31463 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31464 | { (case "(($ac_try" in |
| 31465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31466 | *) ac_try_echo=$ac_try;; |
| 31467 | esac |
| 31468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31469 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31470 | ac_status=$? |
| 31471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31472 | (exit $ac_status); }; }; then |
| 31473 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 31474 | else |
| 31475 | echo "$as_me: failed program was:" >&5 |
| 31476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31478 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31479 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31480 | |
| 31481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31482 | ac_ext=c |
| 31483 | ac_cpp='$CPP $CPPFLAGS' |
| 31484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31487 | |
| 31488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31489 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 31490 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31491 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 31492 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31493 | |
| 31494 | cat >>confdefs.h <<\_ACEOF |
| 31495 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 31496 | _ACEOF |
| 31497 | |
| 31498 | else |
| 31499 | |
| 31500 | cat >>confdefs.h <<\_ACEOF |
| 31501 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 31502 | _ACEOF |
| 31503 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31504 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31506 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 31507 | echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; } |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31508 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 31509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31510 | else |
| 31511 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31512 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31513 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31514 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31515 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31516 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31517 | |
| 31518 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31519 | /* confdefs.h. */ |
| 31520 | _ACEOF |
| 31521 | cat confdefs.h >>conftest.$ac_ext |
| 31522 | cat >>conftest.$ac_ext <<_ACEOF |
| 31523 | /* end confdefs.h. */ |
| 31524 | #include <hash_set> |
| 31525 | int |
| 31526 | main () |
| 31527 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31528 | hash_set<int> t; return 0; |
| 31529 | ; |
| 31530 | return 0; |
| 31531 | } |
| 31532 | _ACEOF |
| 31533 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31534 | if { (ac_try="$ac_compile" |
| 31535 | case "(($ac_try" in |
| 31536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31537 | *) ac_try_echo=$ac_try;; |
| 31538 | esac |
| 31539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31540 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31541 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31543 | rm -f conftest.er1 |
| 31544 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31546 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31547 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31548 | { (case "(($ac_try" in |
| 31549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31550 | *) ac_try_echo=$ac_try;; |
| 31551 | esac |
| 31552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31553 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31554 | ac_status=$? |
| 31555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31556 | (exit $ac_status); }; } && |
| 31557 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31558 | { (case "(($ac_try" in |
| 31559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31560 | *) ac_try_echo=$ac_try;; |
| 31561 | esac |
| 31562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31563 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31564 | ac_status=$? |
| 31565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31566 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31567 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31568 | else |
| 31569 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31571 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31572 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31573 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31574 | |
| 31575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31576 | ac_ext=c |
| 31577 | ac_cpp='$CPP $CPPFLAGS' |
| 31578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31581 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31582 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31583 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 31584 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31585 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 31586 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31587 | |
| 31588 | cat >>confdefs.h <<\_ACEOF |
| 31589 | #define HAVE_GLOBAL_HASH_SET 1 |
| 31590 | _ACEOF |
| 31591 | |
| 31592 | else |
| 31593 | |
| 31594 | cat >>confdefs.h <<\_ACEOF |
| 31595 | #define HAVE_GLOBAL_HASH_SET 0 |
| 31596 | _ACEOF |
| 31597 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31598 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31599 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31600 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 31601 | echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31602 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 31603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31604 | else |
| 31605 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31606 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31607 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31611 | |
| 31612 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31613 | /* confdefs.h. */ |
| 31614 | _ACEOF |
| 31615 | cat confdefs.h >>conftest.$ac_ext |
| 31616 | cat >>conftest.$ac_ext <<_ACEOF |
| 31617 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31618 | #include <iterator> |
| 31619 | #ifdef HAVE_NAMESPACES |
| 31620 | using namespace std; |
| 31621 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31622 | int |
| 31623 | main () |
| 31624 | { |
| 31625 | iterator<int,int,int> t; return 0; |
| 31626 | ; |
| 31627 | return 0; |
| 31628 | } |
| 31629 | _ACEOF |
| 31630 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31631 | if { (ac_try="$ac_compile" |
| 31632 | case "(($ac_try" in |
| 31633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31634 | *) ac_try_echo=$ac_try;; |
| 31635 | esac |
| 31636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31637 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31638 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31640 | rm -f conftest.er1 |
| 31641 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31643 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31644 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31645 | { (case "(($ac_try" in |
| 31646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31647 | *) ac_try_echo=$ac_try;; |
| 31648 | esac |
| 31649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31650 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31651 | ac_status=$? |
| 31652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31653 | (exit $ac_status); }; } && |
| 31654 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31655 | { (case "(($ac_try" in |
| 31656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31657 | *) ac_try_echo=$ac_try;; |
| 31658 | esac |
| 31659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31660 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31661 | ac_status=$? |
| 31662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31663 | (exit $ac_status); }; }; then |
| 31664 | ac_cv_cxx_have_std_iterator=yes |
| 31665 | else |
| 31666 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31667 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31669 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31670 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31671 | |
| 31672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31673 | ac_ext=c |
| 31674 | ac_cpp='$CPP $CPPFLAGS' |
| 31675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31678 | |
| 31679 | |
| 31680 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31681 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 31682 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31683 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 31684 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31685 | |
| 31686 | cat >>confdefs.h <<\_ACEOF |
| 31687 | #define HAVE_STD_ITERATOR 1 |
| 31688 | _ACEOF |
| 31689 | |
| 31690 | else |
| 31691 | |
| 31692 | cat >>confdefs.h <<\_ACEOF |
| 31693 | #define HAVE_STD_ITERATOR 0 |
| 31694 | _ACEOF |
| 31695 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31696 | fi |
| 31697 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31698 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 31699 | echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31700 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 31701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31702 | else |
| 31703 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31704 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31705 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31706 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31707 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31708 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31709 | |
| 31710 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31711 | /* confdefs.h. */ |
| 31712 | _ACEOF |
| 31713 | cat confdefs.h >>conftest.$ac_ext |
| 31714 | cat >>conftest.$ac_ext <<_ACEOF |
| 31715 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31716 | #include <iterator> |
| 31717 | #ifdef HAVE_NAMESPACES |
| 31718 | using namespace std; |
| 31719 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31720 | int |
| 31721 | main () |
| 31722 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31723 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31724 | ; |
| 31725 | return 0; |
| 31726 | } |
| 31727 | _ACEOF |
| 31728 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31729 | if { (ac_try="$ac_compile" |
| 31730 | case "(($ac_try" in |
| 31731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31732 | *) ac_try_echo=$ac_try;; |
| 31733 | esac |
| 31734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31735 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31736 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31738 | rm -f conftest.er1 |
| 31739 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31741 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31742 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31743 | { (case "(($ac_try" in |
| 31744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31745 | *) ac_try_echo=$ac_try;; |
| 31746 | esac |
| 31747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31748 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31749 | ac_status=$? |
| 31750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31751 | (exit $ac_status); }; } && |
| 31752 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31753 | { (case "(($ac_try" in |
| 31754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31755 | *) ac_try_echo=$ac_try;; |
| 31756 | esac |
| 31757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31758 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31759 | ac_status=$? |
| 31760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31761 | (exit $ac_status); }; }; then |
| 31762 | ac_cv_cxx_have_bi_iterator=yes |
| 31763 | else |
| 31764 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31767 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31768 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31769 | |
| 31770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31771 | ac_ext=c |
| 31772 | ac_cpp='$CPP $CPPFLAGS' |
| 31773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31776 | |
| 31777 | |
| 31778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31779 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 31780 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31781 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 31782 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31783 | |
| 31784 | cat >>confdefs.h <<\_ACEOF |
| 31785 | #define HAVE_BI_ITERATOR 1 |
| 31786 | _ACEOF |
| 31787 | |
| 31788 | else |
| 31789 | |
| 31790 | cat >>confdefs.h <<\_ACEOF |
| 31791 | #define HAVE_BI_ITERATOR 0 |
| 31792 | _ACEOF |
| 31793 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31794 | fi |
| 31795 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31796 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 31797 | echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31798 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 31799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31800 | else |
| 31801 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31802 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31803 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31804 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31805 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31806 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31807 | |
| 31808 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31809 | /* confdefs.h. */ |
| 31810 | _ACEOF |
| 31811 | cat confdefs.h >>conftest.$ac_ext |
| 31812 | cat >>conftest.$ac_ext <<_ACEOF |
| 31813 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31814 | #include <iterator> |
| 31815 | #ifdef HAVE_NAMESPACES |
| 31816 | using namespace std; |
| 31817 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31818 | int |
| 31819 | main () |
| 31820 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31821 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31822 | ; |
| 31823 | return 0; |
| 31824 | } |
| 31825 | _ACEOF |
| 31826 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31827 | if { (ac_try="$ac_compile" |
| 31828 | case "(($ac_try" in |
| 31829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31830 | *) ac_try_echo=$ac_try;; |
| 31831 | esac |
| 31832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31833 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31834 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31836 | rm -f conftest.er1 |
| 31837 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31839 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31840 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31841 | { (case "(($ac_try" in |
| 31842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31843 | *) ac_try_echo=$ac_try;; |
| 31844 | esac |
| 31845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31846 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31847 | ac_status=$? |
| 31848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31849 | (exit $ac_status); }; } && |
| 31850 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31851 | { (case "(($ac_try" in |
| 31852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31853 | *) ac_try_echo=$ac_try;; |
| 31854 | esac |
| 31855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31856 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31857 | ac_status=$? |
| 31858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31859 | (exit $ac_status); }; }; then |
| 31860 | ac_cv_cxx_have_fwd_iterator=yes |
| 31861 | else |
| 31862 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31865 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31866 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31867 | |
| 31868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31869 | ac_ext=c |
| 31870 | ac_cpp='$CPP $CPPFLAGS' |
| 31871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31874 | |
| 31875 | |
| 31876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31877 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 31878 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31879 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 31880 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31881 | |
| 31882 | cat >>confdefs.h <<\_ACEOF |
| 31883 | #define HAVE_FWD_ITERATOR 1 |
| 31884 | _ACEOF |
| 31885 | |
| 31886 | else |
| 31887 | |
| 31888 | cat >>confdefs.h <<\_ACEOF |
| 31889 | #define HAVE_FWD_ITERATOR 0 |
| 31890 | _ACEOF |
| 31891 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31892 | fi |
| 31893 | |
| 31894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31895 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 31896 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31897 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 31898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31899 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31900 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31901 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31905 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31906 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31907 | /* confdefs.h. */ |
| 31908 | _ACEOF |
| 31909 | cat confdefs.h >>conftest.$ac_ext |
| 31910 | cat >>conftest.$ac_ext <<_ACEOF |
| 31911 | /* end confdefs.h. */ |
| 31912 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31913 | int |
| 31914 | main () |
| 31915 | { |
| 31916 | float f; isnan(f); |
| 31917 | ; |
| 31918 | return 0; |
| 31919 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31920 | _ACEOF |
| 31921 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31922 | if { (ac_try="$ac_compile" |
| 31923 | case "(($ac_try" in |
| 31924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31925 | *) ac_try_echo=$ac_try;; |
| 31926 | esac |
| 31927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31928 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31929 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31931 | rm -f conftest.er1 |
| 31932 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31934 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31935 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31936 | { (case "(($ac_try" in |
| 31937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31938 | *) ac_try_echo=$ac_try;; |
| 31939 | esac |
| 31940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31941 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31942 | ac_status=$? |
| 31943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31944 | (exit $ac_status); }; } && |
| 31945 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31946 | { (case "(($ac_try" in |
| 31947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31948 | *) ac_try_echo=$ac_try;; |
| 31949 | esac |
| 31950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31951 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31952 | ac_status=$? |
| 31953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31954 | (exit $ac_status); }; }; then |
| 31955 | ac_cv_func_isnan_in_math_h=yes |
| 31956 | else |
| 31957 | echo "$as_me: failed program was:" >&5 |
| 31958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31960 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31962 | |
| 31963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31964 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31965 | ac_cpp='$CPP $CPPFLAGS' |
| 31966 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31967 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31968 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31969 | |
| 31970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31971 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 31972 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31973 | |
| 31974 | |
| 31975 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31976 | |
| 31977 | cat >>confdefs.h <<\_ACEOF |
| 31978 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 31979 | _ACEOF |
| 31980 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31981 | fi |
| 31982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31983 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 31984 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31985 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 31986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31987 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31988 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31989 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31990 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31991 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31992 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31993 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31994 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 31995 | /* confdefs.h. */ |
| 31996 | _ACEOF |
| 31997 | cat confdefs.h >>conftest.$ac_ext |
| 31998 | cat >>conftest.$ac_ext <<_ACEOF |
| 31999 | /* end confdefs.h. */ |
| 32000 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32001 | int |
| 32002 | main () |
| 32003 | { |
| 32004 | float f; isnan(f); |
| 32005 | ; |
| 32006 | return 0; |
| 32007 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32008 | _ACEOF |
| 32009 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32010 | if { (ac_try="$ac_compile" |
| 32011 | case "(($ac_try" in |
| 32012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32013 | *) ac_try_echo=$ac_try;; |
| 32014 | esac |
| 32015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32016 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32017 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32019 | rm -f conftest.er1 |
| 32020 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32022 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32023 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32024 | { (case "(($ac_try" in |
| 32025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32026 | *) ac_try_echo=$ac_try;; |
| 32027 | esac |
| 32028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32029 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32030 | ac_status=$? |
| 32031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32032 | (exit $ac_status); }; } && |
| 32033 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32034 | { (case "(($ac_try" in |
| 32035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32036 | *) ac_try_echo=$ac_try;; |
| 32037 | esac |
| 32038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32039 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32040 | ac_status=$? |
| 32041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32042 | (exit $ac_status); }; }; then |
| 32043 | ac_cv_func_isnan_in_cmath=yes |
| 32044 | else |
| 32045 | echo "$as_me: failed program was:" >&5 |
| 32046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32048 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32050 | |
| 32051 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32052 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32053 | ac_cpp='$CPP $CPPFLAGS' |
| 32054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32057 | |
| 32058 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32059 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32060 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32061 | |
| 32062 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32063 | |
| 32064 | cat >>confdefs.h <<\_ACEOF |
| 32065 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32066 | _ACEOF |
| 32067 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32068 | fi |
| 32069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32070 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32071 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32072 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32074 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32075 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32076 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32077 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32078 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32079 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32080 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32081 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32082 | /* confdefs.h. */ |
| 32083 | _ACEOF |
| 32084 | cat confdefs.h >>conftest.$ac_ext |
| 32085 | cat >>conftest.$ac_ext <<_ACEOF |
| 32086 | /* end confdefs.h. */ |
| 32087 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32088 | int |
| 32089 | main () |
| 32090 | { |
| 32091 | float f; std::isnan(f); |
| 32092 | ; |
| 32093 | return 0; |
| 32094 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32095 | _ACEOF |
| 32096 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32097 | if { (ac_try="$ac_compile" |
| 32098 | case "(($ac_try" in |
| 32099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32100 | *) ac_try_echo=$ac_try;; |
| 32101 | esac |
| 32102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32103 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32104 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32106 | rm -f conftest.er1 |
| 32107 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32109 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32110 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32111 | { (case "(($ac_try" in |
| 32112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32113 | *) ac_try_echo=$ac_try;; |
| 32114 | esac |
| 32115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32116 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32117 | ac_status=$? |
| 32118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32119 | (exit $ac_status); }; } && |
| 32120 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32121 | { (case "(($ac_try" in |
| 32122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32123 | *) ac_try_echo=$ac_try;; |
| 32124 | esac |
| 32125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32126 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32127 | ac_status=$? |
| 32128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32129 | (exit $ac_status); }; }; then |
| 32130 | ac_cv_func_std_isnan_in_cmath=yes |
| 32131 | else |
| 32132 | echo "$as_me: failed program was:" >&5 |
| 32133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32135 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32137 | |
| 32138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32139 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32140 | ac_cpp='$CPP $CPPFLAGS' |
| 32141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32144 | |
| 32145 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32146 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32147 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32148 | |
| 32149 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32150 | |
| 32151 | cat >>confdefs.h <<\_ACEOF |
| 32152 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32153 | _ACEOF |
| 32154 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32155 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32156 | |
| 32157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32158 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32159 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32160 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32162 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32163 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32164 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32165 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32166 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32167 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32168 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32169 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32170 | /* confdefs.h. */ |
| 32171 | _ACEOF |
| 32172 | cat confdefs.h >>conftest.$ac_ext |
| 32173 | cat >>conftest.$ac_ext <<_ACEOF |
| 32174 | /* end confdefs.h. */ |
| 32175 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32176 | int |
| 32177 | main () |
| 32178 | { |
| 32179 | float f; isinf(f); |
| 32180 | ; |
| 32181 | return 0; |
| 32182 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32183 | _ACEOF |
| 32184 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32185 | if { (ac_try="$ac_compile" |
| 32186 | case "(($ac_try" in |
| 32187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32188 | *) ac_try_echo=$ac_try;; |
| 32189 | esac |
| 32190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32191 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32192 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32194 | rm -f conftest.er1 |
| 32195 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32197 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32198 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32199 | { (case "(($ac_try" in |
| 32200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32201 | *) ac_try_echo=$ac_try;; |
| 32202 | esac |
| 32203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32204 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32205 | ac_status=$? |
| 32206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32207 | (exit $ac_status); }; } && |
| 32208 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32209 | { (case "(($ac_try" in |
| 32210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32211 | *) ac_try_echo=$ac_try;; |
| 32212 | esac |
| 32213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32214 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32215 | ac_status=$? |
| 32216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32217 | (exit $ac_status); }; }; then |
| 32218 | ac_cv_func_isinf_in_math_h=yes |
| 32219 | else |
| 32220 | echo "$as_me: failed program was:" >&5 |
| 32221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32222 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32223 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32225 | |
| 32226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32227 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32228 | ac_cpp='$CPP $CPPFLAGS' |
| 32229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32232 | |
| 32233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32234 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32235 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32236 | |
| 32237 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32238 | |
| 32239 | cat >>confdefs.h <<\_ACEOF |
| 32240 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32241 | _ACEOF |
| 32242 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32243 | fi |
| 32244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32245 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32246 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32247 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32249 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32250 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32251 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32255 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32256 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32257 | /* confdefs.h. */ |
| 32258 | _ACEOF |
| 32259 | cat confdefs.h >>conftest.$ac_ext |
| 32260 | cat >>conftest.$ac_ext <<_ACEOF |
| 32261 | /* end confdefs.h. */ |
| 32262 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32263 | int |
| 32264 | main () |
| 32265 | { |
| 32266 | float f; isinf(f); |
| 32267 | ; |
| 32268 | return 0; |
| 32269 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32270 | _ACEOF |
| 32271 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32272 | if { (ac_try="$ac_compile" |
| 32273 | case "(($ac_try" in |
| 32274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32275 | *) ac_try_echo=$ac_try;; |
| 32276 | esac |
| 32277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32278 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32279 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32280 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32281 | rm -f conftest.er1 |
| 32282 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32284 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32285 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32286 | { (case "(($ac_try" in |
| 32287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32288 | *) ac_try_echo=$ac_try;; |
| 32289 | esac |
| 32290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32291 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32292 | ac_status=$? |
| 32293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32294 | (exit $ac_status); }; } && |
| 32295 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32296 | { (case "(($ac_try" in |
| 32297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32298 | *) ac_try_echo=$ac_try;; |
| 32299 | esac |
| 32300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32301 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32302 | ac_status=$? |
| 32303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32304 | (exit $ac_status); }; }; then |
| 32305 | ac_cv_func_isinf_in_cmath=yes |
| 32306 | else |
| 32307 | echo "$as_me: failed program was:" >&5 |
| 32308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32310 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32311 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32312 | |
| 32313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32314 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32315 | ac_cpp='$CPP $CPPFLAGS' |
| 32316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32319 | |
| 32320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32321 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32322 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32323 | |
| 32324 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32325 | |
| 32326 | cat >>confdefs.h <<\_ACEOF |
| 32327 | #define HAVE_ISINF_IN_CMATH 1 |
| 32328 | _ACEOF |
| 32329 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32330 | fi |
| 32331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32332 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32333 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32334 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32336 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32337 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32338 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32342 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32343 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32344 | /* confdefs.h. */ |
| 32345 | _ACEOF |
| 32346 | cat confdefs.h >>conftest.$ac_ext |
| 32347 | cat >>conftest.$ac_ext <<_ACEOF |
| 32348 | /* end confdefs.h. */ |
| 32349 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32350 | int |
| 32351 | main () |
| 32352 | { |
| 32353 | float f; std::isinf(f)} |
| 32354 | ; |
| 32355 | return 0; |
| 32356 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32357 | _ACEOF |
| 32358 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32359 | if { (ac_try="$ac_compile" |
| 32360 | case "(($ac_try" in |
| 32361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32362 | *) ac_try_echo=$ac_try;; |
| 32363 | esac |
| 32364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32365 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32366 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32368 | rm -f conftest.er1 |
| 32369 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32371 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32373 | { (case "(($ac_try" in |
| 32374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32375 | *) ac_try_echo=$ac_try;; |
| 32376 | esac |
| 32377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32378 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32379 | ac_status=$? |
| 32380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32381 | (exit $ac_status); }; } && |
| 32382 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32383 | { (case "(($ac_try" in |
| 32384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32385 | *) ac_try_echo=$ac_try;; |
| 32386 | esac |
| 32387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32388 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32389 | ac_status=$? |
| 32390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32391 | (exit $ac_status); }; }; then |
| 32392 | ac_cv_func_std_isinf_in_cmath=yes |
| 32393 | else |
| 32394 | echo "$as_me: failed program was:" >&5 |
| 32395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32397 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32399 | |
| 32400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32401 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32402 | ac_cpp='$CPP $CPPFLAGS' |
| 32403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32406 | |
| 32407 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32408 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32409 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32410 | |
| 32411 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32412 | |
| 32413 | cat >>confdefs.h <<\_ACEOF |
| 32414 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32415 | _ACEOF |
| 32416 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32417 | fi |
| 32418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32419 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32420 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32421 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32423 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32424 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32425 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32429 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32430 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32431 | /* confdefs.h. */ |
| 32432 | _ACEOF |
| 32433 | cat confdefs.h >>conftest.$ac_ext |
| 32434 | cat >>conftest.$ac_ext <<_ACEOF |
| 32435 | /* end confdefs.h. */ |
| 32436 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32437 | int |
| 32438 | main () |
| 32439 | { |
| 32440 | float f; finite(f); |
| 32441 | ; |
| 32442 | return 0; |
| 32443 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32444 | _ACEOF |
| 32445 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32446 | if { (ac_try="$ac_compile" |
| 32447 | case "(($ac_try" in |
| 32448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32449 | *) ac_try_echo=$ac_try;; |
| 32450 | esac |
| 32451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32452 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32453 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32455 | rm -f conftest.er1 |
| 32456 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32458 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32459 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32460 | { (case "(($ac_try" in |
| 32461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32462 | *) ac_try_echo=$ac_try;; |
| 32463 | esac |
| 32464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32465 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32466 | ac_status=$? |
| 32467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32468 | (exit $ac_status); }; } && |
| 32469 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32470 | { (case "(($ac_try" in |
| 32471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32472 | *) ac_try_echo=$ac_try;; |
| 32473 | esac |
| 32474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32475 | (eval "$ac_try") 2>&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32476 | ac_status=$? |
| 32477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32478 | (exit $ac_status); }; }; then |
| 32479 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32480 | else |
| 32481 | echo "$as_me: failed program was:" >&5 |
| 32482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32483 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32484 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32485 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32486 | |
| 32487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32488 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32489 | ac_cpp='$CPP $CPPFLAGS' |
| 32490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32493 | |
| 32494 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32495 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32496 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32497 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32498 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32499 | |
| 32500 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32501 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32502 | _ACEOF |
| 32503 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32504 | fi |
| 32505 | |
| 32506 | |
| 32507 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32508 | |
| 32509 | |
| 32510 | for ac_header in stdlib.h unistd.h |
| 32511 | do |
| 32512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32514 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32515 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32516 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32518 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32519 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32520 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32521 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32522 | else |
| 32523 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32524 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32525 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32526 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32527 | /* confdefs.h. */ |
| 32528 | _ACEOF |
| 32529 | cat confdefs.h >>conftest.$ac_ext |
| 32530 | cat >>conftest.$ac_ext <<_ACEOF |
| 32531 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32532 | $ac_includes_default |
| 32533 | #include <$ac_header> |
| 32534 | _ACEOF |
| 32535 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32536 | if { (ac_try="$ac_compile" |
| 32537 | case "(($ac_try" in |
| 32538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32539 | *) ac_try_echo=$ac_try;; |
| 32540 | esac |
| 32541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32542 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32543 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32544 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32545 | rm -f conftest.er1 |
| 32546 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32548 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32550 | { (case "(($ac_try" in |
| 32551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32552 | *) ac_try_echo=$ac_try;; |
| 32553 | esac |
| 32554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32555 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32556 | ac_status=$? |
| 32557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32558 | (exit $ac_status); }; } && |
| 32559 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32560 | { (case "(($ac_try" in |
| 32561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32562 | *) ac_try_echo=$ac_try;; |
| 32563 | esac |
| 32564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32565 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32566 | ac_status=$? |
| 32567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32568 | (exit $ac_status); }; }; then |
| 32569 | ac_header_compiler=yes |
| 32570 | else |
| 32571 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32574 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32576 | |
| 32577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32578 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32579 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32580 | |
| 32581 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32582 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 32583 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32584 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32585 | /* confdefs.h. */ |
| 32586 | _ACEOF |
| 32587 | cat confdefs.h >>conftest.$ac_ext |
| 32588 | cat >>conftest.$ac_ext <<_ACEOF |
| 32589 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32590 | #include <$ac_header> |
| 32591 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32592 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32593 | case "(($ac_try" in |
| 32594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32595 | *) ac_try_echo=$ac_try;; |
| 32596 | esac |
| 32597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32598 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32599 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32600 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32601 | rm -f conftest.er1 |
| 32602 | cat conftest.err >&5 |
| 32603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32604 | (exit $ac_status); } >/dev/null; then |
| 32605 | if test -s conftest.err; then |
| 32606 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32608 | else |
| 32609 | ac_cpp_err= |
| 32610 | fi |
| 32611 | else |
| 32612 | ac_cpp_err=yes |
| 32613 | fi |
| 32614 | if test -z "$ac_cpp_err"; then |
| 32615 | ac_header_preproc=yes |
| 32616 | else |
| 32617 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32619 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32620 | ac_header_preproc=no |
| 32621 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32622 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32623 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32624 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32625 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32626 | |
| 32627 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32628 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32629 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32630 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32631 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32632 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 32633 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 32634 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32635 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32636 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32637 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 32638 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32639 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 32640 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 32641 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 32642 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 32643 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 32644 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 32646 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32647 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 32648 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32649 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32650 | ## ----------------------------------- ## |
| 32651 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 32652 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32653 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32654 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32655 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32656 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32657 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32659 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32661 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32662 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32664 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32665 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32666 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32667 | |
| 32668 | fi |
| 32669 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 32670 | cat >>confdefs.h <<_ACEOF |
| 32671 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 32672 | _ACEOF |
| 32673 | |
| 32674 | fi |
| 32675 | |
| 32676 | done |
| 32677 | |
| 32678 | |
| 32679 | for ac_func in getpagesize |
| 32680 | do |
| 32681 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32682 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32683 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32684 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32686 | else |
| 32687 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32688 | /* confdefs.h. */ |
| 32689 | _ACEOF |
| 32690 | cat confdefs.h >>conftest.$ac_ext |
| 32691 | cat >>conftest.$ac_ext <<_ACEOF |
| 32692 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32693 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32695 | #define $ac_func innocuous_$ac_func |
| 32696 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32697 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32698 | which can conflict with char $ac_func (); below. |
| 32699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32700 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32701 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32702 | #ifdef __STDC__ |
| 32703 | # include <limits.h> |
| 32704 | #else |
| 32705 | # include <assert.h> |
| 32706 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32707 | |
| 32708 | #undef $ac_func |
| 32709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32710 | /* Override any GCC internal prototype to avoid an error. |
| 32711 | Use char because int might match the return type of a GCC |
| 32712 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32713 | #ifdef __cplusplus |
| 32714 | extern "C" |
| 32715 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32716 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32717 | /* The GNU C library defines this for functions which it implements |
| 32718 | to always fail with ENOSYS. Some functions are actually named |
| 32719 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32720 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32721 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32722 | #endif |
| 32723 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32724 | int |
| 32725 | main () |
| 32726 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32727 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32728 | ; |
| 32729 | return 0; |
| 32730 | } |
| 32731 | _ACEOF |
| 32732 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32733 | if { (ac_try="$ac_link" |
| 32734 | case "(($ac_try" in |
| 32735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32736 | *) ac_try_echo=$ac_try;; |
| 32737 | esac |
| 32738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32739 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32740 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32742 | rm -f conftest.er1 |
| 32743 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32745 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32747 | { (case "(($ac_try" in |
| 32748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32749 | *) ac_try_echo=$ac_try;; |
| 32750 | esac |
| 32751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32752 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32753 | ac_status=$? |
| 32754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32755 | (exit $ac_status); }; } && |
| 32756 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32757 | { (case "(($ac_try" in |
| 32758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32759 | *) ac_try_echo=$ac_try;; |
| 32760 | esac |
| 32761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32762 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32763 | ac_status=$? |
| 32764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32765 | (exit $ac_status); }; }; then |
| 32766 | eval "$as_ac_var=yes" |
| 32767 | else |
| 32768 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32771 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32772 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32773 | |
| 32774 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32775 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32777 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32778 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32779 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32780 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32781 | cat >>confdefs.h <<_ACEOF |
| 32782 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32783 | _ACEOF |
| 32784 | |
| 32785 | fi |
| 32786 | done |
| 32787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32788 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 32789 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32790 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 32791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32792 | else |
| 32793 | if test "$cross_compiling" = yes; then |
| 32794 | ac_cv_func_mmap_fixed_mapped=no |
| 32795 | else |
| 32796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32797 | /* confdefs.h. */ |
| 32798 | _ACEOF |
| 32799 | cat confdefs.h >>conftest.$ac_ext |
| 32800 | cat >>conftest.$ac_ext <<_ACEOF |
| 32801 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32802 | $ac_includes_default |
| 32803 | /* malloc might have been renamed as rpl_malloc. */ |
| 32804 | #undef malloc |
| 32805 | |
| 32806 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 32807 | Here is a matrix of mmap possibilities: |
| 32808 | mmap private not fixed |
| 32809 | mmap private fixed at somewhere currently unmapped |
| 32810 | mmap private fixed at somewhere already mapped |
| 32811 | mmap shared not fixed |
| 32812 | mmap shared fixed at somewhere currently unmapped |
| 32813 | mmap shared fixed at somewhere already mapped |
| 32814 | For private mappings, we should verify that changes cannot be read() |
| 32815 | back from the file, nor mmap's back from the file at a different |
| 32816 | address. (There have been systems where private was not correctly |
| 32817 | implemented like the infamous i386 svr4.0, and systems where the |
| 32818 | VM page cache was not coherent with the file system buffer cache |
| 32819 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 32820 | For shared mappings, we should conversely verify that changes get |
| 32821 | propagated back to all the places they're supposed to be. |
| 32822 | |
| 32823 | Grep wants private fixed already mapped. |
| 32824 | The main things grep needs to know about mmap are: |
| 32825 | * does it exist and is it safe to write into the mmap'd area |
| 32826 | * how to use it (BSD variants) */ |
| 32827 | |
| 32828 | #include <fcntl.h> |
| 32829 | #include <sys/mman.h> |
| 32830 | |
| 32831 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 32832 | char *malloc (); |
| 32833 | #endif |
| 32834 | |
| 32835 | /* This mess was copied from the GNU getpagesize.h. */ |
| 32836 | #if !HAVE_GETPAGESIZE |
| 32837 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 32838 | # if !HAVE_SYS_PARAM_H |
| 32839 | # define HAVE_SYS_PARAM_H 1 |
| 32840 | # endif |
| 32841 | |
| 32842 | # ifdef _SC_PAGESIZE |
| 32843 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 32844 | # else /* no _SC_PAGESIZE */ |
| 32845 | # if HAVE_SYS_PARAM_H |
| 32846 | # include <sys/param.h> |
| 32847 | # ifdef EXEC_PAGESIZE |
| 32848 | # define getpagesize() EXEC_PAGESIZE |
| 32849 | # else /* no EXEC_PAGESIZE */ |
| 32850 | # ifdef NBPG |
| 32851 | # define getpagesize() NBPG * CLSIZE |
| 32852 | # ifndef CLSIZE |
| 32853 | # define CLSIZE 1 |
| 32854 | # endif /* no CLSIZE */ |
| 32855 | # else /* no NBPG */ |
| 32856 | # ifdef NBPC |
| 32857 | # define getpagesize() NBPC |
| 32858 | # else /* no NBPC */ |
| 32859 | # ifdef PAGESIZE |
| 32860 | # define getpagesize() PAGESIZE |
| 32861 | # endif /* PAGESIZE */ |
| 32862 | # endif /* no NBPC */ |
| 32863 | # endif /* no NBPG */ |
| 32864 | # endif /* no EXEC_PAGESIZE */ |
| 32865 | # else /* no HAVE_SYS_PARAM_H */ |
| 32866 | # define getpagesize() 8192 /* punt totally */ |
| 32867 | # endif /* no HAVE_SYS_PARAM_H */ |
| 32868 | # endif /* no _SC_PAGESIZE */ |
| 32869 | |
| 32870 | #endif /* no HAVE_GETPAGESIZE */ |
| 32871 | |
| 32872 | int |
| 32873 | main () |
| 32874 | { |
| 32875 | char *data, *data2, *data3; |
| 32876 | int i, pagesize; |
| 32877 | int fd; |
| 32878 | |
| 32879 | pagesize = getpagesize (); |
| 32880 | |
| 32881 | /* First, make a file with some known garbage in it. */ |
| 32882 | data = (char *) malloc (pagesize); |
| 32883 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32884 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32885 | for (i = 0; i < pagesize; ++i) |
| 32886 | *(data + i) = rand (); |
| 32887 | umask (0); |
| 32888 | fd = creat ("conftest.mmap", 0600); |
| 32889 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32890 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32891 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32892 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32893 | close (fd); |
| 32894 | |
| 32895 | /* Next, try to mmap the file at a fixed address which already has |
| 32896 | something else allocated at it. If we can, also make sure that |
| 32897 | we see the same garbage. */ |
| 32898 | fd = open ("conftest.mmap", O_RDWR); |
| 32899 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32900 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32901 | data2 = (char *) malloc (2 * pagesize); |
| 32902 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32903 | return 1; |
| 32904 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32905 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32906 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32907 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32908 | for (i = 0; i < pagesize; ++i) |
| 32909 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32910 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32911 | |
| 32912 | /* Finally, make sure that changes to the mapped area do not |
| 32913 | percolate back to the file as seen by read(). (This is a bug on |
| 32914 | some variants of i386 svr4.0.) */ |
| 32915 | for (i = 0; i < pagesize; ++i) |
| 32916 | *(data2 + i) = *(data2 + i) + 1; |
| 32917 | data3 = (char *) malloc (pagesize); |
| 32918 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32919 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32920 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32921 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32922 | for (i = 0; i < pagesize; ++i) |
| 32923 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32924 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32925 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32926 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32927 | } |
| 32928 | _ACEOF |
| 32929 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32930 | if { (ac_try="$ac_link" |
| 32931 | case "(($ac_try" in |
| 32932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32933 | *) ac_try_echo=$ac_try;; |
| 32934 | esac |
| 32935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32936 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32937 | ac_status=$? |
| 32938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32940 | { (case "(($ac_try" in |
| 32941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32942 | *) ac_try_echo=$ac_try;; |
| 32943 | esac |
| 32944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32945 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32946 | ac_status=$? |
| 32947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32948 | (exit $ac_status); }; }; then |
| 32949 | ac_cv_func_mmap_fixed_mapped=yes |
| 32950 | else |
| 32951 | echo "$as_me: program exited with status $ac_status" >&5 |
| 32952 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32954 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32955 | ( exit $ac_status ) |
| 32956 | ac_cv_func_mmap_fixed_mapped=no |
| 32957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32958 | rm -f core *.core core.conftest.* 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] | 32959 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32960 | |
| 32961 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32963 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 32964 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32965 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 32966 | |
| 32967 | cat >>confdefs.h <<\_ACEOF |
| 32968 | #define HAVE_MMAP 1 |
| 32969 | _ACEOF |
| 32970 | |
| 32971 | fi |
| 32972 | rm -f conftest.mmap |
| 32973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32974 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 32975 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32976 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 32977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32978 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32979 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32980 | ac_cpp='$CPP $CPPFLAGS' |
| 32981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32984 | |
| 32985 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 32986 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32987 | else |
| 32988 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32989 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32990 | /* confdefs.h. */ |
| 32991 | _ACEOF |
| 32992 | cat confdefs.h >>conftest.$ac_ext |
| 32993 | cat >>conftest.$ac_ext <<_ACEOF |
| 32994 | /* end confdefs.h. */ |
| 32995 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32996 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 32997 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32998 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 32999 | |
| 33000 | int |
| 33001 | main () |
| 33002 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33003 | |
| 33004 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33005 | fd = creat ("foo",0777); |
| 33006 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33007 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33008 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33009 | ; |
| 33010 | return 0; |
| 33011 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33012 | _ACEOF |
| 33013 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33014 | if { (ac_try="$ac_link" |
| 33015 | case "(($ac_try" in |
| 33016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33017 | *) ac_try_echo=$ac_try;; |
| 33018 | esac |
| 33019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33020 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33021 | ac_status=$? |
| 33022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33023 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33024 | { (case "(($ac_try" in |
| 33025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33026 | *) ac_try_echo=$ac_try;; |
| 33027 | esac |
| 33028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33029 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33030 | ac_status=$? |
| 33031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33032 | (exit $ac_status); }; }; then |
| 33033 | ac_cv_func_mmap_file=yes |
| 33034 | else |
| 33035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33036 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33039 | ( exit $ac_status ) |
| 33040 | ac_cv_func_mmap_file=no |
| 33041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33042 | rm -f core *.core core.conftest.* 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] | 33043 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33044 | |
| 33045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33046 | ac_ext=c |
| 33047 | ac_cpp='$CPP $CPPFLAGS' |
| 33048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33051 | |
| 33052 | |
| 33053 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33054 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33055 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33056 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33057 | |
| 33058 | cat >>confdefs.h <<\_ACEOF |
| 33059 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33060 | _ACEOF |
| 33061 | |
| 33062 | MMAP_FILE=yes |
| 33063 | |
| 33064 | fi |
| 33065 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33066 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 33067 | echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33068 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33070 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33071 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33072 | ac_cv_need_dev_zero_for_mmap=yes |
| 33073 | else |
| 33074 | ac_cv_need_dev_zero_for_mmap=no |
| 33075 | fi |
| 33076 | |
| 33077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33078 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33079 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33080 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33081 | |
| 33082 | cat >>confdefs.h <<\_ACEOF |
| 33083 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33084 | _ACEOF |
| 33085 | |
| 33086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33087 | { echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 33088 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33089 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 33090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33091 | else |
| 33092 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33093 | /* confdefs.h. */ |
| 33094 | _ACEOF |
| 33095 | cat confdefs.h >>conftest.$ac_ext |
| 33096 | cat >>conftest.$ac_ext <<_ACEOF |
| 33097 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33098 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 33099 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33100 | #define mprotect innocuous_mprotect |
| 33101 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33102 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33103 | which can conflict with char mprotect (); below. |
| 33104 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33105 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33106 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33107 | #ifdef __STDC__ |
| 33108 | # include <limits.h> |
| 33109 | #else |
| 33110 | # include <assert.h> |
| 33111 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33112 | |
| 33113 | #undef mprotect |
| 33114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33115 | /* Override any GCC internal prototype to avoid an error. |
| 33116 | Use char because int might match the return type of a GCC |
| 33117 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33118 | #ifdef __cplusplus |
| 33119 | extern "C" |
| 33120 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33121 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33122 | /* The GNU C library defines this for functions which it implements |
| 33123 | to always fail with ENOSYS. Some functions are actually named |
| 33124 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33125 | #if defined __stub_mprotect || defined __stub___mprotect |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33126 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33127 | #endif |
| 33128 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33129 | int |
| 33130 | main () |
| 33131 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33132 | return mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33133 | ; |
| 33134 | return 0; |
| 33135 | } |
| 33136 | _ACEOF |
| 33137 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33138 | if { (ac_try="$ac_link" |
| 33139 | case "(($ac_try" in |
| 33140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33141 | *) ac_try_echo=$ac_try;; |
| 33142 | esac |
| 33143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33144 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33145 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33147 | rm -f conftest.er1 |
| 33148 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33150 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33152 | { (case "(($ac_try" in |
| 33153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33154 | *) ac_try_echo=$ac_try;; |
| 33155 | esac |
| 33156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33157 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33158 | ac_status=$? |
| 33159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33160 | (exit $ac_status); }; } && |
| 33161 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33162 | { (case "(($ac_try" in |
| 33163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33164 | *) ac_try_echo=$ac_try;; |
| 33165 | esac |
| 33166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33167 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33168 | ac_status=$? |
| 33169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33170 | (exit $ac_status); }; }; then |
| 33171 | ac_cv_func_mprotect=yes |
| 33172 | else |
| 33173 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33176 | ac_cv_func_mprotect=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33177 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33178 | |
| 33179 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33180 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33182 | { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 33183 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33184 | if test $ac_cv_func_mprotect = yes; then |
| 33185 | : |
| 33186 | else |
| 33187 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 33188 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 33189 | { (exit 1); exit 1; }; } |
| 33190 | fi |
| 33191 | |
| 33192 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33193 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33194 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33195 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 33196 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33197 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33198 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33199 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33200 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 33201 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33202 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33203 | |
| 33204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33205 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33206 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33207 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33209 | else |
| 33210 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33211 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33212 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 33213 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33214 | if test $? -eq 0 ; then |
| 33215 | llvm_cv_llvmgcc_sanity="yes" |
| 33216 | fi |
| 33217 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33218 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33220 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33221 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33222 | |
| 33223 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33224 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33225 | LLVMCC1=$llvmcc1path |
| 33226 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33227 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33228 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33229 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33230 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33231 | LLVMGCCDIR=$llvmgccdir |
| 33232 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33233 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33234 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33235 | LLVMGCC_VERSION=$llvmgccversion |
| 33236 | |
| 33237 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33238 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33239 | fi |
| 33240 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33241 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33242 | |
| 33243 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33244 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33245 | # information into substitutions that will end up in Makefile.config.in |
| 33246 | # that these configured values can be used by the makefiles |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33247 | if test "${prefix}" == "NONE" ; then |
| 33248 | prefix="/usr/local" |
| 33249 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33250 | eval LLVM_PREFIX="${prefix}"; |
| 33251 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33252 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33253 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33254 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33255 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33256 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33257 | eval LLVM_INFODIR="${prefix}/info"; |
| 33258 | eval LLVM_MANDIR="${prefix}/man"; |
| 33259 | LLVM_CONFIGTIME=`date` |
| 33260 | |
| 33261 | |
| 33262 | |
| 33263 | |
| 33264 | |
| 33265 | |
| 33266 | |
| 33267 | |
| 33268 | |
| 33269 | |
| 33270 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33271 | # Place the various directores into the config.h file as #defines so that we |
| 33272 | # can know about the installation paths within LLVM. |
| 33273 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33274 | cat >>confdefs.h <<_ACEOF |
| 33275 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33276 | _ACEOF |
| 33277 | |
| 33278 | |
| 33279 | cat >>confdefs.h <<_ACEOF |
| 33280 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33281 | _ACEOF |
| 33282 | |
| 33283 | |
| 33284 | cat >>confdefs.h <<_ACEOF |
| 33285 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33286 | _ACEOF |
| 33287 | |
| 33288 | |
| 33289 | cat >>confdefs.h <<_ACEOF |
| 33290 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33291 | _ACEOF |
| 33292 | |
| 33293 | |
| 33294 | cat >>confdefs.h <<_ACEOF |
| 33295 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 33296 | _ACEOF |
| 33297 | |
| 33298 | |
| 33299 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33300 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33301 | _ACEOF |
| 33302 | |
| 33303 | |
| 33304 | cat >>confdefs.h <<_ACEOF |
| 33305 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33306 | _ACEOF |
| 33307 | |
| 33308 | |
| 33309 | cat >>confdefs.h <<_ACEOF |
| 33310 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33311 | _ACEOF |
| 33312 | |
| 33313 | |
| 33314 | cat >>confdefs.h <<_ACEOF |
| 33315 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33316 | _ACEOF |
| 33317 | |
| 33318 | |
| 33319 | cat >>confdefs.h <<_ACEOF |
| 33320 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33321 | _ACEOF |
| 33322 | |
| 33323 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33325 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33327 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33329 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33330 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33331 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33333 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33334 | |
| 33335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33336 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33337 | |
| 33338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33339 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33340 | |
| 33341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33342 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33343 | |
| 33344 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33345 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33347 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33348 | |
| 33349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33350 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33351 | |
| 33352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33353 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33354 | |
| 33355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33356 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33357 | |
| 33358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33359 | ac_config_commands="$ac_config_commands runtime/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33360 | |
| 33361 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33362 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33363 | |
| 33364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33365 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33366 | |
| 33367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33368 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33369 | |
| 33370 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33371 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33372 | |
| 33373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33374 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33375 | |
| 33376 | |
| 33377 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33378 | cat >confcache <<\_ACEOF |
| 33379 | # This file is a shell script that caches the results of configure |
| 33380 | # tests run on this system so they can be shared between configure |
| 33381 | # scripts and configure runs, see configure's option --config-cache. |
| 33382 | # It is not useful on other systems. If it contains results you don't |
| 33383 | # want to keep, you may remove or edit it. |
| 33384 | # |
| 33385 | # config.status only pays attention to the cache file if you give it |
| 33386 | # the --recheck option to rerun configure. |
| 33387 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33388 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33389 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 33390 | # following values. |
| 33391 | |
| 33392 | _ACEOF |
| 33393 | |
| 33394 | # The following way of writing the cache mishandles newlines in values, |
| 33395 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33396 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33397 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 33398 | # and sets the high bit in the cache file unless we assign to the vars. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33399 | ( |
| 33400 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 33401 | eval ac_val=\$$ac_var |
| 33402 | case $ac_val in #( |
| 33403 | *${as_nl}*) |
| 33404 | case $ac_var in #( |
| 33405 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 33406 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 33407 | esac |
| 33408 | case $ac_var in #( |
| 33409 | _ | IFS | as_nl) ;; #( |
| 33410 | *) $as_unset $ac_var ;; |
| 33411 | esac ;; |
| 33412 | esac |
| 33413 | done |
| 33414 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33415 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33416 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 33417 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33418 | # `set' does not quote correctly, so add quotes (double-quote |
| 33419 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 33420 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33421 | "s/'/'\\\\''/g; |
| 33422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33423 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33424 | *) |
| 33425 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33426 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33427 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33428 | esac | |
| 33429 | sort |
| 33430 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33431 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33432 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33433 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33434 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33435 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 33436 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33437 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 33438 | :end' >>confcache |
| 33439 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 33440 | if test -w "$cache_file"; then |
| 33441 | test "x$cache_file" != "x/dev/null" && |
| 33442 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 33443 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33444 | cat confcache >$cache_file |
| 33445 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33446 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 33447 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33448 | fi |
| 33449 | fi |
| 33450 | rm -f confcache |
| 33451 | |
| 33452 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 33453 | # Let make expand exec_prefix. |
| 33454 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 33455 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33456 | DEFS=-DHAVE_CONFIG_H |
| 33457 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33458 | ac_libobjs= |
| 33459 | ac_ltlibobjs= |
| 33460 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 33461 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33462 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 33463 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 33464 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 33465 | # will be set to the directory where LIBOBJS objects are built. |
| 33466 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 33467 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33468 | done |
| 33469 | LIBOBJS=$ac_libobjs |
| 33470 | |
| 33471 | LTLIBOBJS=$ac_ltlibobjs |
| 33472 | |
| 33473 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33474 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 33475 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33476 | Usually this means the macro was only invoked conditionally." >&5 |
| 33477 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33478 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33479 | { (exit 1); exit 1; }; } |
| 33480 | fi |
| 33481 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 33482 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33483 | Usually this means the macro was only invoked conditionally." >&5 |
| 33484 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33485 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33486 | { (exit 1); exit 1; }; } |
| 33487 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33488 | |
| 33489 | : ${CONFIG_STATUS=./config.status} |
| 33490 | ac_clean_files_save=$ac_clean_files |
| 33491 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 33492 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 33493 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 33494 | cat >$CONFIG_STATUS <<_ACEOF |
| 33495 | #! $SHELL |
| 33496 | # Generated by $as_me. |
| 33497 | # Run this file to recreate the current configuration. |
| 33498 | # Compiler output produced by configure, useful for debugging |
| 33499 | # configure, is in config.log if it exists. |
| 33500 | |
| 33501 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33502 | ac_cs_recheck=false |
| 33503 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33504 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 33505 | _ACEOF |
| 33506 | |
| 33507 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33508 | ## --------------------- ## |
| 33509 | ## M4sh Initialization. ## |
| 33510 | ## --------------------- ## |
| 33511 | |
| 33512 | # Be Bourne compatible |
| 33513 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 33514 | emulate sh |
| 33515 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33516 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 33517 | # is contrary to our usage. Disable this feature. |
| 33518 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33519 | setopt NO_GLOB_SUBST |
| 33520 | else |
| 33521 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33522 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33523 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33524 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33525 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33527 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33528 | # Avoid depending upon Character Ranges. |
| 33529 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33530 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 33531 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33532 | as_cr_digits='0123456789' |
| 33533 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 33534 | |
| 33535 | # The user is always right. |
| 33536 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33537 | echo "#! /bin/sh" >conf$$.sh |
| 33538 | echo "exit 0" >>conf$$.sh |
| 33539 | chmod +x conf$$.sh |
| 33540 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33541 | PATH_SEPARATOR=';' |
| 33542 | else |
| 33543 | PATH_SEPARATOR=: |
| 33544 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33545 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33546 | fi |
| 33547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33548 | # Support unset when possible. |
| 33549 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 33550 | as_unset=unset |
| 33551 | else |
| 33552 | as_unset=false |
| 33553 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33555 | |
| 33556 | # IFS |
| 33557 | # We need space, tab and new line, in precisely that order. Quoting is |
| 33558 | # there to prevent editors from complaining about space-tab. |
| 33559 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 33560 | # splitting by setting IFS to empty value.) |
| 33561 | as_nl=' |
| 33562 | ' |
| 33563 | IFS=" "" $as_nl" |
| 33564 | |
| 33565 | # Find who we are. Look in the path if we contain no directory separator. |
| 33566 | case $0 in |
| 33567 | *[\\/]* ) as_myself=$0 ;; |
| 33568 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33569 | for as_dir in $PATH |
| 33570 | do |
| 33571 | IFS=$as_save_IFS |
| 33572 | test -z "$as_dir" && as_dir=. |
| 33573 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 33574 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33575 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33576 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33577 | ;; |
| 33578 | esac |
| 33579 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 33580 | # in which case we are not to be found in the path. |
| 33581 | if test "x$as_myself" = x; then |
| 33582 | as_myself=$0 |
| 33583 | fi |
| 33584 | if test ! -f "$as_myself"; then |
| 33585 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 33586 | { (exit 1); exit 1; } |
| 33587 | fi |
| 33588 | |
| 33589 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33590 | for as_var in ENV MAIL MAILPATH |
| 33591 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33592 | done |
| 33593 | PS1='$ ' |
| 33594 | PS2='> ' |
| 33595 | PS4='+ ' |
| 33596 | |
| 33597 | # NLS nuisances. |
| 33598 | for as_var in \ |
| 33599 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 33600 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 33601 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33602 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33603 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 33604 | eval $as_var=C; export $as_var |
| 33605 | else |
| 33606 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33607 | fi |
| 33608 | done |
| 33609 | |
| 33610 | # Required to use basename. |
| 33611 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33612 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 33613 | as_expr=expr |
| 33614 | else |
| 33615 | as_expr=false |
| 33616 | fi |
| 33617 | |
| 33618 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 33619 | as_basename=basename |
| 33620 | else |
| 33621 | as_basename=false |
| 33622 | fi |
| 33623 | |
| 33624 | |
| 33625 | # Name of the executable. |
| 33626 | as_me=`$as_basename -- "$0" || |
| 33627 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 33628 | X"$0" : 'X\(//\)$' \| \ |
| 33629 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 33630 | echo X/"$0" | |
| 33631 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 33632 | s//\1/ |
| 33633 | q |
| 33634 | } |
| 33635 | /^X\/\(\/\/\)$/{ |
| 33636 | s//\1/ |
| 33637 | q |
| 33638 | } |
| 33639 | /^X\/\(\/\).*/{ |
| 33640 | s//\1/ |
| 33641 | q |
| 33642 | } |
| 33643 | s/.*/./; q'` |
| 33644 | |
| 33645 | # CDPATH. |
| 33646 | $as_unset CDPATH |
| 33647 | |
| 33648 | |
| 33649 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33650 | as_lineno_1=$LINENO |
| 33651 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33652 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33653 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33654 | |
| 33655 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 33656 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33657 | # line-number line after each line using $LINENO; the second 'sed' |
| 33658 | # does the real work. The second script uses 'N' to pair each |
| 33659 | # line-number line with the line containing $LINENO, and appends |
| 33660 | # trailing '-' during substitution so that $LINENO is not a special |
| 33661 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33662 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33663 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 33664 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 33665 | sed -n ' |
| 33666 | p |
| 33667 | /[$]LINENO/= |
| 33668 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33669 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33670 | s/[$]LINENO.*/&-/ |
| 33671 | t lineno |
| 33672 | b |
| 33673 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33674 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33675 | :loop |
| 33676 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33677 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33678 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33679 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33680 | chmod +x "$as_me.lineno" || |
| 33681 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33682 | { (exit 1); exit 1; }; } |
| 33683 | |
| 33684 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 33685 | # (the dirname of $[0] is not the place where we might find the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33686 | # original and so on. Autoconf is especially sensitive to this). |
| 33687 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33688 | # Exit status is that of the last command. |
| 33689 | exit |
| 33690 | } |
| 33691 | |
| 33692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33693 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 33694 | as_dirname=dirname |
| 33695 | else |
| 33696 | as_dirname=false |
| 33697 | fi |
| 33698 | |
| 33699 | ECHO_C= ECHO_N= ECHO_T= |
| 33700 | case `echo -n x` in |
| 33701 | -n*) |
| 33702 | case `echo 'x\c'` in |
| 33703 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 33704 | *) ECHO_C='\c';; |
| 33705 | esac;; |
| 33706 | *) |
| 33707 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33708 | esac |
| 33709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33710 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33711 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33712 | as_expr=expr |
| 33713 | else |
| 33714 | as_expr=false |
| 33715 | fi |
| 33716 | |
| 33717 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33718 | if test -d conf$$.dir; then |
| 33719 | rm -f conf$$.dir/conf$$.file |
| 33720 | else |
| 33721 | rm -f conf$$.dir |
| 33722 | mkdir conf$$.dir |
| 33723 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33724 | echo >conf$$.file |
| 33725 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33726 | as_ln_s='ln -s' |
| 33727 | # ... but there are two gotchas: |
| 33728 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 33729 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 33730 | # In both cases, we have to default to `cp -p'. |
| 33731 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33732 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33733 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 33734 | as_ln_s=ln |
| 33735 | else |
| 33736 | as_ln_s='cp -p' |
| 33737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33738 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 33739 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33740 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33741 | if mkdir -p . 2>/dev/null; then |
| 33742 | as_mkdir_p=: |
| 33743 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33744 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33745 | as_mkdir_p=false |
| 33746 | fi |
| 33747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33748 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 33749 | # systems may use methods other than mode bits to determine executability. |
| 33750 | cat >conf$$.file <<_ASEOF |
| 33751 | #! /bin/sh |
| 33752 | exit 0 |
| 33753 | _ASEOF |
| 33754 | chmod +x conf$$.file |
| 33755 | if test -x conf$$.file >/dev/null 2>&1; then |
| 33756 | as_executable_p="test -x" |
| 33757 | else |
| 33758 | as_executable_p=: |
| 33759 | fi |
| 33760 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33761 | |
| 33762 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33763 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33764 | |
| 33765 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33766 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33767 | |
| 33768 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33769 | exec 6>&1 |
| 33770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33771 | # Save the log message, to keep $[0] and so on meaningful, and to |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33772 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33773 | # values after options handling. |
| 33774 | ac_log=" |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33775 | This file was extended by llvm $as_me 1.9cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33776 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33777 | |
| 33778 | CONFIG_FILES = $CONFIG_FILES |
| 33779 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 33780 | CONFIG_LINKS = $CONFIG_LINKS |
| 33781 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 33782 | $ $0 $@ |
| 33783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33784 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 33785 | " |
| 33786 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33787 | _ACEOF |
| 33788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33789 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33790 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33791 | config_files="$ac_config_files" |
| 33792 | config_headers="$ac_config_headers" |
| 33793 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33795 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33796 | |
| 33797 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33798 | ac_cs_usage="\ |
| 33799 | \`$as_me' instantiates files from templates according to the |
| 33800 | current configuration. |
| 33801 | |
| 33802 | Usage: $0 [OPTIONS] [FILE]... |
| 33803 | |
| 33804 | -h, --help print this help, then exit |
| 33805 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33806 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33807 | -d, --debug don't remove temporary files |
| 33808 | --recheck update $as_me by reconfiguring in the same conditions |
| 33809 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33810 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33811 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33812 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33813 | |
| 33814 | Configuration files: |
| 33815 | $config_files |
| 33816 | |
| 33817 | Configuration headers: |
| 33818 | $config_headers |
| 33819 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33820 | Configuration commands: |
| 33821 | $config_commands |
| 33822 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33823 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33825 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33826 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33827 | ac_cs_version="\\ |
Reid Spencer | 1bc6864 | 2006-07-27 23:00:30 +0000 | [diff] [blame] | 33828 | llvm config.status 1.9cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33829 | configured by $0, generated by GNU Autoconf 2.60, |
| 33830 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33832 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33833 | This config.status script is free software; the Free Software Foundation |
| 33834 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33835 | |
| 33836 | ac_pwd='$ac_pwd' |
| 33837 | srcdir='$srcdir' |
| 33838 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33839 | _ACEOF |
| 33840 | |
| 33841 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33842 | # If no file are specified by the user, then we need to provide default |
| 33843 | # value. By we need to know if files were specified by the user. |
| 33844 | ac_need_defaults=: |
| 33845 | while test $# != 0 |
| 33846 | do |
| 33847 | case $1 in |
| 33848 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33849 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 33850 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33851 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33852 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33853 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33854 | ac_option=$1 |
| 33855 | ac_optarg=$2 |
| 33856 | ac_shift=shift |
| 33857 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33858 | esac |
| 33859 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33860 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33861 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33862 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 33863 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33864 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 33865 | echo "$ac_cs_version"; exit ;; |
| 33866 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33867 | debug=: ;; |
| 33868 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33869 | $ac_shift |
| 33870 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33871 | ac_need_defaults=false;; |
| 33872 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33873 | $ac_shift |
| 33874 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33875 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33876 | --he | --h) |
| 33877 | # Conflict between --help and --header |
| 33878 | { echo "$as_me: error: ambiguous option: $1 |
| 33879 | Try \`$0 --help' for more information." >&2 |
| 33880 | { (exit 1); exit 1; }; };; |
| 33881 | --help | --hel | -h ) |
| 33882 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33883 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 33884 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 33885 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33886 | |
| 33887 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33888 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 33889 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33890 | { (exit 1); exit 1; }; } ;; |
| 33891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33892 | *) ac_config_targets="$ac_config_targets $1" |
| 33893 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33894 | |
| 33895 | esac |
| 33896 | shift |
| 33897 | done |
| 33898 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33899 | ac_configure_extra_args= |
| 33900 | |
| 33901 | if $ac_cs_silent; then |
| 33902 | exec 6>/dev/null |
| 33903 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 33904 | fi |
| 33905 | |
| 33906 | _ACEOF |
| 33907 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33908 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33909 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 33910 | CONFIG_SHELL=$SHELL |
| 33911 | export CONFIG_SHELL |
| 33912 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33913 | fi |
| 33914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33915 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33916 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33917 | exec 5>>config.log |
| 33918 | { |
| 33919 | echo |
| 33920 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 33921 | ## Running $as_me. ## |
| 33922 | _ASBOX |
| 33923 | echo "$ac_log" |
| 33924 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33926 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33927 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33928 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33929 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33930 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33931 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33932 | |
| 33933 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33934 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33935 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33936 | |
| 33937 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33938 | for ac_config_target in $ac_config_targets |
| 33939 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33940 | case $ac_config_target in |
| 33941 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 33942 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 33943 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 33944 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 33945 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 33946 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
| 33947 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 33948 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 33949 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 33950 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 33951 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 33952 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 33953 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
| 33954 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
| 33955 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 33956 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 33957 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 33958 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 33959 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 33960 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33961 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 33962 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 33963 | { (exit 1); exit 1; }; };; |
| 33964 | esac |
| 33965 | done |
| 33966 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33967 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33968 | # If the user did not use the arguments to specify the items to instantiate, |
| 33969 | # then the envvar interface is used. Set only those that are not. |
| 33970 | # We use the long form for the default assignment because of an extremely |
| 33971 | # bizarre bug on SunOS 4.1.3. |
| 33972 | if $ac_need_defaults; then |
| 33973 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 33974 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33975 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33976 | fi |
| 33977 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33978 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33979 | # simply because there is no reason against having it here, and in addition, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33980 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33981 | # Hook for its removal unless debugging. |
| 33982 | # Note that there is a small window in which the directory will not be cleaned: |
| 33983 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33984 | $debug || |
| 33985 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33986 | tmp= |
| 33987 | trap 'exit_status=$? |
| 33988 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 33989 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33990 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 33991 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33992 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33993 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33994 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33995 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33996 | test -n "$tmp" && test -d "$tmp" |
| 33997 | } || |
| 33998 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33999 | tmp=./conf$$-$RANDOM |
| 34000 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34001 | } || |
| 34002 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34003 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34004 | { (exit 1); exit 1; } |
| 34005 | } |
| 34006 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34007 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34008 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34009 | # |
| 34010 | |
| 34011 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34012 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34013 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34014 | |
| 34015 | _ACEOF |
| 34016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34017 | |
| 34018 | |
| 34019 | ac_delim='%!_!# ' |
| 34020 | for ac_last_try in false false false false false :; do |
| 34021 | cat >conf$$subs.sed <<_ACEOF |
| 34022 | SHELL!$SHELL$ac_delim |
| 34023 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34024 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34025 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34026 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34027 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34028 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34029 | exec_prefix!$exec_prefix$ac_delim |
| 34030 | prefix!$prefix$ac_delim |
| 34031 | program_transform_name!$program_transform_name$ac_delim |
| 34032 | bindir!$bindir$ac_delim |
| 34033 | sbindir!$sbindir$ac_delim |
| 34034 | libexecdir!$libexecdir$ac_delim |
| 34035 | datarootdir!$datarootdir$ac_delim |
| 34036 | datadir!$datadir$ac_delim |
| 34037 | sysconfdir!$sysconfdir$ac_delim |
| 34038 | sharedstatedir!$sharedstatedir$ac_delim |
| 34039 | localstatedir!$localstatedir$ac_delim |
| 34040 | includedir!$includedir$ac_delim |
| 34041 | oldincludedir!$oldincludedir$ac_delim |
| 34042 | docdir!$docdir$ac_delim |
| 34043 | infodir!$infodir$ac_delim |
| 34044 | htmldir!$htmldir$ac_delim |
| 34045 | dvidir!$dvidir$ac_delim |
| 34046 | pdfdir!$pdfdir$ac_delim |
| 34047 | psdir!$psdir$ac_delim |
| 34048 | libdir!$libdir$ac_delim |
| 34049 | localedir!$localedir$ac_delim |
| 34050 | mandir!$mandir$ac_delim |
| 34051 | DEFS!$DEFS$ac_delim |
| 34052 | ECHO_C!$ECHO_C$ac_delim |
| 34053 | ECHO_N!$ECHO_N$ac_delim |
| 34054 | ECHO_T!$ECHO_T$ac_delim |
| 34055 | LIBS!$LIBS$ac_delim |
| 34056 | build_alias!$build_alias$ac_delim |
| 34057 | host_alias!$host_alias$ac_delim |
| 34058 | target_alias!$target_alias$ac_delim |
| 34059 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34060 | subdirs!$subdirs$ac_delim |
| 34061 | build!$build$ac_delim |
| 34062 | build_cpu!$build_cpu$ac_delim |
| 34063 | build_vendor!$build_vendor$ac_delim |
| 34064 | build_os!$build_os$ac_delim |
| 34065 | host!$host$ac_delim |
| 34066 | host_cpu!$host_cpu$ac_delim |
| 34067 | host_vendor!$host_vendor$ac_delim |
| 34068 | host_os!$host_os$ac_delim |
| 34069 | target!$target$ac_delim |
| 34070 | target_cpu!$target_cpu$ac_delim |
| 34071 | target_vendor!$target_vendor$ac_delim |
| 34072 | target_os!$target_os$ac_delim |
| 34073 | OS!$OS$ac_delim |
| 34074 | LINKALL!$LINKALL$ac_delim |
| 34075 | NOLINKALL!$NOLINKALL$ac_delim |
| 34076 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34077 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 34078 | ARCH!$ARCH$ac_delim |
| 34079 | ENDIAN!$ENDIAN$ac_delim |
| 34080 | CC!$CC$ac_delim |
| 34081 | CFLAGS!$CFLAGS$ac_delim |
| 34082 | LDFLAGS!$LDFLAGS$ac_delim |
| 34083 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34084 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34085 | EXEEXT!$EXEEXT$ac_delim |
| 34086 | OBJEXT!$OBJEXT$ac_delim |
| 34087 | CPP!$CPP$ac_delim |
| 34088 | GREP!$GREP$ac_delim |
| 34089 | EGREP!$EGREP$ac_delim |
| 34090 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34091 | BUILD_CC!$BUILD_CC$ac_delim |
| 34092 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 34093 | CVSBUILD!$CVSBUILD$ac_delim |
| 34094 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34095 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
| 34096 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
| 34097 | JIT!$JIT$ac_delim |
| 34098 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34099 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34100 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
| 34101 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
| 34102 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 34103 | CXX!$CXX$ac_delim |
| 34104 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34105 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 34106 | LEX!$LEX$ac_delim |
| 34107 | LEXLIB!$LEXLIB$ac_delim |
| 34108 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 34109 | FLEX!$FLEX$ac_delim |
| 34110 | YACC!$YACC$ac_delim |
| 34111 | YFLAGS!$YFLAGS$ac_delim |
| 34112 | BISON!$BISON$ac_delim |
| 34113 | NM!$NM$ac_delim |
| 34114 | ifGNUmake!$ifGNUmake$ac_delim |
| 34115 | LN_S!$LN_S$ac_delim |
| 34116 | CMP!$CMP$ac_delim |
| 34117 | CP!$CP$ac_delim |
| 34118 | DATE!$DATE$ac_delim |
| 34119 | _ACEOF |
| 34120 | |
| 34121 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34122 | break |
| 34123 | elif $ac_last_try; then |
| 34124 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34125 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34126 | { (exit 1); exit 1; }; } |
| 34127 | else |
| 34128 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34129 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34130 | done |
| 34131 | |
| 34132 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34133 | if test -n "$ac_eof"; then |
| 34134 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34135 | ac_eof=`expr $ac_eof + 1` |
| 34136 | fi |
| 34137 | |
| 34138 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34139 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34140 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34141 | _ACEOF |
| 34142 | sed ' |
| 34143 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34144 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34145 | :n |
| 34146 | t n |
| 34147 | s/'"$ac_delim"'$/,g/; t |
| 34148 | s/$/\\/; p |
| 34149 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34150 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34151 | rm -f conf$$subs.sed |
| 34152 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34153 | CEOF$ac_eof |
| 34154 | _ACEOF |
| 34155 | |
| 34156 | |
| 34157 | ac_delim='%!_!# ' |
| 34158 | for ac_last_try in false false false false false :; do |
| 34159 | cat >conf$$subs.sed <<_ACEOF |
| 34160 | FIND!$FIND$ac_delim |
| 34161 | MKDIR!$MKDIR$ac_delim |
| 34162 | MV!$MV$ac_delim |
| 34163 | RANLIB!$RANLIB$ac_delim |
| 34164 | RM!$RM$ac_delim |
| 34165 | SED!$SED$ac_delim |
| 34166 | TAR!$TAR$ac_delim |
| 34167 | BINPWD!$BINPWD$ac_delim |
| 34168 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34169 | DOT!$DOT$ac_delim |
| 34170 | GV!$GV$ac_delim |
| 34171 | DOTTY!$DOTTY$ac_delim |
| 34172 | PERL!$PERL$ac_delim |
| 34173 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34174 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34175 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34176 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34177 | BZIP2!$BZIP2$ac_delim |
| 34178 | DOXYGEN!$DOXYGEN$ac_delim |
| 34179 | ETAGS!$ETAGS$ac_delim |
| 34180 | GROFF!$GROFF$ac_delim |
| 34181 | GZIP!$GZIP$ac_delim |
| 34182 | POD2HTML!$POD2HTML$ac_delim |
| 34183 | POD2MAN!$POD2MAN$ac_delim |
| 34184 | RUNTEST!$RUNTEST$ac_delim |
| 34185 | TCLSH!$TCLSH$ac_delim |
| 34186 | ZIP!$ZIP$ac_delim |
| 34187 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34188 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34189 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34190 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34191 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34192 | ECHO!$ECHO$ac_delim |
| 34193 | AR!$AR$ac_delim |
| 34194 | STRIP!$STRIP$ac_delim |
| 34195 | CXXCPP!$CXXCPP$ac_delim |
| 34196 | F77!$F77$ac_delim |
| 34197 | FFLAGS!$FFLAGS$ac_delim |
| 34198 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34199 | LIBTOOL!$LIBTOOL$ac_delim |
| 34200 | ETAGSFLAGS!$ETAGSFLAGS$ac_delim |
| 34201 | LLVMGCC!$LLVMGCC$ac_delim |
| 34202 | LLVMGXX!$LLVMGXX$ac_delim |
| 34203 | ALLOCA!$ALLOCA$ac_delim |
| 34204 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34205 | LLVMCC1!$LLVMCC1$ac_delim |
| 34206 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34207 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
| 34208 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34209 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 34210 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34211 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34212 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34213 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34214 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34215 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34216 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34217 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34218 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34219 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34220 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 34221 | LIBOBJS!$LIBOBJS$ac_delim |
| 34222 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34223 | _ACEOF |
| 34224 | |
| 34225 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then |
| 34226 | break |
| 34227 | elif $ac_last_try; then |
| 34228 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34229 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34230 | { (exit 1); exit 1; }; } |
| 34231 | else |
| 34232 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34233 | fi |
| 34234 | done |
| 34235 | |
| 34236 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34237 | if test -n "$ac_eof"; then |
| 34238 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34239 | ac_eof=`expr $ac_eof + 1` |
| 34240 | fi |
| 34241 | |
| 34242 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34243 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34244 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34245 | _ACEOF |
| 34246 | sed ' |
| 34247 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34248 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34249 | :n |
| 34250 | t n |
| 34251 | s/'"$ac_delim"'$/,g/; t |
| 34252 | s/$/\\/; p |
| 34253 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34254 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34255 | rm -f conf$$subs.sed |
| 34256 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34257 | :end |
| 34258 | s/|#_!!_#|//g |
| 34259 | CEOF$ac_eof |
| 34260 | _ACEOF |
| 34261 | |
| 34262 | |
| 34263 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34264 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34265 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34266 | # (actually we leave an empty line to preserve line numbers). |
| 34267 | if test "x$srcdir" = x.; then |
| 34268 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34269 | s/:*\$(srcdir):*/:/ |
| 34270 | s/:*\${srcdir}:*/:/ |
| 34271 | s/:*@srcdir@:*/:/ |
| 34272 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34273 | s/:*$// |
| 34274 | s/^[^=]*=[ ]*$// |
| 34275 | }' |
| 34276 | fi |
| 34277 | |
| 34278 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34279 | fi # test -n "$CONFIG_FILES" |
| 34280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34281 | |
| 34282 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34283 | do |
| 34284 | case $ac_tag in |
| 34285 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34286 | esac |
| 34287 | case $ac_mode$ac_tag in |
| 34288 | :[FHL]*:*);; |
| 34289 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34290 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34291 | { (exit 1); exit 1; }; };; |
| 34292 | :[FH]-) ac_tag=-:-;; |
| 34293 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34294 | esac |
| 34295 | ac_save_IFS=$IFS |
| 34296 | IFS=: |
| 34297 | set x $ac_tag |
| 34298 | IFS=$ac_save_IFS |
| 34299 | shift |
| 34300 | ac_file=$1 |
| 34301 | shift |
| 34302 | |
| 34303 | case $ac_mode in |
| 34304 | :L) ac_source=$1;; |
| 34305 | :[FH]) |
| 34306 | ac_file_inputs= |
| 34307 | for ac_f |
| 34308 | do |
| 34309 | case $ac_f in |
| 34310 | -) ac_f="$tmp/stdin";; |
| 34311 | *) # Look for the file first in the build tree, then in the source tree |
| 34312 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34313 | # because $ac_f cannot contain `:'. |
| 34314 | test -f "$ac_f" || |
| 34315 | case $ac_f in |
| 34316 | [\\/$]*) false;; |
| 34317 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34318 | esac || |
| 34319 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34320 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34321 | { (exit 1); exit 1; }; };; |
| 34322 | esac |
| 34323 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34324 | done |
| 34325 | |
| 34326 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34327 | # use $as_me), people would be surprised to read: |
| 34328 | # /* config.h. Generated by config.status. */ |
| 34329 | configure_input="Generated from "`IFS=: |
| 34330 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34331 | if test x"$ac_file" != x-; then |
| 34332 | configure_input="$ac_file. $configure_input" |
| 34333 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34334 | echo "$as_me: creating $ac_file" >&6;} |
| 34335 | fi |
| 34336 | |
| 34337 | case $ac_tag in |
| 34338 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34339 | esac |
| 34340 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34341 | esac |
| 34342 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34343 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34344 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34345 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 34346 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34347 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34348 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34350 | s//\1/ |
| 34351 | q |
| 34352 | } |
| 34353 | /^X\(\/\/\)[^/].*/{ |
| 34354 | s//\1/ |
| 34355 | q |
| 34356 | } |
| 34357 | /^X\(\/\/\)$/{ |
| 34358 | s//\1/ |
| 34359 | q |
| 34360 | } |
| 34361 | /^X\(\/\).*/{ |
| 34362 | s//\1/ |
| 34363 | q |
| 34364 | } |
| 34365 | s/.*/./; q'` |
| 34366 | { as_dir="$ac_dir" |
| 34367 | case $as_dir in #( |
| 34368 | -*) as_dir=./$as_dir;; |
| 34369 | esac |
| 34370 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34371 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34372 | while :; do |
| 34373 | case $as_dir in #( |
| 34374 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34375 | *) as_qdir=$as_dir;; |
| 34376 | esac |
| 34377 | as_dirs="'$as_qdir' $as_dirs" |
| 34378 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34379 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34380 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34381 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34382 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34383 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34384 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34385 | s//\1/ |
| 34386 | q |
| 34387 | } |
| 34388 | /^X\(\/\/\)[^/].*/{ |
| 34389 | s//\1/ |
| 34390 | q |
| 34391 | } |
| 34392 | /^X\(\/\/\)$/{ |
| 34393 | s//\1/ |
| 34394 | q |
| 34395 | } |
| 34396 | /^X\(\/\).*/{ |
| 34397 | s//\1/ |
| 34398 | q |
| 34399 | } |
| 34400 | s/.*/./; q'` |
| 34401 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34402 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34403 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34404 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34405 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34406 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34407 | ac_builddir=. |
| 34408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34409 | case "$ac_dir" in |
| 34410 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34411 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34412 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34413 | # A ".." for each directory in $ac_dir_suffix. |
| 34414 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34415 | case $ac_top_builddir_sub in |
| 34416 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34417 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34418 | esac ;; |
| 34419 | esac |
| 34420 | ac_abs_top_builddir=$ac_pwd |
| 34421 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34422 | # for backward compatibility: |
| 34423 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34424 | |
| 34425 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34426 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34427 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34428 | ac_top_srcdir=$ac_top_builddir_sub |
| 34429 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34430 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34431 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34432 | ac_top_srcdir=$srcdir |
| 34433 | ac_abs_top_srcdir=$srcdir ;; |
| 34434 | *) # Relative name. |
| 34435 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34436 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34437 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34438 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34439 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34440 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34442 | case $ac_mode in |
| 34443 | :F) |
| 34444 | # |
| 34445 | # CONFIG_FILE |
| 34446 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34447 | |
| 34448 | case $INSTALL in |
| 34449 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34450 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34451 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34452 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34453 | |
| 34454 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34455 | # If the template does not know about datarootdir, expand it. |
| 34456 | # FIXME: This hack should be removed a few years after 2.60. |
| 34457 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 34458 | |
| 34459 | case `sed -n '/datarootdir/ { |
| 34460 | p |
| 34461 | q |
| 34462 | } |
| 34463 | /@datadir@/p |
| 34464 | /@docdir@/p |
| 34465 | /@infodir@/p |
| 34466 | /@localedir@/p |
| 34467 | /@mandir@/p |
| 34468 | ' $ac_file_inputs` in |
| 34469 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 34470 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 34471 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 34472 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 34473 | _ACEOF |
| 34474 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34475 | ac_datarootdir_hack=' |
| 34476 | s&@datadir@&$datadir&g |
| 34477 | s&@docdir@&$docdir&g |
| 34478 | s&@infodir@&$infodir&g |
| 34479 | s&@localedir@&$localedir&g |
| 34480 | s&@mandir@&$mandir&g |
| 34481 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 34482 | esac |
| 34483 | _ACEOF |
| 34484 | |
| 34485 | # Neutralize VPATH when `$srcdir' = `.'. |
| 34486 | # Shell code in configure.ac might set extrasub. |
| 34487 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34488 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34489 | sed "$ac_vpsub |
| 34490 | $extrasub |
| 34491 | _ACEOF |
| 34492 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34493 | :t |
| 34494 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34495 | s&@configure_input@&$configure_input&;t t |
| 34496 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 34497 | s&@srcdir@&$ac_srcdir&;t t |
| 34498 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 34499 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 34500 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 34501 | s&@builddir@&$ac_builddir&;t t |
| 34502 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 34503 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 34504 | s&@INSTALL@&$ac_INSTALL&;t t |
| 34505 | $ac_datarootdir_hack |
| 34506 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34508 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 34509 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 34510 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 34511 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34512 | which seems to be undefined. Please make sure it is defined." >&5 |
| 34513 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34514 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34516 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34517 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34518 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 34519 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34520 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34521 | ;; |
| 34522 | :H) |
| 34523 | # |
| 34524 | # CONFIG_HEADER |
| 34525 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34526 | _ACEOF |
| 34527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34528 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 34529 | # substitutes the proper values into config.h.in to produce config.h. |
| 34530 | rm -f conftest.defines conftest.tail |
| 34531 | # First, append a space to every undef/define line, to ease matching. |
| 34532 | echo 's/$/ /' >conftest.defines |
| 34533 | # Then, protect against being on the right side of a sed subst, or in |
| 34534 | # an unquoted here document, in config.status. If some macros were |
| 34535 | # called several times there might be several #defines for the same |
| 34536 | # symbol, which is useless. But do not sort them, since the last |
| 34537 | # AC_DEFINE must be honored. |
| 34538 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 34539 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 34540 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 34541 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 34542 | # just an empty string. |
| 34543 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 34544 | ac_dB='\\)[ (].*,\\1define\\2' |
| 34545 | ac_dC=' ' |
| 34546 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34548 | uniq confdefs.h | |
| 34549 | sed -n ' |
| 34550 | t rset |
| 34551 | :rset |
| 34552 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 34553 | t ok |
| 34554 | d |
| 34555 | :ok |
| 34556 | s/[\\&,]/\\&/g |
| 34557 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 34558 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 34559 | ' >>conftest.defines |
| 34560 | |
| 34561 | # Remove the space that was appended to ease matching. |
| 34562 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34563 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 34564 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34565 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 34566 | echo 's/ $// |
| 34567 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34569 | # Break up conftest.defines: |
| 34570 | ac_max_sed_lines=50 |
| 34571 | |
| 34572 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 34573 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 34574 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 34575 | # et cetera. |
| 34576 | ac_in='$ac_file_inputs' |
| 34577 | ac_out='"$tmp/out1"' |
| 34578 | ac_nxt='"$tmp/out2"' |
| 34579 | |
| 34580 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34581 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34582 | # Write a here document: |
| 34583 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34584 | # First, check the format of the line: |
| 34585 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 34586 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 34587 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 34588 | b |
| 34589 | :def |
| 34590 | _ACEOF |
| 34591 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34592 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34593 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 34594 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 34595 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 34596 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34597 | rm -f conftest.defines |
| 34598 | mv conftest.tail conftest.defines |
| 34599 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34600 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34602 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34603 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34604 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34605 | echo "/* $configure_input */" >"$tmp/config.h" |
| 34606 | cat "$ac_result" >>"$tmp/config.h" |
| 34607 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34608 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 34609 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 34610 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34611 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34612 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34613 | fi |
| 34614 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34615 | echo "/* $configure_input */" |
| 34616 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34617 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34618 | rm -f "$tmp/out12" |
| 34619 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34621 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 34622 | echo "$as_me: executing $ac_file commands" >&6;} |
| 34623 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34624 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34626 | |
| 34627 | case $ac_file$ac_mode in |
| 34628 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 34629 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 34630 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 34631 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 34632 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 34633 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 34634 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 34635 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
| 34636 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 34637 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
| 34638 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 34639 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 34640 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 34641 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 34642 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 34643 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 34644 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 34645 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 34646 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 34647 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 34648 | |
| 34649 | esac |
| 34650 | done # for ac_tag |
| 34651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34652 | |
| 34653 | { (exit 0); exit 0; } |
| 34654 | _ACEOF |
| 34655 | chmod +x $CONFIG_STATUS |
| 34656 | ac_clean_files=$ac_clean_files_save |
| 34657 | |
| 34658 | |
| 34659 | # configure is writing to config.log, and then calls config.status. |
| 34660 | # config.status does its own redirection, appending to config.log. |
| 34661 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 34662 | # by configure, so config.status won't be able to write to it; its |
| 34663 | # output is simply discarded. So we exec the FD to /dev/null, |
| 34664 | # effectively closing config.log, so it can be properly (re)opened and |
| 34665 | # appended to by config.status. When coming back to configure, we |
| 34666 | # need to make the FD available again. |
| 34667 | if test "$no_create" != yes; then |
| 34668 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34669 | ac_config_status_args= |
| 34670 | test "$silent" = yes && |
| 34671 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34672 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34673 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34674 | exec 5>>config.log |
| 34675 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 34676 | # would make configure fail if this is the last instruction. |
| 34677 | $ac_cs_success || { (exit 1); exit 1; } |
| 34678 | fi |
| 34679 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34680 | # |
| 34681 | # CONFIG_SUBDIRS section. |
| 34682 | # |
| 34683 | if test "$no_recursion" != yes; then |
| 34684 | |
| 34685 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 34686 | ac_sub_configure_args= |
| 34687 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34688 | eval "set x $ac_configure_args" |
| 34689 | shift |
| 34690 | for ac_arg |
| 34691 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34692 | if test -n "$ac_prev"; then |
| 34693 | ac_prev= |
| 34694 | continue |
| 34695 | fi |
| 34696 | case $ac_arg in |
| 34697 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 34698 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 34699 | ac_prev=cache_file ;; |
| 34700 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 34701 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 34702 | | --c=*) |
| 34703 | ;; |
| 34704 | --config-cache | -C) |
| 34705 | ;; |
| 34706 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 34707 | ac_prev=srcdir ;; |
| 34708 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 34709 | ;; |
| 34710 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 34711 | ac_prev=prefix ;; |
| 34712 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 34713 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34714 | *) |
| 34715 | case $ac_arg in |
| 34716 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34717 | esac |
| 34718 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34719 | esac |
| 34720 | done |
| 34721 | |
| 34722 | # Always prepend --prefix to ensure using the same prefix |
| 34723 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34724 | ac_arg="--prefix=$prefix" |
| 34725 | case $ac_arg in |
| 34726 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34727 | esac |
| 34728 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34729 | |
| 34730 | ac_popdir=`pwd` |
| 34731 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 34732 | |
| 34733 | # Do not complain, so a configure script can configure whichever |
| 34734 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34735 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34737 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 34738 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 34739 | echo "$ac_msg" >&6 |
| 34740 | { as_dir="$ac_dir" |
| 34741 | case $as_dir in #( |
| 34742 | -*) as_dir=./$as_dir;; |
| 34743 | esac |
| 34744 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34745 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34746 | while :; do |
| 34747 | case $as_dir in #( |
| 34748 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34749 | *) as_qdir=$as_dir;; |
| 34750 | esac |
| 34751 | as_dirs="'$as_qdir' $as_dirs" |
| 34752 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34753 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34754 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34755 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34756 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34757 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34758 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34759 | s//\1/ |
| 34760 | q |
| 34761 | } |
| 34762 | /^X\(\/\/\)[^/].*/{ |
| 34763 | s//\1/ |
| 34764 | q |
| 34765 | } |
| 34766 | /^X\(\/\/\)$/{ |
| 34767 | s//\1/ |
| 34768 | q |
| 34769 | } |
| 34770 | /^X\(\/\).*/{ |
| 34771 | s//\1/ |
| 34772 | q |
| 34773 | } |
| 34774 | s/.*/./; q'` |
| 34775 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34776 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34777 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34778 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34779 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34780 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34781 | ac_builddir=. |
| 34782 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34783 | case "$ac_dir" in |
| 34784 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34785 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34786 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34787 | # A ".." for each directory in $ac_dir_suffix. |
| 34788 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34789 | case $ac_top_builddir_sub in |
| 34790 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34791 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34792 | esac ;; |
| 34793 | esac |
| 34794 | ac_abs_top_builddir=$ac_pwd |
| 34795 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34796 | # for backward compatibility: |
| 34797 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34798 | |
| 34799 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34800 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34801 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34802 | ac_top_srcdir=$ac_top_builddir_sub |
| 34803 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34804 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34805 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34806 | ac_top_srcdir=$srcdir |
| 34807 | ac_abs_top_srcdir=$srcdir ;; |
| 34808 | *) # Relative name. |
| 34809 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34810 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34811 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34812 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34813 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34814 | |
| 34815 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34816 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34817 | |
| 34818 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34819 | if test -f "$ac_srcdir/configure.gnu"; then |
| 34820 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 34821 | elif test -f "$ac_srcdir/configure"; then |
| 34822 | ac_sub_configure=$ac_srcdir/configure |
| 34823 | elif test -f "$ac_srcdir/configure.in"; then |
| 34824 | # This should be Cygnus configure. |
| 34825 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34826 | else |
| 34827 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 34828 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 34829 | ac_sub_configure= |
| 34830 | fi |
| 34831 | |
| 34832 | # The recursion is here. |
| 34833 | if test -n "$ac_sub_configure"; then |
| 34834 | # Make the cache file name correct relative to the subdirectory. |
| 34835 | case $cache_file in |
| 34836 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34837 | *) # Relative name. |
| 34838 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34839 | esac |
| 34840 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34841 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 34842 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34843 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34844 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 34845 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34846 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34847 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 34848 | { (exit 1); exit 1; }; } |
| 34849 | fi |
| 34850 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34851 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34852 | done |
| 34853 | fi |
| 34854 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34855 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 34856 | if test "$llvm_cv_llvmgcc_sanity" = "no" ; then |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 34857 | { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5 |
| 34858 | echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;} |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 34859 | { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5 |
| 34860 | echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;} |
| 34861 | { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5 |
| 34862 | echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;} |
| 34863 | { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5 |
| 34864 | echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;} |
| 34865 | { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5 |
| 34866 | echo "$as_me: WARNING: ***** build the llvm tools." >&2;} |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 34867 | fi |