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. |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for llvm 2.0cvs. |
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 | # |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 12 | # Copyright (c) 2003-2007 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-' |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 718 | PACKAGE_VERSION='2.0cvs' |
| 719 | PACKAGE_STRING='llvm 2.0cvs' |
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 |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 833 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 834 | JIT |
| 835 | TARGET_HAS_JIT |
| 836 | ENABLE_DOXYGEN |
| 837 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 838 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 839 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 840 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 841 | EXTRA_OPTIONS |
| 842 | CXX |
| 843 | CXXFLAGS |
| 844 | ac_ct_CXX |
| 845 | LEX |
| 846 | LEXLIB |
| 847 | LEX_OUTPUT_ROOT |
| 848 | FLEX |
| 849 | YACC |
| 850 | YFLAGS |
| 851 | BISON |
| 852 | NM |
| 853 | ifGNUmake |
| 854 | LN_S |
| 855 | CMP |
| 856 | CP |
| 857 | DATE |
| 858 | FIND |
| 859 | MKDIR |
| 860 | MV |
| 861 | RANLIB |
| 862 | RM |
| 863 | SED |
| 864 | TAR |
| 865 | BINPWD |
| 866 | GRAPHVIZ |
| 867 | DOT |
| 868 | GV |
| 869 | DOTTY |
| 870 | PERL |
| 871 | HAVE_PERL |
| 872 | INSTALL_PROGRAM |
| 873 | INSTALL_SCRIPT |
| 874 | INSTALL_DATA |
| 875 | BZIP2 |
| 876 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 877 | GROFF |
| 878 | GZIP |
| 879 | POD2HTML |
| 880 | POD2MAN |
| 881 | RUNTEST |
| 882 | TCLSH |
| 883 | ZIP |
| 884 | INSTALL_LTDL_TRUE |
| 885 | INSTALL_LTDL_FALSE |
| 886 | CONVENIENCE_LTDL_TRUE |
| 887 | CONVENIENCE_LTDL_FALSE |
| 888 | LIBADD_DL |
| 889 | ECHO |
| 890 | AR |
| 891 | STRIP |
| 892 | CXXCPP |
| 893 | F77 |
| 894 | FFLAGS |
| 895 | ac_ct_F77 |
| 896 | LIBTOOL |
| 897 | ETAGSFLAGS |
| 898 | LLVMGCC |
| 899 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 900 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 901 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 902 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 903 | ALLOCA |
| 904 | MMAP_FILE |
| 905 | LLVMCC1 |
| 906 | LLVMCC1PLUS |
| 907 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 908 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 909 | LLVMGCC_VERSION |
| 910 | LLVMGCC_MAJVERS |
| 911 | SHLIBEXT |
| 912 | LLVM_PREFIX |
| 913 | LLVM_BINDIR |
| 914 | LLVM_LIBDIR |
| 915 | LLVM_DATADIR |
| 916 | LLVM_DOCSDIR |
| 917 | LLVM_ETCDIR |
| 918 | LLVM_INCLUDEDIR |
| 919 | LLVM_INFODIR |
| 920 | LLVM_MANDIR |
| 921 | LLVM_CONFIGTIME |
| 922 | LIBOBJS |
| 923 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 924 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 925 | ac_precious_vars='build_alias |
| 926 | host_alias |
| 927 | target_alias |
| 928 | CC |
| 929 | CFLAGS |
| 930 | LDFLAGS |
| 931 | CPPFLAGS |
| 932 | CPP |
| 933 | CXX |
| 934 | CXXFLAGS |
| 935 | CCC |
| 936 | YACC |
| 937 | YFLAGS |
| 938 | CXXCPP |
| 939 | F77 |
| 940 | FFLAGS' |
| 941 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 942 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 943 | projects/llvm-stacker |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 944 | projects/llvm-test |
| 945 | projects/llvm-reopt |
| 946 | projects/llvm-gcc |
| 947 | projects/llvm-java |
| 948 | projects/llvm-tv |
| 949 | projects/llvm-poolalloc |
| 950 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 951 | |
| 952 | # Initialize some variables set by options. |
| 953 | ac_init_help= |
| 954 | ac_init_version=false |
| 955 | # The variables have the same names as the options, with |
| 956 | # dashes changed to underlines. |
| 957 | cache_file=/dev/null |
| 958 | exec_prefix=NONE |
| 959 | no_create= |
| 960 | no_recursion= |
| 961 | prefix=NONE |
| 962 | program_prefix=NONE |
| 963 | program_suffix=NONE |
| 964 | program_transform_name=s,x,x, |
| 965 | silent= |
| 966 | site= |
| 967 | srcdir= |
| 968 | verbose= |
| 969 | x_includes=NONE |
| 970 | x_libraries=NONE |
| 971 | |
| 972 | # Installation directory options. |
| 973 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 974 | # and all the variables that are supposed to be based on exec_prefix |
| 975 | # by default will actually change. |
| 976 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 977 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 978 | bindir='${exec_prefix}/bin' |
| 979 | sbindir='${exec_prefix}/sbin' |
| 980 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 981 | datarootdir='${prefix}/share' |
| 982 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 983 | sysconfdir='${prefix}/etc' |
| 984 | sharedstatedir='${prefix}/com' |
| 985 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 986 | includedir='${prefix}/include' |
| 987 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 988 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 989 | infodir='${datarootdir}/info' |
| 990 | htmldir='${docdir}' |
| 991 | dvidir='${docdir}' |
| 992 | pdfdir='${docdir}' |
| 993 | psdir='${docdir}' |
| 994 | libdir='${exec_prefix}/lib' |
| 995 | localedir='${datarootdir}/locale' |
| 996 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 997 | |
| 998 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 999 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1000 | for ac_option |
| 1001 | do |
| 1002 | # If the previous option needs an argument, assign it. |
| 1003 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1004 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1005 | ac_prev= |
| 1006 | continue |
| 1007 | fi |
| 1008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1009 | case $ac_option in |
| 1010 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1011 | *) ac_optarg=yes ;; |
| 1012 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1013 | |
| 1014 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1016 | case $ac_dashdash$ac_option in |
| 1017 | --) |
| 1018 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1019 | |
| 1020 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1021 | ac_prev=bindir ;; |
| 1022 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1023 | bindir=$ac_optarg ;; |
| 1024 | |
| 1025 | -build | --build | --buil | --bui | --bu) |
| 1026 | ac_prev=build_alias ;; |
| 1027 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1028 | build_alias=$ac_optarg ;; |
| 1029 | |
| 1030 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1031 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1032 | ac_prev=cache_file ;; |
| 1033 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1034 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1035 | cache_file=$ac_optarg ;; |
| 1036 | |
| 1037 | --config-cache | -C) |
| 1038 | cache_file=config.cache ;; |
| 1039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1040 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1041 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1042 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1043 | datadir=$ac_optarg ;; |
| 1044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1045 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1046 | | --dataroo | --dataro | --datar) |
| 1047 | ac_prev=datarootdir ;; |
| 1048 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1049 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1050 | datarootdir=$ac_optarg ;; |
| 1051 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1052 | -disable-* | --disable-*) |
| 1053 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1054 | # Reject names that are not valid shell variable names. |
| 1055 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1056 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1057 | { (exit 1); exit 1; }; } |
| 1058 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1059 | eval enable_$ac_feature=no ;; |
| 1060 | |
| 1061 | -docdir | --docdir | --docdi | --doc | --do) |
| 1062 | ac_prev=docdir ;; |
| 1063 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1064 | docdir=$ac_optarg ;; |
| 1065 | |
| 1066 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1067 | ac_prev=dvidir ;; |
| 1068 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1069 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1070 | |
| 1071 | -enable-* | --enable-*) |
| 1072 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1073 | # Reject names that are not valid shell variable names. |
| 1074 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1075 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1076 | { (exit 1); exit 1; }; } |
| 1077 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1078 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1079 | |
| 1080 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1081 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1082 | | --exec | --exe | --ex) |
| 1083 | ac_prev=exec_prefix ;; |
| 1084 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1085 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1086 | | --exec=* | --exe=* | --ex=*) |
| 1087 | exec_prefix=$ac_optarg ;; |
| 1088 | |
| 1089 | -gas | --gas | --ga | --g) |
| 1090 | # Obsolete; use --with-gas. |
| 1091 | with_gas=yes ;; |
| 1092 | |
| 1093 | -help | --help | --hel | --he | -h) |
| 1094 | ac_init_help=long ;; |
| 1095 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1096 | ac_init_help=recursive ;; |
| 1097 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1098 | ac_init_help=short ;; |
| 1099 | |
| 1100 | -host | --host | --hos | --ho) |
| 1101 | ac_prev=host_alias ;; |
| 1102 | -host=* | --host=* | --hos=* | --ho=*) |
| 1103 | host_alias=$ac_optarg ;; |
| 1104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1105 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1106 | ac_prev=htmldir ;; |
| 1107 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1108 | | --ht=*) |
| 1109 | htmldir=$ac_optarg ;; |
| 1110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1111 | -includedir | --includedir | --includedi | --included | --include \ |
| 1112 | | --includ | --inclu | --incl | --inc) |
| 1113 | ac_prev=includedir ;; |
| 1114 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1115 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1116 | includedir=$ac_optarg ;; |
| 1117 | |
| 1118 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1119 | ac_prev=infodir ;; |
| 1120 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1121 | infodir=$ac_optarg ;; |
| 1122 | |
| 1123 | -libdir | --libdir | --libdi | --libd) |
| 1124 | ac_prev=libdir ;; |
| 1125 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1126 | libdir=$ac_optarg ;; |
| 1127 | |
| 1128 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1129 | | --libexe | --libex | --libe) |
| 1130 | ac_prev=libexecdir ;; |
| 1131 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1132 | | --libexe=* | --libex=* | --libe=*) |
| 1133 | libexecdir=$ac_optarg ;; |
| 1134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1135 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1136 | ac_prev=localedir ;; |
| 1137 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1138 | localedir=$ac_optarg ;; |
| 1139 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1140 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1141 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1142 | ac_prev=localstatedir ;; |
| 1143 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1144 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1145 | localstatedir=$ac_optarg ;; |
| 1146 | |
| 1147 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1148 | ac_prev=mandir ;; |
| 1149 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1150 | mandir=$ac_optarg ;; |
| 1151 | |
| 1152 | -nfp | --nfp | --nf) |
| 1153 | # Obsolete; use --without-fp. |
| 1154 | with_fp=no ;; |
| 1155 | |
| 1156 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1157 | | --no-cr | --no-c | -n) |
| 1158 | no_create=yes ;; |
| 1159 | |
| 1160 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1161 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1162 | no_recursion=yes ;; |
| 1163 | |
| 1164 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1165 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1166 | | --oldin | --oldi | --old | --ol | --o) |
| 1167 | ac_prev=oldincludedir ;; |
| 1168 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1169 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1170 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1171 | oldincludedir=$ac_optarg ;; |
| 1172 | |
| 1173 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1174 | ac_prev=prefix ;; |
| 1175 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1176 | prefix=$ac_optarg ;; |
| 1177 | |
| 1178 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1179 | | --program-pre | --program-pr | --program-p) |
| 1180 | ac_prev=program_prefix ;; |
| 1181 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1182 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1183 | program_prefix=$ac_optarg ;; |
| 1184 | |
| 1185 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1186 | | --program-suf | --program-su | --program-s) |
| 1187 | ac_prev=program_suffix ;; |
| 1188 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1189 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1190 | program_suffix=$ac_optarg ;; |
| 1191 | |
| 1192 | -program-transform-name | --program-transform-name \ |
| 1193 | | --program-transform-nam | --program-transform-na \ |
| 1194 | | --program-transform-n | --program-transform- \ |
| 1195 | | --program-transform | --program-transfor \ |
| 1196 | | --program-transfo | --program-transf \ |
| 1197 | | --program-trans | --program-tran \ |
| 1198 | | --progr-tra | --program-tr | --program-t) |
| 1199 | ac_prev=program_transform_name ;; |
| 1200 | -program-transform-name=* | --program-transform-name=* \ |
| 1201 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1202 | | --program-transform-n=* | --program-transform-=* \ |
| 1203 | | --program-transform=* | --program-transfor=* \ |
| 1204 | | --program-transfo=* | --program-transf=* \ |
| 1205 | | --program-trans=* | --program-tran=* \ |
| 1206 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1207 | program_transform_name=$ac_optarg ;; |
| 1208 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1209 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1210 | ac_prev=pdfdir ;; |
| 1211 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1212 | pdfdir=$ac_optarg ;; |
| 1213 | |
| 1214 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1215 | ac_prev=psdir ;; |
| 1216 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1217 | psdir=$ac_optarg ;; |
| 1218 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1219 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1220 | | -silent | --silent | --silen | --sile | --sil) |
| 1221 | silent=yes ;; |
| 1222 | |
| 1223 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1224 | ac_prev=sbindir ;; |
| 1225 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1226 | | --sbi=* | --sb=*) |
| 1227 | sbindir=$ac_optarg ;; |
| 1228 | |
| 1229 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1230 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1231 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1232 | | --sha | --sh) |
| 1233 | ac_prev=sharedstatedir ;; |
| 1234 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1235 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1236 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1237 | | --sha=* | --sh=*) |
| 1238 | sharedstatedir=$ac_optarg ;; |
| 1239 | |
| 1240 | -site | --site | --sit) |
| 1241 | ac_prev=site ;; |
| 1242 | -site=* | --site=* | --sit=*) |
| 1243 | site=$ac_optarg ;; |
| 1244 | |
| 1245 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1246 | ac_prev=srcdir ;; |
| 1247 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1248 | srcdir=$ac_optarg ;; |
| 1249 | |
| 1250 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1251 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1252 | ac_prev=sysconfdir ;; |
| 1253 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1254 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1255 | sysconfdir=$ac_optarg ;; |
| 1256 | |
| 1257 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1258 | ac_prev=target_alias ;; |
| 1259 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1260 | target_alias=$ac_optarg ;; |
| 1261 | |
| 1262 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1263 | verbose=yes ;; |
| 1264 | |
| 1265 | -version | --version | --versio | --versi | --vers | -V) |
| 1266 | ac_init_version=: ;; |
| 1267 | |
| 1268 | -with-* | --with-*) |
| 1269 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1270 | # Reject names that are not valid shell variable names. |
| 1271 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1272 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1273 | { (exit 1); exit 1; }; } |
| 1274 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1275 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1276 | |
| 1277 | -without-* | --without-*) |
| 1278 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1279 | # Reject names that are not valid shell variable names. |
| 1280 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1281 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1282 | { (exit 1); exit 1; }; } |
| 1283 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1284 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1285 | |
| 1286 | --x) |
| 1287 | # Obsolete; use --with-x. |
| 1288 | with_x=yes ;; |
| 1289 | |
| 1290 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1291 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1292 | ac_prev=x_includes ;; |
| 1293 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1294 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1295 | x_includes=$ac_optarg ;; |
| 1296 | |
| 1297 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1298 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1299 | ac_prev=x_libraries ;; |
| 1300 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1301 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1302 | x_libraries=$ac_optarg ;; |
| 1303 | |
| 1304 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1305 | Try \`$0 --help' for more information." >&2 |
| 1306 | { (exit 1); exit 1; }; } |
| 1307 | ;; |
| 1308 | |
| 1309 | *=*) |
| 1310 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1311 | # Reject names that are not valid shell variable names. |
| 1312 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1313 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1314 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1315 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1316 | export $ac_envvar ;; |
| 1317 | |
| 1318 | *) |
| 1319 | # FIXME: should be removed in autoconf 3.0. |
| 1320 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1321 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1322 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1323 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1324 | ;; |
| 1325 | |
| 1326 | esac |
| 1327 | done |
| 1328 | |
| 1329 | if test -n "$ac_prev"; then |
| 1330 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1331 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1332 | { (exit 1); exit 1; }; } |
| 1333 | fi |
| 1334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1335 | # Be sure to have absolute directory names. |
| 1336 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1337 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1338 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1339 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1340 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1341 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1342 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1343 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1344 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1345 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1346 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1347 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1348 | done |
| 1349 | |
| 1350 | # There might be people who depend on the old broken behavior: `$host' |
| 1351 | # used to hold the argument of --host etc. |
| 1352 | # FIXME: To remove some day. |
| 1353 | build=$build_alias |
| 1354 | host=$host_alias |
| 1355 | target=$target_alias |
| 1356 | |
| 1357 | # FIXME: To remove some day. |
| 1358 | if test "x$host_alias" != x; then |
| 1359 | if test "x$build_alias" = x; then |
| 1360 | cross_compiling=maybe |
| 1361 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1362 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1363 | elif test "x$build_alias" != "x$host_alias"; then |
| 1364 | cross_compiling=yes |
| 1365 | fi |
| 1366 | fi |
| 1367 | |
| 1368 | ac_tool_prefix= |
| 1369 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1370 | |
| 1371 | test "$silent" = yes && exec 6>/dev/null |
| 1372 | |
| 1373 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1374 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1375 | ac_ls_di=`ls -di .` && |
| 1376 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1377 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1378 | { (exit 1); exit 1; }; } |
| 1379 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1380 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1381 | { (exit 1); exit 1; }; } |
| 1382 | |
| 1383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1384 | # Find the source files, if location was not specified. |
| 1385 | if test -z "$srcdir"; then |
| 1386 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1387 | # Try the directory containing this script, then the parent directory. |
| 1388 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1389 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1390 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1391 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1392 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1393 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1395 | s//\1/ |
| 1396 | q |
| 1397 | } |
| 1398 | /^X\(\/\/\)[^/].*/{ |
| 1399 | s//\1/ |
| 1400 | q |
| 1401 | } |
| 1402 | /^X\(\/\/\)$/{ |
| 1403 | s//\1/ |
| 1404 | q |
| 1405 | } |
| 1406 | /^X\(\/\).*/{ |
| 1407 | s//\1/ |
| 1408 | q |
| 1409 | } |
| 1410 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1411 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1413 | srcdir=.. |
| 1414 | fi |
| 1415 | else |
| 1416 | ac_srcdir_defaulted=no |
| 1417 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1418 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1419 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1420 | { 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] | 1421 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1422 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1423 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1424 | ac_abs_confdir=`( |
| 1425 | 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] | 1426 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1427 | pwd)` |
| 1428 | # When building in place, set srcdir=. |
| 1429 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1430 | srcdir=. |
| 1431 | fi |
| 1432 | # Remove unnecessary trailing slashes from srcdir. |
| 1433 | # Double slashes in file names in object file debugging info |
| 1434 | # mess up M-x gdb in Emacs. |
| 1435 | case $srcdir in |
| 1436 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1437 | esac |
| 1438 | for ac_var in $ac_precious_vars; do |
| 1439 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1440 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1441 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1442 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1443 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1444 | |
| 1445 | # |
| 1446 | # Report the --help message. |
| 1447 | # |
| 1448 | if test "$ac_init_help" = "long"; then |
| 1449 | # Omit some internal or obsolete options to make the list less imposing. |
| 1450 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1451 | cat <<_ACEOF |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 1452 | \`configure' configures llvm 2.0cvs to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1453 | |
| 1454 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1455 | |
| 1456 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1457 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1458 | |
| 1459 | Defaults for the options are specified in brackets. |
| 1460 | |
| 1461 | Configuration: |
| 1462 | -h, --help display this help and exit |
| 1463 | --help=short display options specific to this package |
| 1464 | --help=recursive display the short help of all the included packages |
| 1465 | -V, --version display version information and exit |
| 1466 | -q, --quiet, --silent do not print \`checking...' messages |
| 1467 | --cache-file=FILE cache test results in FILE [disabled] |
| 1468 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1469 | -n, --no-create do not create output files |
| 1470 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1471 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1472 | Installation directories: |
| 1473 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1474 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1475 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1476 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1477 | |
| 1478 | By default, \`make install' will install all the files in |
| 1479 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1480 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1481 | for instance \`--prefix=\$HOME'. |
| 1482 | |
| 1483 | For better control, use the options below. |
| 1484 | |
| 1485 | Fine tuning of the installation directories: |
| 1486 | --bindir=DIR user executables [EPREFIX/bin] |
| 1487 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1488 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1489 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1490 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1491 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1492 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1493 | --includedir=DIR C header files [PREFIX/include] |
| 1494 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1495 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1496 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1497 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1498 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1499 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1500 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1501 | --htmldir=DIR html documentation [DOCDIR] |
| 1502 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1503 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1504 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1505 | _ACEOF |
| 1506 | |
| 1507 | cat <<\_ACEOF |
| 1508 | |
| 1509 | System types: |
| 1510 | --build=BUILD configure for building on BUILD [guessed] |
| 1511 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1512 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1513 | _ACEOF |
| 1514 | fi |
| 1515 | |
| 1516 | if test -n "$ac_init_help"; then |
| 1517 | case $ac_init_help in |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 1518 | short | recursive ) echo "Configuration of llvm 2.0cvs:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1519 | esac |
| 1520 | cat <<\_ACEOF |
| 1521 | |
| 1522 | Optional Features: |
| 1523 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1524 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1525 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1526 | --enable-assertions |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1527 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1528 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1529 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1530 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1531 | --enable-pic Build LLVM with Position Independent Code (default |
| 1532 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1533 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1534 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1535 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1536 | %a (default is YES) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1537 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1538 | --enable-shared[=PKGS] build shared libraries |
| 1539 | [default=enable_shared_default] |
| 1540 | --enable-static[=PKGS] build static libraries |
| 1541 | [default=enable_static_default] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1542 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1543 | optimize for fast installation |
| 1544 | [default=enable_Fast_install_default] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1545 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1546 | |
| 1547 | Optional Packages: |
| 1548 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1549 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1550 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1551 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1552 | --with-extra-options Specify addtional options to compile LLVM with |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1553 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1554 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1555 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1556 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1557 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1558 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1559 | |
| 1560 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1561 | CC C compiler command |
| 1562 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1563 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1564 | nonstandard directory <lib dir> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1565 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1566 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1567 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1568 | CXX C++ compiler command |
| 1569 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1570 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1571 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1572 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1573 | This script will default YFLAGS to the empty string to avoid a |
| 1574 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1575 | CXXCPP C++ preprocessor |
| 1576 | F77 Fortran 77 compiler command |
| 1577 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1578 | |
| 1579 | Use these variables to override the choices made by `configure' or to help |
| 1580 | it to find libraries and programs with nonstandard names/locations. |
| 1581 | |
| 1582 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1583 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1584 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1585 | fi |
| 1586 | |
| 1587 | if test "$ac_init_help" = "recursive"; then |
| 1588 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1589 | 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] | 1590 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1591 | ac_builddir=. |
| 1592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1593 | case "$ac_dir" in |
| 1594 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1595 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1596 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1597 | # A ".." for each directory in $ac_dir_suffix. |
| 1598 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1599 | case $ac_top_builddir_sub in |
| 1600 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1601 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1602 | esac ;; |
| 1603 | esac |
| 1604 | ac_abs_top_builddir=$ac_pwd |
| 1605 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1606 | # for backward compatibility: |
| 1607 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1608 | |
| 1609 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1610 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1611 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1612 | ac_top_srcdir=$ac_top_builddir_sub |
| 1613 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1614 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1615 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1616 | ac_top_srcdir=$srcdir |
| 1617 | ac_abs_top_srcdir=$srcdir ;; |
| 1618 | *) # Relative name. |
| 1619 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1620 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1621 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1622 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1623 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1624 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1625 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1626 | # Check for guested configure. |
| 1627 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1628 | echo && |
| 1629 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1630 | elif test -f "$ac_srcdir/configure"; then |
| 1631 | echo && |
| 1632 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1633 | else |
| 1634 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1635 | fi || ac_status=$? |
| 1636 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1637 | done |
| 1638 | fi |
| 1639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1640 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1641 | if $ac_init_version; then |
| 1642 | cat <<\_ACEOF |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 1643 | llvm configure 2.0cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1644 | generated by GNU Autoconf 2.60 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1646 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1647 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1648 | This configure script is free software; the Free Software Foundation |
| 1649 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1650 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1651 | Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1652 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1653 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1654 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1655 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1656 | This file contains any messages produced by compilers while |
| 1657 | running configure, to aid debugging if configure makes a mistake. |
| 1658 | |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 1659 | It was created by llvm $as_me 2.0cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1660 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1661 | |
| 1662 | $ $0 $@ |
| 1663 | |
| 1664 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1665 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1666 | { |
| 1667 | cat <<_ASUNAME |
| 1668 | ## --------- ## |
| 1669 | ## Platform. ## |
| 1670 | ## --------- ## |
| 1671 | |
| 1672 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1673 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1674 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1675 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1676 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1677 | |
| 1678 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1679 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1680 | |
| 1681 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1682 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1683 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1684 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1685 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1686 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1687 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1688 | |
| 1689 | _ASUNAME |
| 1690 | |
| 1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1692 | for as_dir in $PATH |
| 1693 | do |
| 1694 | IFS=$as_save_IFS |
| 1695 | test -z "$as_dir" && as_dir=. |
| 1696 | echo "PATH: $as_dir" |
| 1697 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1698 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1699 | |
| 1700 | } >&5 |
| 1701 | |
| 1702 | cat >&5 <<_ACEOF |
| 1703 | |
| 1704 | |
| 1705 | ## ----------- ## |
| 1706 | ## Core tests. ## |
| 1707 | ## ----------- ## |
| 1708 | |
| 1709 | _ACEOF |
| 1710 | |
| 1711 | |
| 1712 | # Keep a trace of the command line. |
| 1713 | # 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] | 1714 | # 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] | 1715 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1716 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1717 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1718 | ac_configure_args0= |
| 1719 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1720 | ac_must_keep_next=false |
| 1721 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1722 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1723 | for ac_arg |
| 1724 | do |
| 1725 | case $ac_arg in |
| 1726 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1727 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1728 | | -silent | --silent | --silen | --sile | --sil) |
| 1729 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1730 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1731 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1732 | esac |
| 1733 | case $ac_pass in |
| 1734 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1735 | 2) |
| 1736 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1737 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1738 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1739 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1740 | case $ac_arg in |
| 1741 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1742 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1743 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1744 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1745 | case "$ac_configure_args0 " in |
| 1746 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1747 | esac |
| 1748 | ;; |
| 1749 | -* ) ac_must_keep_next=true ;; |
| 1750 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1752 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1753 | ;; |
| 1754 | esac |
| 1755 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1756 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1757 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1758 | $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] | 1759 | |
| 1760 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1761 | # config.log. We remove comments because anyway the quotes in there |
| 1762 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1763 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1764 | # 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] | 1765 | trap 'exit_status=$? |
| 1766 | # Save into config.log some information that might help in debugging. |
| 1767 | { |
| 1768 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1769 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1770 | cat <<\_ASBOX |
| 1771 | ## ---------------- ## |
| 1772 | ## Cache variables. ## |
| 1773 | ## ---------------- ## |
| 1774 | _ASBOX |
| 1775 | echo |
| 1776 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1777 | ( |
| 1778 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1779 | eval ac_val=\$$ac_var |
| 1780 | case $ac_val in #( |
| 1781 | *${as_nl}*) |
| 1782 | case $ac_var in #( |
| 1783 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1784 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1785 | esac |
| 1786 | case $ac_var in #( |
| 1787 | _ | IFS | as_nl) ;; #( |
| 1788 | *) $as_unset $ac_var ;; |
| 1789 | esac ;; |
| 1790 | esac |
| 1791 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1792 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1793 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1794 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1795 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1796 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1797 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1798 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1799 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1800 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1801 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1802 | esac | |
| 1803 | sort |
| 1804 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1805 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1806 | |
| 1807 | cat <<\_ASBOX |
| 1808 | ## ----------------- ## |
| 1809 | ## Output variables. ## |
| 1810 | ## ----------------- ## |
| 1811 | _ASBOX |
| 1812 | echo |
| 1813 | for ac_var in $ac_subst_vars |
| 1814 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1815 | eval ac_val=\$$ac_var |
| 1816 | case $ac_val in |
| 1817 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1818 | esac |
| 1819 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1820 | done | sort |
| 1821 | echo |
| 1822 | |
| 1823 | if test -n "$ac_subst_files"; then |
| 1824 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1825 | ## ------------------- ## |
| 1826 | ## File substitutions. ## |
| 1827 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1828 | _ASBOX |
| 1829 | echo |
| 1830 | for ac_var in $ac_subst_files |
| 1831 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1832 | eval ac_val=\$$ac_var |
| 1833 | case $ac_val in |
| 1834 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1835 | esac |
| 1836 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1837 | done | sort |
| 1838 | echo |
| 1839 | fi |
| 1840 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | if test -s confdefs.h; then |
| 1842 | cat <<\_ASBOX |
| 1843 | ## ----------- ## |
| 1844 | ## confdefs.h. ## |
| 1845 | ## ----------- ## |
| 1846 | _ASBOX |
| 1847 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1848 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1849 | echo |
| 1850 | fi |
| 1851 | test "$ac_signal" != 0 && |
| 1852 | echo "$as_me: caught signal $ac_signal" |
| 1853 | echo "$as_me: exit $exit_status" |
| 1854 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1855 | rm -f core *.core core.conftest.* && |
| 1856 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1857 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1858 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1859 | for ac_signal in 1 2 13 15; do |
| 1860 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1861 | done |
| 1862 | ac_signal=0 |
| 1863 | |
| 1864 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1865 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1866 | |
| 1867 | # Predefined preprocessor variables. |
| 1868 | |
| 1869 | cat >>confdefs.h <<_ACEOF |
| 1870 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1871 | _ACEOF |
| 1872 | |
| 1873 | |
| 1874 | cat >>confdefs.h <<_ACEOF |
| 1875 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1876 | _ACEOF |
| 1877 | |
| 1878 | |
| 1879 | cat >>confdefs.h <<_ACEOF |
| 1880 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1881 | _ACEOF |
| 1882 | |
| 1883 | |
| 1884 | cat >>confdefs.h <<_ACEOF |
| 1885 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1886 | _ACEOF |
| 1887 | |
| 1888 | |
| 1889 | cat >>confdefs.h <<_ACEOF |
| 1890 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1891 | _ACEOF |
| 1892 | |
| 1893 | |
| 1894 | # Let the site file select an alternate cache file if it wants to. |
| 1895 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1896 | if test -n "$CONFIG_SITE"; then |
| 1897 | set x "$CONFIG_SITE" |
| 1898 | elif test "x$prefix" != xNONE; then |
| 1899 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1900 | else |
| 1901 | set x "$ac_default_prefix/share/config.site" \ |
| 1902 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1903 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1904 | shift |
| 1905 | for ac_site_file |
| 1906 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1907 | if test -r "$ac_site_file"; then |
| 1908 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1909 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1910 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1911 | . "$ac_site_file" |
| 1912 | fi |
| 1913 | done |
| 1914 | |
| 1915 | if test -r "$cache_file"; then |
| 1916 | # Some versions of bash will fail to source /dev/null (special |
| 1917 | # files actually), so we avoid doing that. |
| 1918 | if test -f "$cache_file"; then |
| 1919 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1920 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1921 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1922 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1923 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1924 | esac |
| 1925 | fi |
| 1926 | else |
| 1927 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1928 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1929 | >$cache_file |
| 1930 | fi |
| 1931 | |
| 1932 | # Check that the precious variables saved in the cache have kept the same |
| 1933 | # value. |
| 1934 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1935 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1936 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1937 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1938 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1939 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1940 | case $ac_old_set,$ac_new_set in |
| 1941 | set,) |
| 1942 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1943 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1944 | ac_cache_corrupted=: ;; |
| 1945 | ,set) |
| 1946 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1947 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1948 | ac_cache_corrupted=: ;; |
| 1949 | ,);; |
| 1950 | *) |
| 1951 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1952 | { 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] | 1953 | 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] | 1954 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1955 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1956 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1957 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1958 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1959 | fi;; |
| 1960 | esac |
| 1961 | # Pass precious variables to config.status. |
| 1962 | if test "$ac_new_set" = set; then |
| 1963 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1964 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1965 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1966 | esac |
| 1967 | case " $ac_configure_args " in |
| 1968 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1969 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1970 | esac |
| 1971 | fi |
| 1972 | done |
| 1973 | if $ac_cache_corrupted; then |
| 1974 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1975 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1976 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1977 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1978 | { (exit 1); exit 1; }; } |
| 1979 | fi |
| 1980 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1981 | |
| 1982 | |
| 1983 | |
| 1984 | |
| 1985 | |
| 1986 | |
| 1987 | |
| 1988 | |
| 1989 | |
| 1990 | |
| 1991 | |
| 1992 | |
| 1993 | |
| 1994 | |
| 1995 | |
| 1996 | |
| 1997 | |
| 1998 | |
| 1999 | |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2005 | ac_ext=c |
| 2006 | ac_cpp='$CPP $CPPFLAGS' |
| 2007 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2008 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2009 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2010 | |
| 2011 | |
| 2012 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 2013 | LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2021 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2022 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2023 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2024 | ac_aux_dir=$ac_dir |
| 2025 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2026 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2027 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2028 | ac_aux_dir=$ac_dir |
| 2029 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2030 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2031 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2032 | ac_aux_dir=$ac_dir |
| 2033 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2034 | break |
| 2035 | fi |
| 2036 | done |
| 2037 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2038 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2039 | 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] | 2040 | { (exit 1); exit 1; }; } |
| 2041 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2042 | |
| 2043 | # These three variables are undocumented and unsupported, |
| 2044 | # and are intended to be withdrawn in a future Autoconf release. |
| 2045 | # They can cause serious problems if a builder's source tree is in a directory |
| 2046 | # whose full name contains unusual characters. |
| 2047 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2048 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2049 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2050 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2051 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2052 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2053 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2054 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2055 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2056 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2057 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2058 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2059 | fi |
| 2060 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2061 | for i in `ls ${srcdir}/projects` |
| 2062 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2063 | if test -d ${srcdir}/projects/${i} ; then |
| 2064 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2065 | CVS) ;; |
| 2066 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2067 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2068 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2069 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2070 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2071 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2072 | llvm-test) subdirs="$subdirs projects/llvm-test" |
| 2073 | ;; |
| 2074 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2075 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2076 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2077 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2078 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2079 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2080 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2081 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2082 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2083 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2084 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2085 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2086 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2087 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2088 | 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] | 2089 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2090 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2091 | fi |
| 2092 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2093 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2094 | |
| 2095 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2096 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2097 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2098 | 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] | 2099 | { (exit 1); exit 1; }; } |
| 2100 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2102 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2103 | if test "${ac_cv_build+set}" = set; then |
| 2104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2105 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2106 | ac_build_alias=$build_alias |
| 2107 | test "x$ac_build_alias" = x && |
| 2108 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2109 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2110 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2111 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2112 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2113 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2114 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2115 | 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] | 2116 | { (exit 1); exit 1; }; } |
| 2117 | |
| 2118 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2119 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2120 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2121 | case $ac_cv_build in |
| 2122 | *-*-*) ;; |
| 2123 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2124 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2125 | { (exit 1); exit 1; }; };; |
| 2126 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2127 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2128 | ac_save_IFS=$IFS; IFS='-' |
| 2129 | set x $ac_cv_build |
| 2130 | shift |
| 2131 | build_cpu=$1 |
| 2132 | build_vendor=$2 |
| 2133 | shift; shift |
| 2134 | # Remember, the first character of IFS is used to create $*, |
| 2135 | # except with old shells: |
| 2136 | build_os=$* |
| 2137 | IFS=$ac_save_IFS |
| 2138 | 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] | 2139 | |
| 2140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2142 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2143 | if test "${ac_cv_host+set}" = set; then |
| 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2145 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2146 | if test "x$host_alias" = x; then |
| 2147 | ac_cv_host=$ac_cv_build |
| 2148 | else |
| 2149 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2150 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2151 | 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] | 2152 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2153 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2154 | |
| 2155 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2156 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2157 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2158 | case $ac_cv_host in |
| 2159 | *-*-*) ;; |
| 2160 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2161 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2162 | { (exit 1); exit 1; }; };; |
| 2163 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2164 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2165 | ac_save_IFS=$IFS; IFS='-' |
| 2166 | set x $ac_cv_host |
| 2167 | shift |
| 2168 | host_cpu=$1 |
| 2169 | host_vendor=$2 |
| 2170 | shift; shift |
| 2171 | # Remember, the first character of IFS is used to create $*, |
| 2172 | # except with old shells: |
| 2173 | host_os=$* |
| 2174 | IFS=$ac_save_IFS |
| 2175 | 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] | 2176 | |
| 2177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2178 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2179 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2180 | if test "${ac_cv_target+set}" = set; then |
| 2181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2182 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2183 | if test "x$target_alias" = x; then |
| 2184 | ac_cv_target=$ac_cv_host |
| 2185 | else |
| 2186 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2187 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2188 | 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] | 2189 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2190 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2191 | |
| 2192 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2193 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2194 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2195 | case $ac_cv_target in |
| 2196 | *-*-*) ;; |
| 2197 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2198 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2199 | { (exit 1); exit 1; }; };; |
| 2200 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2201 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2202 | ac_save_IFS=$IFS; IFS='-' |
| 2203 | set x $ac_cv_target |
| 2204 | shift |
| 2205 | target_cpu=$1 |
| 2206 | target_vendor=$2 |
| 2207 | shift; shift |
| 2208 | # Remember, the first character of IFS is used to create $*, |
| 2209 | # except with old shells: |
| 2210 | target_os=$* |
| 2211 | IFS=$ac_save_IFS |
| 2212 | 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] | 2213 | |
| 2214 | |
| 2215 | # The aliases save the names the user supplied, while $host etc. |
| 2216 | # will get canonicalized. |
| 2217 | test -n "$target_alias" && |
| 2218 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2219 | NONENONEs,x,x, && |
| 2220 | program_prefix=${target_alias}- |
| 2221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2222 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2223 | 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] | 2224 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2226 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2227 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2228 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2229 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2230 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2231 | llvm_cv_os_type="AIX" |
| 2232 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2233 | *-*-irix*) |
| 2234 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2235 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2236 | llvm_cv_os_type="IRIX" |
| 2237 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2238 | *-*-cygwin*) |
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 | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2241 | llvm_cv_os_type="Cygwin" |
| 2242 | llvm_cv_platform_type="Unix" ;; |
| 2243 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2244 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2245 | llvm_cv_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2246 | llvm_cv_os_type="Darwin" |
| 2247 | llvm_cv_platform_type="Unix" ;; |
| 2248 | *-*-freebsd*) |
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="FreeBSD" |
| 2252 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2253 | *-*-openbsd*) |
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 | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2256 | llvm_cv_os_type="OpenBSD" |
| 2257 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2258 | *-*-netbsd*) |
| 2259 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2260 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2261 | llvm_cv_os_type="NetBSD" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2263 | *-*-hpux*) |
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" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="HP-UX" |
| 2267 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2268 | *-*-interix*) |
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="Interix" |
| 2272 | llvm_cv_platform_type="Unix" ;; |
| 2273 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2275 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="Linux" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
| 2278 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2279 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2280 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2281 | llvm_cv_os_type="SunOS" |
| 2282 | llvm_cv_platform_type="Unix" ;; |
| 2283 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2284 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2285 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2286 | llvm_cv_os_type="Win32" |
| 2287 | llvm_cv_platform_type="Win32" ;; |
| 2288 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2290 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | llvm_cv_os_type="MingW" |
| 2292 | llvm_cv_platform_type="Win32" ;; |
| 2293 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2294 | llvm_cv_link_all_option="" |
| 2295 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2296 | llvm_cv_os_type="Unknown" |
| 2297 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2298 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2300 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2301 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2302 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2303 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2304 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2305 | 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] | 2306 | { (exit 1); exit 1; }; } |
| 2307 | fi |
| 2308 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2310 | |
| 2311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2312 | LINKALL=$llvm_cv_link_all_option |
| 2313 | |
| 2314 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2315 | |
| 2316 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2317 | case $llvm_cv_platform_type in |
| 2318 | Unix) |
| 2319 | |
| 2320 | cat >>confdefs.h <<\_ACEOF |
| 2321 | #define LLVM_ON_UNIX 1 |
| 2322 | _ACEOF |
| 2323 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2324 | LLVM_ON_UNIX=1 |
| 2325 | |
| 2326 | LLVM_ON_WIN32=0 |
| 2327 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2328 | ;; |
| 2329 | Win32) |
| 2330 | |
| 2331 | cat >>confdefs.h <<\_ACEOF |
| 2332 | #define LLVM_ON_WIN32 1 |
| 2333 | _ACEOF |
| 2334 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2335 | LLVM_ON_UNIX=0 |
| 2336 | |
| 2337 | LLVM_ON_WIN32=1 |
| 2338 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2339 | ;; |
| 2340 | esac |
| 2341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2342 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2343 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2344 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2346 | else |
| 2347 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2348 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2349 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2350 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2351 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2352 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2353 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2354 | arm-*) llvm_cv_target_arch="ARM" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2355 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2356 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2357 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2358 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2359 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2360 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2361 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2362 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2363 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2364 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2365 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2366 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2367 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2368 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2369 | ac_ext=c |
| 2370 | ac_cpp='$CPP $CPPFLAGS' |
| 2371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2374 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2375 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2376 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2377 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2379 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2381 | else |
| 2382 | if test -n "$CC"; then |
| 2383 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2384 | else |
| 2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2386 | for as_dir in $PATH |
| 2387 | do |
| 2388 | IFS=$as_save_IFS |
| 2389 | test -z "$as_dir" && as_dir=. |
| 2390 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2391 | 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] | 2392 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2394 | break 2 |
| 2395 | fi |
| 2396 | done |
| 2397 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2398 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2399 | |
| 2400 | fi |
| 2401 | fi |
| 2402 | CC=$ac_cv_prog_CC |
| 2403 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2404 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2405 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2406 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2407 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2408 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2409 | fi |
| 2410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2411 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2412 | fi |
| 2413 | if test -z "$ac_cv_prog_CC"; then |
| 2414 | ac_ct_CC=$CC |
| 2415 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2416 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2417 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2419 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2421 | else |
| 2422 | if test -n "$ac_ct_CC"; then |
| 2423 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2424 | else |
| 2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2426 | for as_dir in $PATH |
| 2427 | do |
| 2428 | IFS=$as_save_IFS |
| 2429 | test -z "$as_dir" && as_dir=. |
| 2430 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2431 | 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] | 2432 | ac_cv_prog_ac_ct_CC="gcc" |
| 2433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2434 | break 2 |
| 2435 | fi |
| 2436 | done |
| 2437 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2438 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2439 | |
| 2440 | fi |
| 2441 | fi |
| 2442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2443 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2444 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2445 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2446 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2448 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2449 | fi |
| 2450 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2451 | if test "x$ac_ct_CC" = x; then |
| 2452 | CC="" |
| 2453 | else |
| 2454 | case $cross_compiling:$ac_tool_warned in |
| 2455 | yes:) |
| 2456 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2457 | whose name does not start with the host triplet. If you think this |
| 2458 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2459 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2460 | whose name does not start with the host triplet. If you think this |
| 2461 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2462 | ac_tool_warned=yes ;; |
| 2463 | esac |
| 2464 | CC=$ac_ct_CC |
| 2465 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2466 | else |
| 2467 | CC="$ac_cv_prog_CC" |
| 2468 | fi |
| 2469 | |
| 2470 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2471 | if test -n "$ac_tool_prefix"; then |
| 2472 | # 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] | 2473 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2476 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2478 | else |
| 2479 | if test -n "$CC"; then |
| 2480 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2481 | else |
| 2482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2483 | for as_dir in $PATH |
| 2484 | do |
| 2485 | IFS=$as_save_IFS |
| 2486 | test -z "$as_dir" && as_dir=. |
| 2487 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2488 | 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] | 2489 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2491 | break 2 |
| 2492 | fi |
| 2493 | done |
| 2494 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2495 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2496 | |
| 2497 | fi |
| 2498 | fi |
| 2499 | CC=$ac_cv_prog_CC |
| 2500 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2501 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2502 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2503 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2505 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2506 | fi |
| 2507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2508 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2509 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | fi |
| 2511 | if test -z "$CC"; then |
| 2512 | # Extract the first word of "cc", so it can be a program name with args. |
| 2513 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2516 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2518 | else |
| 2519 | if test -n "$CC"; then |
| 2520 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2521 | else |
| 2522 | ac_prog_rejected=no |
| 2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2524 | for as_dir in $PATH |
| 2525 | do |
| 2526 | IFS=$as_save_IFS |
| 2527 | test -z "$as_dir" && as_dir=. |
| 2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2529 | 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] | 2530 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2531 | ac_prog_rejected=yes |
| 2532 | continue |
| 2533 | fi |
| 2534 | ac_cv_prog_CC="cc" |
| 2535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2536 | break 2 |
| 2537 | fi |
| 2538 | done |
| 2539 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2540 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2541 | |
| 2542 | if test $ac_prog_rejected = yes; then |
| 2543 | # We found a bogon in the path, so make sure we never use it. |
| 2544 | set dummy $ac_cv_prog_CC |
| 2545 | shift |
| 2546 | if test $# != 0; then |
| 2547 | # We chose a different compiler from the bogus one. |
| 2548 | # However, it has the same basename, so the bogon will be chosen |
| 2549 | # first if we set CC to just the basename; use the full file name. |
| 2550 | shift |
| 2551 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2552 | fi |
| 2553 | fi |
| 2554 | fi |
| 2555 | fi |
| 2556 | CC=$ac_cv_prog_CC |
| 2557 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2558 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2559 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2561 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2562 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2563 | fi |
| 2564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2565 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2566 | fi |
| 2567 | if test -z "$CC"; then |
| 2568 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2569 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2570 | do |
| 2571 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2572 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2573 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2575 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2577 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2578 | if test -n "$CC"; then |
| 2579 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2580 | else |
| 2581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2582 | for as_dir in $PATH |
| 2583 | do |
| 2584 | IFS=$as_save_IFS |
| 2585 | test -z "$as_dir" && as_dir=. |
| 2586 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2587 | 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] | 2588 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2590 | break 2 |
| 2591 | fi |
| 2592 | done |
| 2593 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2594 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2595 | |
| 2596 | fi |
| 2597 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2598 | CC=$ac_cv_prog_CC |
| 2599 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2601 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2602 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2603 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2604 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2607 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2608 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2609 | done |
| 2610 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2611 | if test -z "$CC"; then |
| 2612 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2613 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | do |
| 2615 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2616 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2617 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2618 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2619 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2621 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2622 | if test -n "$ac_ct_CC"; then |
| 2623 | 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] | 2624 | else |
| 2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2626 | for as_dir in $PATH |
| 2627 | do |
| 2628 | IFS=$as_save_IFS |
| 2629 | test -z "$as_dir" && as_dir=. |
| 2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2631 | 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] | 2632 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2634 | break 2 |
| 2635 | fi |
| 2636 | done |
| 2637 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2639 | |
| 2640 | fi |
| 2641 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2642 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2643 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2644 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2645 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2646 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2648 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2649 | fi |
| 2650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2651 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2652 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2653 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2654 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2655 | if test "x$ac_ct_CC" = x; then |
| 2656 | CC="" |
| 2657 | else |
| 2658 | case $cross_compiling:$ac_tool_warned in |
| 2659 | yes:) |
| 2660 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2661 | whose name does not start with the host triplet. If you think this |
| 2662 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2663 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2664 | whose name does not start with the host triplet. If you think this |
| 2665 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2666 | ac_tool_warned=yes ;; |
| 2667 | esac |
| 2668 | CC=$ac_ct_CC |
| 2669 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2670 | fi |
| 2671 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | fi |
| 2673 | |
| 2674 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2675 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2676 | See \`config.log' for more details." >&5 |
| 2677 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2678 | See \`config.log' for more details." >&2;} |
| 2679 | { (exit 1); exit 1; }; } |
| 2680 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2681 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2682 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2683 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2684 | { (ac_try="$ac_compiler --version >&5" |
| 2685 | case "(($ac_try" in |
| 2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2687 | *) ac_try_echo=$ac_try;; |
| 2688 | esac |
| 2689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2690 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2691 | ac_status=$? |
| 2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2693 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2694 | { (ac_try="$ac_compiler -v >&5" |
| 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
| 2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2700 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2701 | ac_status=$? |
| 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2703 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2704 | { (ac_try="$ac_compiler -V >&5" |
| 2705 | case "(($ac_try" in |
| 2706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2707 | *) ac_try_echo=$ac_try;; |
| 2708 | esac |
| 2709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2710 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); } |
| 2714 | |
| 2715 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2716 | /* confdefs.h. */ |
| 2717 | _ACEOF |
| 2718 | cat confdefs.h >>conftest.$ac_ext |
| 2719 | cat >>conftest.$ac_ext <<_ACEOF |
| 2720 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2721 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2722 | int |
| 2723 | main () |
| 2724 | { |
| 2725 | |
| 2726 | ; |
| 2727 | return 0; |
| 2728 | } |
| 2729 | _ACEOF |
| 2730 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2731 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2732 | # Try to create an executable without -o first, disregard a.out. |
| 2733 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2734 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2735 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2736 | 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] | 2737 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2738 | # |
| 2739 | # List of possible output files, starting from the most likely. |
| 2740 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2741 | # only as a last resort. b.out is created by i960 compilers. |
| 2742 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2743 | # |
| 2744 | # The IRIX 6 linker writes into existing files which may not be |
| 2745 | # executable, retaining their permissions. Remove them first so a |
| 2746 | # subsequent execution test works. |
| 2747 | ac_rmfiles= |
| 2748 | for ac_file in $ac_files |
| 2749 | do |
| 2750 | case $ac_file in |
| 2751 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2752 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2753 | esac |
| 2754 | done |
| 2755 | rm -f $ac_rmfiles |
| 2756 | |
| 2757 | if { (ac_try="$ac_link_default" |
| 2758 | case "(($ac_try" in |
| 2759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2760 | *) ac_try_echo=$ac_try;; |
| 2761 | esac |
| 2762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2763 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2764 | ac_status=$? |
| 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2766 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2767 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2768 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2769 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2770 | # so that the user can short-circuit this test for compilers unknown to |
| 2771 | # Autoconf. |
| 2772 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2773 | do |
| 2774 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2775 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2776 | *.$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] | 2777 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2778 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2779 | # We found the default executable, but exeext='' is most |
| 2780 | # certainly right. |
| 2781 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2782 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2783 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2784 | then :; else |
| 2785 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2786 | fi |
| 2787 | # We set ac_cv_exeext here because the later test for it is not |
| 2788 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2789 | # argument, so we may need to know it at that point already. |
| 2790 | # Even if this section looks crufty: it has the advantage of |
| 2791 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2792 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2793 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2794 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2795 | esac |
| 2796 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2797 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2798 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2799 | else |
| 2800 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2802 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2803 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2804 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2805 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2806 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2807 | { (exit 77); exit 77; }; } |
| 2808 | fi |
| 2809 | |
| 2810 | ac_exeext=$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2811 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2812 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2814 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2815 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2816 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2817 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2818 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2819 | # If not cross compiling, check that we can run a simple program. |
| 2820 | if test "$cross_compiling" != yes; then |
| 2821 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2822 | { (case "(($ac_try" in |
| 2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2824 | *) ac_try_echo=$ac_try;; |
| 2825 | esac |
| 2826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2827 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2828 | ac_status=$? |
| 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); }; }; then |
| 2831 | cross_compiling=no |
| 2832 | else |
| 2833 | if test "$cross_compiling" = maybe; then |
| 2834 | cross_compiling=yes |
| 2835 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2836 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2837 | If you meant to cross compile, use \`--host'. |
| 2838 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2839 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2840 | If you meant to cross compile, use \`--host'. |
| 2841 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2842 | { (exit 1); exit 1; }; } |
| 2843 | fi |
| 2844 | fi |
| 2845 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2846 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2847 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2848 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2849 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2850 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2851 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2852 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2853 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2854 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2855 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2856 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2857 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2858 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2859 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2860 | if { (ac_try="$ac_link" |
| 2861 | case "(($ac_try" in |
| 2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2863 | *) ac_try_echo=$ac_try;; |
| 2864 | esac |
| 2865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2866 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2867 | ac_status=$? |
| 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2869 | (exit $ac_status); }; then |
| 2870 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2871 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2872 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2873 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2874 | for ac_file in conftest.exe conftest conftest.*; do |
| 2875 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2876 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2877 | *.$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] | 2878 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2879 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2880 | * ) break;; |
| 2881 | esac |
| 2882 | done |
| 2883 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2884 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2885 | See \`config.log' for more details." >&5 |
| 2886 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2887 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | { (exit 1); exit 1; }; } |
| 2889 | fi |
| 2890 | |
| 2891 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2892 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2893 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2894 | |
| 2895 | rm -f conftest.$ac_ext |
| 2896 | EXEEXT=$ac_cv_exeext |
| 2897 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2898 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2899 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2900 | if test "${ac_cv_objext+set}" = set; then |
| 2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2902 | else |
| 2903 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2904 | /* confdefs.h. */ |
| 2905 | _ACEOF |
| 2906 | cat confdefs.h >>conftest.$ac_ext |
| 2907 | cat >>conftest.$ac_ext <<_ACEOF |
| 2908 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2909 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | int |
| 2911 | main () |
| 2912 | { |
| 2913 | |
| 2914 | ; |
| 2915 | return 0; |
| 2916 | } |
| 2917 | _ACEOF |
| 2918 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2919 | if { (ac_try="$ac_compile" |
| 2920 | case "(($ac_try" in |
| 2921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2922 | *) ac_try_echo=$ac_try;; |
| 2923 | esac |
| 2924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2925 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2926 | ac_status=$? |
| 2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2928 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2929 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2930 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2932 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2933 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2934 | break;; |
| 2935 | esac |
| 2936 | done |
| 2937 | else |
| 2938 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2940 | |
| 2941 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2942 | See \`config.log' for more details." >&5 |
| 2943 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2944 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2945 | { (exit 1); exit 1; }; } |
| 2946 | fi |
| 2947 | |
| 2948 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2950 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2951 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2952 | OBJEXT=$ac_cv_objext |
| 2953 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2954 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2955 | 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] | 2956 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2958 | else |
| 2959 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2960 | /* confdefs.h. */ |
| 2961 | _ACEOF |
| 2962 | cat confdefs.h >>conftest.$ac_ext |
| 2963 | cat >>conftest.$ac_ext <<_ACEOF |
| 2964 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2965 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2966 | int |
| 2967 | main () |
| 2968 | { |
| 2969 | #ifndef __GNUC__ |
| 2970 | choke me |
| 2971 | #endif |
| 2972 | |
| 2973 | ; |
| 2974 | return 0; |
| 2975 | } |
| 2976 | _ACEOF |
| 2977 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2978 | if { (ac_try="$ac_compile" |
| 2979 | case "(($ac_try" in |
| 2980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2981 | *) ac_try_echo=$ac_try;; |
| 2982 | esac |
| 2983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2984 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2985 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2987 | rm -f conftest.er1 |
| 2988 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2990 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2992 | { (case "(($ac_try" in |
| 2993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2994 | *) ac_try_echo=$ac_try;; |
| 2995 | esac |
| 2996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2997 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2998 | ac_status=$? |
| 2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3000 | (exit $ac_status); }; } && |
| 3001 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3002 | { (case "(($ac_try" in |
| 3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3004 | *) ac_try_echo=$ac_try;; |
| 3005 | esac |
| 3006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3007 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3008 | ac_status=$? |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); }; }; then |
| 3011 | ac_compiler_gnu=yes |
| 3012 | else |
| 3013 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3016 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3017 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3018 | |
| 3019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3020 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3021 | |
| 3022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3023 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3024 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3025 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3026 | ac_test_CFLAGS=${CFLAGS+set} |
| 3027 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3028 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3029 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3030 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3032 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3033 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3034 | ac_c_werror_flag=yes |
| 3035 | ac_cv_prog_cc_g=no |
| 3036 | CFLAGS="-g" |
| 3037 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3038 | /* confdefs.h. */ |
| 3039 | _ACEOF |
| 3040 | cat confdefs.h >>conftest.$ac_ext |
| 3041 | cat >>conftest.$ac_ext <<_ACEOF |
| 3042 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3044 | int |
| 3045 | main () |
| 3046 | { |
| 3047 | |
| 3048 | ; |
| 3049 | return 0; |
| 3050 | } |
| 3051 | _ACEOF |
| 3052 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3053 | if { (ac_try="$ac_compile" |
| 3054 | case "(($ac_try" in |
| 3055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3056 | *) ac_try_echo=$ac_try;; |
| 3057 | esac |
| 3058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3059 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3060 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3062 | rm -f conftest.er1 |
| 3063 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3065 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3067 | { (case "(($ac_try" in |
| 3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3069 | *) ac_try_echo=$ac_try;; |
| 3070 | esac |
| 3071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3072 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3073 | ac_status=$? |
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3075 | (exit $ac_status); }; } && |
| 3076 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3077 | { (case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
| 3081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3082 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3083 | ac_status=$? |
| 3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3085 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3086 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3087 | else |
| 3088 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3090 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3091 | CFLAGS="" |
| 3092 | cat >conftest.$ac_ext <<_ACEOF |
| 3093 | /* confdefs.h. */ |
| 3094 | _ACEOF |
| 3095 | cat confdefs.h >>conftest.$ac_ext |
| 3096 | cat >>conftest.$ac_ext <<_ACEOF |
| 3097 | /* end confdefs.h. */ |
| 3098 | |
| 3099 | int |
| 3100 | main () |
| 3101 | { |
| 3102 | |
| 3103 | ; |
| 3104 | return 0; |
| 3105 | } |
| 3106 | _ACEOF |
| 3107 | rm -f conftest.$ac_objext |
| 3108 | if { (ac_try="$ac_compile" |
| 3109 | case "(($ac_try" in |
| 3110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3111 | *) ac_try_echo=$ac_try;; |
| 3112 | esac |
| 3113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3114 | (eval "$ac_compile") 2>conftest.er1 |
| 3115 | ac_status=$? |
| 3116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3117 | rm -f conftest.er1 |
| 3118 | cat conftest.err >&5 |
| 3119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3120 | (exit $ac_status); } && |
| 3121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3122 | { (case "(($ac_try" in |
| 3123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3124 | *) ac_try_echo=$ac_try;; |
| 3125 | esac |
| 3126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3127 | (eval "$ac_try") 2>&5 |
| 3128 | ac_status=$? |
| 3129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3130 | (exit $ac_status); }; } && |
| 3131 | { ac_try='test -s conftest.$ac_objext' |
| 3132 | { (case "(($ac_try" in |
| 3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3134 | *) ac_try_echo=$ac_try;; |
| 3135 | esac |
| 3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3137 | (eval "$ac_try") 2>&5 |
| 3138 | ac_status=$? |
| 3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3140 | (exit $ac_status); }; }; then |
| 3141 | : |
| 3142 | else |
| 3143 | echo "$as_me: failed program was:" >&5 |
| 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3145 | |
| 3146 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3147 | CFLAGS="-g" |
| 3148 | cat >conftest.$ac_ext <<_ACEOF |
| 3149 | /* confdefs.h. */ |
| 3150 | _ACEOF |
| 3151 | cat confdefs.h >>conftest.$ac_ext |
| 3152 | cat >>conftest.$ac_ext <<_ACEOF |
| 3153 | /* end confdefs.h. */ |
| 3154 | |
| 3155 | int |
| 3156 | main () |
| 3157 | { |
| 3158 | |
| 3159 | ; |
| 3160 | return 0; |
| 3161 | } |
| 3162 | _ACEOF |
| 3163 | rm -f conftest.$ac_objext |
| 3164 | if { (ac_try="$ac_compile" |
| 3165 | case "(($ac_try" in |
| 3166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3167 | *) ac_try_echo=$ac_try;; |
| 3168 | esac |
| 3169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3170 | (eval "$ac_compile") 2>conftest.er1 |
| 3171 | ac_status=$? |
| 3172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3173 | rm -f conftest.er1 |
| 3174 | cat conftest.err >&5 |
| 3175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3176 | (exit $ac_status); } && |
| 3177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3178 | { (case "(($ac_try" in |
| 3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3180 | *) ac_try_echo=$ac_try;; |
| 3181 | esac |
| 3182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3183 | (eval "$ac_try") 2>&5 |
| 3184 | ac_status=$? |
| 3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3186 | (exit $ac_status); }; } && |
| 3187 | { ac_try='test -s conftest.$ac_objext' |
| 3188 | { (case "(($ac_try" in |
| 3189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3190 | *) ac_try_echo=$ac_try;; |
| 3191 | esac |
| 3192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3193 | (eval "$ac_try") 2>&5 |
| 3194 | ac_status=$? |
| 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3196 | (exit $ac_status); }; }; then |
| 3197 | ac_cv_prog_cc_g=yes |
| 3198 | else |
| 3199 | echo "$as_me: failed program was:" >&5 |
| 3200 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3201 | |
| 3202 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3204 | |
| 3205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3207 | |
| 3208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3209 | fi |
| 3210 | |
| 3211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3212 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3213 | fi |
| 3214 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3215 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3216 | if test "$ac_test_CFLAGS" = set; then |
| 3217 | CFLAGS=$ac_save_CFLAGS |
| 3218 | elif test $ac_cv_prog_cc_g = yes; then |
| 3219 | if test "$GCC" = yes; then |
| 3220 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3221 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3222 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | fi |
| 3224 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3225 | if test "$GCC" = yes; then |
| 3226 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3227 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3228 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3229 | fi |
| 3230 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3231 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3232 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3233 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3235 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3236 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3237 | ac_save_CC=$CC |
| 3238 | cat >conftest.$ac_ext <<_ACEOF |
| 3239 | /* confdefs.h. */ |
| 3240 | _ACEOF |
| 3241 | cat confdefs.h >>conftest.$ac_ext |
| 3242 | cat >>conftest.$ac_ext <<_ACEOF |
| 3243 | /* end confdefs.h. */ |
| 3244 | #include <stdarg.h> |
| 3245 | #include <stdio.h> |
| 3246 | #include <sys/types.h> |
| 3247 | #include <sys/stat.h> |
| 3248 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3249 | struct buf { int x; }; |
| 3250 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3251 | static char *e (p, i) |
| 3252 | char **p; |
| 3253 | int i; |
| 3254 | { |
| 3255 | return p[i]; |
| 3256 | } |
| 3257 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3258 | { |
| 3259 | char *s; |
| 3260 | va_list v; |
| 3261 | va_start (v,p); |
| 3262 | s = g (p, va_arg (v,int)); |
| 3263 | va_end (v); |
| 3264 | return s; |
| 3265 | } |
| 3266 | |
| 3267 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3268 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3269 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3270 | 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] | 3271 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3272 | 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] | 3273 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3274 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3275 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3276 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3277 | inside strings and character constants. */ |
| 3278 | #define FOO(x) 'x' |
| 3279 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3280 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3281 | int test (int i, double x); |
| 3282 | struct s1 {int (*f) (int a);}; |
| 3283 | struct s2 {int (*f) (double a);}; |
| 3284 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3285 | int argc; |
| 3286 | char **argv; |
| 3287 | int |
| 3288 | main () |
| 3289 | { |
| 3290 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3291 | ; |
| 3292 | return 0; |
| 3293 | } |
| 3294 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3295 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3296 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | do |
| 3298 | CC="$ac_save_CC $ac_arg" |
| 3299 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3300 | if { (ac_try="$ac_compile" |
| 3301 | case "(($ac_try" in |
| 3302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3303 | *) ac_try_echo=$ac_try;; |
| 3304 | esac |
| 3305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3306 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3307 | ac_status=$? |
| 3308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3309 | rm -f conftest.er1 |
| 3310 | cat conftest.err >&5 |
| 3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3312 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3314 | { (case "(($ac_try" in |
| 3315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3316 | *) ac_try_echo=$ac_try;; |
| 3317 | esac |
| 3318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3319 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3320 | ac_status=$? |
| 3321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3322 | (exit $ac_status); }; } && |
| 3323 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3324 | { (case "(($ac_try" in |
| 3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3326 | *) ac_try_echo=$ac_try;; |
| 3327 | esac |
| 3328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3329 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3330 | ac_status=$? |
| 3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3332 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3333 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3334 | else |
| 3335 | echo "$as_me: failed program was:" >&5 |
| 3336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3337 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3338 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3340 | |
| 3341 | rm -f core conftest.err conftest.$ac_objext |
| 3342 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3343 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3344 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3345 | CC=$ac_save_CC |
| 3346 | |
| 3347 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3348 | # AC_CACHE_VAL |
| 3349 | case "x$ac_cv_prog_cc_c89" in |
| 3350 | x) |
| 3351 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3352 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3353 | xno) |
| 3354 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3355 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3356 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3357 | CC="$CC $ac_cv_prog_cc_c89" |
| 3358 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3359 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3360 | esac |
| 3361 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3362 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3363 | ac_ext=c |
| 3364 | ac_cpp='$CPP $CPPFLAGS' |
| 3365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3368 | |
| 3369 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3370 | ac_ext=c |
| 3371 | ac_cpp='$CPP $CPPFLAGS' |
| 3372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3375 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3376 | 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] | 3377 | # On Suns, sometimes $CPP names a directory. |
| 3378 | if test -n "$CPP" && test -d "$CPP"; then |
| 3379 | CPP= |
| 3380 | fi |
| 3381 | if test -z "$CPP"; then |
| 3382 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3384 | else |
| 3385 | # Double quotes because CPP needs to be expanded |
| 3386 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3387 | do |
| 3388 | ac_preproc_ok=false |
| 3389 | for ac_c_preproc_warn_flag in '' yes |
| 3390 | do |
| 3391 | # Use a header file that comes with gcc, so configuring glibc |
| 3392 | # with a fresh cross-compiler works. |
| 3393 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3394 | # <limits.h> exists even on freestanding compilers. |
| 3395 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3396 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3397 | cat >conftest.$ac_ext <<_ACEOF |
| 3398 | /* confdefs.h. */ |
| 3399 | _ACEOF |
| 3400 | cat confdefs.h >>conftest.$ac_ext |
| 3401 | cat >>conftest.$ac_ext <<_ACEOF |
| 3402 | /* end confdefs.h. */ |
| 3403 | #ifdef __STDC__ |
| 3404 | # include <limits.h> |
| 3405 | #else |
| 3406 | # include <assert.h> |
| 3407 | #endif |
| 3408 | Syntax error |
| 3409 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3411 | case "(($ac_try" in |
| 3412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3413 | *) ac_try_echo=$ac_try;; |
| 3414 | esac |
| 3415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3417 | ac_status=$? |
| 3418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3419 | rm -f conftest.er1 |
| 3420 | cat conftest.err >&5 |
| 3421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3422 | (exit $ac_status); } >/dev/null; then |
| 3423 | if test -s conftest.err; then |
| 3424 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3425 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3426 | else |
| 3427 | ac_cpp_err= |
| 3428 | fi |
| 3429 | else |
| 3430 | ac_cpp_err=yes |
| 3431 | fi |
| 3432 | if test -z "$ac_cpp_err"; then |
| 3433 | : |
| 3434 | else |
| 3435 | echo "$as_me: failed program was:" >&5 |
| 3436 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3437 | |
| 3438 | # Broken: fails on valid input. |
| 3439 | continue |
| 3440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3441 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3442 | rm -f conftest.err conftest.$ac_ext |
| 3443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3444 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3445 | # can be detected and how. |
| 3446 | cat >conftest.$ac_ext <<_ACEOF |
| 3447 | /* confdefs.h. */ |
| 3448 | _ACEOF |
| 3449 | cat confdefs.h >>conftest.$ac_ext |
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
| 3451 | /* end confdefs.h. */ |
| 3452 | #include <ac_nonexistent.h> |
| 3453 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3454 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3455 | case "(($ac_try" in |
| 3456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3457 | *) ac_try_echo=$ac_try;; |
| 3458 | esac |
| 3459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3460 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3461 | ac_status=$? |
| 3462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3463 | rm -f conftest.er1 |
| 3464 | cat conftest.err >&5 |
| 3465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3466 | (exit $ac_status); } >/dev/null; then |
| 3467 | if test -s conftest.err; then |
| 3468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3470 | else |
| 3471 | ac_cpp_err= |
| 3472 | fi |
| 3473 | else |
| 3474 | ac_cpp_err=yes |
| 3475 | fi |
| 3476 | if test -z "$ac_cpp_err"; then |
| 3477 | # Broken: success on invalid input. |
| 3478 | continue |
| 3479 | else |
| 3480 | echo "$as_me: failed program was:" >&5 |
| 3481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3482 | |
| 3483 | # Passes both tests. |
| 3484 | ac_preproc_ok=: |
| 3485 | break |
| 3486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3487 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3488 | rm -f conftest.err conftest.$ac_ext |
| 3489 | |
| 3490 | done |
| 3491 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3492 | rm -f conftest.err conftest.$ac_ext |
| 3493 | if $ac_preproc_ok; then |
| 3494 | break |
| 3495 | fi |
| 3496 | |
| 3497 | done |
| 3498 | ac_cv_prog_CPP=$CPP |
| 3499 | |
| 3500 | fi |
| 3501 | CPP=$ac_cv_prog_CPP |
| 3502 | else |
| 3503 | ac_cv_prog_CPP=$CPP |
| 3504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3505 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3506 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3507 | ac_preproc_ok=false |
| 3508 | for ac_c_preproc_warn_flag in '' yes |
| 3509 | do |
| 3510 | # Use a header file that comes with gcc, so configuring glibc |
| 3511 | # with a fresh cross-compiler works. |
| 3512 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3513 | # <limits.h> exists even on freestanding compilers. |
| 3514 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3515 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3516 | cat >conftest.$ac_ext <<_ACEOF |
| 3517 | /* confdefs.h. */ |
| 3518 | _ACEOF |
| 3519 | cat confdefs.h >>conftest.$ac_ext |
| 3520 | cat >>conftest.$ac_ext <<_ACEOF |
| 3521 | /* end confdefs.h. */ |
| 3522 | #ifdef __STDC__ |
| 3523 | # include <limits.h> |
| 3524 | #else |
| 3525 | # include <assert.h> |
| 3526 | #endif |
| 3527 | Syntax error |
| 3528 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3529 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3530 | case "(($ac_try" in |
| 3531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3532 | *) ac_try_echo=$ac_try;; |
| 3533 | esac |
| 3534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3535 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3536 | ac_status=$? |
| 3537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3538 | rm -f conftest.er1 |
| 3539 | cat conftest.err >&5 |
| 3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3541 | (exit $ac_status); } >/dev/null; then |
| 3542 | if test -s conftest.err; then |
| 3543 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3544 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3545 | else |
| 3546 | ac_cpp_err= |
| 3547 | fi |
| 3548 | else |
| 3549 | ac_cpp_err=yes |
| 3550 | fi |
| 3551 | if test -z "$ac_cpp_err"; then |
| 3552 | : |
| 3553 | else |
| 3554 | echo "$as_me: failed program was:" >&5 |
| 3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3556 | |
| 3557 | # Broken: fails on valid input. |
| 3558 | continue |
| 3559 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3560 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3561 | rm -f conftest.err conftest.$ac_ext |
| 3562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3563 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3564 | # can be detected and how. |
| 3565 | cat >conftest.$ac_ext <<_ACEOF |
| 3566 | /* confdefs.h. */ |
| 3567 | _ACEOF |
| 3568 | cat confdefs.h >>conftest.$ac_ext |
| 3569 | cat >>conftest.$ac_ext <<_ACEOF |
| 3570 | /* end confdefs.h. */ |
| 3571 | #include <ac_nonexistent.h> |
| 3572 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3573 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3574 | case "(($ac_try" in |
| 3575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3576 | *) ac_try_echo=$ac_try;; |
| 3577 | esac |
| 3578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3579 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3580 | ac_status=$? |
| 3581 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3582 | rm -f conftest.er1 |
| 3583 | cat conftest.err >&5 |
| 3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3585 | (exit $ac_status); } >/dev/null; then |
| 3586 | if test -s conftest.err; then |
| 3587 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3588 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3589 | else |
| 3590 | ac_cpp_err= |
| 3591 | fi |
| 3592 | else |
| 3593 | ac_cpp_err=yes |
| 3594 | fi |
| 3595 | if test -z "$ac_cpp_err"; then |
| 3596 | # Broken: success on invalid input. |
| 3597 | continue |
| 3598 | else |
| 3599 | echo "$as_me: failed program was:" >&5 |
| 3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3601 | |
| 3602 | # Passes both tests. |
| 3603 | ac_preproc_ok=: |
| 3604 | break |
| 3605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3606 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3607 | rm -f conftest.err conftest.$ac_ext |
| 3608 | |
| 3609 | done |
| 3610 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3611 | rm -f conftest.err conftest.$ac_ext |
| 3612 | if $ac_preproc_ok; then |
| 3613 | : |
| 3614 | else |
| 3615 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3616 | See \`config.log' for more details." >&5 |
| 3617 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3618 | See \`config.log' for more details." >&2;} |
| 3619 | { (exit 1); exit 1; }; } |
| 3620 | fi |
| 3621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3622 | ac_ext=c |
| 3623 | ac_cpp='$CPP $CPPFLAGS' |
| 3624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3627 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3629 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3630 | 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] | 3631 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3633 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3634 | # Extract the first word of "grep ggrep" to use in msg output |
| 3635 | if test -z "$GREP"; then |
| 3636 | set dummy grep ggrep; ac_prog_name=$2 |
| 3637 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3639 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3640 | ac_path_GREP_found=false |
| 3641 | # 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] | 3642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3643 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3644 | do |
| 3645 | IFS=$as_save_IFS |
| 3646 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3647 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3649 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3650 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3651 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3652 | # Check for GNU $ac_path_GREP |
| 3653 | case `"$ac_path_GREP" --version 2>&1` in |
| 3654 | *GNU*) |
| 3655 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3656 | *) |
| 3657 | ac_count=0 |
| 3658 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3659 | while : |
| 3660 | do |
| 3661 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3662 | mv "conftest.tmp" "conftest.in" |
| 3663 | cp "conftest.in" "conftest.nl" |
| 3664 | echo 'GREP' >> "conftest.nl" |
| 3665 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3666 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3667 | ac_count=`expr $ac_count + 1` |
| 3668 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3669 | # Best one so far, save it but keep looking for a better one |
| 3670 | ac_cv_path_GREP="$ac_path_GREP" |
| 3671 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3673 | # 10*(2^10) chars as input seems more than enough |
| 3674 | test $ac_count -gt 10 && break |
| 3675 | done |
| 3676 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3677 | esac |
| 3678 | |
| 3679 | |
| 3680 | $ac_path_GREP_found && break 3 |
| 3681 | done |
| 3682 | done |
| 3683 | |
| 3684 | done |
| 3685 | IFS=$as_save_IFS |
| 3686 | |
| 3687 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3688 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3689 | |
| 3690 | GREP="$ac_cv_path_GREP" |
| 3691 | if test -z "$GREP"; then |
| 3692 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3693 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3694 | { (exit 1); exit 1; }; } |
| 3695 | fi |
| 3696 | |
| 3697 | else |
| 3698 | ac_cv_path_GREP=$GREP |
| 3699 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3700 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3702 | fi |
| 3703 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3704 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3705 | GREP="$ac_cv_path_GREP" |
| 3706 | |
| 3707 | |
| 3708 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3709 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3710 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3712 | else |
| 3713 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3714 | then ac_cv_path_EGREP="$GREP -E" |
| 3715 | else |
| 3716 | # Extract the first word of "egrep" to use in msg output |
| 3717 | if test -z "$EGREP"; then |
| 3718 | set dummy egrep; ac_prog_name=$2 |
| 3719 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3721 | else |
| 3722 | ac_path_EGREP_found=false |
| 3723 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3725 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3726 | do |
| 3727 | IFS=$as_save_IFS |
| 3728 | test -z "$as_dir" && as_dir=. |
| 3729 | for ac_prog in egrep; do |
| 3730 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3731 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3732 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3733 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3734 | # Check for GNU $ac_path_EGREP |
| 3735 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3736 | *GNU*) |
| 3737 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3738 | *) |
| 3739 | ac_count=0 |
| 3740 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3741 | while : |
| 3742 | do |
| 3743 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3744 | mv "conftest.tmp" "conftest.in" |
| 3745 | cp "conftest.in" "conftest.nl" |
| 3746 | echo 'EGREP' >> "conftest.nl" |
| 3747 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3748 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3749 | ac_count=`expr $ac_count + 1` |
| 3750 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3751 | # Best one so far, save it but keep looking for a better one |
| 3752 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3753 | ac_path_EGREP_max=$ac_count |
| 3754 | fi |
| 3755 | # 10*(2^10) chars as input seems more than enough |
| 3756 | test $ac_count -gt 10 && break |
| 3757 | done |
| 3758 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3759 | esac |
| 3760 | |
| 3761 | |
| 3762 | $ac_path_EGREP_found && break 3 |
| 3763 | done |
| 3764 | done |
| 3765 | |
| 3766 | done |
| 3767 | IFS=$as_save_IFS |
| 3768 | |
| 3769 | |
| 3770 | fi |
| 3771 | |
| 3772 | EGREP="$ac_cv_path_EGREP" |
| 3773 | if test -z "$EGREP"; then |
| 3774 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3775 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3776 | { (exit 1); exit 1; }; } |
| 3777 | fi |
| 3778 | |
| 3779 | else |
| 3780 | ac_cv_path_EGREP=$EGREP |
| 3781 | fi |
| 3782 | |
| 3783 | |
| 3784 | fi |
| 3785 | fi |
| 3786 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3787 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3788 | EGREP="$ac_cv_path_EGREP" |
| 3789 | |
| 3790 | |
| 3791 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3792 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3793 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3795 | else |
| 3796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3797 | /* confdefs.h. */ |
| 3798 | _ACEOF |
| 3799 | cat confdefs.h >>conftest.$ac_ext |
| 3800 | cat >>conftest.$ac_ext <<_ACEOF |
| 3801 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3802 | #include <stdlib.h> |
| 3803 | #include <stdarg.h> |
| 3804 | #include <string.h> |
| 3805 | #include <float.h> |
| 3806 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3807 | int |
| 3808 | main () |
| 3809 | { |
| 3810 | |
| 3811 | ; |
| 3812 | return 0; |
| 3813 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3814 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3815 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3816 | if { (ac_try="$ac_compile" |
| 3817 | case "(($ac_try" in |
| 3818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3819 | *) ac_try_echo=$ac_try;; |
| 3820 | esac |
| 3821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3822 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3823 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3825 | rm -f conftest.er1 |
| 3826 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3828 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3830 | { (case "(($ac_try" in |
| 3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3832 | *) ac_try_echo=$ac_try;; |
| 3833 | esac |
| 3834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3835 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3836 | ac_status=$? |
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3838 | (exit $ac_status); }; } && |
| 3839 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3840 | { (case "(($ac_try" in |
| 3841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3842 | *) ac_try_echo=$ac_try;; |
| 3843 | esac |
| 3844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3845 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3846 | ac_status=$? |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3848 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | ac_cv_header_stdc=yes |
| 3850 | else |
| 3851 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3854 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3855 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3856 | |
| 3857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | |
| 3859 | if test $ac_cv_header_stdc = yes; then |
| 3860 | # SunOS 4.x string.h does not declare mem*, 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 <string.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 "memchr" >/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 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3882 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3883 | /* confdefs.h. */ |
| 3884 | _ACEOF |
| 3885 | cat confdefs.h >>conftest.$ac_ext |
| 3886 | cat >>conftest.$ac_ext <<_ACEOF |
| 3887 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3888 | #include <stdlib.h> |
| 3889 | |
| 3890 | _ACEOF |
| 3891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3892 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3893 | : |
| 3894 | else |
| 3895 | ac_cv_header_stdc=no |
| 3896 | fi |
| 3897 | rm -f conftest* |
| 3898 | |
| 3899 | fi |
| 3900 | |
| 3901 | if test $ac_cv_header_stdc = yes; then |
| 3902 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3903 | if test "$cross_compiling" = yes; then |
| 3904 | : |
| 3905 | else |
| 3906 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3907 | /* confdefs.h. */ |
| 3908 | _ACEOF |
| 3909 | cat confdefs.h >>conftest.$ac_ext |
| 3910 | cat >>conftest.$ac_ext <<_ACEOF |
| 3911 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3912 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3913 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3914 | #if ((' ' & 0x0FF) == 0x020) |
| 3915 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3916 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3917 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3918 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3919 | (('a' <= (c) && (c) <= 'i') \ |
| 3920 | || ('j' <= (c) && (c) <= 'r') \ |
| 3921 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3922 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3923 | #endif |
| 3924 | |
| 3925 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3926 | int |
| 3927 | main () |
| 3928 | { |
| 3929 | int i; |
| 3930 | for (i = 0; i < 256; i++) |
| 3931 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3932 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3933 | return 2; |
| 3934 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3935 | } |
| 3936 | _ACEOF |
| 3937 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3938 | if { (ac_try="$ac_link" |
| 3939 | case "(($ac_try" in |
| 3940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3941 | *) ac_try_echo=$ac_try;; |
| 3942 | esac |
| 3943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3944 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3945 | ac_status=$? |
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3948 | { (case "(($ac_try" in |
| 3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3950 | *) ac_try_echo=$ac_try;; |
| 3951 | esac |
| 3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3953 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3954 | ac_status=$? |
| 3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3956 | (exit $ac_status); }; }; then |
| 3957 | : |
| 3958 | else |
| 3959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3960 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3962 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3963 | ( exit $ac_status ) |
| 3964 | ac_cv_header_stdc=no |
| 3965 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3967 | fi |
| 3968 | |
| 3969 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3970 | fi |
| 3971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3972 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3973 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3974 | if test $ac_cv_header_stdc = yes; then |
| 3975 | |
| 3976 | cat >>confdefs.h <<\_ACEOF |
| 3977 | #define STDC_HEADERS 1 |
| 3978 | _ACEOF |
| 3979 | |
| 3980 | fi |
| 3981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3982 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | |
| 3988 | |
| 3989 | |
| 3990 | |
| 3991 | |
| 3992 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3993 | inttypes.h stdint.h unistd.h |
| 3994 | do |
| 3995 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3996 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3998 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4000 | else |
| 4001 | cat >conftest.$ac_ext <<_ACEOF |
| 4002 | /* confdefs.h. */ |
| 4003 | _ACEOF |
| 4004 | cat confdefs.h >>conftest.$ac_ext |
| 4005 | cat >>conftest.$ac_ext <<_ACEOF |
| 4006 | /* end confdefs.h. */ |
| 4007 | $ac_includes_default |
| 4008 | |
| 4009 | #include <$ac_header> |
| 4010 | _ACEOF |
| 4011 | rm -f conftest.$ac_objext |
| 4012 | if { (ac_try="$ac_compile" |
| 4013 | case "(($ac_try" in |
| 4014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4015 | *) ac_try_echo=$ac_try;; |
| 4016 | esac |
| 4017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4018 | (eval "$ac_compile") 2>conftest.er1 |
| 4019 | ac_status=$? |
| 4020 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4021 | rm -f conftest.er1 |
| 4022 | cat conftest.err >&5 |
| 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4024 | (exit $ac_status); } && |
| 4025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4026 | { (case "(($ac_try" in |
| 4027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4028 | *) ac_try_echo=$ac_try;; |
| 4029 | esac |
| 4030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4031 | (eval "$ac_try") 2>&5 |
| 4032 | ac_status=$? |
| 4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4034 | (exit $ac_status); }; } && |
| 4035 | { ac_try='test -s conftest.$ac_objext' |
| 4036 | { (case "(($ac_try" in |
| 4037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4038 | *) ac_try_echo=$ac_try;; |
| 4039 | esac |
| 4040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4041 | (eval "$ac_try") 2>&5 |
| 4042 | ac_status=$? |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); }; }; then |
| 4045 | eval "$as_ac_Header=yes" |
| 4046 | else |
| 4047 | echo "$as_me: failed program was:" >&5 |
| 4048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4049 | |
| 4050 | eval "$as_ac_Header=no" |
| 4051 | fi |
| 4052 | |
| 4053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4054 | fi |
| 4055 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4056 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4057 | echo "${ECHO_T}$ac_res" >&6; } |
| 4058 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4059 | cat >>confdefs.h <<_ACEOF |
| 4060 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4061 | _ACEOF |
| 4062 | |
| 4063 | fi |
| 4064 | |
| 4065 | done |
| 4066 | |
| 4067 | |
| 4068 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4069 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4070 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4072 | else |
| 4073 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4074 | cat >conftest.$ac_ext <<_ACEOF |
| 4075 | /* confdefs.h. */ |
| 4076 | _ACEOF |
| 4077 | cat confdefs.h >>conftest.$ac_ext |
| 4078 | cat >>conftest.$ac_ext <<_ACEOF |
| 4079 | /* end confdefs.h. */ |
| 4080 | #include <sys/types.h> |
| 4081 | #include <sys/param.h> |
| 4082 | |
| 4083 | int |
| 4084 | main () |
| 4085 | { |
| 4086 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4087 | bogus endian macros |
| 4088 | #endif |
| 4089 | |
| 4090 | ; |
| 4091 | return 0; |
| 4092 | } |
| 4093 | _ACEOF |
| 4094 | rm -f conftest.$ac_objext |
| 4095 | if { (ac_try="$ac_compile" |
| 4096 | case "(($ac_try" in |
| 4097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4098 | *) ac_try_echo=$ac_try;; |
| 4099 | esac |
| 4100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4101 | (eval "$ac_compile") 2>conftest.er1 |
| 4102 | ac_status=$? |
| 4103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4104 | rm -f conftest.er1 |
| 4105 | cat conftest.err >&5 |
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4107 | (exit $ac_status); } && |
| 4108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4109 | { (case "(($ac_try" in |
| 4110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4111 | *) ac_try_echo=$ac_try;; |
| 4112 | esac |
| 4113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4114 | (eval "$ac_try") 2>&5 |
| 4115 | ac_status=$? |
| 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4117 | (exit $ac_status); }; } && |
| 4118 | { ac_try='test -s conftest.$ac_objext' |
| 4119 | { (case "(($ac_try" in |
| 4120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4121 | *) ac_try_echo=$ac_try;; |
| 4122 | esac |
| 4123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4124 | (eval "$ac_try") 2>&5 |
| 4125 | ac_status=$? |
| 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4127 | (exit $ac_status); }; }; then |
| 4128 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4129 | cat >conftest.$ac_ext <<_ACEOF |
| 4130 | /* confdefs.h. */ |
| 4131 | _ACEOF |
| 4132 | cat confdefs.h >>conftest.$ac_ext |
| 4133 | cat >>conftest.$ac_ext <<_ACEOF |
| 4134 | /* end confdefs.h. */ |
| 4135 | #include <sys/types.h> |
| 4136 | #include <sys/param.h> |
| 4137 | |
| 4138 | int |
| 4139 | main () |
| 4140 | { |
| 4141 | #if BYTE_ORDER != BIG_ENDIAN |
| 4142 | not big endian |
| 4143 | #endif |
| 4144 | |
| 4145 | ; |
| 4146 | return 0; |
| 4147 | } |
| 4148 | _ACEOF |
| 4149 | rm -f conftest.$ac_objext |
| 4150 | if { (ac_try="$ac_compile" |
| 4151 | case "(($ac_try" in |
| 4152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4153 | *) ac_try_echo=$ac_try;; |
| 4154 | esac |
| 4155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4156 | (eval "$ac_compile") 2>conftest.er1 |
| 4157 | ac_status=$? |
| 4158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4159 | rm -f conftest.er1 |
| 4160 | cat conftest.err >&5 |
| 4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4162 | (exit $ac_status); } && |
| 4163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4164 | { (case "(($ac_try" in |
| 4165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4166 | *) ac_try_echo=$ac_try;; |
| 4167 | esac |
| 4168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4169 | (eval "$ac_try") 2>&5 |
| 4170 | ac_status=$? |
| 4171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4172 | (exit $ac_status); }; } && |
| 4173 | { ac_try='test -s conftest.$ac_objext' |
| 4174 | { (case "(($ac_try" in |
| 4175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4176 | *) ac_try_echo=$ac_try;; |
| 4177 | esac |
| 4178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4179 | (eval "$ac_try") 2>&5 |
| 4180 | ac_status=$? |
| 4181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4182 | (exit $ac_status); }; }; then |
| 4183 | ac_cv_c_bigendian=yes |
| 4184 | else |
| 4185 | echo "$as_me: failed program was:" >&5 |
| 4186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4187 | |
| 4188 | ac_cv_c_bigendian=no |
| 4189 | fi |
| 4190 | |
| 4191 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4192 | else |
| 4193 | echo "$as_me: failed program was:" >&5 |
| 4194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4195 | |
| 4196 | # It does not; compile a test program. |
| 4197 | if test "$cross_compiling" = yes; then |
| 4198 | # try to guess the endianness by grepping values into an object file |
| 4199 | ac_cv_c_bigendian=unknown |
| 4200 | cat >conftest.$ac_ext <<_ACEOF |
| 4201 | /* confdefs.h. */ |
| 4202 | _ACEOF |
| 4203 | cat confdefs.h >>conftest.$ac_ext |
| 4204 | cat >>conftest.$ac_ext <<_ACEOF |
| 4205 | /* end confdefs.h. */ |
| 4206 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4207 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4208 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4209 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4210 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4211 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4212 | int |
| 4213 | main () |
| 4214 | { |
| 4215 | _ascii (); _ebcdic (); |
| 4216 | ; |
| 4217 | return 0; |
| 4218 | } |
| 4219 | _ACEOF |
| 4220 | rm -f conftest.$ac_objext |
| 4221 | if { (ac_try="$ac_compile" |
| 4222 | case "(($ac_try" in |
| 4223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4224 | *) ac_try_echo=$ac_try;; |
| 4225 | esac |
| 4226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4227 | (eval "$ac_compile") 2>conftest.er1 |
| 4228 | ac_status=$? |
| 4229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4230 | rm -f conftest.er1 |
| 4231 | cat conftest.err >&5 |
| 4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4233 | (exit $ac_status); } && |
| 4234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4235 | { (case "(($ac_try" in |
| 4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4237 | *) ac_try_echo=$ac_try;; |
| 4238 | esac |
| 4239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4240 | (eval "$ac_try") 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); }; } && |
| 4244 | { ac_try='test -s conftest.$ac_objext' |
| 4245 | { (case "(($ac_try" in |
| 4246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4247 | *) ac_try_echo=$ac_try;; |
| 4248 | esac |
| 4249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4250 | (eval "$ac_try") 2>&5 |
| 4251 | ac_status=$? |
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4253 | (exit $ac_status); }; }; then |
| 4254 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4255 | ac_cv_c_bigendian=yes |
| 4256 | fi |
| 4257 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4258 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4259 | ac_cv_c_bigendian=no |
| 4260 | else |
| 4261 | # finding both strings is unlikely to happen, but who knows? |
| 4262 | ac_cv_c_bigendian=unknown |
| 4263 | fi |
| 4264 | fi |
| 4265 | else |
| 4266 | echo "$as_me: failed program was:" >&5 |
| 4267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4268 | |
| 4269 | |
| 4270 | fi |
| 4271 | |
| 4272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4273 | else |
| 4274 | cat >conftest.$ac_ext <<_ACEOF |
| 4275 | /* confdefs.h. */ |
| 4276 | _ACEOF |
| 4277 | cat confdefs.h >>conftest.$ac_ext |
| 4278 | cat >>conftest.$ac_ext <<_ACEOF |
| 4279 | /* end confdefs.h. */ |
| 4280 | $ac_includes_default |
| 4281 | int |
| 4282 | main () |
| 4283 | { |
| 4284 | |
| 4285 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4286 | union |
| 4287 | { |
| 4288 | long int l; |
| 4289 | char c[sizeof (long int)]; |
| 4290 | } u; |
| 4291 | u.l = 1; |
| 4292 | return u.c[sizeof (long int) - 1] == 1; |
| 4293 | |
| 4294 | ; |
| 4295 | return 0; |
| 4296 | } |
| 4297 | _ACEOF |
| 4298 | rm -f conftest$ac_exeext |
| 4299 | if { (ac_try="$ac_link" |
| 4300 | case "(($ac_try" in |
| 4301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4302 | *) ac_try_echo=$ac_try;; |
| 4303 | esac |
| 4304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4305 | (eval "$ac_link") 2>&5 |
| 4306 | ac_status=$? |
| 4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4308 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4309 | { (case "(($ac_try" in |
| 4310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4311 | *) ac_try_echo=$ac_try;; |
| 4312 | esac |
| 4313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4314 | (eval "$ac_try") 2>&5 |
| 4315 | ac_status=$? |
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); }; }; then |
| 4318 | ac_cv_c_bigendian=no |
| 4319 | else |
| 4320 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4321 | echo "$as_me: failed program was:" >&5 |
| 4322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4323 | |
| 4324 | ( exit $ac_status ) |
| 4325 | ac_cv_c_bigendian=yes |
| 4326 | fi |
| 4327 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4328 | fi |
| 4329 | |
| 4330 | |
| 4331 | fi |
| 4332 | |
| 4333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4334 | fi |
| 4335 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4336 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4337 | case $ac_cv_c_bigendian in |
| 4338 | yes) |
| 4339 | ENDIAN=big |
| 4340 | ;; |
| 4341 | no) |
| 4342 | ENDIAN=little |
| 4343 | ;; |
| 4344 | *) |
| 4345 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4346 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4347 | echo "$as_me: error: unknown endianness |
| 4348 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4349 | { (exit 1); exit 1; }; } ;; |
| 4350 | esac |
| 4351 | |
| 4352 | |
| 4353 | if test "$cross_compiling" = yes; then |
| 4354 | LLVM_CROSS_COMPILING=1 |
| 4355 | |
| 4356 | |
| 4357 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4358 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4359 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4361 | else |
| 4362 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4363 | ac_cv_build_exeext=.exe |
| 4364 | else |
| 4365 | ac_build_prefix=${build_alias}- |
| 4366 | |
| 4367 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4368 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4369 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4371 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4373 | else |
| 4374 | if test -n "$BUILD_CC"; then |
| 4375 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4376 | else |
| 4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4378 | for as_dir in $PATH |
| 4379 | do |
| 4380 | IFS=$as_save_IFS |
| 4381 | test -z "$as_dir" && as_dir=. |
| 4382 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4384 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4386 | break 2 |
| 4387 | fi |
| 4388 | done |
| 4389 | done |
| 4390 | IFS=$as_save_IFS |
| 4391 | |
| 4392 | fi |
| 4393 | fi |
| 4394 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4395 | if test -n "$BUILD_CC"; then |
| 4396 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4397 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4398 | else |
| 4399 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4400 | echo "${ECHO_T}no" >&6; } |
| 4401 | fi |
| 4402 | |
| 4403 | |
| 4404 | if test -z "$BUILD_CC"; then |
| 4405 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4406 | set dummy gcc; ac_word=$2 |
| 4407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4409 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4411 | else |
| 4412 | if test -n "$BUILD_CC"; then |
| 4413 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4414 | else |
| 4415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4416 | for as_dir in $PATH |
| 4417 | do |
| 4418 | IFS=$as_save_IFS |
| 4419 | test -z "$as_dir" && as_dir=. |
| 4420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4422 | ac_cv_prog_BUILD_CC="gcc" |
| 4423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4424 | break 2 |
| 4425 | fi |
| 4426 | done |
| 4427 | done |
| 4428 | IFS=$as_save_IFS |
| 4429 | |
| 4430 | fi |
| 4431 | fi |
| 4432 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4433 | if test -n "$BUILD_CC"; then |
| 4434 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4435 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4436 | else |
| 4437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4438 | echo "${ECHO_T}no" >&6; } |
| 4439 | fi |
| 4440 | |
| 4441 | |
| 4442 | if test -z "$BUILD_CC"; then |
| 4443 | # Extract the first word of "cc", so it can be a program name with args. |
| 4444 | set dummy cc; ac_word=$2 |
| 4445 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4446 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4447 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4449 | else |
| 4450 | if test -n "$BUILD_CC"; then |
| 4451 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4452 | else |
| 4453 | ac_prog_rejected=no |
| 4454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4455 | for as_dir in $PATH |
| 4456 | do |
| 4457 | IFS=$as_save_IFS |
| 4458 | test -z "$as_dir" && as_dir=. |
| 4459 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4461 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4462 | ac_prog_rejected=yes |
| 4463 | continue |
| 4464 | fi |
| 4465 | ac_cv_prog_BUILD_CC="cc" |
| 4466 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4467 | break 2 |
| 4468 | fi |
| 4469 | done |
| 4470 | done |
| 4471 | IFS=$as_save_IFS |
| 4472 | |
| 4473 | if test $ac_prog_rejected = yes; then |
| 4474 | # We found a bogon in the path, so make sure we never use it. |
| 4475 | set dummy $ac_cv_prog_BUILD_CC |
| 4476 | shift |
| 4477 | if test $# != 0; then |
| 4478 | # We chose a different compiler from the bogus one. |
| 4479 | # However, it has the same basename, so the bogon will be chosen |
| 4480 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4481 | shift |
| 4482 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4483 | fi |
| 4484 | fi |
| 4485 | fi |
| 4486 | fi |
| 4487 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4488 | if test -n "$BUILD_CC"; then |
| 4489 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4490 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4491 | else |
| 4492 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4493 | echo "${ECHO_T}no" >&6; } |
| 4494 | fi |
| 4495 | |
| 4496 | |
| 4497 | fi |
| 4498 | fi |
| 4499 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4500 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4501 | { (exit 1); exit 1; }; } |
| 4502 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4503 | rm -f conftest* |
| 4504 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4505 | ac_cv_build_exeext= |
| 4506 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4507 | (eval $ac_build_link) 2>&5 |
| 4508 | ac_status=$? |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); }; then |
| 4511 | for file in conftest.*; do |
| 4512 | case $file in |
| 4513 | *.c | *.o | *.obj) ;; |
| 4514 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4515 | esac |
| 4516 | done |
| 4517 | else |
| 4518 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4519 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4520 | { (exit 1); exit 1; }; } |
| 4521 | fi |
| 4522 | rm -f conftest* |
| 4523 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4524 | fi |
| 4525 | fi |
| 4526 | |
| 4527 | BUILD_EXEEXT="" |
| 4528 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4529 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4530 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4531 | ac_build_exeext=$BUILD_EXEEXT |
| 4532 | |
| 4533 | else |
| 4534 | LLVM_CROSS_COMPILING=0 |
| 4535 | |
| 4536 | fi |
| 4537 | |
| 4538 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
| 4539 | cvsbuild="yes" |
| 4540 | optimize="no" |
| 4541 | CVSBUILD=CVSBUILD=1 |
| 4542 | |
| 4543 | else |
| 4544 | cvsbuild="no" |
| 4545 | optimize="yes" |
| 4546 | fi |
| 4547 | |
| 4548 | |
| 4549 | # Check whether --enable-optimized was given. |
| 4550 | if test "${enable_optimized+set}" = set; then |
| 4551 | enableval=$enable_optimized; |
| 4552 | else |
| 4553 | enableval=$optimize |
| 4554 | fi |
| 4555 | |
| 4556 | if test ${enableval} = "no" ; then |
| 4557 | ENABLE_OPTIMIZED= |
| 4558 | |
| 4559 | else |
| 4560 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4561 | |
| 4562 | fi |
| 4563 | |
| 4564 | # Check whether --enable-assertions was given. |
| 4565 | if test "${enable_assertions+set}" = set; then |
| 4566 | enableval=$enable_assertions; |
| 4567 | else |
| 4568 | enableval="yes" |
| 4569 | fi |
| 4570 | |
| 4571 | if test ${enableval} = "yes" ; then |
| 4572 | DISABLE_ASSERTIONS= |
| 4573 | |
| 4574 | else |
| 4575 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4576 | |
| 4577 | fi |
| 4578 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4579 | # Check whether --enable-debug-runtime was given. |
| 4580 | if test "${enable_debug_runtime+set}" = set; then |
| 4581 | enableval=$enable_debug_runtime; |
| 4582 | else |
| 4583 | enableval=no |
| 4584 | fi |
| 4585 | |
| 4586 | if test ${enableval} = "no" ; then |
| 4587 | DEBUG_RUNTIME= |
| 4588 | |
| 4589 | else |
| 4590 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4591 | |
| 4592 | fi |
| 4593 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4594 | # Check whether --enable-jit was given. |
| 4595 | if test "${enable_jit+set}" = set; then |
| 4596 | enableval=$enable_jit; |
| 4597 | else |
| 4598 | enableval=default |
| 4599 | fi |
| 4600 | |
| 4601 | if test ${enableval} = "no" |
| 4602 | then |
| 4603 | JIT= |
| 4604 | |
| 4605 | else |
| 4606 | case "$llvm_cv_target_arch" in |
| 4607 | x86) TARGET_HAS_JIT=1 |
| 4608 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4609 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4610 | ;; |
| 4611 | PowerPC) TARGET_HAS_JIT=1 |
| 4612 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4613 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4614 | ;; |
| 4615 | Alpha) TARGET_HAS_JIT=1 |
| 4616 | ;; |
| 4617 | IA64) TARGET_HAS_JIT=0 |
| 4618 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4619 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4620 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4621 | *) TARGET_HAS_JIT=0 |
| 4622 | ;; |
| 4623 | esac |
| 4624 | fi |
| 4625 | |
| 4626 | # Check whether --enable-doxygen was given. |
| 4627 | if test "${enable_doxygen+set}" = set; then |
| 4628 | enableval=$enable_doxygen; |
| 4629 | else |
| 4630 | enableval=default |
| 4631 | fi |
| 4632 | |
| 4633 | case "$enableval" in |
| 4634 | yes) ENABLE_DOXYGEN=1 |
| 4635 | ;; |
| 4636 | no) ENABLE_DOXYGEN=0 |
| 4637 | ;; |
| 4638 | default) ENABLE_DOXYGEN=0 |
| 4639 | ;; |
| 4640 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4641 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4642 | { (exit 1); exit 1; }; } ;; |
| 4643 | esac |
| 4644 | |
| 4645 | # Check whether --enable-threads was given. |
| 4646 | if test "${enable_threads+set}" = set; then |
| 4647 | enableval=$enable_threads; |
| 4648 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4649 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4650 | fi |
| 4651 | |
| 4652 | case "$enableval" in |
| 4653 | yes) ENABLE_THREADS=1 |
| 4654 | ;; |
| 4655 | no) ENABLE_THREADS=0 |
| 4656 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4657 | default) ENABLE_THREADS=1 |
| 4658 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4659 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4660 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4661 | { (exit 1); exit 1; }; } ;; |
| 4662 | esac |
| 4663 | |
| 4664 | cat >>confdefs.h <<_ACEOF |
| 4665 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4666 | _ACEOF |
| 4667 | |
| 4668 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4669 | # Check whether --enable-pic was given. |
| 4670 | if test "${enable_pic+set}" = set; then |
| 4671 | enableval=$enable_pic; |
| 4672 | else |
| 4673 | enableval=default |
| 4674 | fi |
| 4675 | |
| 4676 | case "$enableval" in |
| 4677 | yes) ENABLE_PIC=1 |
| 4678 | ;; |
| 4679 | no) ENABLE_PIC=0 |
| 4680 | ;; |
| 4681 | default) ENABLE_PIC=0 |
| 4682 | ;; |
| 4683 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4684 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4685 | { (exit 1); exit 1; }; } ;; |
| 4686 | esac |
| 4687 | |
| 4688 | cat >>confdefs.h <<_ACEOF |
| 4689 | #define ENABLE_PIC $ENABLE_PIC |
| 4690 | _ACEOF |
| 4691 | |
| 4692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4693 | TARGETS_TO_BUILD="" |
| 4694 | # Check whether --enable-targets was given. |
| 4695 | if test "${enable_targets+set}" = set; then |
| 4696 | enableval=$enable_targets; |
| 4697 | else |
| 4698 | enableval=all |
| 4699 | fi |
| 4700 | |
| 4701 | case "$enableval" in |
| 4702 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
| 4703 | host-only) |
| 4704 | case "$llvm_cv_target_arch" in |
| 4705 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4706 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4707 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4708 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4709 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4710 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4711 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4712 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4713 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4714 | { (exit 1); exit 1; }; } ;; |
| 4715 | esac |
| 4716 | ;; |
| 4717 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4718 | case "$a_target" in |
| 4719 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4720 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4721 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4722 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4723 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4724 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4725 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4726 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4727 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4728 | { (exit 1); exit 1; }; } ;; |
| 4729 | esac |
| 4730 | done |
| 4731 | ;; |
| 4732 | esac |
Anton Korobeynikov | 099883f | 2007-03-21 21:38:25 +0000 | [diff] [blame^] | 4733 | TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4734 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4735 | |
| 4736 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4737 | # Check whether --enable-cbe-printf-a was given. |
| 4738 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4739 | enableval=$enable_cbe_printf_a; |
| 4740 | else |
| 4741 | enableval=default |
| 4742 | fi |
| 4743 | |
| 4744 | case "$enableval" in |
| 4745 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4746 | ;; |
| 4747 | no) ENABLE_CBE_PRINTF_A=0 |
| 4748 | ;; |
| 4749 | default) ENABLE_CBE_PRINTF_A=1 |
| 4750 | ;; |
| 4751 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4752 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4753 | { (exit 1); exit 1; }; } ;; |
| 4754 | esac |
| 4755 | |
| 4756 | cat >>confdefs.h <<_ACEOF |
| 4757 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4758 | _ACEOF |
| 4759 | |
| 4760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4761 | |
| 4762 | # Check whether --with-llvmgccdir was given. |
| 4763 | if test "${with_llvmgccdir+set}" = set; then |
| 4764 | withval=$with_llvmgccdir; |
| 4765 | else |
| 4766 | withval=default |
| 4767 | fi |
| 4768 | |
| 4769 | case "$withval" in |
| 4770 | default) WITH_LLVMGCCDIR=default ;; |
| 4771 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4772 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4773 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4774 | { (exit 1); exit 1; }; } ;; |
| 4775 | esac |
| 4776 | |
| 4777 | |
| 4778 | # Check whether --with-extra-options was given. |
| 4779 | if test "${with_extra_options+set}" = set; then |
| 4780 | withval=$with_extra_options; |
| 4781 | else |
| 4782 | withval=default |
| 4783 | fi |
| 4784 | |
| 4785 | case "$withval" in |
| 4786 | default) EXTRA_OPTIONS= ;; |
| 4787 | *) EXTRA_OPTIONS=$withval ;; |
| 4788 | esac |
| 4789 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4790 | |
| 4791 | |
| 4792 | |
| 4793 | ac_ext=c |
| 4794 | ac_cpp='$CPP $CPPFLAGS' |
| 4795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4798 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4799 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4800 | # On Suns, sometimes $CPP names a directory. |
| 4801 | if test -n "$CPP" && test -d "$CPP"; then |
| 4802 | CPP= |
| 4803 | fi |
| 4804 | if test -z "$CPP"; then |
| 4805 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4807 | else |
| 4808 | # Double quotes because CPP needs to be expanded |
| 4809 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4810 | do |
| 4811 | ac_preproc_ok=false |
| 4812 | for ac_c_preproc_warn_flag in '' yes |
| 4813 | do |
| 4814 | # Use a header file that comes with gcc, so configuring glibc |
| 4815 | # with a fresh cross-compiler works. |
| 4816 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4817 | # <limits.h> exists even on freestanding compilers. |
| 4818 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4819 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4820 | cat >conftest.$ac_ext <<_ACEOF |
| 4821 | /* confdefs.h. */ |
| 4822 | _ACEOF |
| 4823 | cat confdefs.h >>conftest.$ac_ext |
| 4824 | cat >>conftest.$ac_ext <<_ACEOF |
| 4825 | /* end confdefs.h. */ |
| 4826 | #ifdef __STDC__ |
| 4827 | # include <limits.h> |
| 4828 | #else |
| 4829 | # include <assert.h> |
| 4830 | #endif |
| 4831 | Syntax error |
| 4832 | _ACEOF |
| 4833 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4834 | case "(($ac_try" in |
| 4835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4836 | *) ac_try_echo=$ac_try;; |
| 4837 | esac |
| 4838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4839 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4840 | ac_status=$? |
| 4841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4842 | rm -f conftest.er1 |
| 4843 | cat conftest.err >&5 |
| 4844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4845 | (exit $ac_status); } >/dev/null; then |
| 4846 | if test -s conftest.err; then |
| 4847 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4848 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4849 | else |
| 4850 | ac_cpp_err= |
| 4851 | fi |
| 4852 | else |
| 4853 | ac_cpp_err=yes |
| 4854 | fi |
| 4855 | if test -z "$ac_cpp_err"; then |
| 4856 | : |
| 4857 | else |
| 4858 | echo "$as_me: failed program was:" >&5 |
| 4859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4860 | |
| 4861 | # Broken: fails on valid input. |
| 4862 | continue |
| 4863 | fi |
| 4864 | |
| 4865 | rm -f conftest.err conftest.$ac_ext |
| 4866 | |
| 4867 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4868 | # can be detected and how. |
| 4869 | cat >conftest.$ac_ext <<_ACEOF |
| 4870 | /* confdefs.h. */ |
| 4871 | _ACEOF |
| 4872 | cat confdefs.h >>conftest.$ac_ext |
| 4873 | cat >>conftest.$ac_ext <<_ACEOF |
| 4874 | /* end confdefs.h. */ |
| 4875 | #include <ac_nonexistent.h> |
| 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 | # Broken: success on invalid input. |
| 4901 | continue |
| 4902 | else |
| 4903 | echo "$as_me: failed program was:" >&5 |
| 4904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4905 | |
| 4906 | # Passes both tests. |
| 4907 | ac_preproc_ok=: |
| 4908 | break |
| 4909 | fi |
| 4910 | |
| 4911 | rm -f conftest.err conftest.$ac_ext |
| 4912 | |
| 4913 | done |
| 4914 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4915 | rm -f conftest.err conftest.$ac_ext |
| 4916 | if $ac_preproc_ok; then |
| 4917 | break |
| 4918 | fi |
| 4919 | |
| 4920 | done |
| 4921 | ac_cv_prog_CPP=$CPP |
| 4922 | |
| 4923 | fi |
| 4924 | CPP=$ac_cv_prog_CPP |
| 4925 | else |
| 4926 | ac_cv_prog_CPP=$CPP |
| 4927 | fi |
| 4928 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4929 | echo "${ECHO_T}$CPP" >&6; } |
| 4930 | ac_preproc_ok=false |
| 4931 | for ac_c_preproc_warn_flag in '' yes |
| 4932 | do |
| 4933 | # Use a header file that comes with gcc, so configuring glibc |
| 4934 | # with a fresh cross-compiler works. |
| 4935 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4936 | # <limits.h> exists even on freestanding compilers. |
| 4937 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4938 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4939 | cat >conftest.$ac_ext <<_ACEOF |
| 4940 | /* confdefs.h. */ |
| 4941 | _ACEOF |
| 4942 | cat confdefs.h >>conftest.$ac_ext |
| 4943 | cat >>conftest.$ac_ext <<_ACEOF |
| 4944 | /* end confdefs.h. */ |
| 4945 | #ifdef __STDC__ |
| 4946 | # include <limits.h> |
| 4947 | #else |
| 4948 | # include <assert.h> |
| 4949 | #endif |
| 4950 | Syntax error |
| 4951 | _ACEOF |
| 4952 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4953 | case "(($ac_try" in |
| 4954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4955 | *) ac_try_echo=$ac_try;; |
| 4956 | esac |
| 4957 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4958 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4959 | ac_status=$? |
| 4960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4961 | rm -f conftest.er1 |
| 4962 | cat conftest.err >&5 |
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4964 | (exit $ac_status); } >/dev/null; then |
| 4965 | if test -s conftest.err; then |
| 4966 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4967 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4968 | else |
| 4969 | ac_cpp_err= |
| 4970 | fi |
| 4971 | else |
| 4972 | ac_cpp_err=yes |
| 4973 | fi |
| 4974 | if test -z "$ac_cpp_err"; then |
| 4975 | : |
| 4976 | else |
| 4977 | echo "$as_me: failed program was:" >&5 |
| 4978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4979 | |
| 4980 | # Broken: fails on valid input. |
| 4981 | continue |
| 4982 | fi |
| 4983 | |
| 4984 | rm -f conftest.err conftest.$ac_ext |
| 4985 | |
| 4986 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4987 | # can be detected and how. |
| 4988 | cat >conftest.$ac_ext <<_ACEOF |
| 4989 | /* confdefs.h. */ |
| 4990 | _ACEOF |
| 4991 | cat confdefs.h >>conftest.$ac_ext |
| 4992 | cat >>conftest.$ac_ext <<_ACEOF |
| 4993 | /* end confdefs.h. */ |
| 4994 | #include <ac_nonexistent.h> |
| 4995 | _ACEOF |
| 4996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4997 | case "(($ac_try" in |
| 4998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4999 | *) ac_try_echo=$ac_try;; |
| 5000 | esac |
| 5001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5002 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5003 | ac_status=$? |
| 5004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5005 | rm -f conftest.er1 |
| 5006 | cat conftest.err >&5 |
| 5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5008 | (exit $ac_status); } >/dev/null; then |
| 5009 | if test -s conftest.err; then |
| 5010 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5011 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5012 | else |
| 5013 | ac_cpp_err= |
| 5014 | fi |
| 5015 | else |
| 5016 | ac_cpp_err=yes |
| 5017 | fi |
| 5018 | if test -z "$ac_cpp_err"; then |
| 5019 | # Broken: success on invalid input. |
| 5020 | continue |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
| 5025 | # Passes both tests. |
| 5026 | ac_preproc_ok=: |
| 5027 | break |
| 5028 | fi |
| 5029 | |
| 5030 | rm -f conftest.err conftest.$ac_ext |
| 5031 | |
| 5032 | done |
| 5033 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5034 | rm -f conftest.err conftest.$ac_ext |
| 5035 | if $ac_preproc_ok; then |
| 5036 | : |
| 5037 | else |
| 5038 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5039 | See \`config.log' for more details." >&5 |
| 5040 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5041 | See \`config.log' for more details." >&2;} |
| 5042 | { (exit 1); exit 1; }; } |
| 5043 | fi |
| 5044 | |
| 5045 | ac_ext=c |
| 5046 | ac_cpp='$CPP $CPPFLAGS' |
| 5047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5050 | |
| 5051 | ac_ext=c |
| 5052 | ac_cpp='$CPP $CPPFLAGS' |
| 5053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5056 | if test -n "$ac_tool_prefix"; then |
| 5057 | for ac_prog in gcc |
| 5058 | do |
| 5059 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5060 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5061 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5063 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5065 | else |
| 5066 | if test -n "$CC"; then |
| 5067 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5068 | else |
| 5069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5070 | for as_dir in $PATH |
| 5071 | do |
| 5072 | IFS=$as_save_IFS |
| 5073 | test -z "$as_dir" && as_dir=. |
| 5074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5076 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5078 | break 2 |
| 5079 | fi |
| 5080 | done |
| 5081 | done |
| 5082 | IFS=$as_save_IFS |
| 5083 | |
| 5084 | fi |
| 5085 | fi |
| 5086 | CC=$ac_cv_prog_CC |
| 5087 | if test -n "$CC"; then |
| 5088 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5089 | echo "${ECHO_T}$CC" >&6; } |
| 5090 | else |
| 5091 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5092 | echo "${ECHO_T}no" >&6; } |
| 5093 | fi |
| 5094 | |
| 5095 | |
| 5096 | test -n "$CC" && break |
| 5097 | done |
| 5098 | fi |
| 5099 | if test -z "$CC"; then |
| 5100 | ac_ct_CC=$CC |
| 5101 | for ac_prog in gcc |
| 5102 | do |
| 5103 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5104 | set dummy $ac_prog; ac_word=$2 |
| 5105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5107 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5109 | else |
| 5110 | if test -n "$ac_ct_CC"; then |
| 5111 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5112 | else |
| 5113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5114 | for as_dir in $PATH |
| 5115 | do |
| 5116 | IFS=$as_save_IFS |
| 5117 | test -z "$as_dir" && as_dir=. |
| 5118 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5119 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5120 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5122 | break 2 |
| 5123 | fi |
| 5124 | done |
| 5125 | done |
| 5126 | IFS=$as_save_IFS |
| 5127 | |
| 5128 | fi |
| 5129 | fi |
| 5130 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5131 | if test -n "$ac_ct_CC"; then |
| 5132 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5133 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5134 | else |
| 5135 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5136 | echo "${ECHO_T}no" >&6; } |
| 5137 | fi |
| 5138 | |
| 5139 | |
| 5140 | test -n "$ac_ct_CC" && break |
| 5141 | done |
| 5142 | |
| 5143 | if test "x$ac_ct_CC" = x; then |
| 5144 | CC="" |
| 5145 | else |
| 5146 | case $cross_compiling:$ac_tool_warned in |
| 5147 | yes:) |
| 5148 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5149 | whose name does not start with the host triplet. If you think this |
| 5150 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5151 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5152 | whose name does not start with the host triplet. If you think this |
| 5153 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5154 | ac_tool_warned=yes ;; |
| 5155 | esac |
| 5156 | CC=$ac_ct_CC |
| 5157 | fi |
| 5158 | fi |
| 5159 | |
| 5160 | |
| 5161 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5162 | See \`config.log' for more details." >&5 |
| 5163 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5164 | See \`config.log' for more details." >&2;} |
| 5165 | { (exit 1); exit 1; }; } |
| 5166 | |
| 5167 | # Provide some information about the compiler. |
| 5168 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5169 | ac_compiler=`set X $ac_compile; echo $2` |
| 5170 | { (ac_try="$ac_compiler --version >&5" |
| 5171 | case "(($ac_try" in |
| 5172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5173 | *) ac_try_echo=$ac_try;; |
| 5174 | esac |
| 5175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5176 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5177 | ac_status=$? |
| 5178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5179 | (exit $ac_status); } |
| 5180 | { (ac_try="$ac_compiler -v >&5" |
| 5181 | case "(($ac_try" in |
| 5182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5183 | *) ac_try_echo=$ac_try;; |
| 5184 | esac |
| 5185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5186 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5187 | ac_status=$? |
| 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5189 | (exit $ac_status); } |
| 5190 | { (ac_try="$ac_compiler -V >&5" |
| 5191 | case "(($ac_try" in |
| 5192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5193 | *) ac_try_echo=$ac_try;; |
| 5194 | esac |
| 5195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5196 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5197 | ac_status=$? |
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 | (exit $ac_status); } |
| 5200 | |
| 5201 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5202 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5203 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5205 | else |
| 5206 | cat >conftest.$ac_ext <<_ACEOF |
| 5207 | /* confdefs.h. */ |
| 5208 | _ACEOF |
| 5209 | cat confdefs.h >>conftest.$ac_ext |
| 5210 | cat >>conftest.$ac_ext <<_ACEOF |
| 5211 | /* end confdefs.h. */ |
| 5212 | |
| 5213 | int |
| 5214 | main () |
| 5215 | { |
| 5216 | #ifndef __GNUC__ |
| 5217 | choke me |
| 5218 | #endif |
| 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_compiler_gnu=yes |
| 5259 | else |
| 5260 | echo "$as_me: failed program was:" >&5 |
| 5261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5262 | |
| 5263 | ac_compiler_gnu=no |
| 5264 | fi |
| 5265 | |
| 5266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5267 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5268 | |
| 5269 | fi |
| 5270 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5271 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5272 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5273 | ac_test_CFLAGS=${CFLAGS+set} |
| 5274 | ac_save_CFLAGS=$CFLAGS |
| 5275 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5276 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5277 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5279 | else |
| 5280 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5281 | ac_c_werror_flag=yes |
| 5282 | ac_cv_prog_cc_g=no |
| 5283 | CFLAGS="-g" |
| 5284 | cat >conftest.$ac_ext <<_ACEOF |
| 5285 | /* confdefs.h. */ |
| 5286 | _ACEOF |
| 5287 | cat confdefs.h >>conftest.$ac_ext |
| 5288 | cat >>conftest.$ac_ext <<_ACEOF |
| 5289 | /* end confdefs.h. */ |
| 5290 | |
| 5291 | int |
| 5292 | main () |
| 5293 | { |
| 5294 | |
| 5295 | ; |
| 5296 | return 0; |
| 5297 | } |
| 5298 | _ACEOF |
| 5299 | rm -f conftest.$ac_objext |
| 5300 | if { (ac_try="$ac_compile" |
| 5301 | case "(($ac_try" in |
| 5302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5303 | *) ac_try_echo=$ac_try;; |
| 5304 | esac |
| 5305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5306 | (eval "$ac_compile") 2>conftest.er1 |
| 5307 | ac_status=$? |
| 5308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5309 | rm -f conftest.er1 |
| 5310 | cat conftest.err >&5 |
| 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); } && |
| 5313 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5314 | { (case "(($ac_try" in |
| 5315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5316 | *) ac_try_echo=$ac_try;; |
| 5317 | esac |
| 5318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5319 | (eval "$ac_try") 2>&5 |
| 5320 | ac_status=$? |
| 5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5322 | (exit $ac_status); }; } && |
| 5323 | { ac_try='test -s conftest.$ac_objext' |
| 5324 | { (case "(($ac_try" in |
| 5325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5326 | *) ac_try_echo=$ac_try;; |
| 5327 | esac |
| 5328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5329 | (eval "$ac_try") 2>&5 |
| 5330 | ac_status=$? |
| 5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5332 | (exit $ac_status); }; }; then |
| 5333 | ac_cv_prog_cc_g=yes |
| 5334 | else |
| 5335 | echo "$as_me: failed program was:" >&5 |
| 5336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5337 | |
| 5338 | CFLAGS="" |
| 5339 | cat >conftest.$ac_ext <<_ACEOF |
| 5340 | /* confdefs.h. */ |
| 5341 | _ACEOF |
| 5342 | cat confdefs.h >>conftest.$ac_ext |
| 5343 | cat >>conftest.$ac_ext <<_ACEOF |
| 5344 | /* end confdefs.h. */ |
| 5345 | |
| 5346 | int |
| 5347 | main () |
| 5348 | { |
| 5349 | |
| 5350 | ; |
| 5351 | return 0; |
| 5352 | } |
| 5353 | _ACEOF |
| 5354 | rm -f conftest.$ac_objext |
| 5355 | if { (ac_try="$ac_compile" |
| 5356 | case "(($ac_try" in |
| 5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5358 | *) ac_try_echo=$ac_try;; |
| 5359 | esac |
| 5360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5361 | (eval "$ac_compile") 2>conftest.er1 |
| 5362 | ac_status=$? |
| 5363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5364 | rm -f conftest.er1 |
| 5365 | cat conftest.err >&5 |
| 5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5367 | (exit $ac_status); } && |
| 5368 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5369 | { (case "(($ac_try" in |
| 5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5371 | *) ac_try_echo=$ac_try;; |
| 5372 | esac |
| 5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5374 | (eval "$ac_try") 2>&5 |
| 5375 | ac_status=$? |
| 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5377 | (exit $ac_status); }; } && |
| 5378 | { ac_try='test -s conftest.$ac_objext' |
| 5379 | { (case "(($ac_try" in |
| 5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5381 | *) ac_try_echo=$ac_try;; |
| 5382 | esac |
| 5383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5384 | (eval "$ac_try") 2>&5 |
| 5385 | ac_status=$? |
| 5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5387 | (exit $ac_status); }; }; then |
| 5388 | : |
| 5389 | else |
| 5390 | echo "$as_me: failed program was:" >&5 |
| 5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5392 | |
| 5393 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5394 | CFLAGS="-g" |
| 5395 | cat >conftest.$ac_ext <<_ACEOF |
| 5396 | /* confdefs.h. */ |
| 5397 | _ACEOF |
| 5398 | cat confdefs.h >>conftest.$ac_ext |
| 5399 | cat >>conftest.$ac_ext <<_ACEOF |
| 5400 | /* end confdefs.h. */ |
| 5401 | |
| 5402 | int |
| 5403 | main () |
| 5404 | { |
| 5405 | |
| 5406 | ; |
| 5407 | return 0; |
| 5408 | } |
| 5409 | _ACEOF |
| 5410 | rm -f conftest.$ac_objext |
| 5411 | if { (ac_try="$ac_compile" |
| 5412 | case "(($ac_try" in |
| 5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5414 | *) ac_try_echo=$ac_try;; |
| 5415 | esac |
| 5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5417 | (eval "$ac_compile") 2>conftest.er1 |
| 5418 | ac_status=$? |
| 5419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5420 | rm -f conftest.er1 |
| 5421 | cat conftest.err >&5 |
| 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5423 | (exit $ac_status); } && |
| 5424 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5425 | { (case "(($ac_try" in |
| 5426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5427 | *) ac_try_echo=$ac_try;; |
| 5428 | esac |
| 5429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5430 | (eval "$ac_try") 2>&5 |
| 5431 | ac_status=$? |
| 5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5433 | (exit $ac_status); }; } && |
| 5434 | { ac_try='test -s conftest.$ac_objext' |
| 5435 | { (case "(($ac_try" in |
| 5436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5437 | *) ac_try_echo=$ac_try;; |
| 5438 | esac |
| 5439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5440 | (eval "$ac_try") 2>&5 |
| 5441 | ac_status=$? |
| 5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5443 | (exit $ac_status); }; }; then |
| 5444 | ac_cv_prog_cc_g=yes |
| 5445 | else |
| 5446 | echo "$as_me: failed program was:" >&5 |
| 5447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5448 | |
| 5449 | |
| 5450 | fi |
| 5451 | |
| 5452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5453 | fi |
| 5454 | |
| 5455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5456 | fi |
| 5457 | |
| 5458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5459 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5460 | fi |
| 5461 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5462 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5463 | if test "$ac_test_CFLAGS" = set; then |
| 5464 | CFLAGS=$ac_save_CFLAGS |
| 5465 | elif test $ac_cv_prog_cc_g = yes; then |
| 5466 | if test "$GCC" = yes; then |
| 5467 | CFLAGS="-g -O2" |
| 5468 | else |
| 5469 | CFLAGS="-g" |
| 5470 | fi |
| 5471 | else |
| 5472 | if test "$GCC" = yes; then |
| 5473 | CFLAGS="-O2" |
| 5474 | else |
| 5475 | CFLAGS= |
| 5476 | fi |
| 5477 | fi |
| 5478 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5479 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5480 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5482 | else |
| 5483 | ac_cv_prog_cc_c89=no |
| 5484 | ac_save_CC=$CC |
| 5485 | cat >conftest.$ac_ext <<_ACEOF |
| 5486 | /* confdefs.h. */ |
| 5487 | _ACEOF |
| 5488 | cat confdefs.h >>conftest.$ac_ext |
| 5489 | cat >>conftest.$ac_ext <<_ACEOF |
| 5490 | /* end confdefs.h. */ |
| 5491 | #include <stdarg.h> |
| 5492 | #include <stdio.h> |
| 5493 | #include <sys/types.h> |
| 5494 | #include <sys/stat.h> |
| 5495 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5496 | struct buf { int x; }; |
| 5497 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5498 | static char *e (p, i) |
| 5499 | char **p; |
| 5500 | int i; |
| 5501 | { |
| 5502 | return p[i]; |
| 5503 | } |
| 5504 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5505 | { |
| 5506 | char *s; |
| 5507 | va_list v; |
| 5508 | va_start (v,p); |
| 5509 | s = g (p, va_arg (v,int)); |
| 5510 | va_end (v); |
| 5511 | return s; |
| 5512 | } |
| 5513 | |
| 5514 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5515 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5516 | These don't provoke an error unfortunately, instead are silently treated |
| 5517 | as 'x'. The following induces an error, until -std is added to get |
| 5518 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5519 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5520 | that's true only with -std. */ |
| 5521 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5522 | |
| 5523 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5524 | inside strings and character constants. */ |
| 5525 | #define FOO(x) 'x' |
| 5526 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5527 | |
| 5528 | int test (int i, double x); |
| 5529 | struct s1 {int (*f) (int a);}; |
| 5530 | struct s2 {int (*f) (double a);}; |
| 5531 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5532 | int argc; |
| 5533 | char **argv; |
| 5534 | int |
| 5535 | main () |
| 5536 | { |
| 5537 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5538 | ; |
| 5539 | return 0; |
| 5540 | } |
| 5541 | _ACEOF |
| 5542 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5543 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5544 | do |
| 5545 | CC="$ac_save_CC $ac_arg" |
| 5546 | rm -f conftest.$ac_objext |
| 5547 | if { (ac_try="$ac_compile" |
| 5548 | case "(($ac_try" in |
| 5549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5550 | *) ac_try_echo=$ac_try;; |
| 5551 | esac |
| 5552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5553 | (eval "$ac_compile") 2>conftest.er1 |
| 5554 | ac_status=$? |
| 5555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5556 | rm -f conftest.er1 |
| 5557 | cat conftest.err >&5 |
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5559 | (exit $ac_status); } && |
| 5560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5561 | { (case "(($ac_try" in |
| 5562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5563 | *) ac_try_echo=$ac_try;; |
| 5564 | esac |
| 5565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5566 | (eval "$ac_try") 2>&5 |
| 5567 | ac_status=$? |
| 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); }; } && |
| 5570 | { ac_try='test -s conftest.$ac_objext' |
| 5571 | { (case "(($ac_try" in |
| 5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5573 | *) ac_try_echo=$ac_try;; |
| 5574 | esac |
| 5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5576 | (eval "$ac_try") 2>&5 |
| 5577 | ac_status=$? |
| 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5579 | (exit $ac_status); }; }; then |
| 5580 | ac_cv_prog_cc_c89=$ac_arg |
| 5581 | else |
| 5582 | echo "$as_me: failed program was:" >&5 |
| 5583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5584 | |
| 5585 | |
| 5586 | fi |
| 5587 | |
| 5588 | rm -f core conftest.err conftest.$ac_objext |
| 5589 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5590 | done |
| 5591 | rm -f conftest.$ac_ext |
| 5592 | CC=$ac_save_CC |
| 5593 | |
| 5594 | fi |
| 5595 | # AC_CACHE_VAL |
| 5596 | case "x$ac_cv_prog_cc_c89" in |
| 5597 | x) |
| 5598 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5599 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5600 | xno) |
| 5601 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5602 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5603 | *) |
| 5604 | CC="$CC $ac_cv_prog_cc_c89" |
| 5605 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5606 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5607 | esac |
| 5608 | |
| 5609 | |
| 5610 | ac_ext=c |
| 5611 | ac_cpp='$CPP $CPPFLAGS' |
| 5612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5615 | |
| 5616 | ac_ext=cpp |
| 5617 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5618 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5619 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5620 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5621 | if test -z "$CXX"; then |
| 5622 | if test -n "$CCC"; then |
| 5623 | CXX=$CCC |
| 5624 | else |
| 5625 | if test -n "$ac_tool_prefix"; then |
| 5626 | for ac_prog in g++ |
| 5627 | do |
| 5628 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5629 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5632 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5634 | else |
| 5635 | if test -n "$CXX"; then |
| 5636 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5637 | else |
| 5638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5639 | for as_dir in $PATH |
| 5640 | do |
| 5641 | IFS=$as_save_IFS |
| 5642 | test -z "$as_dir" && as_dir=. |
| 5643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5645 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5647 | break 2 |
| 5648 | fi |
| 5649 | done |
| 5650 | done |
| 5651 | IFS=$as_save_IFS |
| 5652 | |
| 5653 | fi |
| 5654 | fi |
| 5655 | CXX=$ac_cv_prog_CXX |
| 5656 | if test -n "$CXX"; then |
| 5657 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5658 | echo "${ECHO_T}$CXX" >&6; } |
| 5659 | else |
| 5660 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5661 | echo "${ECHO_T}no" >&6; } |
| 5662 | fi |
| 5663 | |
| 5664 | |
| 5665 | test -n "$CXX" && break |
| 5666 | done |
| 5667 | fi |
| 5668 | if test -z "$CXX"; then |
| 5669 | ac_ct_CXX=$CXX |
| 5670 | for ac_prog in g++ |
| 5671 | do |
| 5672 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5673 | set dummy $ac_prog; ac_word=$2 |
| 5674 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5675 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5676 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5678 | else |
| 5679 | if test -n "$ac_ct_CXX"; then |
| 5680 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5681 | else |
| 5682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5683 | for as_dir in $PATH |
| 5684 | do |
| 5685 | IFS=$as_save_IFS |
| 5686 | test -z "$as_dir" && as_dir=. |
| 5687 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5689 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5691 | break 2 |
| 5692 | fi |
| 5693 | done |
| 5694 | done |
| 5695 | IFS=$as_save_IFS |
| 5696 | |
| 5697 | fi |
| 5698 | fi |
| 5699 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5700 | if test -n "$ac_ct_CXX"; then |
| 5701 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5702 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5703 | else |
| 5704 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5705 | echo "${ECHO_T}no" >&6; } |
| 5706 | fi |
| 5707 | |
| 5708 | |
| 5709 | test -n "$ac_ct_CXX" && break |
| 5710 | done |
| 5711 | |
| 5712 | if test "x$ac_ct_CXX" = x; then |
| 5713 | CXX="g++" |
| 5714 | else |
| 5715 | case $cross_compiling:$ac_tool_warned in |
| 5716 | yes:) |
| 5717 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5718 | whose name does not start with the host triplet. If you think this |
| 5719 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5720 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5721 | whose name does not start with the host triplet. If you think this |
| 5722 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5723 | ac_tool_warned=yes ;; |
| 5724 | esac |
| 5725 | CXX=$ac_ct_CXX |
| 5726 | fi |
| 5727 | fi |
| 5728 | |
| 5729 | fi |
| 5730 | fi |
| 5731 | # Provide some information about the compiler. |
| 5732 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5733 | ac_compiler=`set X $ac_compile; echo $2` |
| 5734 | { (ac_try="$ac_compiler --version >&5" |
| 5735 | case "(($ac_try" in |
| 5736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5737 | *) ac_try_echo=$ac_try;; |
| 5738 | esac |
| 5739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5740 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5741 | ac_status=$? |
| 5742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5743 | (exit $ac_status); } |
| 5744 | { (ac_try="$ac_compiler -v >&5" |
| 5745 | case "(($ac_try" in |
| 5746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5747 | *) ac_try_echo=$ac_try;; |
| 5748 | esac |
| 5749 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5750 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5751 | ac_status=$? |
| 5752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5753 | (exit $ac_status); } |
| 5754 | { (ac_try="$ac_compiler -V >&5" |
| 5755 | case "(($ac_try" in |
| 5756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5757 | *) ac_try_echo=$ac_try;; |
| 5758 | esac |
| 5759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5760 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5761 | ac_status=$? |
| 5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5763 | (exit $ac_status); } |
| 5764 | |
| 5765 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5766 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5767 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5769 | else |
| 5770 | cat >conftest.$ac_ext <<_ACEOF |
| 5771 | /* confdefs.h. */ |
| 5772 | _ACEOF |
| 5773 | cat confdefs.h >>conftest.$ac_ext |
| 5774 | cat >>conftest.$ac_ext <<_ACEOF |
| 5775 | /* end confdefs.h. */ |
| 5776 | |
| 5777 | int |
| 5778 | main () |
| 5779 | { |
| 5780 | #ifndef __GNUC__ |
| 5781 | choke me |
| 5782 | #endif |
| 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_compiler_gnu=yes |
| 5823 | else |
| 5824 | echo "$as_me: failed program was:" >&5 |
| 5825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5826 | |
| 5827 | ac_compiler_gnu=no |
| 5828 | fi |
| 5829 | |
| 5830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5831 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5832 | |
| 5833 | fi |
| 5834 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5835 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5836 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5837 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5838 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5839 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5840 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5841 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5843 | else |
| 5844 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5845 | ac_cxx_werror_flag=yes |
| 5846 | ac_cv_prog_cxx_g=no |
| 5847 | CXXFLAGS="-g" |
| 5848 | cat >conftest.$ac_ext <<_ACEOF |
| 5849 | /* confdefs.h. */ |
| 5850 | _ACEOF |
| 5851 | cat confdefs.h >>conftest.$ac_ext |
| 5852 | cat >>conftest.$ac_ext <<_ACEOF |
| 5853 | /* end confdefs.h. */ |
| 5854 | |
| 5855 | int |
| 5856 | main () |
| 5857 | { |
| 5858 | |
| 5859 | ; |
| 5860 | return 0; |
| 5861 | } |
| 5862 | _ACEOF |
| 5863 | rm -f conftest.$ac_objext |
| 5864 | if { (ac_try="$ac_compile" |
| 5865 | case "(($ac_try" in |
| 5866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5867 | *) ac_try_echo=$ac_try;; |
| 5868 | esac |
| 5869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5870 | (eval "$ac_compile") 2>conftest.er1 |
| 5871 | ac_status=$? |
| 5872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5873 | rm -f conftest.er1 |
| 5874 | cat conftest.err >&5 |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); } && |
| 5877 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5878 | { (case "(($ac_try" in |
| 5879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5880 | *) ac_try_echo=$ac_try;; |
| 5881 | esac |
| 5882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5883 | (eval "$ac_try") 2>&5 |
| 5884 | ac_status=$? |
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5886 | (exit $ac_status); }; } && |
| 5887 | { ac_try='test -s conftest.$ac_objext' |
| 5888 | { (case "(($ac_try" in |
| 5889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5890 | *) ac_try_echo=$ac_try;; |
| 5891 | esac |
| 5892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5893 | (eval "$ac_try") 2>&5 |
| 5894 | ac_status=$? |
| 5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5896 | (exit $ac_status); }; }; then |
| 5897 | ac_cv_prog_cxx_g=yes |
| 5898 | else |
| 5899 | echo "$as_me: failed program was:" >&5 |
| 5900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5901 | |
| 5902 | CXXFLAGS="" |
| 5903 | cat >conftest.$ac_ext <<_ACEOF |
| 5904 | /* confdefs.h. */ |
| 5905 | _ACEOF |
| 5906 | cat confdefs.h >>conftest.$ac_ext |
| 5907 | cat >>conftest.$ac_ext <<_ACEOF |
| 5908 | /* end confdefs.h. */ |
| 5909 | |
| 5910 | int |
| 5911 | main () |
| 5912 | { |
| 5913 | |
| 5914 | ; |
| 5915 | return 0; |
| 5916 | } |
| 5917 | _ACEOF |
| 5918 | rm -f conftest.$ac_objext |
| 5919 | if { (ac_try="$ac_compile" |
| 5920 | case "(($ac_try" in |
| 5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5922 | *) ac_try_echo=$ac_try;; |
| 5923 | esac |
| 5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5925 | (eval "$ac_compile") 2>conftest.er1 |
| 5926 | ac_status=$? |
| 5927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5928 | rm -f conftest.er1 |
| 5929 | cat conftest.err >&5 |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5931 | (exit $ac_status); } && |
| 5932 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5933 | { (case "(($ac_try" in |
| 5934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5935 | *) ac_try_echo=$ac_try;; |
| 5936 | esac |
| 5937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5938 | (eval "$ac_try") 2>&5 |
| 5939 | ac_status=$? |
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 | (exit $ac_status); }; } && |
| 5942 | { ac_try='test -s conftest.$ac_objext' |
| 5943 | { (case "(($ac_try" in |
| 5944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5945 | *) ac_try_echo=$ac_try;; |
| 5946 | esac |
| 5947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5948 | (eval "$ac_try") 2>&5 |
| 5949 | ac_status=$? |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5951 | (exit $ac_status); }; }; then |
| 5952 | : |
| 5953 | else |
| 5954 | echo "$as_me: failed program was:" >&5 |
| 5955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5956 | |
| 5957 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5958 | CXXFLAGS="-g" |
| 5959 | cat >conftest.$ac_ext <<_ACEOF |
| 5960 | /* confdefs.h. */ |
| 5961 | _ACEOF |
| 5962 | cat confdefs.h >>conftest.$ac_ext |
| 5963 | cat >>conftest.$ac_ext <<_ACEOF |
| 5964 | /* end confdefs.h. */ |
| 5965 | |
| 5966 | int |
| 5967 | main () |
| 5968 | { |
| 5969 | |
| 5970 | ; |
| 5971 | return 0; |
| 5972 | } |
| 5973 | _ACEOF |
| 5974 | rm -f conftest.$ac_objext |
| 5975 | if { (ac_try="$ac_compile" |
| 5976 | case "(($ac_try" in |
| 5977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5978 | *) ac_try_echo=$ac_try;; |
| 5979 | esac |
| 5980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5981 | (eval "$ac_compile") 2>conftest.er1 |
| 5982 | ac_status=$? |
| 5983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5984 | rm -f conftest.er1 |
| 5985 | cat conftest.err >&5 |
| 5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5987 | (exit $ac_status); } && |
| 5988 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5989 | { (case "(($ac_try" in |
| 5990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5991 | *) ac_try_echo=$ac_try;; |
| 5992 | esac |
| 5993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5994 | (eval "$ac_try") 2>&5 |
| 5995 | ac_status=$? |
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5997 | (exit $ac_status); }; } && |
| 5998 | { ac_try='test -s conftest.$ac_objext' |
| 5999 | { (case "(($ac_try" in |
| 6000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6001 | *) ac_try_echo=$ac_try;; |
| 6002 | esac |
| 6003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6004 | (eval "$ac_try") 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; }; then |
| 6008 | ac_cv_prog_cxx_g=yes |
| 6009 | else |
| 6010 | echo "$as_me: failed program was:" >&5 |
| 6011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6012 | |
| 6013 | |
| 6014 | fi |
| 6015 | |
| 6016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6017 | fi |
| 6018 | |
| 6019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6020 | fi |
| 6021 | |
| 6022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6023 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6024 | fi |
| 6025 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6026 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6027 | if test "$ac_test_CXXFLAGS" = set; then |
| 6028 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6029 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6030 | if test "$GXX" = yes; then |
| 6031 | CXXFLAGS="-g -O2" |
| 6032 | else |
| 6033 | CXXFLAGS="-g" |
| 6034 | fi |
| 6035 | else |
| 6036 | if test "$GXX" = yes; then |
| 6037 | CXXFLAGS="-O2" |
| 6038 | else |
| 6039 | CXXFLAGS= |
| 6040 | fi |
| 6041 | fi |
| 6042 | ac_ext=c |
| 6043 | ac_cpp='$CPP $CPPFLAGS' |
| 6044 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6045 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6046 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6047 | |
| 6048 | { echo "$as_me:$LINENO: checking " >&5 |
| 6049 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6050 | if test "${ac_cv_has_flex+set}" = set; then |
| 6051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6052 | else |
| 6053 | for ac_prog in flex lex |
| 6054 | do |
| 6055 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6056 | set dummy $ac_prog; ac_word=$2 |
| 6057 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6059 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6061 | else |
| 6062 | if test -n "$LEX"; then |
| 6063 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6064 | else |
| 6065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6066 | for as_dir in $PATH |
| 6067 | do |
| 6068 | IFS=$as_save_IFS |
| 6069 | test -z "$as_dir" && as_dir=. |
| 6070 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6072 | ac_cv_prog_LEX="$ac_prog" |
| 6073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6074 | break 2 |
| 6075 | fi |
| 6076 | done |
| 6077 | done |
| 6078 | IFS=$as_save_IFS |
| 6079 | |
| 6080 | fi |
| 6081 | fi |
| 6082 | LEX=$ac_cv_prog_LEX |
| 6083 | if test -n "$LEX"; then |
| 6084 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6085 | echo "${ECHO_T}$LEX" >&6; } |
| 6086 | else |
| 6087 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6088 | echo "${ECHO_T}no" >&6; } |
| 6089 | fi |
| 6090 | |
| 6091 | |
| 6092 | test -n "$LEX" && break |
| 6093 | done |
| 6094 | test -n "$LEX" || LEX=":" |
| 6095 | |
| 6096 | if test -z "$LEXLIB" |
| 6097 | then |
| 6098 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6099 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6100 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6102 | else |
| 6103 | ac_check_lib_save_LIBS=$LIBS |
| 6104 | LIBS="-lfl $LIBS" |
| 6105 | cat >conftest.$ac_ext <<_ACEOF |
| 6106 | /* confdefs.h. */ |
| 6107 | _ACEOF |
| 6108 | cat confdefs.h >>conftest.$ac_ext |
| 6109 | cat >>conftest.$ac_ext <<_ACEOF |
| 6110 | /* end confdefs.h. */ |
| 6111 | |
| 6112 | /* Override any GCC internal prototype to avoid an error. |
| 6113 | Use char because int might match the return type of a GCC |
| 6114 | builtin and then its argument prototype would still apply. */ |
| 6115 | #ifdef __cplusplus |
| 6116 | extern "C" |
| 6117 | #endif |
| 6118 | char yywrap (); |
| 6119 | int |
| 6120 | main () |
| 6121 | { |
| 6122 | return yywrap (); |
| 6123 | ; |
| 6124 | return 0; |
| 6125 | } |
| 6126 | _ACEOF |
| 6127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6128 | if { (ac_try="$ac_link" |
| 6129 | case "(($ac_try" in |
| 6130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6131 | *) ac_try_echo=$ac_try;; |
| 6132 | esac |
| 6133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6134 | (eval "$ac_link") 2>conftest.er1 |
| 6135 | ac_status=$? |
| 6136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6137 | rm -f conftest.er1 |
| 6138 | cat conftest.err >&5 |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); } && |
| 6141 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6142 | { (case "(($ac_try" in |
| 6143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6144 | *) ac_try_echo=$ac_try;; |
| 6145 | esac |
| 6146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6147 | (eval "$ac_try") 2>&5 |
| 6148 | ac_status=$? |
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 | (exit $ac_status); }; } && |
| 6151 | { ac_try='test -s conftest$ac_exeext' |
| 6152 | { (case "(($ac_try" in |
| 6153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6154 | *) ac_try_echo=$ac_try;; |
| 6155 | esac |
| 6156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6157 | (eval "$ac_try") 2>&5 |
| 6158 | ac_status=$? |
| 6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6160 | (exit $ac_status); }; }; then |
| 6161 | ac_cv_lib_fl_yywrap=yes |
| 6162 | else |
| 6163 | echo "$as_me: failed program was:" >&5 |
| 6164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6165 | |
| 6166 | ac_cv_lib_fl_yywrap=no |
| 6167 | fi |
| 6168 | |
| 6169 | rm -f core conftest.err conftest.$ac_objext \ |
| 6170 | conftest$ac_exeext conftest.$ac_ext |
| 6171 | LIBS=$ac_check_lib_save_LIBS |
| 6172 | fi |
| 6173 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6174 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6175 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6176 | LEXLIB="-lfl" |
| 6177 | else |
| 6178 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6179 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6180 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6182 | else |
| 6183 | ac_check_lib_save_LIBS=$LIBS |
| 6184 | LIBS="-ll $LIBS" |
| 6185 | cat >conftest.$ac_ext <<_ACEOF |
| 6186 | /* confdefs.h. */ |
| 6187 | _ACEOF |
| 6188 | cat confdefs.h >>conftest.$ac_ext |
| 6189 | cat >>conftest.$ac_ext <<_ACEOF |
| 6190 | /* end confdefs.h. */ |
| 6191 | |
| 6192 | /* Override any GCC internal prototype to avoid an error. |
| 6193 | Use char because int might match the return type of a GCC |
| 6194 | builtin and then its argument prototype would still apply. */ |
| 6195 | #ifdef __cplusplus |
| 6196 | extern "C" |
| 6197 | #endif |
| 6198 | char yywrap (); |
| 6199 | int |
| 6200 | main () |
| 6201 | { |
| 6202 | return yywrap (); |
| 6203 | ; |
| 6204 | return 0; |
| 6205 | } |
| 6206 | _ACEOF |
| 6207 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6208 | if { (ac_try="$ac_link" |
| 6209 | case "(($ac_try" in |
| 6210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6211 | *) ac_try_echo=$ac_try;; |
| 6212 | esac |
| 6213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6214 | (eval "$ac_link") 2>conftest.er1 |
| 6215 | ac_status=$? |
| 6216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6217 | rm -f conftest.er1 |
| 6218 | cat conftest.err >&5 |
| 6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6220 | (exit $ac_status); } && |
| 6221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6222 | { (case "(($ac_try" in |
| 6223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6224 | *) ac_try_echo=$ac_try;; |
| 6225 | esac |
| 6226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6227 | (eval "$ac_try") 2>&5 |
| 6228 | ac_status=$? |
| 6229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6230 | (exit $ac_status); }; } && |
| 6231 | { ac_try='test -s conftest$ac_exeext' |
| 6232 | { (case "(($ac_try" in |
| 6233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6234 | *) ac_try_echo=$ac_try;; |
| 6235 | esac |
| 6236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6237 | (eval "$ac_try") 2>&5 |
| 6238 | ac_status=$? |
| 6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6240 | (exit $ac_status); }; }; then |
| 6241 | ac_cv_lib_l_yywrap=yes |
| 6242 | else |
| 6243 | echo "$as_me: failed program was:" >&5 |
| 6244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6245 | |
| 6246 | ac_cv_lib_l_yywrap=no |
| 6247 | fi |
| 6248 | |
| 6249 | rm -f core conftest.err conftest.$ac_objext \ |
| 6250 | conftest$ac_exeext conftest.$ac_ext |
| 6251 | LIBS=$ac_check_lib_save_LIBS |
| 6252 | fi |
| 6253 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6254 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6255 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6256 | LEXLIB="-ll" |
| 6257 | fi |
| 6258 | |
| 6259 | fi |
| 6260 | |
| 6261 | fi |
| 6262 | |
| 6263 | if test "x$LEX" != "x:"; then |
| 6264 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6265 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6266 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6268 | else |
| 6269 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6270 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6271 | cat >conftest.l <<_ACEOF |
| 6272 | %% |
| 6273 | %% |
| 6274 | _ACEOF |
| 6275 | { (ac_try="$LEX conftest.l" |
| 6276 | case "(($ac_try" in |
| 6277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6278 | *) ac_try_echo=$ac_try;; |
| 6279 | esac |
| 6280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6281 | (eval "$LEX conftest.l") 2>&5 |
| 6282 | ac_status=$? |
| 6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6284 | (exit $ac_status); } |
| 6285 | if test -f lex.yy.c; then |
| 6286 | ac_cv_prog_lex_root=lex.yy |
| 6287 | elif test -f lexyy.c; then |
| 6288 | ac_cv_prog_lex_root=lexyy |
| 6289 | else |
| 6290 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6291 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6292 | { (exit 1); exit 1; }; } |
| 6293 | fi |
| 6294 | fi |
| 6295 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6296 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
| 6297 | rm -f conftest.l |
| 6298 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6299 | |
| 6300 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6301 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6302 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6304 | else |
| 6305 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 6306 | # default is implementation-dependent. Figure out which it is, since |
| 6307 | # not all implementations provide the %pointer and %array declarations. |
| 6308 | ac_cv_prog_lex_yytext_pointer=no |
| 6309 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 6310 | ac_save_LIBS=$LIBS |
| 6311 | LIBS="$LIBS $LEXLIB" |
| 6312 | cat >conftest.$ac_ext <<_ACEOF |
| 6313 | `cat $LEX_OUTPUT_ROOT.c` |
| 6314 | _ACEOF |
| 6315 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6316 | if { (ac_try="$ac_link" |
| 6317 | case "(($ac_try" in |
| 6318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6319 | *) ac_try_echo=$ac_try;; |
| 6320 | esac |
| 6321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6322 | (eval "$ac_link") 2>conftest.er1 |
| 6323 | ac_status=$? |
| 6324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6325 | rm -f conftest.er1 |
| 6326 | cat conftest.err >&5 |
| 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6328 | (exit $ac_status); } && |
| 6329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6330 | { (case "(($ac_try" in |
| 6331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6332 | *) ac_try_echo=$ac_try;; |
| 6333 | esac |
| 6334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6335 | (eval "$ac_try") 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); }; } && |
| 6339 | { ac_try='test -s conftest$ac_exeext' |
| 6340 | { (case "(($ac_try" in |
| 6341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6342 | *) ac_try_echo=$ac_try;; |
| 6343 | esac |
| 6344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6345 | (eval "$ac_try") 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; }; then |
| 6349 | ac_cv_prog_lex_yytext_pointer=yes |
| 6350 | else |
| 6351 | echo "$as_me: failed program was:" >&5 |
| 6352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6353 | |
| 6354 | |
| 6355 | fi |
| 6356 | |
| 6357 | rm -f core conftest.err conftest.$ac_objext \ |
| 6358 | conftest$ac_exeext conftest.$ac_ext |
| 6359 | LIBS=$ac_save_LIBS |
| 6360 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 6361 | |
| 6362 | fi |
| 6363 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6364 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6365 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6366 | |
| 6367 | cat >>confdefs.h <<\_ACEOF |
| 6368 | #define YYTEXT_POINTER 1 |
| 6369 | _ACEOF |
| 6370 | |
| 6371 | fi |
| 6372 | |
| 6373 | fi |
| 6374 | |
| 6375 | fi |
| 6376 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6377 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6378 | if test "$LEX" != "flex"; then |
| 6379 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6380 | echo "$as_me: error: flex not found but required" >&2;} |
| 6381 | { (exit 1); exit 1; }; } |
| 6382 | else |
| 6383 | FLEX=flex |
| 6384 | |
| 6385 | fi |
| 6386 | |
| 6387 | { echo "$as_me:$LINENO: checking " >&5 |
| 6388 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6389 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6391 | else |
| 6392 | for ac_prog in 'bison -y' byacc |
| 6393 | do |
| 6394 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6395 | set dummy $ac_prog; ac_word=$2 |
| 6396 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6398 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6400 | else |
| 6401 | if test -n "$YACC"; then |
| 6402 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6403 | else |
| 6404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6405 | for as_dir in $PATH |
| 6406 | do |
| 6407 | IFS=$as_save_IFS |
| 6408 | test -z "$as_dir" && as_dir=. |
| 6409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6411 | ac_cv_prog_YACC="$ac_prog" |
| 6412 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6413 | break 2 |
| 6414 | fi |
| 6415 | done |
| 6416 | done |
| 6417 | IFS=$as_save_IFS |
| 6418 | |
| 6419 | fi |
| 6420 | fi |
| 6421 | YACC=$ac_cv_prog_YACC |
| 6422 | if test -n "$YACC"; then |
| 6423 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6424 | echo "${ECHO_T}$YACC" >&6; } |
| 6425 | else |
| 6426 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6427 | echo "${ECHO_T}no" >&6; } |
| 6428 | fi |
| 6429 | |
| 6430 | |
| 6431 | test -n "$YACC" && break |
| 6432 | done |
| 6433 | test -n "$YACC" || YACC="yacc" |
| 6434 | |
| 6435 | fi |
| 6436 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6437 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6438 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6439 | |
| 6440 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6441 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6442 | else |
| 6443 | BISON=bison |
| 6444 | |
| 6445 | fi |
| 6446 | |
| 6447 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6448 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6449 | if test "${lt_cv_path_NM+set}" = set; then |
| 6450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6451 | else |
| 6452 | if test -n "$NM"; then |
| 6453 | # Let the user override the test. |
| 6454 | lt_cv_path_NM="$NM" |
| 6455 | else |
| 6456 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6457 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6458 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6459 | fi |
| 6460 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6461 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6462 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6463 | IFS="$lt_save_ifs" |
| 6464 | test -z "$ac_dir" && ac_dir=. |
| 6465 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6466 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6467 | # Check to see if the nm accepts a BSD-compat flag. |
| 6468 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6469 | # nm: unknown option "B" ignored |
| 6470 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6471 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6472 | */dev/null* | *'Invalid file or object type'*) |
| 6473 | lt_cv_path_NM="$tmp_nm -B" |
| 6474 | break |
| 6475 | ;; |
| 6476 | *) |
| 6477 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6478 | */dev/null*) |
| 6479 | lt_cv_path_NM="$tmp_nm -p" |
| 6480 | break |
| 6481 | ;; |
| 6482 | *) |
| 6483 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6484 | continue # so that we can try to find one that supports BSD flags |
| 6485 | ;; |
| 6486 | esac |
| 6487 | ;; |
| 6488 | esac |
| 6489 | fi |
| 6490 | done |
| 6491 | IFS="$lt_save_ifs" |
| 6492 | done |
| 6493 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6494 | fi |
| 6495 | fi |
| 6496 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6497 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6498 | NM="$lt_cv_path_NM" |
| 6499 | |
| 6500 | |
| 6501 | |
| 6502 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6503 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6504 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6506 | else |
| 6507 | llvm_cv_gnu_make_command='' |
| 6508 | for a in "$MAKE" make gmake gnumake ; do |
| 6509 | if test -z "$a" ; then continue ; fi ; |
| 6510 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6511 | then |
| 6512 | llvm_cv_gnu_make_command=$a ; |
| 6513 | break; |
| 6514 | fi |
| 6515 | done |
| 6516 | fi |
| 6517 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6518 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6519 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6520 | ifGNUmake='' ; |
| 6521 | else |
| 6522 | ifGNUmake='#' ; |
| 6523 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6524 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6525 | fi |
| 6526 | |
| 6527 | |
| 6528 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6529 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6530 | LN_S=$as_ln_s |
| 6531 | if test "$LN_S" = "ln -s"; then |
| 6532 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6533 | echo "${ECHO_T}yes" >&6; } |
| 6534 | else |
| 6535 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6536 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6537 | fi |
| 6538 | |
| 6539 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6540 | set dummy cmp; ac_word=$2 |
| 6541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6543 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6545 | else |
| 6546 | case $CMP in |
| 6547 | [\\/]* | ?:[\\/]*) |
| 6548 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6549 | ;; |
| 6550 | *) |
| 6551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6552 | for as_dir in $PATH |
| 6553 | do |
| 6554 | IFS=$as_save_IFS |
| 6555 | test -z "$as_dir" && as_dir=. |
| 6556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6558 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6560 | break 2 |
| 6561 | fi |
| 6562 | done |
| 6563 | done |
| 6564 | IFS=$as_save_IFS |
| 6565 | |
| 6566 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6567 | ;; |
| 6568 | esac |
| 6569 | fi |
| 6570 | CMP=$ac_cv_path_CMP |
| 6571 | if test -n "$CMP"; then |
| 6572 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6573 | echo "${ECHO_T}$CMP" >&6; } |
| 6574 | else |
| 6575 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6576 | echo "${ECHO_T}no" >&6; } |
| 6577 | fi |
| 6578 | |
| 6579 | |
| 6580 | # Extract the first word of "cp", so it can be a program name with args. |
| 6581 | set dummy cp; ac_word=$2 |
| 6582 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6584 | if test "${ac_cv_path_CP+set}" = set; then |
| 6585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6586 | else |
| 6587 | case $CP in |
| 6588 | [\\/]* | ?:[\\/]*) |
| 6589 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6590 | ;; |
| 6591 | *) |
| 6592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6593 | for as_dir in $PATH |
| 6594 | do |
| 6595 | IFS=$as_save_IFS |
| 6596 | test -z "$as_dir" && as_dir=. |
| 6597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6599 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6601 | break 2 |
| 6602 | fi |
| 6603 | done |
| 6604 | done |
| 6605 | IFS=$as_save_IFS |
| 6606 | |
| 6607 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6608 | ;; |
| 6609 | esac |
| 6610 | fi |
| 6611 | CP=$ac_cv_path_CP |
| 6612 | if test -n "$CP"; then |
| 6613 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6614 | echo "${ECHO_T}$CP" >&6; } |
| 6615 | else |
| 6616 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6617 | echo "${ECHO_T}no" >&6; } |
| 6618 | fi |
| 6619 | |
| 6620 | |
| 6621 | # Extract the first word of "date", so it can be a program name with args. |
| 6622 | set dummy date; ac_word=$2 |
| 6623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6625 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6627 | else |
| 6628 | case $DATE in |
| 6629 | [\\/]* | ?:[\\/]*) |
| 6630 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6631 | ;; |
| 6632 | *) |
| 6633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6634 | for as_dir in $PATH |
| 6635 | do |
| 6636 | IFS=$as_save_IFS |
| 6637 | test -z "$as_dir" && as_dir=. |
| 6638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6640 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6642 | break 2 |
| 6643 | fi |
| 6644 | done |
| 6645 | done |
| 6646 | IFS=$as_save_IFS |
| 6647 | |
| 6648 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6649 | ;; |
| 6650 | esac |
| 6651 | fi |
| 6652 | DATE=$ac_cv_path_DATE |
| 6653 | if test -n "$DATE"; then |
| 6654 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6655 | echo "${ECHO_T}$DATE" >&6; } |
| 6656 | else |
| 6657 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6658 | echo "${ECHO_T}no" >&6; } |
| 6659 | fi |
| 6660 | |
| 6661 | |
| 6662 | # Extract the first word of "find", so it can be a program name with args. |
| 6663 | set dummy find; ac_word=$2 |
| 6664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6666 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6668 | else |
| 6669 | case $FIND in |
| 6670 | [\\/]* | ?:[\\/]*) |
| 6671 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6672 | ;; |
| 6673 | *) |
| 6674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6675 | for as_dir in $PATH |
| 6676 | do |
| 6677 | IFS=$as_save_IFS |
| 6678 | test -z "$as_dir" && as_dir=. |
| 6679 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6681 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6683 | break 2 |
| 6684 | fi |
| 6685 | done |
| 6686 | done |
| 6687 | IFS=$as_save_IFS |
| 6688 | |
| 6689 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6690 | ;; |
| 6691 | esac |
| 6692 | fi |
| 6693 | FIND=$ac_cv_path_FIND |
| 6694 | if test -n "$FIND"; then |
| 6695 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6696 | echo "${ECHO_T}$FIND" >&6; } |
| 6697 | else |
| 6698 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6699 | echo "${ECHO_T}no" >&6; } |
| 6700 | fi |
| 6701 | |
| 6702 | |
| 6703 | # Extract the first word of "grep", so it can be a program name with args. |
| 6704 | set dummy grep; ac_word=$2 |
| 6705 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6707 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6709 | else |
| 6710 | case $GREP in |
| 6711 | [\\/]* | ?:[\\/]*) |
| 6712 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6713 | ;; |
| 6714 | *) |
| 6715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6716 | for as_dir in $PATH |
| 6717 | do |
| 6718 | IFS=$as_save_IFS |
| 6719 | test -z "$as_dir" && as_dir=. |
| 6720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6722 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6723 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6724 | break 2 |
| 6725 | fi |
| 6726 | done |
| 6727 | done |
| 6728 | IFS=$as_save_IFS |
| 6729 | |
| 6730 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6731 | ;; |
| 6732 | esac |
| 6733 | fi |
| 6734 | GREP=$ac_cv_path_GREP |
| 6735 | if test -n "$GREP"; then |
| 6736 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6737 | echo "${ECHO_T}$GREP" >&6; } |
| 6738 | else |
| 6739 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6740 | echo "${ECHO_T}no" >&6; } |
| 6741 | fi |
| 6742 | |
| 6743 | |
| 6744 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6745 | set dummy mkdir; ac_word=$2 |
| 6746 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6748 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6750 | else |
| 6751 | case $MKDIR in |
| 6752 | [\\/]* | ?:[\\/]*) |
| 6753 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6754 | ;; |
| 6755 | *) |
| 6756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6757 | for as_dir in $PATH |
| 6758 | do |
| 6759 | IFS=$as_save_IFS |
| 6760 | test -z "$as_dir" && as_dir=. |
| 6761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6763 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6765 | break 2 |
| 6766 | fi |
| 6767 | done |
| 6768 | done |
| 6769 | IFS=$as_save_IFS |
| 6770 | |
| 6771 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6772 | ;; |
| 6773 | esac |
| 6774 | fi |
| 6775 | MKDIR=$ac_cv_path_MKDIR |
| 6776 | if test -n "$MKDIR"; then |
| 6777 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6778 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6779 | else |
| 6780 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6781 | echo "${ECHO_T}no" >&6; } |
| 6782 | fi |
| 6783 | |
| 6784 | |
| 6785 | # Extract the first word of "mv", so it can be a program name with args. |
| 6786 | set dummy mv; ac_word=$2 |
| 6787 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6789 | if test "${ac_cv_path_MV+set}" = set; then |
| 6790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6791 | else |
| 6792 | case $MV in |
| 6793 | [\\/]* | ?:[\\/]*) |
| 6794 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6795 | ;; |
| 6796 | *) |
| 6797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6798 | for as_dir in $PATH |
| 6799 | do |
| 6800 | IFS=$as_save_IFS |
| 6801 | test -z "$as_dir" && as_dir=. |
| 6802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6804 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6806 | break 2 |
| 6807 | fi |
| 6808 | done |
| 6809 | done |
| 6810 | IFS=$as_save_IFS |
| 6811 | |
| 6812 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6813 | ;; |
| 6814 | esac |
| 6815 | fi |
| 6816 | MV=$ac_cv_path_MV |
| 6817 | if test -n "$MV"; then |
| 6818 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6819 | echo "${ECHO_T}$MV" >&6; } |
| 6820 | else |
| 6821 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6822 | echo "${ECHO_T}no" >&6; } |
| 6823 | fi |
| 6824 | |
| 6825 | |
| 6826 | if test -n "$ac_tool_prefix"; then |
| 6827 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6828 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6831 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6833 | else |
| 6834 | if test -n "$RANLIB"; then |
| 6835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6836 | else |
| 6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6838 | for as_dir in $PATH |
| 6839 | do |
| 6840 | IFS=$as_save_IFS |
| 6841 | test -z "$as_dir" && as_dir=. |
| 6842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6844 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6846 | break 2 |
| 6847 | fi |
| 6848 | done |
| 6849 | done |
| 6850 | IFS=$as_save_IFS |
| 6851 | |
| 6852 | fi |
| 6853 | fi |
| 6854 | RANLIB=$ac_cv_prog_RANLIB |
| 6855 | if test -n "$RANLIB"; then |
| 6856 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6857 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6858 | else |
| 6859 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6860 | echo "${ECHO_T}no" >&6; } |
| 6861 | fi |
| 6862 | |
| 6863 | |
| 6864 | fi |
| 6865 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6866 | ac_ct_RANLIB=$RANLIB |
| 6867 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6868 | set dummy ranlib; ac_word=$2 |
| 6869 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6871 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6873 | else |
| 6874 | if test -n "$ac_ct_RANLIB"; then |
| 6875 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6876 | else |
| 6877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6878 | for as_dir in $PATH |
| 6879 | do |
| 6880 | IFS=$as_save_IFS |
| 6881 | test -z "$as_dir" && as_dir=. |
| 6882 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6884 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6886 | break 2 |
| 6887 | fi |
| 6888 | done |
| 6889 | done |
| 6890 | IFS=$as_save_IFS |
| 6891 | |
| 6892 | fi |
| 6893 | fi |
| 6894 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6895 | if test -n "$ac_ct_RANLIB"; then |
| 6896 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6897 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6898 | else |
| 6899 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6900 | echo "${ECHO_T}no" >&6; } |
| 6901 | fi |
| 6902 | |
| 6903 | if test "x$ac_ct_RANLIB" = x; then |
| 6904 | RANLIB=":" |
| 6905 | else |
| 6906 | case $cross_compiling:$ac_tool_warned in |
| 6907 | yes:) |
| 6908 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6909 | whose name does not start with the host triplet. If you think this |
| 6910 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6911 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6912 | whose name does not start with the host triplet. If you think this |
| 6913 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6914 | ac_tool_warned=yes ;; |
| 6915 | esac |
| 6916 | RANLIB=$ac_ct_RANLIB |
| 6917 | fi |
| 6918 | else |
| 6919 | RANLIB="$ac_cv_prog_RANLIB" |
| 6920 | fi |
| 6921 | |
| 6922 | # Extract the first word of "rm", so it can be a program name with args. |
| 6923 | set dummy rm; ac_word=$2 |
| 6924 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6926 | if test "${ac_cv_path_RM+set}" = set; then |
| 6927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6928 | else |
| 6929 | case $RM in |
| 6930 | [\\/]* | ?:[\\/]*) |
| 6931 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6932 | ;; |
| 6933 | *) |
| 6934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6935 | for as_dir in $PATH |
| 6936 | do |
| 6937 | IFS=$as_save_IFS |
| 6938 | test -z "$as_dir" && as_dir=. |
| 6939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6941 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6943 | break 2 |
| 6944 | fi |
| 6945 | done |
| 6946 | done |
| 6947 | IFS=$as_save_IFS |
| 6948 | |
| 6949 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6950 | ;; |
| 6951 | esac |
| 6952 | fi |
| 6953 | RM=$ac_cv_path_RM |
| 6954 | if test -n "$RM"; then |
| 6955 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6956 | echo "${ECHO_T}$RM" >&6; } |
| 6957 | else |
| 6958 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6959 | echo "${ECHO_T}no" >&6; } |
| 6960 | fi |
| 6961 | |
| 6962 | |
| 6963 | # Extract the first word of "sed", so it can be a program name with args. |
| 6964 | set dummy sed; ac_word=$2 |
| 6965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6967 | if test "${ac_cv_path_SED+set}" = set; then |
| 6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6969 | else |
| 6970 | case $SED in |
| 6971 | [\\/]* | ?:[\\/]*) |
| 6972 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6973 | ;; |
| 6974 | *) |
| 6975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6976 | for as_dir in $PATH |
| 6977 | do |
| 6978 | IFS=$as_save_IFS |
| 6979 | test -z "$as_dir" && as_dir=. |
| 6980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6982 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6984 | break 2 |
| 6985 | fi |
| 6986 | done |
| 6987 | done |
| 6988 | IFS=$as_save_IFS |
| 6989 | |
| 6990 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6991 | ;; |
| 6992 | esac |
| 6993 | fi |
| 6994 | SED=$ac_cv_path_SED |
| 6995 | if test -n "$SED"; then |
| 6996 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6997 | echo "${ECHO_T}$SED" >&6; } |
| 6998 | else |
| 6999 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7000 | echo "${ECHO_T}no" >&6; } |
| 7001 | fi |
| 7002 | |
| 7003 | |
| 7004 | # Extract the first word of "tar", so it can be a program name with args. |
| 7005 | set dummy tar; ac_word=$2 |
| 7006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7008 | if test "${ac_cv_path_TAR+set}" = set; then |
| 7009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7010 | else |
| 7011 | case $TAR in |
| 7012 | [\\/]* | ?:[\\/]*) |
| 7013 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7014 | ;; |
| 7015 | *) |
| 7016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7017 | for as_dir in $PATH |
| 7018 | do |
| 7019 | IFS=$as_save_IFS |
| 7020 | test -z "$as_dir" && as_dir=. |
| 7021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7023 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7025 | break 2 |
| 7026 | fi |
| 7027 | done |
| 7028 | done |
| 7029 | IFS=$as_save_IFS |
| 7030 | |
| 7031 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7032 | ;; |
| 7033 | esac |
| 7034 | fi |
| 7035 | TAR=$ac_cv_path_TAR |
| 7036 | if test -n "$TAR"; then |
| 7037 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7038 | echo "${ECHO_T}$TAR" >&6; } |
| 7039 | else |
| 7040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7041 | echo "${ECHO_T}no" >&6; } |
| 7042 | fi |
| 7043 | |
| 7044 | |
| 7045 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7046 | set dummy pwd; ac_word=$2 |
| 7047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7049 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7051 | else |
| 7052 | case $BINPWD in |
| 7053 | [\\/]* | ?:[\\/]*) |
| 7054 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7055 | ;; |
| 7056 | *) |
| 7057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7058 | for as_dir in $PATH |
| 7059 | do |
| 7060 | IFS=$as_save_IFS |
| 7061 | test -z "$as_dir" && as_dir=. |
| 7062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7064 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7066 | break 2 |
| 7067 | fi |
| 7068 | done |
| 7069 | done |
| 7070 | IFS=$as_save_IFS |
| 7071 | |
| 7072 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7073 | ;; |
| 7074 | esac |
| 7075 | fi |
| 7076 | BINPWD=$ac_cv_path_BINPWD |
| 7077 | if test -n "$BINPWD"; then |
| 7078 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7079 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7080 | else |
| 7081 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7082 | echo "${ECHO_T}no" >&6; } |
| 7083 | fi |
| 7084 | |
| 7085 | |
| 7086 | |
| 7087 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7088 | set dummy Graphviz; ac_word=$2 |
| 7089 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7091 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7093 | else |
| 7094 | case $GRAPHVIZ in |
| 7095 | [\\/]* | ?:[\\/]*) |
| 7096 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7097 | ;; |
| 7098 | *) |
| 7099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7100 | for as_dir in $PATH |
| 7101 | do |
| 7102 | IFS=$as_save_IFS |
| 7103 | test -z "$as_dir" && as_dir=. |
| 7104 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7106 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7108 | break 2 |
| 7109 | fi |
| 7110 | done |
| 7111 | done |
| 7112 | IFS=$as_save_IFS |
| 7113 | |
| 7114 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7115 | ;; |
| 7116 | esac |
| 7117 | fi |
| 7118 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7119 | if test -n "$GRAPHVIZ"; then |
| 7120 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7121 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7122 | else |
| 7123 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7124 | echo "${ECHO_T}no" >&6; } |
| 7125 | fi |
| 7126 | |
| 7127 | |
| 7128 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7129 | |
| 7130 | cat >>confdefs.h <<\_ACEOF |
| 7131 | #define HAVE_GRAPHVIZ 1 |
| 7132 | _ACEOF |
| 7133 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7134 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7135 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7136 | fi |
| 7137 | |
| 7138 | cat >>confdefs.h <<_ACEOF |
| 7139 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7140 | _ACEOF |
| 7141 | |
| 7142 | fi |
| 7143 | # Extract the first word of "dot", so it can be a program name with args. |
| 7144 | set dummy dot; ac_word=$2 |
| 7145 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7147 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7149 | else |
| 7150 | case $DOT in |
| 7151 | [\\/]* | ?:[\\/]*) |
| 7152 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7153 | ;; |
| 7154 | *) |
| 7155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7156 | for as_dir in $PATH |
| 7157 | do |
| 7158 | IFS=$as_save_IFS |
| 7159 | test -z "$as_dir" && as_dir=. |
| 7160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7161 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7162 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7164 | break 2 |
| 7165 | fi |
| 7166 | done |
| 7167 | done |
| 7168 | IFS=$as_save_IFS |
| 7169 | |
| 7170 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7171 | ;; |
| 7172 | esac |
| 7173 | fi |
| 7174 | DOT=$ac_cv_path_DOT |
| 7175 | if test -n "$DOT"; then |
| 7176 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7177 | echo "${ECHO_T}$DOT" >&6; } |
| 7178 | else |
| 7179 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7180 | echo "${ECHO_T}no" >&6; } |
| 7181 | fi |
| 7182 | |
| 7183 | |
| 7184 | if test "$DOT" != "echo dot" ; then |
| 7185 | |
| 7186 | cat >>confdefs.h <<\_ACEOF |
| 7187 | #define HAVE_DOT 1 |
| 7188 | _ACEOF |
| 7189 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7190 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7191 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7192 | fi |
| 7193 | |
| 7194 | cat >>confdefs.h <<_ACEOF |
| 7195 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7196 | _ACEOF |
| 7197 | |
| 7198 | fi |
| 7199 | for ac_prog in gv gsview32 |
| 7200 | do |
| 7201 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7202 | set dummy $ac_prog; ac_word=$2 |
| 7203 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7205 | if test "${ac_cv_path_GV+set}" = set; then |
| 7206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7207 | else |
| 7208 | case $GV in |
| 7209 | [\\/]* | ?:[\\/]*) |
| 7210 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7211 | ;; |
| 7212 | *) |
| 7213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7214 | for as_dir in $PATH |
| 7215 | do |
| 7216 | IFS=$as_save_IFS |
| 7217 | test -z "$as_dir" && as_dir=. |
| 7218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7220 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7222 | break 2 |
| 7223 | fi |
| 7224 | done |
| 7225 | done |
| 7226 | IFS=$as_save_IFS |
| 7227 | |
| 7228 | ;; |
| 7229 | esac |
| 7230 | fi |
| 7231 | GV=$ac_cv_path_GV |
| 7232 | if test -n "$GV"; then |
| 7233 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7234 | echo "${ECHO_T}$GV" >&6; } |
| 7235 | else |
| 7236 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7237 | echo "${ECHO_T}no" >&6; } |
| 7238 | fi |
| 7239 | |
| 7240 | |
| 7241 | test -n "$GV" && break |
| 7242 | done |
| 7243 | test -n "$GV" || GV="echo gv" |
| 7244 | |
| 7245 | if test "$GV" != "echo gv" ; then |
| 7246 | |
| 7247 | cat >>confdefs.h <<\_ACEOF |
| 7248 | #define HAVE_GV 1 |
| 7249 | _ACEOF |
| 7250 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7251 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7252 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7253 | fi |
| 7254 | |
| 7255 | cat >>confdefs.h <<_ACEOF |
| 7256 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7257 | _ACEOF |
| 7258 | |
| 7259 | fi |
| 7260 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7261 | set dummy dotty; ac_word=$2 |
| 7262 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7264 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7266 | else |
| 7267 | case $DOTTY in |
| 7268 | [\\/]* | ?:[\\/]*) |
| 7269 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7270 | ;; |
| 7271 | *) |
| 7272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7273 | for as_dir in $PATH |
| 7274 | do |
| 7275 | IFS=$as_save_IFS |
| 7276 | test -z "$as_dir" && as_dir=. |
| 7277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7279 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7281 | break 2 |
| 7282 | fi |
| 7283 | done |
| 7284 | done |
| 7285 | IFS=$as_save_IFS |
| 7286 | |
| 7287 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7288 | ;; |
| 7289 | esac |
| 7290 | fi |
| 7291 | DOTTY=$ac_cv_path_DOTTY |
| 7292 | if test -n "$DOTTY"; then |
| 7293 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7294 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7295 | else |
| 7296 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7297 | echo "${ECHO_T}no" >&6; } |
| 7298 | fi |
| 7299 | |
| 7300 | |
| 7301 | if test "$DOTTY" != "echo dotty" ; then |
| 7302 | |
| 7303 | cat >>confdefs.h <<\_ACEOF |
| 7304 | #define HAVE_DOTTY 1 |
| 7305 | _ACEOF |
| 7306 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7307 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7308 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7309 | fi |
| 7310 | |
| 7311 | cat >>confdefs.h <<_ACEOF |
| 7312 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7313 | _ACEOF |
| 7314 | |
| 7315 | fi |
| 7316 | |
| 7317 | |
| 7318 | # Extract the first word of "perl", so it can be a program name with args. |
| 7319 | set dummy perl; ac_word=$2 |
| 7320 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7322 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7324 | else |
| 7325 | case $PERL in |
| 7326 | [\\/]* | ?:[\\/]*) |
| 7327 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7328 | ;; |
| 7329 | *) |
| 7330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7331 | for as_dir in $PATH |
| 7332 | do |
| 7333 | IFS=$as_save_IFS |
| 7334 | test -z "$as_dir" && as_dir=. |
| 7335 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7337 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7339 | break 2 |
| 7340 | fi |
| 7341 | done |
| 7342 | done |
| 7343 | IFS=$as_save_IFS |
| 7344 | |
| 7345 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7346 | ;; |
| 7347 | esac |
| 7348 | fi |
| 7349 | PERL=$ac_cv_path_PERL |
| 7350 | if test -n "$PERL"; then |
| 7351 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7352 | echo "${ECHO_T}$PERL" >&6; } |
| 7353 | else |
| 7354 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7355 | echo "${ECHO_T}no" >&6; } |
| 7356 | fi |
| 7357 | |
| 7358 | |
| 7359 | if test "$PERL" != "none"; then |
| 7360 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7361 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7362 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7363 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7364 | echo "${ECHO_T}yes" >&6; } |
| 7365 | else |
| 7366 | PERL=none |
| 7367 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7368 | echo "${ECHO_T}not found" >&6; } |
| 7369 | fi |
| 7370 | fi |
| 7371 | |
| 7372 | |
| 7373 | if test x"$PERL" = xnone; then |
| 7374 | HAVE_PERL=0 |
| 7375 | |
| 7376 | else |
| 7377 | HAVE_PERL=1 |
| 7378 | |
| 7379 | fi |
| 7380 | |
| 7381 | # Find a good install program. We prefer a C program (faster), |
| 7382 | # so one script is as good as another. But avoid the broken or |
| 7383 | # incompatible versions: |
| 7384 | # SysV /etc/install, /usr/sbin/install |
| 7385 | # SunOS /usr/etc/install |
| 7386 | # IRIX /sbin/install |
| 7387 | # AIX /bin/install |
| 7388 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7389 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7390 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7391 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7392 | # OS/2's system install, which has a completely different semantic |
| 7393 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7394 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7395 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7396 | if test -z "$INSTALL"; then |
| 7397 | if test "${ac_cv_path_install+set}" = set; then |
| 7398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7399 | else |
| 7400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7401 | for as_dir in $PATH |
| 7402 | do |
| 7403 | IFS=$as_save_IFS |
| 7404 | test -z "$as_dir" && as_dir=. |
| 7405 | # Account for people who put trailing slashes in PATH elements. |
| 7406 | case $as_dir/ in |
| 7407 | ./ | .// | /cC/* | \ |
| 7408 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7409 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7410 | /usr/ucb/* ) ;; |
| 7411 | *) |
| 7412 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7413 | # Don't use installbsd from OSF since it installs stuff as root |
| 7414 | # by default. |
| 7415 | for ac_prog in ginstall scoinst install; do |
| 7416 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7417 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 7418 | if test $ac_prog = install && |
| 7419 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7420 | # AIX install. It has an incompatible calling convention. |
| 7421 | : |
| 7422 | elif test $ac_prog = install && |
| 7423 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7424 | # program-specific install script used by HP pwplus--don't use. |
| 7425 | : |
| 7426 | else |
| 7427 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7428 | break 3 |
| 7429 | fi |
| 7430 | fi |
| 7431 | done |
| 7432 | done |
| 7433 | ;; |
| 7434 | esac |
| 7435 | done |
| 7436 | IFS=$as_save_IFS |
| 7437 | |
| 7438 | |
| 7439 | fi |
| 7440 | if test "${ac_cv_path_install+set}" = set; then |
| 7441 | INSTALL=$ac_cv_path_install |
| 7442 | else |
| 7443 | # As a last resort, use the slow shell script. Don't cache a |
| 7444 | # value for INSTALL within a source directory, because that will |
| 7445 | # break other packages using the cache if that directory is |
| 7446 | # removed, or if the value is a relative name. |
| 7447 | INSTALL=$ac_install_sh |
| 7448 | fi |
| 7449 | fi |
| 7450 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7451 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7452 | |
| 7453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7454 | # It thinks the first close brace ends the variable substitution. |
| 7455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7456 | |
| 7457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7458 | |
| 7459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7460 | |
| 7461 | |
| 7462 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7463 | set dummy bzip2; ac_word=$2 |
| 7464 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7466 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7468 | else |
| 7469 | case $BZIP2 in |
| 7470 | [\\/]* | ?:[\\/]*) |
| 7471 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7472 | ;; |
| 7473 | *) |
| 7474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7475 | for as_dir in $PATH |
| 7476 | do |
| 7477 | IFS=$as_save_IFS |
| 7478 | test -z "$as_dir" && as_dir=. |
| 7479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7481 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7483 | break 2 |
| 7484 | fi |
| 7485 | done |
| 7486 | done |
| 7487 | IFS=$as_save_IFS |
| 7488 | |
| 7489 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7490 | ;; |
| 7491 | esac |
| 7492 | fi |
| 7493 | BZIP2=$ac_cv_path_BZIP2 |
| 7494 | if test -n "$BZIP2"; then |
| 7495 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7496 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7497 | else |
| 7498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7499 | echo "${ECHO_T}no" >&6; } |
| 7500 | fi |
| 7501 | |
| 7502 | |
| 7503 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7504 | set dummy doxygen; ac_word=$2 |
| 7505 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7507 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7509 | else |
| 7510 | case $DOXYGEN in |
| 7511 | [\\/]* | ?:[\\/]*) |
| 7512 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7513 | ;; |
| 7514 | *) |
| 7515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7516 | for as_dir in $PATH |
| 7517 | do |
| 7518 | IFS=$as_save_IFS |
| 7519 | test -z "$as_dir" && as_dir=. |
| 7520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7522 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7524 | break 2 |
| 7525 | fi |
| 7526 | done |
| 7527 | done |
| 7528 | IFS=$as_save_IFS |
| 7529 | |
| 7530 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7531 | ;; |
| 7532 | esac |
| 7533 | fi |
| 7534 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7535 | if test -n "$DOXYGEN"; then |
| 7536 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7537 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7538 | else |
| 7539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7540 | echo "${ECHO_T}no" >&6; } |
| 7541 | fi |
| 7542 | |
| 7543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7544 | # Extract the first word of "groff", so it can be a program name with args. |
| 7545 | set dummy groff; ac_word=$2 |
| 7546 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7548 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7550 | else |
| 7551 | case $GROFF in |
| 7552 | [\\/]* | ?:[\\/]*) |
| 7553 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7554 | ;; |
| 7555 | *) |
| 7556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7557 | for as_dir in $PATH |
| 7558 | do |
| 7559 | IFS=$as_save_IFS |
| 7560 | test -z "$as_dir" && as_dir=. |
| 7561 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7563 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7565 | break 2 |
| 7566 | fi |
| 7567 | done |
| 7568 | done |
| 7569 | IFS=$as_save_IFS |
| 7570 | |
| 7571 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7572 | ;; |
| 7573 | esac |
| 7574 | fi |
| 7575 | GROFF=$ac_cv_path_GROFF |
| 7576 | if test -n "$GROFF"; then |
| 7577 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7578 | echo "${ECHO_T}$GROFF" >&6; } |
| 7579 | else |
| 7580 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7581 | echo "${ECHO_T}no" >&6; } |
| 7582 | fi |
| 7583 | |
| 7584 | |
| 7585 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7586 | set dummy gzip; ac_word=$2 |
| 7587 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7588 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7589 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7591 | else |
| 7592 | case $GZIP in |
| 7593 | [\\/]* | ?:[\\/]*) |
| 7594 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7595 | ;; |
| 7596 | *) |
| 7597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7598 | for as_dir in $PATH |
| 7599 | do |
| 7600 | IFS=$as_save_IFS |
| 7601 | test -z "$as_dir" && as_dir=. |
| 7602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7604 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7606 | break 2 |
| 7607 | fi |
| 7608 | done |
| 7609 | done |
| 7610 | IFS=$as_save_IFS |
| 7611 | |
| 7612 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7613 | ;; |
| 7614 | esac |
| 7615 | fi |
| 7616 | GZIP=$ac_cv_path_GZIP |
| 7617 | if test -n "$GZIP"; then |
| 7618 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7619 | echo "${ECHO_T}$GZIP" >&6; } |
| 7620 | else |
| 7621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7622 | echo "${ECHO_T}no" >&6; } |
| 7623 | fi |
| 7624 | |
| 7625 | |
| 7626 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7627 | set dummy pod2html; ac_word=$2 |
| 7628 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7630 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7632 | else |
| 7633 | case $POD2HTML in |
| 7634 | [\\/]* | ?:[\\/]*) |
| 7635 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7636 | ;; |
| 7637 | *) |
| 7638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7639 | for as_dir in $PATH |
| 7640 | do |
| 7641 | IFS=$as_save_IFS |
| 7642 | test -z "$as_dir" && as_dir=. |
| 7643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7645 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7647 | break 2 |
| 7648 | fi |
| 7649 | done |
| 7650 | done |
| 7651 | IFS=$as_save_IFS |
| 7652 | |
| 7653 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7654 | ;; |
| 7655 | esac |
| 7656 | fi |
| 7657 | POD2HTML=$ac_cv_path_POD2HTML |
| 7658 | if test -n "$POD2HTML"; then |
| 7659 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7660 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7661 | else |
| 7662 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7663 | echo "${ECHO_T}no" >&6; } |
| 7664 | fi |
| 7665 | |
| 7666 | |
| 7667 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7668 | set dummy pod2man; ac_word=$2 |
| 7669 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7671 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7673 | else |
| 7674 | case $POD2MAN in |
| 7675 | [\\/]* | ?:[\\/]*) |
| 7676 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7677 | ;; |
| 7678 | *) |
| 7679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7680 | for as_dir in $PATH |
| 7681 | do |
| 7682 | IFS=$as_save_IFS |
| 7683 | test -z "$as_dir" && as_dir=. |
| 7684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7686 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7688 | break 2 |
| 7689 | fi |
| 7690 | done |
| 7691 | done |
| 7692 | IFS=$as_save_IFS |
| 7693 | |
| 7694 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7695 | ;; |
| 7696 | esac |
| 7697 | fi |
| 7698 | POD2MAN=$ac_cv_path_POD2MAN |
| 7699 | if test -n "$POD2MAN"; then |
| 7700 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7701 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7702 | else |
| 7703 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7704 | echo "${ECHO_T}no" >&6; } |
| 7705 | fi |
| 7706 | |
| 7707 | |
| 7708 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7709 | set dummy runtest; ac_word=$2 |
| 7710 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7712 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7714 | else |
| 7715 | case $RUNTEST in |
| 7716 | [\\/]* | ?:[\\/]*) |
| 7717 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7718 | ;; |
| 7719 | *) |
| 7720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7721 | for as_dir in $PATH |
| 7722 | do |
| 7723 | IFS=$as_save_IFS |
| 7724 | test -z "$as_dir" && as_dir=. |
| 7725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7727 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7729 | break 2 |
| 7730 | fi |
| 7731 | done |
| 7732 | done |
| 7733 | IFS=$as_save_IFS |
| 7734 | |
| 7735 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7736 | ;; |
| 7737 | esac |
| 7738 | fi |
| 7739 | RUNTEST=$ac_cv_path_RUNTEST |
| 7740 | if test -n "$RUNTEST"; then |
| 7741 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7742 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7743 | else |
| 7744 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7745 | echo "${ECHO_T}no" >&6; } |
| 7746 | fi |
| 7747 | |
| 7748 | |
| 7749 | |
| 7750 | no_itcl=true |
| 7751 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7752 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7753 | |
| 7754 | # Check whether --with-tclinclude was given. |
| 7755 | if test "${with_tclinclude+set}" = set; then |
| 7756 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7757 | else |
| 7758 | with_tclinclude='' |
| 7759 | fi |
| 7760 | |
| 7761 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7763 | else |
| 7764 | |
| 7765 | if test x"${with_tclinclude}" != x ; then |
| 7766 | if test -f ${with_tclinclude}/tclsh ; then |
| 7767 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7768 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7769 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7770 | else |
| 7771 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7772 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7773 | { (exit 1); exit 1; }; } |
| 7774 | fi |
| 7775 | fi |
| 7776 | |
| 7777 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7778 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7779 | echo "${ECHO_T}none" >&6; } |
| 7780 | 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 |
| 7781 | do |
| 7782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7783 | set dummy $ac_prog; ac_word=$2 |
| 7784 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7785 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7786 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7788 | else |
| 7789 | case $TCLSH in |
| 7790 | [\\/]* | ?:[\\/]*) |
| 7791 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7792 | ;; |
| 7793 | *) |
| 7794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7795 | for as_dir in $PATH |
| 7796 | do |
| 7797 | IFS=$as_save_IFS |
| 7798 | test -z "$as_dir" && as_dir=. |
| 7799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7801 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7803 | break 2 |
| 7804 | fi |
| 7805 | done |
| 7806 | done |
| 7807 | IFS=$as_save_IFS |
| 7808 | |
| 7809 | ;; |
| 7810 | esac |
| 7811 | fi |
| 7812 | TCLSH=$ac_cv_path_TCLSH |
| 7813 | if test -n "$TCLSH"; then |
| 7814 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7815 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7816 | else |
| 7817 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7818 | echo "${ECHO_T}no" >&6; } |
| 7819 | fi |
| 7820 | |
| 7821 | |
| 7822 | test -n "$TCLSH" && break |
| 7823 | done |
| 7824 | |
| 7825 | if test x"${TCLSH}" = x ; then |
| 7826 | ac_cv_path_tclsh=''; |
| 7827 | else |
| 7828 | ac_cv_path_tclsh="${TCLSH}"; |
| 7829 | fi |
| 7830 | else |
| 7831 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7832 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7833 | TCLSH="${ac_cv_path_tclsh}" |
| 7834 | |
| 7835 | fi |
| 7836 | |
| 7837 | fi |
| 7838 | |
| 7839 | # Extract the first word of "zip", so it can be a program name with args. |
| 7840 | set dummy zip; ac_word=$2 |
| 7841 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7843 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7845 | else |
| 7846 | case $ZIP in |
| 7847 | [\\/]* | ?:[\\/]*) |
| 7848 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7849 | ;; |
| 7850 | *) |
| 7851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7852 | for as_dir in $PATH |
| 7853 | do |
| 7854 | IFS=$as_save_IFS |
| 7855 | test -z "$as_dir" && as_dir=. |
| 7856 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7858 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7859 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7860 | break 2 |
| 7861 | fi |
| 7862 | done |
| 7863 | done |
| 7864 | IFS=$as_save_IFS |
| 7865 | |
| 7866 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7867 | ;; |
| 7868 | esac |
| 7869 | fi |
| 7870 | ZIP=$ac_cv_path_ZIP |
| 7871 | if test -n "$ZIP"; then |
| 7872 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7873 | echo "${ECHO_T}$ZIP" >&6; } |
| 7874 | else |
| 7875 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7876 | echo "${ECHO_T}no" >&6; } |
| 7877 | fi |
| 7878 | |
| 7879 | |
| 7880 | |
| 7881 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7882 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7883 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7885 | else |
| 7886 | ac_ext=c |
| 7887 | ac_cpp='$CPP $CPPFLAGS' |
| 7888 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7889 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7890 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7891 | |
| 7892 | oldcflags="$CFLAGS" |
| 7893 | CFLAGS="$CFLAGS -Wl,-R." |
| 7894 | cat >conftest.$ac_ext <<_ACEOF |
| 7895 | /* confdefs.h. */ |
| 7896 | _ACEOF |
| 7897 | cat confdefs.h >>conftest.$ac_ext |
| 7898 | cat >>conftest.$ac_ext <<_ACEOF |
| 7899 | /* end confdefs.h. */ |
| 7900 | |
| 7901 | int |
| 7902 | main () |
| 7903 | { |
| 7904 | int main() { return 0; } |
| 7905 | ; |
| 7906 | return 0; |
| 7907 | } |
| 7908 | _ACEOF |
| 7909 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7910 | if { (ac_try="$ac_link" |
| 7911 | case "(($ac_try" in |
| 7912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7913 | *) ac_try_echo=$ac_try;; |
| 7914 | esac |
| 7915 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7916 | (eval "$ac_link") 2>conftest.er1 |
| 7917 | ac_status=$? |
| 7918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7919 | rm -f conftest.er1 |
| 7920 | cat conftest.err >&5 |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); } && |
| 7923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7924 | { (case "(($ac_try" in |
| 7925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7926 | *) ac_try_echo=$ac_try;; |
| 7927 | esac |
| 7928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7929 | (eval "$ac_try") 2>&5 |
| 7930 | ac_status=$? |
| 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7932 | (exit $ac_status); }; } && |
| 7933 | { ac_try='test -s conftest$ac_exeext' |
| 7934 | { (case "(($ac_try" in |
| 7935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7936 | *) ac_try_echo=$ac_try;; |
| 7937 | esac |
| 7938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7939 | (eval "$ac_try") 2>&5 |
| 7940 | ac_status=$? |
| 7941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7942 | (exit $ac_status); }; }; then |
| 7943 | llvm_cv_link_use_r=yes |
| 7944 | else |
| 7945 | echo "$as_me: failed program was:" >&5 |
| 7946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7947 | |
| 7948 | llvm_cv_link_use_r=no |
| 7949 | fi |
| 7950 | |
| 7951 | rm -f core conftest.err conftest.$ac_objext \ |
| 7952 | conftest$ac_exeext conftest.$ac_ext |
| 7953 | CFLAGS="$oldcflags" |
| 7954 | ac_ext=c |
| 7955 | ac_cpp='$CPP $CPPFLAGS' |
| 7956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7959 | |
| 7960 | |
| 7961 | fi |
| 7962 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7963 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7964 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7965 | |
| 7966 | cat >>confdefs.h <<\_ACEOF |
| 7967 | #define HAVE_LINK_R 1 |
| 7968 | _ACEOF |
| 7969 | |
| 7970 | fi |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | |
| 7975 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7976 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7977 | if test "${ac_cv_c_const+set}" = set; then |
| 7978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7979 | else |
| 7980 | cat >conftest.$ac_ext <<_ACEOF |
| 7981 | /* confdefs.h. */ |
| 7982 | _ACEOF |
| 7983 | cat confdefs.h >>conftest.$ac_ext |
| 7984 | cat >>conftest.$ac_ext <<_ACEOF |
| 7985 | /* end confdefs.h. */ |
| 7986 | |
| 7987 | int |
| 7988 | main () |
| 7989 | { |
| 7990 | /* FIXME: Include the comments suggested by Paul. */ |
| 7991 | #ifndef __cplusplus |
| 7992 | /* Ultrix mips cc rejects this. */ |
| 7993 | typedef int charset[2]; |
| 7994 | const charset x; |
| 7995 | /* SunOS 4.1.1 cc rejects this. */ |
| 7996 | char const *const *ccp; |
| 7997 | char **p; |
| 7998 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7999 | struct point {int x, y;}; |
| 8000 | static struct point const zero = {0,0}; |
| 8001 | /* AIX XL C 1.02.0.0 rejects this. |
| 8002 | It does not let you subtract one const X* pointer from another in |
| 8003 | an arm of an if-expression whose if-part is not a constant |
| 8004 | expression */ |
| 8005 | const char *g = "string"; |
| 8006 | ccp = &g + (g ? g-g : 0); |
| 8007 | /* HPUX 7.0 cc rejects these. */ |
| 8008 | ++ccp; |
| 8009 | p = (char**) ccp; |
| 8010 | ccp = (char const *const *) p; |
| 8011 | { /* SCO 3.2v4 cc rejects this. */ |
| 8012 | char *t; |
| 8013 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8014 | |
| 8015 | *t++ = 0; |
| 8016 | if (s) return 0; |
| 8017 | } |
| 8018 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8019 | int x[] = {25, 17}; |
| 8020 | const int *foo = &x[0]; |
| 8021 | ++foo; |
| 8022 | } |
| 8023 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8024 | typedef const int *iptr; |
| 8025 | iptr p = 0; |
| 8026 | ++p; |
| 8027 | } |
| 8028 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8029 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8030 | struct s { int j; const int *ap[3]; }; |
| 8031 | struct s *b; b->j = 5; |
| 8032 | } |
| 8033 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8034 | const int foo = 10; |
| 8035 | if (!foo) return 0; |
| 8036 | } |
| 8037 | return !x[0] && !zero.x; |
| 8038 | #endif |
| 8039 | |
| 8040 | ; |
| 8041 | return 0; |
| 8042 | } |
| 8043 | _ACEOF |
| 8044 | rm -f conftest.$ac_objext |
| 8045 | if { (ac_try="$ac_compile" |
| 8046 | case "(($ac_try" in |
| 8047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8048 | *) ac_try_echo=$ac_try;; |
| 8049 | esac |
| 8050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8051 | (eval "$ac_compile") 2>conftest.er1 |
| 8052 | ac_status=$? |
| 8053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8054 | rm -f conftest.er1 |
| 8055 | cat conftest.err >&5 |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); } && |
| 8058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8059 | { (case "(($ac_try" in |
| 8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8061 | *) ac_try_echo=$ac_try;; |
| 8062 | esac |
| 8063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8064 | (eval "$ac_try") 2>&5 |
| 8065 | ac_status=$? |
| 8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8067 | (exit $ac_status); }; } && |
| 8068 | { ac_try='test -s conftest.$ac_objext' |
| 8069 | { (case "(($ac_try" in |
| 8070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8071 | *) ac_try_echo=$ac_try;; |
| 8072 | esac |
| 8073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8074 | (eval "$ac_try") 2>&5 |
| 8075 | ac_status=$? |
| 8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8077 | (exit $ac_status); }; }; then |
| 8078 | ac_cv_c_const=yes |
| 8079 | else |
| 8080 | echo "$as_me: failed program was:" >&5 |
| 8081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8082 | |
| 8083 | ac_cv_c_const=no |
| 8084 | fi |
| 8085 | |
| 8086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8087 | fi |
| 8088 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8089 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8090 | if test $ac_cv_c_const = no; then |
| 8091 | |
| 8092 | cat >>confdefs.h <<\_ACEOF |
| 8093 | #define const |
| 8094 | _ACEOF |
| 8095 | |
| 8096 | fi |
| 8097 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8098 | |
| 8099 | |
| 8100 | |
| 8101 | |
| 8102 | |
| 8103 | ac_header_dirent=no |
| 8104 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8105 | 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] | 8106 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8107 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8108 | 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] | 8109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8110 | else |
| 8111 | cat >conftest.$ac_ext <<_ACEOF |
| 8112 | /* confdefs.h. */ |
| 8113 | _ACEOF |
| 8114 | cat confdefs.h >>conftest.$ac_ext |
| 8115 | cat >>conftest.$ac_ext <<_ACEOF |
| 8116 | /* end confdefs.h. */ |
| 8117 | #include <sys/types.h> |
| 8118 | #include <$ac_hdr> |
| 8119 | |
| 8120 | int |
| 8121 | main () |
| 8122 | { |
| 8123 | if ((DIR *) 0) |
| 8124 | return 0; |
| 8125 | ; |
| 8126 | return 0; |
| 8127 | } |
| 8128 | _ACEOF |
| 8129 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8130 | if { (ac_try="$ac_compile" |
| 8131 | case "(($ac_try" in |
| 8132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8133 | *) ac_try_echo=$ac_try;; |
| 8134 | esac |
| 8135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8136 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8137 | ac_status=$? |
| 8138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8139 | rm -f conftest.er1 |
| 8140 | cat conftest.err >&5 |
| 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8142 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8144 | { (case "(($ac_try" in |
| 8145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8146 | *) ac_try_echo=$ac_try;; |
| 8147 | esac |
| 8148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8149 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8150 | ac_status=$? |
| 8151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8152 | (exit $ac_status); }; } && |
| 8153 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8154 | { (case "(($ac_try" in |
| 8155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8156 | *) ac_try_echo=$ac_try;; |
| 8157 | esac |
| 8158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8159 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8160 | ac_status=$? |
| 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); }; }; then |
| 8163 | eval "$as_ac_Header=yes" |
| 8164 | else |
| 8165 | echo "$as_me: failed program was:" >&5 |
| 8166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8167 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8168 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8170 | |
| 8171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8172 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8175 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8176 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8177 | cat >>confdefs.h <<_ACEOF |
| 8178 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8179 | _ACEOF |
| 8180 | |
| 8181 | ac_header_dirent=$ac_hdr; break |
| 8182 | fi |
| 8183 | |
| 8184 | done |
| 8185 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8186 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8187 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8188 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8189 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8191 | else |
| 8192 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8193 | cat >conftest.$ac_ext <<_ACEOF |
| 8194 | /* confdefs.h. */ |
| 8195 | _ACEOF |
| 8196 | cat confdefs.h >>conftest.$ac_ext |
| 8197 | cat >>conftest.$ac_ext <<_ACEOF |
| 8198 | /* end confdefs.h. */ |
| 8199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | /* Override any GCC internal prototype to avoid an error. |
| 8201 | Use char because int might match the return type of a GCC |
| 8202 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8203 | #ifdef __cplusplus |
| 8204 | extern "C" |
| 8205 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8206 | char opendir (); |
| 8207 | int |
| 8208 | main () |
| 8209 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8210 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8211 | ; |
| 8212 | return 0; |
| 8213 | } |
| 8214 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8215 | for ac_lib in '' dir; do |
| 8216 | if test -z "$ac_lib"; then |
| 8217 | ac_res="none required" |
| 8218 | else |
| 8219 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8221 | fi |
| 8222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8223 | if { (ac_try="$ac_link" |
| 8224 | case "(($ac_try" in |
| 8225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8226 | *) ac_try_echo=$ac_try;; |
| 8227 | esac |
| 8228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8229 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8230 | ac_status=$? |
| 8231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8232 | rm -f conftest.er1 |
| 8233 | cat conftest.err >&5 |
| 8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8235 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8237 | { (case "(($ac_try" in |
| 8238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8239 | *) ac_try_echo=$ac_try;; |
| 8240 | esac |
| 8241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8242 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8243 | ac_status=$? |
| 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8245 | (exit $ac_status); }; } && |
| 8246 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8247 | { (case "(($ac_try" in |
| 8248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8249 | *) ac_try_echo=$ac_try;; |
| 8250 | esac |
| 8251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8252 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8253 | ac_status=$? |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8256 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8257 | else |
| 8258 | echo "$as_me: failed program was:" >&5 |
| 8259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8260 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8261 | |
| 8262 | fi |
| 8263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8264 | rm -f core conftest.err conftest.$ac_objext \ |
| 8265 | conftest$ac_exeext |
| 8266 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8267 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8268 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8269 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8270 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8271 | : |
| 8272 | else |
| 8273 | ac_cv_search_opendir=no |
| 8274 | fi |
| 8275 | rm conftest.$ac_ext |
| 8276 | LIBS=$ac_func_search_save_LIBS |
| 8277 | fi |
| 8278 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8279 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8280 | ac_res=$ac_cv_search_opendir |
| 8281 | if test "$ac_res" != no; then |
| 8282 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8283 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8284 | fi |
| 8285 | |
| 8286 | else |
| 8287 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8288 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8289 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8291 | else |
| 8292 | ac_func_search_save_LIBS=$LIBS |
| 8293 | cat >conftest.$ac_ext <<_ACEOF |
| 8294 | /* confdefs.h. */ |
| 8295 | _ACEOF |
| 8296 | cat confdefs.h >>conftest.$ac_ext |
| 8297 | cat >>conftest.$ac_ext <<_ACEOF |
| 8298 | /* end confdefs.h. */ |
| 8299 | |
| 8300 | /* Override any GCC internal prototype to avoid an error. |
| 8301 | Use char because int might match the return type of a GCC |
| 8302 | builtin and then its argument prototype would still apply. */ |
| 8303 | #ifdef __cplusplus |
| 8304 | extern "C" |
| 8305 | #endif |
| 8306 | char opendir (); |
| 8307 | int |
| 8308 | main () |
| 8309 | { |
| 8310 | return opendir (); |
| 8311 | ; |
| 8312 | return 0; |
| 8313 | } |
| 8314 | _ACEOF |
| 8315 | for ac_lib in '' x; do |
| 8316 | if test -z "$ac_lib"; then |
| 8317 | ac_res="none required" |
| 8318 | else |
| 8319 | ac_res=-l$ac_lib |
| 8320 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8321 | fi |
| 8322 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8323 | if { (ac_try="$ac_link" |
| 8324 | case "(($ac_try" in |
| 8325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8326 | *) ac_try_echo=$ac_try;; |
| 8327 | esac |
| 8328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8329 | (eval "$ac_link") 2>conftest.er1 |
| 8330 | ac_status=$? |
| 8331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8332 | rm -f conftest.er1 |
| 8333 | cat conftest.err >&5 |
| 8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8335 | (exit $ac_status); } && |
| 8336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8337 | { (case "(($ac_try" in |
| 8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8339 | *) ac_try_echo=$ac_try;; |
| 8340 | esac |
| 8341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8342 | (eval "$ac_try") 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); }; } && |
| 8346 | { ac_try='test -s conftest$ac_exeext' |
| 8347 | { (case "(($ac_try" in |
| 8348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8349 | *) ac_try_echo=$ac_try;; |
| 8350 | esac |
| 8351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8352 | (eval "$ac_try") 2>&5 |
| 8353 | ac_status=$? |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); }; }; then |
| 8356 | ac_cv_search_opendir=$ac_res |
| 8357 | else |
| 8358 | echo "$as_me: failed program was:" >&5 |
| 8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8360 | |
| 8361 | |
| 8362 | fi |
| 8363 | |
| 8364 | rm -f core conftest.err conftest.$ac_objext \ |
| 8365 | conftest$ac_exeext |
| 8366 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8367 | break |
| 8368 | fi |
| 8369 | done |
| 8370 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8371 | : |
| 8372 | else |
| 8373 | ac_cv_search_opendir=no |
| 8374 | fi |
| 8375 | rm conftest.$ac_ext |
| 8376 | LIBS=$ac_func_search_save_LIBS |
| 8377 | fi |
| 8378 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8379 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8380 | ac_res=$ac_cv_search_opendir |
| 8381 | if test "$ac_res" != no; then |
| 8382 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8383 | |
| 8384 | fi |
| 8385 | |
| 8386 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8387 | |
| 8388 | |
| 8389 | for ac_header in dlfcn.h |
| 8390 | do |
| 8391 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8393 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8395 | 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] | 8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8397 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8400 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8401 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8402 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8403 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8404 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8405 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8406 | /* confdefs.h. */ |
| 8407 | _ACEOF |
| 8408 | cat confdefs.h >>conftest.$ac_ext |
| 8409 | cat >>conftest.$ac_ext <<_ACEOF |
| 8410 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8411 | $ac_includes_default |
| 8412 | #include <$ac_header> |
| 8413 | _ACEOF |
| 8414 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8415 | if { (ac_try="$ac_compile" |
| 8416 | case "(($ac_try" in |
| 8417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8418 | *) ac_try_echo=$ac_try;; |
| 8419 | esac |
| 8420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8421 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8422 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8424 | rm -f conftest.er1 |
| 8425 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8427 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8429 | { (case "(($ac_try" in |
| 8430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8431 | *) ac_try_echo=$ac_try;; |
| 8432 | esac |
| 8433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8434 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8435 | ac_status=$? |
| 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); }; } && |
| 8438 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8439 | { (case "(($ac_try" in |
| 8440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8441 | *) ac_try_echo=$ac_try;; |
| 8442 | esac |
| 8443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8444 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8445 | ac_status=$? |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8448 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8449 | else |
| 8450 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8453 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8455 | |
| 8456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8457 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8458 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8459 | |
| 8460 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8463 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8464 | /* confdefs.h. */ |
| 8465 | _ACEOF |
| 8466 | cat confdefs.h >>conftest.$ac_ext |
| 8467 | cat >>conftest.$ac_ext <<_ACEOF |
| 8468 | /* end confdefs.h. */ |
| 8469 | #include <$ac_header> |
| 8470 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8471 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8472 | case "(($ac_try" in |
| 8473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8474 | *) ac_try_echo=$ac_try;; |
| 8475 | esac |
| 8476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8477 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8478 | ac_status=$? |
| 8479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8480 | rm -f conftest.er1 |
| 8481 | cat conftest.err >&5 |
| 8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8483 | (exit $ac_status); } >/dev/null; then |
| 8484 | if test -s conftest.err; then |
| 8485 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8487 | else |
| 8488 | ac_cpp_err= |
| 8489 | fi |
| 8490 | else |
| 8491 | ac_cpp_err=yes |
| 8492 | fi |
| 8493 | if test -z "$ac_cpp_err"; then |
| 8494 | ac_header_preproc=yes |
| 8495 | else |
| 8496 | echo "$as_me: failed program was:" >&5 |
| 8497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8498 | |
| 8499 | ac_header_preproc=no |
| 8500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8501 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8502 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8503 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8504 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8505 | |
| 8506 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8508 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8510 | 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] | 8511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8513 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8514 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8515 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8523 | 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] | 8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8525 | 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] | 8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8527 | 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] | 8528 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8529 | ## ----------------------------------- ## |
| 8530 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8531 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8532 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8533 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8534 | ;; |
| 8535 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8536 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8538 | 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] | 8539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8540 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8541 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8542 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8543 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8544 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8545 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8546 | |
| 8547 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8549 | cat >>confdefs.h <<_ACEOF |
| 8550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8551 | _ACEOF |
| 8552 | |
| 8553 | fi |
| 8554 | |
| 8555 | done |
| 8556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8557 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8558 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8559 | enableval=$enable_ltdl_install; |
| 8560 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8561 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8562 | |
| 8563 | |
| 8564 | |
| 8565 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8566 | INSTALL_LTDL_TRUE= |
| 8567 | INSTALL_LTDL_FALSE='#' |
| 8568 | else |
| 8569 | INSTALL_LTDL_TRUE='#' |
| 8570 | INSTALL_LTDL_FALSE= |
| 8571 | fi |
| 8572 | |
| 8573 | |
| 8574 | |
| 8575 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8576 | CONVENIENCE_LTDL_TRUE= |
| 8577 | CONVENIENCE_LTDL_FALSE='#' |
| 8578 | else |
| 8579 | CONVENIENCE_LTDL_TRUE='#' |
| 8580 | CONVENIENCE_LTDL_FALSE= |
| 8581 | fi |
| 8582 | |
| 8583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8584 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8585 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8586 | library_names_spec= |
| 8587 | libname_spec='lib$name' |
| 8588 | soname_spec= |
| 8589 | shrext_cmds=".so" |
| 8590 | postinstall_cmds= |
| 8591 | postuninstall_cmds= |
| 8592 | finish_cmds= |
| 8593 | finish_eval= |
| 8594 | shlibpath_var= |
| 8595 | shlibpath_overrides_runpath=unknown |
| 8596 | version_type=none |
| 8597 | dynamic_linker="$host_os ld.so" |
| 8598 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8599 | if test "$GCC" = yes; then |
| 8600 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8601 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8602 | # if the path contains ";" then we assume it to be the separator |
| 8603 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8604 | # assumed that no part of a normal pathname contains ";" but that should |
| 8605 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8606 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8607 | else |
| 8608 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8609 | fi |
| 8610 | else |
| 8611 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8612 | fi |
| 8613 | need_lib_prefix=unknown |
| 8614 | hardcode_into_libs=no |
| 8615 | |
| 8616 | # when you set need_version to no, make sure it does not cause -set_version |
| 8617 | # flags to be left without arguments |
| 8618 | need_version=unknown |
| 8619 | |
| 8620 | case $host_os in |
| 8621 | aix3*) |
| 8622 | version_type=linux |
| 8623 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8624 | shlibpath_var=LIBPATH |
| 8625 | |
| 8626 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8627 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8628 | ;; |
| 8629 | |
| 8630 | aix4* | aix5*) |
| 8631 | version_type=linux |
| 8632 | need_lib_prefix=no |
| 8633 | need_version=no |
| 8634 | hardcode_into_libs=yes |
| 8635 | if test "$host_cpu" = ia64; then |
| 8636 | # AIX 5 supports IA64 |
| 8637 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8638 | shlibpath_var=LD_LIBRARY_PATH |
| 8639 | else |
| 8640 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8641 | # for dependence libraries. The import file would start with |
| 8642 | # the line `#! .'. This would cause the generated library to |
| 8643 | # depend on `.', always an invalid library. This was fixed in |
| 8644 | # development snapshots of GCC prior to 3.0. |
| 8645 | case $host_os in |
| 8646 | aix4 | aix4.[01] | aix4.[01].*) |
| 8647 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8648 | echo ' yes ' |
| 8649 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8650 | : |
| 8651 | else |
| 8652 | can_build_shared=no |
| 8653 | fi |
| 8654 | ;; |
| 8655 | esac |
| 8656 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8657 | # soname into executable. Probably we can add versioning support to |
| 8658 | # collect2, so additional links can be useful in future. |
| 8659 | if test "$aix_use_runtimelinking" = yes; then |
| 8660 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8661 | # instead of lib<name>.a to let people know that these are not |
| 8662 | # typical AIX shared libraries. |
| 8663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8664 | else |
| 8665 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8666 | # and later when we are not doing run time linking. |
| 8667 | library_names_spec='${libname}${release}.a $libname.a' |
| 8668 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8669 | fi |
| 8670 | shlibpath_var=LIBPATH |
| 8671 | fi |
| 8672 | ;; |
| 8673 | |
| 8674 | amigaos*) |
| 8675 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8676 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8677 | 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' |
| 8678 | ;; |
| 8679 | |
| 8680 | beos*) |
| 8681 | library_names_spec='${libname}${shared_ext}' |
| 8682 | dynamic_linker="$host_os ld.so" |
| 8683 | shlibpath_var=LIBRARY_PATH |
| 8684 | ;; |
| 8685 | |
| 8686 | bsdi[45]*) |
| 8687 | version_type=linux |
| 8688 | need_version=no |
| 8689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8690 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8691 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8692 | shlibpath_var=LD_LIBRARY_PATH |
| 8693 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8694 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8695 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8696 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8697 | # libtool to hard-code these into programs |
| 8698 | ;; |
| 8699 | |
| 8700 | cygwin* | mingw* | pw32*) |
| 8701 | version_type=windows |
| 8702 | shrext_cmds=".dll" |
| 8703 | need_version=no |
| 8704 | need_lib_prefix=no |
| 8705 | |
| 8706 | case $GCC,$host_os in |
| 8707 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8708 | library_names_spec='$libname.dll.a' |
| 8709 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8710 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8711 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8712 | dldir=$destdir/`dirname \$dlpath`~ |
| 8713 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8714 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8715 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8716 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8717 | dlpath=$dir/\$dldll~ |
| 8718 | $rm \$dlpath' |
| 8719 | shlibpath_overrides_runpath=yes |
| 8720 | |
| 8721 | case $host_os in |
| 8722 | cygwin*) |
| 8723 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8724 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8725 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8726 | ;; |
| 8727 | mingw*) |
| 8728 | # MinGW DLLs use traditional 'lib' prefix |
| 8729 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8730 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8731 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8732 | # It is most probably a Windows format PATH printed by |
| 8733 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8734 | # path with ; separators, and with drive letters. We can handle the |
| 8735 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8736 | # especially as we might pass files found there to a mingw objdump, |
| 8737 | # which wouldn't understand a cygwinified path. Ahh. |
| 8738 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8739 | else |
| 8740 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8741 | fi |
| 8742 | ;; |
| 8743 | pw32*) |
| 8744 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8745 | 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] | 8746 | ;; |
| 8747 | esac |
| 8748 | ;; |
| 8749 | |
| 8750 | *) |
| 8751 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8752 | ;; |
| 8753 | esac |
| 8754 | dynamic_linker='Win32 ld.exe' |
| 8755 | # FIXME: first we should search . and the directory the executable is in |
| 8756 | shlibpath_var=PATH |
| 8757 | ;; |
| 8758 | |
| 8759 | darwin* | rhapsody*) |
| 8760 | dynamic_linker="$host_os dyld" |
| 8761 | version_type=darwin |
| 8762 | need_lib_prefix=no |
| 8763 | need_version=no |
| 8764 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8765 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8766 | shlibpath_overrides_runpath=yes |
| 8767 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8768 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8769 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8770 | if test "$GCC" = yes; then |
| 8771 | 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"` |
| 8772 | else |
| 8773 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8774 | fi |
| 8775 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8776 | ;; |
| 8777 | |
| 8778 | dgux*) |
| 8779 | version_type=linux |
| 8780 | need_lib_prefix=no |
| 8781 | need_version=no |
| 8782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8783 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8784 | shlibpath_var=LD_LIBRARY_PATH |
| 8785 | ;; |
| 8786 | |
| 8787 | freebsd1*) |
| 8788 | dynamic_linker=no |
| 8789 | ;; |
| 8790 | |
| 8791 | kfreebsd*-gnu) |
| 8792 | version_type=linux |
| 8793 | need_lib_prefix=no |
| 8794 | need_version=no |
| 8795 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8796 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8797 | shlibpath_var=LD_LIBRARY_PATH |
| 8798 | shlibpath_overrides_runpath=no |
| 8799 | hardcode_into_libs=yes |
| 8800 | dynamic_linker='GNU ld.so' |
| 8801 | ;; |
| 8802 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8803 | freebsd* | dragonfly*) |
| 8804 | # DragonFly does not have aout. When/if they implement a new |
| 8805 | # versioning mechanism, adjust this. |
| 8806 | if test -x /usr/bin/objformat; then |
| 8807 | objformat=`/usr/bin/objformat` |
| 8808 | else |
| 8809 | case $host_os in |
| 8810 | freebsd[123]*) objformat=aout ;; |
| 8811 | *) objformat=elf ;; |
| 8812 | esac |
| 8813 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8814 | version_type=freebsd-$objformat |
| 8815 | case $version_type in |
| 8816 | freebsd-elf*) |
| 8817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8818 | need_version=no |
| 8819 | need_lib_prefix=no |
| 8820 | ;; |
| 8821 | freebsd-*) |
| 8822 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8823 | need_version=yes |
| 8824 | ;; |
| 8825 | esac |
| 8826 | shlibpath_var=LD_LIBRARY_PATH |
| 8827 | case $host_os in |
| 8828 | freebsd2*) |
| 8829 | shlibpath_overrides_runpath=yes |
| 8830 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8831 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8832 | shlibpath_overrides_runpath=yes |
| 8833 | hardcode_into_libs=yes |
| 8834 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8835 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8836 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8837 | shlibpath_overrides_runpath=no |
| 8838 | hardcode_into_libs=yes |
| 8839 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8840 | freebsd*) # from 4.6 on |
| 8841 | shlibpath_overrides_runpath=yes |
| 8842 | hardcode_into_libs=yes |
| 8843 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8844 | esac |
| 8845 | ;; |
| 8846 | |
| 8847 | gnu*) |
| 8848 | version_type=linux |
| 8849 | need_lib_prefix=no |
| 8850 | need_version=no |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 8854 | hardcode_into_libs=yes |
| 8855 | ;; |
| 8856 | |
| 8857 | hpux9* | hpux10* | hpux11*) |
| 8858 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8859 | # link against other versions. |
| 8860 | version_type=sunos |
| 8861 | need_lib_prefix=no |
| 8862 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8863 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8864 | ia64*) |
| 8865 | shrext_cmds='.so' |
| 8866 | hardcode_into_libs=yes |
| 8867 | dynamic_linker="$host_os dld.so" |
| 8868 | shlibpath_var=LD_LIBRARY_PATH |
| 8869 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8871 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8872 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8873 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8874 | else |
| 8875 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8876 | fi |
| 8877 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8878 | ;; |
| 8879 | hppa*64*) |
| 8880 | shrext_cmds='.sl' |
| 8881 | hardcode_into_libs=yes |
| 8882 | dynamic_linker="$host_os dld.sl" |
| 8883 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8884 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8886 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8887 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8888 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8889 | ;; |
| 8890 | *) |
| 8891 | shrext_cmds='.sl' |
| 8892 | dynamic_linker="$host_os dld.sl" |
| 8893 | shlibpath_var=SHLIB_PATH |
| 8894 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8896 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8897 | ;; |
| 8898 | esac |
| 8899 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8900 | postinstall_cmds='chmod 555 $lib' |
| 8901 | ;; |
| 8902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8903 | interix3*) |
| 8904 | version_type=linux |
| 8905 | need_lib_prefix=no |
| 8906 | need_version=no |
| 8907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8909 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8910 | shlibpath_var=LD_LIBRARY_PATH |
| 8911 | shlibpath_overrides_runpath=no |
| 8912 | hardcode_into_libs=yes |
| 8913 | ;; |
| 8914 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8915 | irix5* | irix6* | nonstopux*) |
| 8916 | case $host_os in |
| 8917 | nonstopux*) version_type=nonstopux ;; |
| 8918 | *) |
| 8919 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8920 | version_type=linux |
| 8921 | else |
| 8922 | version_type=irix |
| 8923 | fi ;; |
| 8924 | esac |
| 8925 | need_lib_prefix=no |
| 8926 | need_version=no |
| 8927 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8929 | case $host_os in |
| 8930 | irix5* | nonstopux*) |
| 8931 | libsuff= shlibsuff= |
| 8932 | ;; |
| 8933 | *) |
| 8934 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8935 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8936 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8937 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8938 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8939 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8940 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8941 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8942 | esac |
| 8943 | ;; |
| 8944 | esac |
| 8945 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8946 | shlibpath_overrides_runpath=no |
| 8947 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8948 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8949 | hardcode_into_libs=yes |
| 8950 | ;; |
| 8951 | |
| 8952 | # No shared lib support for Linux oldld, aout, or coff. |
| 8953 | linux*oldld* | linux*aout* | linux*coff*) |
| 8954 | dynamic_linker=no |
| 8955 | ;; |
| 8956 | |
| 8957 | # This must be Linux ELF. |
| 8958 | linux*) |
| 8959 | version_type=linux |
| 8960 | need_lib_prefix=no |
| 8961 | need_version=no |
| 8962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8963 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8964 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8965 | shlibpath_var=LD_LIBRARY_PATH |
| 8966 | shlibpath_overrides_runpath=no |
| 8967 | # This implies no fast_install, which is unacceptable. |
| 8968 | # Some rework will be needed to allow for fast_install |
| 8969 | # before this can be enabled. |
| 8970 | hardcode_into_libs=yes |
| 8971 | |
| 8972 | # Append ld.so.conf contents to the search path |
| 8973 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8974 | 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] | 8975 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8976 | fi |
| 8977 | |
| 8978 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8979 | # powerpc, because MkLinux only supported shared libraries with the |
| 8980 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8981 | # most powerpc-linux boxes support dynamic linking these days and |
| 8982 | # people can always --disable-shared, the test was removed, and we |
| 8983 | # assume the GNU/Linux dynamic linker is in use. |
| 8984 | dynamic_linker='GNU/Linux ld.so' |
| 8985 | ;; |
| 8986 | |
| 8987 | knetbsd*-gnu) |
| 8988 | version_type=linux |
| 8989 | need_lib_prefix=no |
| 8990 | need_version=no |
| 8991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8992 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8993 | shlibpath_var=LD_LIBRARY_PATH |
| 8994 | shlibpath_overrides_runpath=no |
| 8995 | hardcode_into_libs=yes |
| 8996 | dynamic_linker='GNU ld.so' |
| 8997 | ;; |
| 8998 | |
| 8999 | netbsd*) |
| 9000 | version_type=sunos |
| 9001 | need_lib_prefix=no |
| 9002 | need_version=no |
| 9003 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9005 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9006 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9007 | else |
| 9008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9009 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9010 | dynamic_linker='NetBSD ld.elf_so' |
| 9011 | fi |
| 9012 | shlibpath_var=LD_LIBRARY_PATH |
| 9013 | shlibpath_overrides_runpath=yes |
| 9014 | hardcode_into_libs=yes |
| 9015 | ;; |
| 9016 | |
| 9017 | newsos6) |
| 9018 | version_type=linux |
| 9019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9020 | shlibpath_var=LD_LIBRARY_PATH |
| 9021 | shlibpath_overrides_runpath=yes |
| 9022 | ;; |
| 9023 | |
| 9024 | nto-qnx*) |
| 9025 | version_type=linux |
| 9026 | need_lib_prefix=no |
| 9027 | need_version=no |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9030 | shlibpath_var=LD_LIBRARY_PATH |
| 9031 | shlibpath_overrides_runpath=yes |
| 9032 | ;; |
| 9033 | |
| 9034 | openbsd*) |
| 9035 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9036 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9037 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9038 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9039 | case $host_os in |
| 9040 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9041 | *) need_version=no ;; |
| 9042 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9044 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9045 | shlibpath_var=LD_LIBRARY_PATH |
| 9046 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9047 | case $host_os in |
| 9048 | openbsd2.[89] | openbsd2.[89].*) |
| 9049 | shlibpath_overrides_runpath=no |
| 9050 | ;; |
| 9051 | *) |
| 9052 | shlibpath_overrides_runpath=yes |
| 9053 | ;; |
| 9054 | esac |
| 9055 | else |
| 9056 | shlibpath_overrides_runpath=yes |
| 9057 | fi |
| 9058 | ;; |
| 9059 | |
| 9060 | os2*) |
| 9061 | libname_spec='$name' |
| 9062 | shrext_cmds=".dll" |
| 9063 | need_lib_prefix=no |
| 9064 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9065 | dynamic_linker='OS/2 ld.exe' |
| 9066 | shlibpath_var=LIBPATH |
| 9067 | ;; |
| 9068 | |
| 9069 | osf3* | osf4* | osf5*) |
| 9070 | version_type=osf |
| 9071 | need_lib_prefix=no |
| 9072 | need_version=no |
| 9073 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9075 | shlibpath_var=LD_LIBRARY_PATH |
| 9076 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9077 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9078 | ;; |
| 9079 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9080 | solaris*) |
| 9081 | version_type=linux |
| 9082 | need_lib_prefix=no |
| 9083 | need_version=no |
| 9084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9086 | shlibpath_var=LD_LIBRARY_PATH |
| 9087 | shlibpath_overrides_runpath=yes |
| 9088 | hardcode_into_libs=yes |
| 9089 | # ldd complains unless libraries are executable |
| 9090 | postinstall_cmds='chmod +x $lib' |
| 9091 | ;; |
| 9092 | |
| 9093 | sunos4*) |
| 9094 | version_type=sunos |
| 9095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9096 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9097 | shlibpath_var=LD_LIBRARY_PATH |
| 9098 | shlibpath_overrides_runpath=yes |
| 9099 | if test "$with_gnu_ld" = yes; then |
| 9100 | need_lib_prefix=no |
| 9101 | fi |
| 9102 | need_version=yes |
| 9103 | ;; |
| 9104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9105 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9106 | version_type=linux |
| 9107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9108 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9109 | shlibpath_var=LD_LIBRARY_PATH |
| 9110 | case $host_vendor in |
| 9111 | sni) |
| 9112 | shlibpath_overrides_runpath=no |
| 9113 | need_lib_prefix=no |
| 9114 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9115 | runpath_var=LD_RUN_PATH |
| 9116 | ;; |
| 9117 | siemens) |
| 9118 | need_lib_prefix=no |
| 9119 | ;; |
| 9120 | motorola) |
| 9121 | need_lib_prefix=no |
| 9122 | need_version=no |
| 9123 | shlibpath_overrides_runpath=no |
| 9124 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9125 | ;; |
| 9126 | esac |
| 9127 | ;; |
| 9128 | |
| 9129 | sysv4*MP*) |
| 9130 | if test -d /usr/nec ;then |
| 9131 | version_type=linux |
| 9132 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9133 | soname_spec='$libname${shared_ext}.$major' |
| 9134 | shlibpath_var=LD_LIBRARY_PATH |
| 9135 | fi |
| 9136 | ;; |
| 9137 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9138 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9139 | version_type=freebsd-elf |
| 9140 | need_lib_prefix=no |
| 9141 | need_version=no |
| 9142 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9143 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9144 | shlibpath_var=LD_LIBRARY_PATH |
| 9145 | hardcode_into_libs=yes |
| 9146 | if test "$with_gnu_ld" = yes; then |
| 9147 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9148 | shlibpath_overrides_runpath=no |
| 9149 | else |
| 9150 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9151 | shlibpath_overrides_runpath=yes |
| 9152 | case $host_os in |
| 9153 | sco3.2v5*) |
| 9154 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9155 | ;; |
| 9156 | esac |
| 9157 | fi |
| 9158 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9159 | ;; |
| 9160 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9161 | uts4*) |
| 9162 | version_type=linux |
| 9163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9165 | shlibpath_var=LD_LIBRARY_PATH |
| 9166 | ;; |
| 9167 | |
| 9168 | *) |
| 9169 | dynamic_linker=no |
| 9170 | ;; |
| 9171 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9172 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9173 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9174 | test "$dynamic_linker" = no && can_build_shared=no |
| 9175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9176 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9177 | if test "$GCC" = yes; then |
| 9178 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9179 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9181 | |
| 9182 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9183 | 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] | 9184 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9186 | else |
| 9187 | |
| 9188 | module=yes |
| 9189 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9190 | |
| 9191 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9192 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9193 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9194 | if test -n "$libltdl_cv_shlibext"; then |
| 9195 | |
| 9196 | cat >>confdefs.h <<_ACEOF |
| 9197 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9198 | _ACEOF |
| 9199 | |
| 9200 | fi |
| 9201 | |
| 9202 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9203 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9204 | 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] | 9205 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9207 | else |
| 9208 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9210 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9211 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9212 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9213 | |
| 9214 | cat >>confdefs.h <<_ACEOF |
| 9215 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9216 | _ACEOF |
| 9217 | |
| 9218 | fi |
| 9219 | |
| 9220 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9221 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9222 | 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] | 9223 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9225 | else |
| 9226 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9227 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9228 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9229 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9230 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9231 | sys_search_path= |
| 9232 | for dir in $libltdl_cv_sys_search_path; do |
| 9233 | if test -z "$sys_search_path"; then |
| 9234 | sys_search_path="$dir" |
| 9235 | else |
| 9236 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9237 | fi |
| 9238 | done |
| 9239 | |
| 9240 | cat >>confdefs.h <<_ACEOF |
| 9241 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9242 | _ACEOF |
| 9243 | |
| 9244 | fi |
| 9245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9246 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9247 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9248 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9250 | else |
| 9251 | libltdl_cv_objdir="$objdir" |
| 9252 | if test -n "$objdir"; then |
| 9253 | : |
| 9254 | else |
| 9255 | rm -f .libs 2>/dev/null |
| 9256 | mkdir .libs 2>/dev/null |
| 9257 | if test -d .libs; then |
| 9258 | libltdl_cv_objdir=.libs |
| 9259 | else |
| 9260 | # MS-DOS does not allow filenames that begin with a dot. |
| 9261 | libltdl_cv_objdir=_libs |
| 9262 | fi |
| 9263 | rmdir .libs 2>/dev/null |
| 9264 | fi |
| 9265 | |
| 9266 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9267 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9268 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9269 | |
| 9270 | cat >>confdefs.h <<_ACEOF |
| 9271 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9272 | _ACEOF |
| 9273 | |
| 9274 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9275 | |
| 9276 | |
| 9277 | |
| 9278 | |
| 9279 | # 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] | 9280 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9281 | 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] | 9282 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9284 | else |
| 9285 | |
| 9286 | # These are sane defaults that work on at least a few old systems. |
| 9287 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9288 | |
| 9289 | # Character class describing NM global symbol codes. |
| 9290 | symcode='[BCDEGRST]' |
| 9291 | |
| 9292 | # Regexp to match symbols that can be accessed directly from C. |
| 9293 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9294 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9295 | # Transform an extracted symbol line into a proper C declaration |
| 9296 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9297 | |
| 9298 | # Transform an extracted symbol line into symbol name and symbol address |
| 9299 | 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'" |
| 9300 | |
| 9301 | # Define system-specific variables. |
| 9302 | case $host_os in |
| 9303 | aix*) |
| 9304 | symcode='[BCDT]' |
| 9305 | ;; |
| 9306 | cygwin* | mingw* | pw32*) |
| 9307 | symcode='[ABCDGISTW]' |
| 9308 | ;; |
| 9309 | hpux*) # Its linker distinguishes data from code symbols |
| 9310 | if test "$host_cpu" = ia64; then |
| 9311 | symcode='[ABCDEGRST]' |
| 9312 | fi |
| 9313 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9314 | 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'" |
| 9315 | ;; |
| 9316 | linux*) |
| 9317 | if test "$host_cpu" = ia64; then |
| 9318 | symcode='[ABCDGIRSTW]' |
| 9319 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9320 | 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'" |
| 9321 | fi |
| 9322 | ;; |
| 9323 | irix* | nonstopux*) |
| 9324 | symcode='[BCDEGRST]' |
| 9325 | ;; |
| 9326 | osf*) |
| 9327 | symcode='[BCDEGQRST]' |
| 9328 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9329 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9330 | symcode='[BDRT]' |
| 9331 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9332 | sco3.2v5*) |
| 9333 | symcode='[DT]' |
| 9334 | ;; |
| 9335 | sysv4.2uw2*) |
| 9336 | symcode='[DT]' |
| 9337 | ;; |
| 9338 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9339 | symcode='[ABDT]' |
| 9340 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9341 | sysv4) |
| 9342 | symcode='[DFNSTU]' |
| 9343 | ;; |
| 9344 | esac |
| 9345 | |
| 9346 | # Handle CRLF in mingw tool chain |
| 9347 | opt_cr= |
| 9348 | case $build_os in |
| 9349 | mingw*) |
| 9350 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9351 | ;; |
| 9352 | esac |
| 9353 | |
| 9354 | # If we're using GNU nm, then use its standard symbol codes. |
| 9355 | case `$NM -V 2>&1` in |
| 9356 | *GNU* | *'with BFD'*) |
| 9357 | symcode='[ABCDGIRSTW]' ;; |
| 9358 | esac |
| 9359 | |
| 9360 | # Try without a prefix undercore, then with it. |
| 9361 | for ac_symprfx in "" "_"; do |
| 9362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9363 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9364 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9365 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9366 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9367 | 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] | 9368 | |
| 9369 | # Check to see that the pipe works correctly. |
| 9370 | pipe_works=no |
| 9371 | |
| 9372 | rm -f conftest* |
| 9373 | cat > conftest.$ac_ext <<EOF |
| 9374 | #ifdef __cplusplus |
| 9375 | extern "C" { |
| 9376 | #endif |
| 9377 | char nm_test_var; |
| 9378 | void nm_test_func(){} |
| 9379 | #ifdef __cplusplus |
| 9380 | } |
| 9381 | #endif |
| 9382 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9383 | EOF |
| 9384 | |
| 9385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9386 | (eval $ac_compile) 2>&5 |
| 9387 | ac_status=$? |
| 9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9389 | (exit $ac_status); }; then |
| 9390 | # Now try to grab the symbols. |
| 9391 | nlist=conftest.nm |
| 9392 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9393 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9394 | ac_status=$? |
| 9395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9396 | (exit $ac_status); } && test -s "$nlist"; then |
| 9397 | # Try sorting and uniquifying the output. |
| 9398 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9399 | mv -f "$nlist"T "$nlist" |
| 9400 | else |
| 9401 | rm -f "$nlist"T |
| 9402 | fi |
| 9403 | |
| 9404 | # Make sure that we snagged all the symbols we need. |
| 9405 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9406 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9407 | cat <<EOF > conftest.$ac_ext |
| 9408 | #ifdef __cplusplus |
| 9409 | extern "C" { |
| 9410 | #endif |
| 9411 | |
| 9412 | EOF |
| 9413 | # Now generate the symbol file. |
| 9414 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9415 | |
| 9416 | cat <<EOF >> conftest.$ac_ext |
| 9417 | #if defined (__STDC__) && __STDC__ |
| 9418 | # define lt_ptr_t void * |
| 9419 | #else |
| 9420 | # define lt_ptr_t char * |
| 9421 | # define const |
| 9422 | #endif |
| 9423 | |
| 9424 | /* The mapping between symbol names and symbols. */ |
| 9425 | const struct { |
| 9426 | const char *name; |
| 9427 | lt_ptr_t address; |
| 9428 | } |
| 9429 | lt_preloaded_symbols[] = |
| 9430 | { |
| 9431 | EOF |
| 9432 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9433 | cat <<\EOF >> conftest.$ac_ext |
| 9434 | {0, (lt_ptr_t) 0} |
| 9435 | }; |
| 9436 | |
| 9437 | #ifdef __cplusplus |
| 9438 | } |
| 9439 | #endif |
| 9440 | EOF |
| 9441 | # Now try linking the two files. |
| 9442 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9443 | lt_save_LIBS="$LIBS" |
| 9444 | lt_save_CFLAGS="$CFLAGS" |
| 9445 | LIBS="conftstm.$ac_objext" |
| 9446 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9448 | (eval $ac_link) 2>&5 |
| 9449 | ac_status=$? |
| 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9451 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9452 | pipe_works=yes |
| 9453 | fi |
| 9454 | LIBS="$lt_save_LIBS" |
| 9455 | CFLAGS="$lt_save_CFLAGS" |
| 9456 | else |
| 9457 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9458 | fi |
| 9459 | else |
| 9460 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9461 | fi |
| 9462 | else |
| 9463 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9464 | fi |
| 9465 | else |
| 9466 | echo "$progname: failed program was:" >&5 |
| 9467 | cat conftest.$ac_ext >&5 |
| 9468 | fi |
| 9469 | rm -f conftest* conftst* |
| 9470 | |
| 9471 | # Do not use the global_symbol_pipe unless it works. |
| 9472 | if test "$pipe_works" = yes; then |
| 9473 | break |
| 9474 | else |
| 9475 | lt_cv_sys_global_symbol_pipe= |
| 9476 | fi |
| 9477 | done |
| 9478 | |
| 9479 | fi |
| 9480 | |
| 9481 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9482 | lt_cv_sys_global_symbol_to_cdecl= |
| 9483 | fi |
| 9484 | 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] | 9485 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9486 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9487 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9488 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9489 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9490 | fi |
| 9491 | |
| 9492 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9493 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9494 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9495 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9497 | else |
| 9498 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9499 | libltdl_cv_preloaded_symbols=yes |
| 9500 | else |
| 9501 | libltdl_cv_preloaded_symbols=no |
| 9502 | fi |
| 9503 | |
| 9504 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9505 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9506 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9507 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9508 | |
| 9509 | cat >>confdefs.h <<\_ACEOF |
| 9510 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9511 | _ACEOF |
| 9512 | |
| 9513 | fi |
| 9514 | |
| 9515 | LIBADD_DL= |
| 9516 | |
| 9517 | ac_ext=c |
| 9518 | ac_cpp='$CPP $CPPFLAGS' |
| 9519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9522 | |
| 9523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9524 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9525 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9526 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9528 | else |
| 9529 | cat >conftest.$ac_ext <<_ACEOF |
| 9530 | /* confdefs.h. */ |
| 9531 | _ACEOF |
| 9532 | cat confdefs.h >>conftest.$ac_ext |
| 9533 | cat >>conftest.$ac_ext <<_ACEOF |
| 9534 | /* end confdefs.h. */ |
| 9535 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9536 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9537 | #define shl_load innocuous_shl_load |
| 9538 | |
| 9539 | /* System header to define __stub macros and hopefully few prototypes, |
| 9540 | which can conflict with char shl_load (); below. |
| 9541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9542 | <limits.h> exists even on freestanding compilers. */ |
| 9543 | |
| 9544 | #ifdef __STDC__ |
| 9545 | # include <limits.h> |
| 9546 | #else |
| 9547 | # include <assert.h> |
| 9548 | #endif |
| 9549 | |
| 9550 | #undef shl_load |
| 9551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9552 | /* Override any GCC internal prototype to avoid an error. |
| 9553 | Use char because int might match the return type of a GCC |
| 9554 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9555 | #ifdef __cplusplus |
| 9556 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9557 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9558 | char shl_load (); |
| 9559 | /* The GNU C library defines this for functions which it implements |
| 9560 | to always fail with ENOSYS. Some functions are actually named |
| 9561 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9562 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9563 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9564 | #endif |
| 9565 | |
| 9566 | int |
| 9567 | main () |
| 9568 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9569 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9570 | ; |
| 9571 | return 0; |
| 9572 | } |
| 9573 | _ACEOF |
| 9574 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9575 | if { (ac_try="$ac_link" |
| 9576 | case "(($ac_try" in |
| 9577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9578 | *) ac_try_echo=$ac_try;; |
| 9579 | esac |
| 9580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9581 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9582 | ac_status=$? |
| 9583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9584 | rm -f conftest.er1 |
| 9585 | cat conftest.err >&5 |
| 9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9587 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9589 | { (case "(($ac_try" in |
| 9590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9591 | *) ac_try_echo=$ac_try;; |
| 9592 | esac |
| 9593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9594 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9595 | ac_status=$? |
| 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9597 | (exit $ac_status); }; } && |
| 9598 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9599 | { (case "(($ac_try" in |
| 9600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9601 | *) ac_try_echo=$ac_try;; |
| 9602 | esac |
| 9603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9604 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9605 | ac_status=$? |
| 9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9607 | (exit $ac_status); }; }; then |
| 9608 | ac_cv_func_shl_load=yes |
| 9609 | else |
| 9610 | echo "$as_me: failed program was:" >&5 |
| 9611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9612 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9613 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9614 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9615 | |
| 9616 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9617 | conftest$ac_exeext conftest.$ac_ext |
| 9618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9619 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9620 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9621 | if test $ac_cv_func_shl_load = yes; then |
| 9622 | |
| 9623 | cat >>confdefs.h <<\_ACEOF |
| 9624 | #define HAVE_SHL_LOAD 1 |
| 9625 | _ACEOF |
| 9626 | |
| 9627 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9628 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9629 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9630 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9632 | else |
| 9633 | ac_check_lib_save_LIBS=$LIBS |
| 9634 | LIBS="-ldld $LIBS" |
| 9635 | cat >conftest.$ac_ext <<_ACEOF |
| 9636 | /* confdefs.h. */ |
| 9637 | _ACEOF |
| 9638 | cat confdefs.h >>conftest.$ac_ext |
| 9639 | cat >>conftest.$ac_ext <<_ACEOF |
| 9640 | /* end confdefs.h. */ |
| 9641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9642 | /* Override any GCC internal prototype to avoid an error. |
| 9643 | Use char because int might match the return type of a GCC |
| 9644 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9645 | #ifdef __cplusplus |
| 9646 | extern "C" |
| 9647 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9648 | char shl_load (); |
| 9649 | int |
| 9650 | main () |
| 9651 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9652 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
| 9656 | _ACEOF |
| 9657 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9658 | if { (ac_try="$ac_link" |
| 9659 | case "(($ac_try" in |
| 9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9661 | *) ac_try_echo=$ac_try;; |
| 9662 | esac |
| 9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9664 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9665 | ac_status=$? |
| 9666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9667 | rm -f conftest.er1 |
| 9668 | cat conftest.err >&5 |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9672 | { (case "(($ac_try" in |
| 9673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9674 | *) ac_try_echo=$ac_try;; |
| 9675 | esac |
| 9676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9677 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9678 | ac_status=$? |
| 9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9680 | (exit $ac_status); }; } && |
| 9681 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9682 | { (case "(($ac_try" in |
| 9683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9684 | *) ac_try_echo=$ac_try;; |
| 9685 | esac |
| 9686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9687 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9688 | ac_status=$? |
| 9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9690 | (exit $ac_status); }; }; then |
| 9691 | ac_cv_lib_dld_shl_load=yes |
| 9692 | else |
| 9693 | echo "$as_me: failed program was:" >&5 |
| 9694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9696 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9698 | |
| 9699 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9700 | conftest$ac_exeext conftest.$ac_ext |
| 9701 | LIBS=$ac_check_lib_save_LIBS |
| 9702 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9703 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9704 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9705 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9706 | |
| 9707 | cat >>confdefs.h <<\_ACEOF |
| 9708 | #define HAVE_SHL_LOAD 1 |
| 9709 | _ACEOF |
| 9710 | |
| 9711 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9712 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9713 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9714 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9715 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9717 | else |
| 9718 | ac_check_lib_save_LIBS=$LIBS |
| 9719 | LIBS="-ldl $LIBS" |
| 9720 | cat >conftest.$ac_ext <<_ACEOF |
| 9721 | /* confdefs.h. */ |
| 9722 | _ACEOF |
| 9723 | cat confdefs.h >>conftest.$ac_ext |
| 9724 | cat >>conftest.$ac_ext <<_ACEOF |
| 9725 | /* end confdefs.h. */ |
| 9726 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9727 | /* Override any GCC internal prototype to avoid an error. |
| 9728 | Use char because int might match the return type of a GCC |
| 9729 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9730 | #ifdef __cplusplus |
| 9731 | extern "C" |
| 9732 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9733 | char dlopen (); |
| 9734 | int |
| 9735 | main () |
| 9736 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9737 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9738 | ; |
| 9739 | return 0; |
| 9740 | } |
| 9741 | _ACEOF |
| 9742 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9743 | if { (ac_try="$ac_link" |
| 9744 | case "(($ac_try" in |
| 9745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9746 | *) ac_try_echo=$ac_try;; |
| 9747 | esac |
| 9748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9749 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9750 | ac_status=$? |
| 9751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9752 | rm -f conftest.er1 |
| 9753 | cat conftest.err >&5 |
| 9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9755 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9757 | { (case "(($ac_try" in |
| 9758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9759 | *) ac_try_echo=$ac_try;; |
| 9760 | esac |
| 9761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9762 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9763 | ac_status=$? |
| 9764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9765 | (exit $ac_status); }; } && |
| 9766 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9767 | { (case "(($ac_try" in |
| 9768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9769 | *) ac_try_echo=$ac_try;; |
| 9770 | esac |
| 9771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9772 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9773 | ac_status=$? |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); }; }; then |
| 9776 | ac_cv_lib_dl_dlopen=yes |
| 9777 | else |
| 9778 | echo "$as_me: failed program was:" >&5 |
| 9779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9780 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9781 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9783 | |
| 9784 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9785 | conftest$ac_exeext conftest.$ac_ext |
| 9786 | LIBS=$ac_check_lib_save_LIBS |
| 9787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9788 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9789 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9790 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9791 | |
| 9792 | cat >>confdefs.h <<\_ACEOF |
| 9793 | #define HAVE_LIBDL 1 |
| 9794 | _ACEOF |
| 9795 | |
| 9796 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9797 | else |
| 9798 | cat >conftest.$ac_ext <<_ACEOF |
| 9799 | /* confdefs.h. */ |
| 9800 | _ACEOF |
| 9801 | cat confdefs.h >>conftest.$ac_ext |
| 9802 | cat >>conftest.$ac_ext <<_ACEOF |
| 9803 | /* end confdefs.h. */ |
| 9804 | #if HAVE_DLFCN_H |
| 9805 | # include <dlfcn.h> |
| 9806 | #endif |
| 9807 | |
| 9808 | int |
| 9809 | main () |
| 9810 | { |
| 9811 | dlopen(0, 0); |
| 9812 | ; |
| 9813 | return 0; |
| 9814 | } |
| 9815 | _ACEOF |
| 9816 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9817 | if { (ac_try="$ac_link" |
| 9818 | case "(($ac_try" in |
| 9819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9820 | *) ac_try_echo=$ac_try;; |
| 9821 | esac |
| 9822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9823 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9824 | ac_status=$? |
| 9825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9826 | rm -f conftest.er1 |
| 9827 | cat conftest.err >&5 |
| 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9829 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9830 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9831 | { (case "(($ac_try" in |
| 9832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9833 | *) ac_try_echo=$ac_try;; |
| 9834 | esac |
| 9835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9836 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9837 | ac_status=$? |
| 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9839 | (exit $ac_status); }; } && |
| 9840 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9841 | { (case "(($ac_try" in |
| 9842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9843 | *) ac_try_echo=$ac_try;; |
| 9844 | esac |
| 9845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9846 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9847 | ac_status=$? |
| 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9849 | (exit $ac_status); }; }; then |
| 9850 | |
| 9851 | cat >>confdefs.h <<\_ACEOF |
| 9852 | #define HAVE_LIBDL 1 |
| 9853 | _ACEOF |
| 9854 | libltdl_cv_func_dlopen="yes" |
| 9855 | else |
| 9856 | echo "$as_me: failed program was:" >&5 |
| 9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9858 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9859 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9860 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9861 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9863 | else |
| 9864 | ac_check_lib_save_LIBS=$LIBS |
| 9865 | LIBS="-lsvld $LIBS" |
| 9866 | cat >conftest.$ac_ext <<_ACEOF |
| 9867 | /* confdefs.h. */ |
| 9868 | _ACEOF |
| 9869 | cat confdefs.h >>conftest.$ac_ext |
| 9870 | cat >>conftest.$ac_ext <<_ACEOF |
| 9871 | /* end confdefs.h. */ |
| 9872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9873 | /* Override any GCC internal prototype to avoid an error. |
| 9874 | Use char because int might match the return type of a GCC |
| 9875 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9876 | #ifdef __cplusplus |
| 9877 | extern "C" |
| 9878 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9879 | char dlopen (); |
| 9880 | int |
| 9881 | main () |
| 9882 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9883 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9884 | ; |
| 9885 | return 0; |
| 9886 | } |
| 9887 | _ACEOF |
| 9888 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9889 | if { (ac_try="$ac_link" |
| 9890 | case "(($ac_try" in |
| 9891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9892 | *) ac_try_echo=$ac_try;; |
| 9893 | esac |
| 9894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9895 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9896 | ac_status=$? |
| 9897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9898 | rm -f conftest.er1 |
| 9899 | cat conftest.err >&5 |
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9903 | { (case "(($ac_try" in |
| 9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9905 | *) ac_try_echo=$ac_try;; |
| 9906 | esac |
| 9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9908 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9909 | ac_status=$? |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9911 | (exit $ac_status); }; } && |
| 9912 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9913 | { (case "(($ac_try" in |
| 9914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9915 | *) ac_try_echo=$ac_try;; |
| 9916 | esac |
| 9917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9918 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9919 | ac_status=$? |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); }; }; then |
| 9922 | ac_cv_lib_svld_dlopen=yes |
| 9923 | else |
| 9924 | echo "$as_me: failed program was:" >&5 |
| 9925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9927 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9928 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9929 | |
| 9930 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9931 | conftest$ac_exeext conftest.$ac_ext |
| 9932 | LIBS=$ac_check_lib_save_LIBS |
| 9933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9934 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9935 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9936 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9937 | |
| 9938 | cat >>confdefs.h <<\_ACEOF |
| 9939 | #define HAVE_LIBDL 1 |
| 9940 | _ACEOF |
| 9941 | |
| 9942 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9943 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9944 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9945 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9946 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9948 | else |
| 9949 | ac_check_lib_save_LIBS=$LIBS |
| 9950 | LIBS="-ldld $LIBS" |
| 9951 | cat >conftest.$ac_ext <<_ACEOF |
| 9952 | /* confdefs.h. */ |
| 9953 | _ACEOF |
| 9954 | cat confdefs.h >>conftest.$ac_ext |
| 9955 | cat >>conftest.$ac_ext <<_ACEOF |
| 9956 | /* end confdefs.h. */ |
| 9957 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9958 | /* Override any GCC internal prototype to avoid an error. |
| 9959 | Use char because int might match the return type of a GCC |
| 9960 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9961 | #ifdef __cplusplus |
| 9962 | extern "C" |
| 9963 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9964 | char dld_link (); |
| 9965 | int |
| 9966 | main () |
| 9967 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9968 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9969 | ; |
| 9970 | return 0; |
| 9971 | } |
| 9972 | _ACEOF |
| 9973 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9974 | if { (ac_try="$ac_link" |
| 9975 | case "(($ac_try" in |
| 9976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9977 | *) ac_try_echo=$ac_try;; |
| 9978 | esac |
| 9979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9980 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9981 | ac_status=$? |
| 9982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9983 | rm -f conftest.er1 |
| 9984 | cat conftest.err >&5 |
| 9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9986 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9988 | { (case "(($ac_try" in |
| 9989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9990 | *) ac_try_echo=$ac_try;; |
| 9991 | esac |
| 9992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9993 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9994 | ac_status=$? |
| 9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9996 | (exit $ac_status); }; } && |
| 9997 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9998 | { (case "(($ac_try" in |
| 9999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10000 | *) ac_try_echo=$ac_try;; |
| 10001 | esac |
| 10002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10003 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10004 | ac_status=$? |
| 10005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10006 | (exit $ac_status); }; }; then |
| 10007 | ac_cv_lib_dld_dld_link=yes |
| 10008 | else |
| 10009 | echo "$as_me: failed program was:" >&5 |
| 10010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10012 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10014 | |
| 10015 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10016 | conftest$ac_exeext conftest.$ac_ext |
| 10017 | LIBS=$ac_check_lib_save_LIBS |
| 10018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10019 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10020 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10021 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10022 | |
| 10023 | cat >>confdefs.h <<\_ACEOF |
| 10024 | #define HAVE_DLD 1 |
| 10025 | _ACEOF |
| 10026 | |
| 10027 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10028 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10029 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10030 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10031 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10033 | else |
| 10034 | cat >conftest.$ac_ext <<_ACEOF |
| 10035 | /* confdefs.h. */ |
| 10036 | _ACEOF |
| 10037 | cat confdefs.h >>conftest.$ac_ext |
| 10038 | cat >>conftest.$ac_ext <<_ACEOF |
| 10039 | /* end confdefs.h. */ |
| 10040 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10041 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10042 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10043 | |
| 10044 | /* System header to define __stub macros and hopefully few prototypes, |
| 10045 | which can conflict with char _dyld_func_lookup (); below. |
| 10046 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10047 | <limits.h> exists even on freestanding compilers. */ |
| 10048 | |
| 10049 | #ifdef __STDC__ |
| 10050 | # include <limits.h> |
| 10051 | #else |
| 10052 | # include <assert.h> |
| 10053 | #endif |
| 10054 | |
| 10055 | #undef _dyld_func_lookup |
| 10056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10057 | /* Override any GCC internal prototype to avoid an error. |
| 10058 | Use char because int might match the return type of a GCC |
| 10059 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10060 | #ifdef __cplusplus |
| 10061 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10062 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10063 | char _dyld_func_lookup (); |
| 10064 | /* The GNU C library defines this for functions which it implements |
| 10065 | to always fail with ENOSYS. Some functions are actually named |
| 10066 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10067 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10068 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10069 | #endif |
| 10070 | |
| 10071 | int |
| 10072 | main () |
| 10073 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10074 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10075 | ; |
| 10076 | return 0; |
| 10077 | } |
| 10078 | _ACEOF |
| 10079 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10080 | if { (ac_try="$ac_link" |
| 10081 | case "(($ac_try" in |
| 10082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10083 | *) ac_try_echo=$ac_try;; |
| 10084 | esac |
| 10085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10086 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10087 | ac_status=$? |
| 10088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10089 | rm -f conftest.er1 |
| 10090 | cat conftest.err >&5 |
| 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10092 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10094 | { (case "(($ac_try" in |
| 10095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10096 | *) ac_try_echo=$ac_try;; |
| 10097 | esac |
| 10098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10099 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10100 | ac_status=$? |
| 10101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10102 | (exit $ac_status); }; } && |
| 10103 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10104 | { (case "(($ac_try" in |
| 10105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10106 | *) ac_try_echo=$ac_try;; |
| 10107 | esac |
| 10108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10109 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10110 | ac_status=$? |
| 10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10112 | (exit $ac_status); }; }; then |
| 10113 | ac_cv_func__dyld_func_lookup=yes |
| 10114 | else |
| 10115 | echo "$as_me: failed program was:" >&5 |
| 10116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10118 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10119 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10120 | |
| 10121 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10122 | conftest$ac_exeext conftest.$ac_ext |
| 10123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10124 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10125 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10126 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10127 | |
| 10128 | cat >>confdefs.h <<\_ACEOF |
| 10129 | #define HAVE_DYLD 1 |
| 10130 | _ACEOF |
| 10131 | |
| 10132 | fi |
| 10133 | |
| 10134 | |
| 10135 | fi |
| 10136 | |
| 10137 | |
| 10138 | fi |
| 10139 | |
| 10140 | |
| 10141 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10142 | |
| 10143 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10144 | conftest$ac_exeext conftest.$ac_ext |
| 10145 | |
| 10146 | fi |
| 10147 | |
| 10148 | |
| 10149 | fi |
| 10150 | |
| 10151 | |
| 10152 | fi |
| 10153 | |
| 10154 | |
| 10155 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10156 | then |
| 10157 | lt_save_LIBS="$LIBS" |
| 10158 | LIBS="$LIBS $LIBADD_DL" |
| 10159 | |
| 10160 | for ac_func in dlerror |
| 10161 | do |
| 10162 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10163 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10164 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10165 | 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] | 10166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10167 | else |
| 10168 | cat >conftest.$ac_ext <<_ACEOF |
| 10169 | /* confdefs.h. */ |
| 10170 | _ACEOF |
| 10171 | cat confdefs.h >>conftest.$ac_ext |
| 10172 | cat >>conftest.$ac_ext <<_ACEOF |
| 10173 | /* end confdefs.h. */ |
| 10174 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10175 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10176 | #define $ac_func innocuous_$ac_func |
| 10177 | |
| 10178 | /* System header to define __stub macros and hopefully few prototypes, |
| 10179 | which can conflict with char $ac_func (); below. |
| 10180 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10181 | <limits.h> exists even on freestanding compilers. */ |
| 10182 | |
| 10183 | #ifdef __STDC__ |
| 10184 | # include <limits.h> |
| 10185 | #else |
| 10186 | # include <assert.h> |
| 10187 | #endif |
| 10188 | |
| 10189 | #undef $ac_func |
| 10190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10191 | /* Override any GCC internal prototype to avoid an error. |
| 10192 | Use char because int might match the return type of a GCC |
| 10193 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10194 | #ifdef __cplusplus |
| 10195 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10196 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10197 | char $ac_func (); |
| 10198 | /* The GNU C library defines this for functions which it implements |
| 10199 | to always fail with ENOSYS. Some functions are actually named |
| 10200 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10201 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10202 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10203 | #endif |
| 10204 | |
| 10205 | int |
| 10206 | main () |
| 10207 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10208 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10209 | ; |
| 10210 | return 0; |
| 10211 | } |
| 10212 | _ACEOF |
| 10213 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10214 | if { (ac_try="$ac_link" |
| 10215 | case "(($ac_try" in |
| 10216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10217 | *) ac_try_echo=$ac_try;; |
| 10218 | esac |
| 10219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10220 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10221 | ac_status=$? |
| 10222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10223 | rm -f conftest.er1 |
| 10224 | cat conftest.err >&5 |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10228 | { (case "(($ac_try" in |
| 10229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10230 | *) ac_try_echo=$ac_try;; |
| 10231 | esac |
| 10232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10233 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10234 | ac_status=$? |
| 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10236 | (exit $ac_status); }; } && |
| 10237 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10238 | { (case "(($ac_try" in |
| 10239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10240 | *) ac_try_echo=$ac_try;; |
| 10241 | esac |
| 10242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10243 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10244 | ac_status=$? |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); }; }; then |
| 10247 | eval "$as_ac_var=yes" |
| 10248 | else |
| 10249 | echo "$as_me: failed program was:" >&5 |
| 10250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10252 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10253 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10254 | |
| 10255 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10256 | conftest$ac_exeext conftest.$ac_ext |
| 10257 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10258 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10259 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10260 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10261 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10262 | cat >>confdefs.h <<_ACEOF |
| 10263 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10264 | _ACEOF |
| 10265 | |
| 10266 | fi |
| 10267 | done |
| 10268 | |
| 10269 | LIBS="$lt_save_LIBS" |
| 10270 | fi |
| 10271 | ac_ext=c |
| 10272 | ac_cpp='$CPP $CPPFLAGS' |
| 10273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10276 | |
| 10277 | |
| 10278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10279 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10280 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10281 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10283 | else |
| 10284 | ac_cv_sys_symbol_underscore=no |
| 10285 | cat > conftest.$ac_ext <<EOF |
| 10286 | void nm_test_func(){} |
| 10287 | int main(){nm_test_func;return 0;} |
| 10288 | EOF |
| 10289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10290 | (eval $ac_compile) 2>&5 |
| 10291 | ac_status=$? |
| 10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10293 | (exit $ac_status); }; then |
| 10294 | # Now try to grab the symbols. |
| 10295 | ac_nlist=conftest.nm |
| 10296 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10297 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10298 | ac_status=$? |
| 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10300 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10301 | # See whether the symbols have a leading underscore. |
| 10302 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10303 | ac_cv_sys_symbol_underscore=yes |
| 10304 | else |
| 10305 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10306 | : |
| 10307 | else |
| 10308 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10309 | fi |
| 10310 | fi |
| 10311 | else |
| 10312 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10313 | fi |
| 10314 | else |
| 10315 | echo "configure: failed program was:" >&5 |
| 10316 | cat conftest.c >&5 |
| 10317 | fi |
| 10318 | rm -rf conftest* |
| 10319 | |
| 10320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10321 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10322 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10323 | |
| 10324 | |
| 10325 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10326 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10327 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10328 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10329 | 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] | 10330 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10332 | else |
| 10333 | libltdl_cv_need_uscore=unknown |
| 10334 | save_LIBS="$LIBS" |
| 10335 | LIBS="$LIBS $LIBADD_DL" |
| 10336 | if test "$cross_compiling" = yes; then : |
| 10337 | libltdl_cv_need_uscore=cross |
| 10338 | else |
| 10339 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10340 | lt_status=$lt_dlunknown |
| 10341 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 10342 | #line 10342 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10343 | #include "confdefs.h" |
| 10344 | |
| 10345 | #if HAVE_DLFCN_H |
| 10346 | #include <dlfcn.h> |
| 10347 | #endif |
| 10348 | |
| 10349 | #include <stdio.h> |
| 10350 | |
| 10351 | #ifdef RTLD_GLOBAL |
| 10352 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10353 | #else |
| 10354 | # ifdef DL_GLOBAL |
| 10355 | # define LT_DLGLOBAL DL_GLOBAL |
| 10356 | # else |
| 10357 | # define LT_DLGLOBAL 0 |
| 10358 | # endif |
| 10359 | #endif |
| 10360 | |
| 10361 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10362 | find out it does not work in some platform. */ |
| 10363 | #ifndef LT_DLLAZY_OR_NOW |
| 10364 | # ifdef RTLD_LAZY |
| 10365 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10366 | # else |
| 10367 | # ifdef DL_LAZY |
| 10368 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10369 | # else |
| 10370 | # ifdef RTLD_NOW |
| 10371 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10372 | # else |
| 10373 | # ifdef DL_NOW |
| 10374 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10375 | # else |
| 10376 | # define LT_DLLAZY_OR_NOW 0 |
| 10377 | # endif |
| 10378 | # endif |
| 10379 | # endif |
| 10380 | # endif |
| 10381 | #endif |
| 10382 | |
| 10383 | #ifdef __cplusplus |
| 10384 | extern "C" void exit (int); |
| 10385 | #endif |
| 10386 | |
| 10387 | void fnord() { int i=42;} |
| 10388 | int main () |
| 10389 | { |
| 10390 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10391 | int status = $lt_dlunknown; |
| 10392 | |
| 10393 | if (self) |
| 10394 | { |
| 10395 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10396 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10397 | /* dlclose (self); */ |
| 10398 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10399 | else |
| 10400 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10401 | |
| 10402 | exit (status); |
| 10403 | } |
| 10404 | EOF |
| 10405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10406 | (eval $ac_link) 2>&5 |
| 10407 | ac_status=$? |
| 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10409 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10410 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10411 | lt_status=$? |
| 10412 | case x$lt_status in |
| 10413 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10414 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10415 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10416 | esac |
| 10417 | else : |
| 10418 | # compilation failed |
| 10419 | |
| 10420 | fi |
| 10421 | fi |
| 10422 | rm -fr conftest* |
| 10423 | |
| 10424 | LIBS="$save_LIBS" |
| 10425 | |
| 10426 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10427 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10428 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10429 | fi |
| 10430 | fi |
| 10431 | |
| 10432 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10433 | |
| 10434 | cat >>confdefs.h <<\_ACEOF |
| 10435 | #define NEED_USCORE 1 |
| 10436 | _ACEOF |
| 10437 | |
| 10438 | fi |
| 10439 | |
| 10440 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10441 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10442 | 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] | 10443 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10445 | else |
| 10446 | # PORTME does your system automatically load deplibs for dlopen? |
| 10447 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10448 | # For now, we just catch OSes we know something about -- in the |
| 10449 | # future, we'll try test this programmatically. |
| 10450 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10451 | case "$host_os" in |
| 10452 | aix3*|aix4.1.*|aix4.2.*) |
| 10453 | # Unknown whether this is true for these versions of AIX, but |
| 10454 | # we want this `case' here to explicitly catch those versions. |
| 10455 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10456 | ;; |
| 10457 | aix[45]*) |
| 10458 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10459 | ;; |
| 10460 | darwin*) |
| 10461 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10462 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10463 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10464 | ;; |
| 10465 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10466 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10467 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10468 | ;; |
| 10469 | hpux10*|hpux11*) |
| 10470 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10471 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10472 | interix*) |
| 10473 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10474 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10475 | irix[12345]*|irix6.[01]*) |
| 10476 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10477 | # know how it worked for any of those versions. |
| 10478 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10479 | ;; |
| 10480 | irix*) |
| 10481 | # The case above catches anything before 6.2, and it's known that |
| 10482 | # at 6.2 and later dlopen does load deplibs. |
| 10483 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10484 | ;; |
| 10485 | netbsd*) |
| 10486 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10487 | ;; |
| 10488 | openbsd*) |
| 10489 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10490 | ;; |
| 10491 | osf[1234]*) |
| 10492 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10493 | # it did *not* use an RPATH in a shared library to find objects the |
| 10494 | # library depends on, so we explictly say `no'. |
| 10495 | libltdl_cv_sys_dlopen_deplibs=no |
| 10496 | ;; |
| 10497 | osf5.0|osf5.0a|osf5.1) |
| 10498 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10499 | # it even uses RPATH in a shared library to search for shared objects |
| 10500 | # that the library depends on, but there's no easy way to know if that |
| 10501 | # patch is installed. Since this is the case, all we can really |
| 10502 | # say is unknown -- it depends on the patch being installed. If |
| 10503 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10504 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10505 | ;; |
| 10506 | osf*) |
| 10507 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10508 | # the comments above for what we know about them. |
| 10509 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10510 | # is used to find them so we can finally say `yes'. |
| 10511 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10512 | ;; |
| 10513 | solaris*) |
| 10514 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10515 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10516 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10517 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10518 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10519 | esac |
| 10520 | |
| 10521 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10522 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10523 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10524 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10525 | |
| 10526 | cat >>confdefs.h <<\_ACEOF |
| 10527 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10528 | _ACEOF |
| 10529 | |
| 10530 | fi |
| 10531 | |
| 10532 | |
| 10533 | for ac_header in argz.h |
| 10534 | do |
| 10535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10537 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10539 | 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] | 10540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10542 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10543 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10544 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10545 | else |
| 10546 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10547 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10549 | cat >conftest.$ac_ext <<_ACEOF |
| 10550 | /* confdefs.h. */ |
| 10551 | _ACEOF |
| 10552 | cat confdefs.h >>conftest.$ac_ext |
| 10553 | cat >>conftest.$ac_ext <<_ACEOF |
| 10554 | /* end confdefs.h. */ |
| 10555 | $ac_includes_default |
| 10556 | #include <$ac_header> |
| 10557 | _ACEOF |
| 10558 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10559 | if { (ac_try="$ac_compile" |
| 10560 | case "(($ac_try" in |
| 10561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10562 | *) ac_try_echo=$ac_try;; |
| 10563 | esac |
| 10564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10565 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10566 | ac_status=$? |
| 10567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10568 | rm -f conftest.er1 |
| 10569 | cat conftest.err >&5 |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10573 | { (case "(($ac_try" in |
| 10574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10575 | *) ac_try_echo=$ac_try;; |
| 10576 | esac |
| 10577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10578 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10579 | ac_status=$? |
| 10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10581 | (exit $ac_status); }; } && |
| 10582 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10583 | { (case "(($ac_try" in |
| 10584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10585 | *) ac_try_echo=$ac_try;; |
| 10586 | esac |
| 10587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10588 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10589 | ac_status=$? |
| 10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10591 | (exit $ac_status); }; }; then |
| 10592 | ac_header_compiler=yes |
| 10593 | else |
| 10594 | echo "$as_me: failed program was:" >&5 |
| 10595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10596 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10597 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10598 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10599 | |
| 10600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10601 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10602 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10603 | |
| 10604 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10605 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10606 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10607 | cat >conftest.$ac_ext <<_ACEOF |
| 10608 | /* confdefs.h. */ |
| 10609 | _ACEOF |
| 10610 | cat confdefs.h >>conftest.$ac_ext |
| 10611 | cat >>conftest.$ac_ext <<_ACEOF |
| 10612 | /* end confdefs.h. */ |
| 10613 | #include <$ac_header> |
| 10614 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10615 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10616 | case "(($ac_try" in |
| 10617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10618 | *) ac_try_echo=$ac_try;; |
| 10619 | esac |
| 10620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10621 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10622 | ac_status=$? |
| 10623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10624 | rm -f conftest.er1 |
| 10625 | cat conftest.err >&5 |
| 10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10627 | (exit $ac_status); } >/dev/null; then |
| 10628 | if test -s conftest.err; then |
| 10629 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10630 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10631 | else |
| 10632 | ac_cpp_err= |
| 10633 | fi |
| 10634 | else |
| 10635 | ac_cpp_err=yes |
| 10636 | fi |
| 10637 | if test -z "$ac_cpp_err"; then |
| 10638 | ac_header_preproc=yes |
| 10639 | else |
| 10640 | echo "$as_me: failed program was:" >&5 |
| 10641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10642 | |
| 10643 | ac_header_preproc=no |
| 10644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10645 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10647 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10648 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | |
| 10650 | # So? What about this header? |
| 10651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10652 | yes:no: ) |
| 10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10657 | ac_header_preproc=yes |
| 10658 | ;; |
| 10659 | no:yes:* ) |
| 10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10671 | 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] | 10672 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10673 | ## ----------------------------------- ## |
| 10674 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10675 | ## ----------------------------------- ## |
| 10676 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10677 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10678 | ;; |
| 10679 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10680 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10682 | 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] | 10683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10684 | else |
| 10685 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10687 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10688 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10689 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | |
| 10691 | fi |
| 10692 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10693 | cat >>confdefs.h <<_ACEOF |
| 10694 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10695 | _ACEOF |
| 10696 | |
| 10697 | fi |
| 10698 | |
| 10699 | done |
| 10700 | |
| 10701 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10702 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10703 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10704 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10706 | else |
| 10707 | cat >conftest.$ac_ext <<_ACEOF |
| 10708 | /* confdefs.h. */ |
| 10709 | _ACEOF |
| 10710 | cat confdefs.h >>conftest.$ac_ext |
| 10711 | cat >>conftest.$ac_ext <<_ACEOF |
| 10712 | /* end confdefs.h. */ |
| 10713 | #if HAVE_ARGZ_H |
| 10714 | # include <argz.h> |
| 10715 | #endif |
| 10716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10717 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10718 | int |
| 10719 | main () |
| 10720 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10721 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10722 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10723 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10724 | return 0; |
| 10725 | ; |
| 10726 | return 0; |
| 10727 | } |
| 10728 | _ACEOF |
| 10729 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10730 | if { (ac_try="$ac_compile" |
| 10731 | case "(($ac_try" in |
| 10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10733 | *) ac_try_echo=$ac_try;; |
| 10734 | esac |
| 10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10736 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10737 | ac_status=$? |
| 10738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10739 | rm -f conftest.er1 |
| 10740 | cat conftest.err >&5 |
| 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10742 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10744 | { (case "(($ac_try" in |
| 10745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10746 | *) ac_try_echo=$ac_try;; |
| 10747 | esac |
| 10748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10749 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10750 | ac_status=$? |
| 10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10752 | (exit $ac_status); }; } && |
| 10753 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10754 | { (case "(($ac_try" in |
| 10755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10756 | *) ac_try_echo=$ac_try;; |
| 10757 | esac |
| 10758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10759 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | ac_status=$? |
| 10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10762 | (exit $ac_status); }; }; then |
| 10763 | ac_cv_type_error_t=yes |
| 10764 | else |
| 10765 | echo "$as_me: failed program was:" >&5 |
| 10766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10767 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10768 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10770 | |
| 10771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10772 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10773 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10774 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10775 | if test $ac_cv_type_error_t = yes; then |
| 10776 | |
| 10777 | cat >>confdefs.h <<_ACEOF |
| 10778 | #define HAVE_ERROR_T 1 |
| 10779 | _ACEOF |
| 10780 | |
| 10781 | |
| 10782 | else |
| 10783 | |
| 10784 | cat >>confdefs.h <<\_ACEOF |
| 10785 | #define error_t int |
| 10786 | _ACEOF |
| 10787 | |
| 10788 | fi |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | |
| 10796 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10797 | do |
| 10798 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10799 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10800 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10801 | 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] | 10802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10803 | else |
| 10804 | cat >conftest.$ac_ext <<_ACEOF |
| 10805 | /* confdefs.h. */ |
| 10806 | _ACEOF |
| 10807 | cat confdefs.h >>conftest.$ac_ext |
| 10808 | cat >>conftest.$ac_ext <<_ACEOF |
| 10809 | /* end confdefs.h. */ |
| 10810 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10812 | #define $ac_func innocuous_$ac_func |
| 10813 | |
| 10814 | /* System header to define __stub macros and hopefully few prototypes, |
| 10815 | which can conflict with char $ac_func (); below. |
| 10816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10817 | <limits.h> exists even on freestanding compilers. */ |
| 10818 | |
| 10819 | #ifdef __STDC__ |
| 10820 | # include <limits.h> |
| 10821 | #else |
| 10822 | # include <assert.h> |
| 10823 | #endif |
| 10824 | |
| 10825 | #undef $ac_func |
| 10826 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10827 | /* Override any GCC internal prototype to avoid an error. |
| 10828 | Use char because int might match the return type of a GCC |
| 10829 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10830 | #ifdef __cplusplus |
| 10831 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10832 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10833 | char $ac_func (); |
| 10834 | /* The GNU C library defines this for functions which it implements |
| 10835 | to always fail with ENOSYS. Some functions are actually named |
| 10836 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10837 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10838 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10839 | #endif |
| 10840 | |
| 10841 | int |
| 10842 | main () |
| 10843 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10844 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10845 | ; |
| 10846 | return 0; |
| 10847 | } |
| 10848 | _ACEOF |
| 10849 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10850 | if { (ac_try="$ac_link" |
| 10851 | case "(($ac_try" in |
| 10852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10853 | *) ac_try_echo=$ac_try;; |
| 10854 | esac |
| 10855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10856 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10857 | ac_status=$? |
| 10858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10859 | rm -f conftest.er1 |
| 10860 | cat conftest.err >&5 |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10864 | { (case "(($ac_try" in |
| 10865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10866 | *) ac_try_echo=$ac_try;; |
| 10867 | esac |
| 10868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10869 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10870 | ac_status=$? |
| 10871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10872 | (exit $ac_status); }; } && |
| 10873 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10874 | { (case "(($ac_try" in |
| 10875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10876 | *) ac_try_echo=$ac_try;; |
| 10877 | esac |
| 10878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10879 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10880 | ac_status=$? |
| 10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10882 | (exit $ac_status); }; }; then |
| 10883 | eval "$as_ac_var=yes" |
| 10884 | else |
| 10885 | echo "$as_me: failed program was:" >&5 |
| 10886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10887 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10888 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10889 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10890 | |
| 10891 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10892 | conftest$ac_exeext conftest.$ac_ext |
| 10893 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10894 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10895 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10896 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10897 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10898 | cat >>confdefs.h <<_ACEOF |
| 10899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10900 | _ACEOF |
| 10901 | |
| 10902 | fi |
| 10903 | done |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
| 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | |
| 10915 | |
| 10916 | |
| 10917 | |
| 10918 | |
| 10919 | |
| 10920 | |
| 10921 | |
| 10922 | |
| 10923 | |
| 10924 | |
| 10925 | |
| 10926 | |
| 10927 | |
| 10928 | |
| 10929 | |
| 10930 | |
| 10931 | |
| 10932 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10933 | stdio.h unistd.h |
| 10934 | do |
| 10935 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10936 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10937 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10939 | 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] | 10940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10941 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10942 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10943 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10944 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10945 | else |
| 10946 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10947 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10948 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10949 | cat >conftest.$ac_ext <<_ACEOF |
| 10950 | /* confdefs.h. */ |
| 10951 | _ACEOF |
| 10952 | cat confdefs.h >>conftest.$ac_ext |
| 10953 | cat >>conftest.$ac_ext <<_ACEOF |
| 10954 | /* end confdefs.h. */ |
| 10955 | $ac_includes_default |
| 10956 | #include <$ac_header> |
| 10957 | _ACEOF |
| 10958 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10959 | if { (ac_try="$ac_compile" |
| 10960 | case "(($ac_try" in |
| 10961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10962 | *) ac_try_echo=$ac_try;; |
| 10963 | esac |
| 10964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10965 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10966 | ac_status=$? |
| 10967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10968 | rm -f conftest.er1 |
| 10969 | cat conftest.err >&5 |
| 10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10971 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10973 | { (case "(($ac_try" in |
| 10974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10975 | *) ac_try_echo=$ac_try;; |
| 10976 | esac |
| 10977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10978 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | ac_status=$? |
| 10980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10981 | (exit $ac_status); }; } && |
| 10982 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10983 | { (case "(($ac_try" in |
| 10984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10985 | *) ac_try_echo=$ac_try;; |
| 10986 | esac |
| 10987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10988 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10989 | ac_status=$? |
| 10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10991 | (exit $ac_status); }; }; then |
| 10992 | ac_header_compiler=yes |
| 10993 | else |
| 10994 | echo "$as_me: failed program was:" >&5 |
| 10995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10997 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10999 | |
| 11000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11001 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11002 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11003 | |
| 11004 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11005 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11006 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11007 | cat >conftest.$ac_ext <<_ACEOF |
| 11008 | /* confdefs.h. */ |
| 11009 | _ACEOF |
| 11010 | cat confdefs.h >>conftest.$ac_ext |
| 11011 | cat >>conftest.$ac_ext <<_ACEOF |
| 11012 | /* end confdefs.h. */ |
| 11013 | #include <$ac_header> |
| 11014 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11015 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11016 | case "(($ac_try" in |
| 11017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11018 | *) ac_try_echo=$ac_try;; |
| 11019 | esac |
| 11020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11021 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11022 | ac_status=$? |
| 11023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11024 | rm -f conftest.er1 |
| 11025 | cat conftest.err >&5 |
| 11026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11027 | (exit $ac_status); } >/dev/null; then |
| 11028 | if test -s conftest.err; then |
| 11029 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11030 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11031 | else |
| 11032 | ac_cpp_err= |
| 11033 | fi |
| 11034 | else |
| 11035 | ac_cpp_err=yes |
| 11036 | fi |
| 11037 | if test -z "$ac_cpp_err"; then |
| 11038 | ac_header_preproc=yes |
| 11039 | else |
| 11040 | echo "$as_me: failed program was:" >&5 |
| 11041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11042 | |
| 11043 | ac_header_preproc=no |
| 11044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11045 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11046 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11047 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11048 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11049 | |
| 11050 | # So? What about this header? |
| 11051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11052 | yes:no: ) |
| 11053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11057 | ac_header_preproc=yes |
| 11058 | ;; |
| 11059 | no:yes:* ) |
| 11060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11071 | 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] | 11072 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11073 | ## ----------------------------------- ## |
| 11074 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11075 | ## ----------------------------------- ## |
| 11076 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11077 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11078 | ;; |
| 11079 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11080 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11082 | 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] | 11083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11084 | else |
| 11085 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11087 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11088 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11089 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11090 | |
| 11091 | fi |
| 11092 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11093 | cat >>confdefs.h <<_ACEOF |
| 11094 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11095 | _ACEOF |
| 11096 | |
| 11097 | fi |
| 11098 | |
| 11099 | done |
| 11100 | |
| 11101 | |
| 11102 | |
| 11103 | |
| 11104 | |
| 11105 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11106 | do |
| 11107 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11108 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11109 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11111 | 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] | 11112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11114 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11115 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11116 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11117 | else |
| 11118 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11119 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11120 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11121 | cat >conftest.$ac_ext <<_ACEOF |
| 11122 | /* confdefs.h. */ |
| 11123 | _ACEOF |
| 11124 | cat confdefs.h >>conftest.$ac_ext |
| 11125 | cat >>conftest.$ac_ext <<_ACEOF |
| 11126 | /* end confdefs.h. */ |
| 11127 | $ac_includes_default |
| 11128 | #include <$ac_header> |
| 11129 | _ACEOF |
| 11130 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11131 | if { (ac_try="$ac_compile" |
| 11132 | case "(($ac_try" in |
| 11133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11134 | *) ac_try_echo=$ac_try;; |
| 11135 | esac |
| 11136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11137 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11138 | ac_status=$? |
| 11139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11140 | rm -f conftest.er1 |
| 11141 | cat conftest.err >&5 |
| 11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11143 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11145 | { (case "(($ac_try" in |
| 11146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11147 | *) ac_try_echo=$ac_try;; |
| 11148 | esac |
| 11149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11150 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11151 | ac_status=$? |
| 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11153 | (exit $ac_status); }; } && |
| 11154 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11155 | { (case "(($ac_try" in |
| 11156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11157 | *) ac_try_echo=$ac_try;; |
| 11158 | esac |
| 11159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11160 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11161 | ac_status=$? |
| 11162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11163 | (exit $ac_status); }; }; then |
| 11164 | ac_header_compiler=yes |
| 11165 | else |
| 11166 | echo "$as_me: failed program was:" >&5 |
| 11167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11168 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11169 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11170 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11171 | |
| 11172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11173 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11174 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11175 | |
| 11176 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11177 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11178 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11179 | cat >conftest.$ac_ext <<_ACEOF |
| 11180 | /* confdefs.h. */ |
| 11181 | _ACEOF |
| 11182 | cat confdefs.h >>conftest.$ac_ext |
| 11183 | cat >>conftest.$ac_ext <<_ACEOF |
| 11184 | /* end confdefs.h. */ |
| 11185 | #include <$ac_header> |
| 11186 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11187 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11188 | case "(($ac_try" in |
| 11189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11190 | *) ac_try_echo=$ac_try;; |
| 11191 | esac |
| 11192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11193 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11194 | ac_status=$? |
| 11195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11196 | rm -f conftest.er1 |
| 11197 | cat conftest.err >&5 |
| 11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11199 | (exit $ac_status); } >/dev/null; then |
| 11200 | if test -s conftest.err; then |
| 11201 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11203 | else |
| 11204 | ac_cpp_err= |
| 11205 | fi |
| 11206 | else |
| 11207 | ac_cpp_err=yes |
| 11208 | fi |
| 11209 | if test -z "$ac_cpp_err"; then |
| 11210 | ac_header_preproc=yes |
| 11211 | else |
| 11212 | echo "$as_me: failed program was:" >&5 |
| 11213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11214 | |
| 11215 | ac_header_preproc=no |
| 11216 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11217 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11218 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11219 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11220 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11221 | |
| 11222 | # So? What about this header? |
| 11223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11224 | yes:no: ) |
| 11225 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11226 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11228 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11229 | ac_header_preproc=yes |
| 11230 | ;; |
| 11231 | no:yes:* ) |
| 11232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11236 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11237 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11238 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11239 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11241 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11242 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11243 | 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] | 11244 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11245 | ## ----------------------------------- ## |
| 11246 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11247 | ## ----------------------------------- ## |
| 11248 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11249 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11250 | ;; |
| 11251 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11252 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11253 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11254 | 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] | 11255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11256 | else |
| 11257 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11258 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11259 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11260 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11261 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11262 | |
| 11263 | fi |
| 11264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11265 | cat >>confdefs.h <<_ACEOF |
| 11266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11267 | _ACEOF |
| 11268 | |
| 11269 | fi |
| 11270 | |
| 11271 | done |
| 11272 | |
| 11273 | |
| 11274 | |
| 11275 | for ac_header in string.h strings.h |
| 11276 | do |
| 11277 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11278 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11279 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11281 | 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] | 11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11283 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11284 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11285 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11286 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11287 | else |
| 11288 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11289 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11290 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11291 | cat >conftest.$ac_ext <<_ACEOF |
| 11292 | /* confdefs.h. */ |
| 11293 | _ACEOF |
| 11294 | cat confdefs.h >>conftest.$ac_ext |
| 11295 | cat >>conftest.$ac_ext <<_ACEOF |
| 11296 | /* end confdefs.h. */ |
| 11297 | $ac_includes_default |
| 11298 | #include <$ac_header> |
| 11299 | _ACEOF |
| 11300 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11301 | if { (ac_try="$ac_compile" |
| 11302 | case "(($ac_try" in |
| 11303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11304 | *) ac_try_echo=$ac_try;; |
| 11305 | esac |
| 11306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11307 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11308 | ac_status=$? |
| 11309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11310 | rm -f conftest.er1 |
| 11311 | cat conftest.err >&5 |
| 11312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11313 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11315 | { (case "(($ac_try" in |
| 11316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11317 | *) ac_try_echo=$ac_try;; |
| 11318 | esac |
| 11319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11320 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11321 | ac_status=$? |
| 11322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11323 | (exit $ac_status); }; } && |
| 11324 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11325 | { (case "(($ac_try" in |
| 11326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11327 | *) ac_try_echo=$ac_try;; |
| 11328 | esac |
| 11329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11330 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11331 | ac_status=$? |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); }; }; then |
| 11334 | ac_header_compiler=yes |
| 11335 | else |
| 11336 | echo "$as_me: failed program was:" >&5 |
| 11337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11339 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11340 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11341 | |
| 11342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11343 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11344 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11345 | |
| 11346 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11347 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11349 | cat >conftest.$ac_ext <<_ACEOF |
| 11350 | /* confdefs.h. */ |
| 11351 | _ACEOF |
| 11352 | cat confdefs.h >>conftest.$ac_ext |
| 11353 | cat >>conftest.$ac_ext <<_ACEOF |
| 11354 | /* end confdefs.h. */ |
| 11355 | #include <$ac_header> |
| 11356 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11357 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11358 | case "(($ac_try" in |
| 11359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11360 | *) ac_try_echo=$ac_try;; |
| 11361 | esac |
| 11362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11363 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11364 | ac_status=$? |
| 11365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11366 | rm -f conftest.er1 |
| 11367 | cat conftest.err >&5 |
| 11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11369 | (exit $ac_status); } >/dev/null; then |
| 11370 | if test -s conftest.err; then |
| 11371 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11372 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11373 | else |
| 11374 | ac_cpp_err= |
| 11375 | fi |
| 11376 | else |
| 11377 | ac_cpp_err=yes |
| 11378 | fi |
| 11379 | if test -z "$ac_cpp_err"; then |
| 11380 | ac_header_preproc=yes |
| 11381 | else |
| 11382 | echo "$as_me: failed program was:" >&5 |
| 11383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11384 | |
| 11385 | ac_header_preproc=no |
| 11386 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11387 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11388 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11389 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11390 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11391 | |
| 11392 | # So? What about this header? |
| 11393 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11394 | yes:no: ) |
| 11395 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11396 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11397 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11398 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11399 | ac_header_preproc=yes |
| 11400 | ;; |
| 11401 | no:yes:* ) |
| 11402 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11403 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11404 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11405 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11406 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11407 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11408 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11409 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11410 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11411 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11412 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11413 | 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] | 11414 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11415 | ## ----------------------------------- ## |
| 11416 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11417 | ## ----------------------------------- ## |
| 11418 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11419 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11420 | ;; |
| 11421 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11422 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11424 | 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] | 11425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11426 | else |
| 11427 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11428 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11429 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11430 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11431 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11432 | |
| 11433 | fi |
| 11434 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11435 | cat >>confdefs.h <<_ACEOF |
| 11436 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11437 | _ACEOF |
| 11438 | break |
| 11439 | fi |
| 11440 | |
| 11441 | done |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | for ac_func in strchr index |
| 11447 | do |
| 11448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11449 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11451 | 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] | 11452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11453 | else |
| 11454 | cat >conftest.$ac_ext <<_ACEOF |
| 11455 | /* confdefs.h. */ |
| 11456 | _ACEOF |
| 11457 | cat confdefs.h >>conftest.$ac_ext |
| 11458 | cat >>conftest.$ac_ext <<_ACEOF |
| 11459 | /* end confdefs.h. */ |
| 11460 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11461 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11462 | #define $ac_func innocuous_$ac_func |
| 11463 | |
| 11464 | /* System header to define __stub macros and hopefully few prototypes, |
| 11465 | which can conflict with char $ac_func (); below. |
| 11466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11467 | <limits.h> exists even on freestanding compilers. */ |
| 11468 | |
| 11469 | #ifdef __STDC__ |
| 11470 | # include <limits.h> |
| 11471 | #else |
| 11472 | # include <assert.h> |
| 11473 | #endif |
| 11474 | |
| 11475 | #undef $ac_func |
| 11476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11477 | /* Override any GCC internal prototype to avoid an error. |
| 11478 | Use char because int might match the return type of a GCC |
| 11479 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11480 | #ifdef __cplusplus |
| 11481 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11482 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11483 | char $ac_func (); |
| 11484 | /* The GNU C library defines this for functions which it implements |
| 11485 | to always fail with ENOSYS. Some functions are actually named |
| 11486 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11487 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11488 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11489 | #endif |
| 11490 | |
| 11491 | int |
| 11492 | main () |
| 11493 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11494 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11495 | ; |
| 11496 | return 0; |
| 11497 | } |
| 11498 | _ACEOF |
| 11499 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11500 | if { (ac_try="$ac_link" |
| 11501 | case "(($ac_try" in |
| 11502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11503 | *) ac_try_echo=$ac_try;; |
| 11504 | esac |
| 11505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11506 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11507 | ac_status=$? |
| 11508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11509 | rm -f conftest.er1 |
| 11510 | cat conftest.err >&5 |
| 11511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11512 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11514 | { (case "(($ac_try" in |
| 11515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11516 | *) ac_try_echo=$ac_try;; |
| 11517 | esac |
| 11518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11519 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11520 | ac_status=$? |
| 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); }; } && |
| 11523 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11524 | { (case "(($ac_try" in |
| 11525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11526 | *) ac_try_echo=$ac_try;; |
| 11527 | esac |
| 11528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11529 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11530 | ac_status=$? |
| 11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11532 | (exit $ac_status); }; }; then |
| 11533 | eval "$as_ac_var=yes" |
| 11534 | else |
| 11535 | echo "$as_me: failed program was:" >&5 |
| 11536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11537 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11538 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11539 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11540 | |
| 11541 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11542 | conftest$ac_exeext conftest.$ac_ext |
| 11543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11544 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11545 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11546 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11547 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11548 | cat >>confdefs.h <<_ACEOF |
| 11549 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11550 | _ACEOF |
| 11551 | break |
| 11552 | fi |
| 11553 | done |
| 11554 | |
| 11555 | |
| 11556 | |
| 11557 | for ac_func in strrchr rindex |
| 11558 | do |
| 11559 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11560 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11561 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11562 | 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] | 11563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11564 | else |
| 11565 | cat >conftest.$ac_ext <<_ACEOF |
| 11566 | /* confdefs.h. */ |
| 11567 | _ACEOF |
| 11568 | cat confdefs.h >>conftest.$ac_ext |
| 11569 | cat >>conftest.$ac_ext <<_ACEOF |
| 11570 | /* end confdefs.h. */ |
| 11571 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11572 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11573 | #define $ac_func innocuous_$ac_func |
| 11574 | |
| 11575 | /* System header to define __stub macros and hopefully few prototypes, |
| 11576 | which can conflict with char $ac_func (); below. |
| 11577 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11578 | <limits.h> exists even on freestanding compilers. */ |
| 11579 | |
| 11580 | #ifdef __STDC__ |
| 11581 | # include <limits.h> |
| 11582 | #else |
| 11583 | # include <assert.h> |
| 11584 | #endif |
| 11585 | |
| 11586 | #undef $ac_func |
| 11587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11588 | /* Override any GCC internal prototype to avoid an error. |
| 11589 | Use char because int might match the return type of a GCC |
| 11590 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11591 | #ifdef __cplusplus |
| 11592 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11593 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11594 | char $ac_func (); |
| 11595 | /* The GNU C library defines this for functions which it implements |
| 11596 | to always fail with ENOSYS. Some functions are actually named |
| 11597 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11598 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11599 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11600 | #endif |
| 11601 | |
| 11602 | int |
| 11603 | main () |
| 11604 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11605 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11606 | ; |
| 11607 | return 0; |
| 11608 | } |
| 11609 | _ACEOF |
| 11610 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11611 | if { (ac_try="$ac_link" |
| 11612 | case "(($ac_try" in |
| 11613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11614 | *) ac_try_echo=$ac_try;; |
| 11615 | esac |
| 11616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11617 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11618 | ac_status=$? |
| 11619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11620 | rm -f conftest.er1 |
| 11621 | cat conftest.err >&5 |
| 11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11623 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11625 | { (case "(($ac_try" in |
| 11626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11627 | *) ac_try_echo=$ac_try;; |
| 11628 | esac |
| 11629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11630 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11631 | ac_status=$? |
| 11632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11633 | (exit $ac_status); }; } && |
| 11634 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11635 | { (case "(($ac_try" in |
| 11636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11637 | *) ac_try_echo=$ac_try;; |
| 11638 | esac |
| 11639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11640 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11641 | ac_status=$? |
| 11642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11643 | (exit $ac_status); }; }; then |
| 11644 | eval "$as_ac_var=yes" |
| 11645 | else |
| 11646 | echo "$as_me: failed program was:" >&5 |
| 11647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11649 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11651 | |
| 11652 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11653 | conftest$ac_exeext conftest.$ac_ext |
| 11654 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11655 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11656 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11657 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11658 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11659 | cat >>confdefs.h <<_ACEOF |
| 11660 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11661 | _ACEOF |
| 11662 | break |
| 11663 | fi |
| 11664 | done |
| 11665 | |
| 11666 | |
| 11667 | |
| 11668 | for ac_func in memcpy bcopy |
| 11669 | do |
| 11670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11671 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11673 | 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] | 11674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11675 | else |
| 11676 | cat >conftest.$ac_ext <<_ACEOF |
| 11677 | /* confdefs.h. */ |
| 11678 | _ACEOF |
| 11679 | cat confdefs.h >>conftest.$ac_ext |
| 11680 | cat >>conftest.$ac_ext <<_ACEOF |
| 11681 | /* end confdefs.h. */ |
| 11682 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11684 | #define $ac_func innocuous_$ac_func |
| 11685 | |
| 11686 | /* System header to define __stub macros and hopefully few prototypes, |
| 11687 | which can conflict with char $ac_func (); below. |
| 11688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11689 | <limits.h> exists even on freestanding compilers. */ |
| 11690 | |
| 11691 | #ifdef __STDC__ |
| 11692 | # include <limits.h> |
| 11693 | #else |
| 11694 | # include <assert.h> |
| 11695 | #endif |
| 11696 | |
| 11697 | #undef $ac_func |
| 11698 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11699 | /* Override any GCC internal prototype to avoid an error. |
| 11700 | Use char because int might match the return type of a GCC |
| 11701 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11702 | #ifdef __cplusplus |
| 11703 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11704 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11705 | char $ac_func (); |
| 11706 | /* The GNU C library defines this for functions which it implements |
| 11707 | to always fail with ENOSYS. Some functions are actually named |
| 11708 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11709 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11710 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11711 | #endif |
| 11712 | |
| 11713 | int |
| 11714 | main () |
| 11715 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11716 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11717 | ; |
| 11718 | return 0; |
| 11719 | } |
| 11720 | _ACEOF |
| 11721 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11722 | if { (ac_try="$ac_link" |
| 11723 | case "(($ac_try" in |
| 11724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11725 | *) ac_try_echo=$ac_try;; |
| 11726 | esac |
| 11727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11728 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11729 | ac_status=$? |
| 11730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11731 | rm -f conftest.er1 |
| 11732 | cat conftest.err >&5 |
| 11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11734 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11736 | { (case "(($ac_try" in |
| 11737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11738 | *) ac_try_echo=$ac_try;; |
| 11739 | esac |
| 11740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11741 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11742 | ac_status=$? |
| 11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11744 | (exit $ac_status); }; } && |
| 11745 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11746 | { (case "(($ac_try" in |
| 11747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11748 | *) ac_try_echo=$ac_try;; |
| 11749 | esac |
| 11750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11751 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11752 | ac_status=$? |
| 11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11754 | (exit $ac_status); }; }; then |
| 11755 | eval "$as_ac_var=yes" |
| 11756 | else |
| 11757 | echo "$as_me: failed program was:" >&5 |
| 11758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11759 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11760 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11761 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11762 | |
| 11763 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11764 | conftest$ac_exeext conftest.$ac_ext |
| 11765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11766 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11768 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11769 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11770 | cat >>confdefs.h <<_ACEOF |
| 11771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11772 | _ACEOF |
| 11773 | break |
| 11774 | fi |
| 11775 | done |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | for ac_func in memmove strcmp |
| 11780 | do |
| 11781 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11782 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11783 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11784 | 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] | 11785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11786 | else |
| 11787 | cat >conftest.$ac_ext <<_ACEOF |
| 11788 | /* confdefs.h. */ |
| 11789 | _ACEOF |
| 11790 | cat confdefs.h >>conftest.$ac_ext |
| 11791 | cat >>conftest.$ac_ext <<_ACEOF |
| 11792 | /* end confdefs.h. */ |
| 11793 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11794 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11795 | #define $ac_func innocuous_$ac_func |
| 11796 | |
| 11797 | /* System header to define __stub macros and hopefully few prototypes, |
| 11798 | which can conflict with char $ac_func (); below. |
| 11799 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11800 | <limits.h> exists even on freestanding compilers. */ |
| 11801 | |
| 11802 | #ifdef __STDC__ |
| 11803 | # include <limits.h> |
| 11804 | #else |
| 11805 | # include <assert.h> |
| 11806 | #endif |
| 11807 | |
| 11808 | #undef $ac_func |
| 11809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11810 | /* Override any GCC internal prototype to avoid an error. |
| 11811 | Use char because int might match the return type of a GCC |
| 11812 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11813 | #ifdef __cplusplus |
| 11814 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11815 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11816 | char $ac_func (); |
| 11817 | /* The GNU C library defines this for functions which it implements |
| 11818 | to always fail with ENOSYS. Some functions are actually named |
| 11819 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11820 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11821 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11822 | #endif |
| 11823 | |
| 11824 | int |
| 11825 | main () |
| 11826 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11827 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11828 | ; |
| 11829 | return 0; |
| 11830 | } |
| 11831 | _ACEOF |
| 11832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11833 | if { (ac_try="$ac_link" |
| 11834 | case "(($ac_try" in |
| 11835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11836 | *) ac_try_echo=$ac_try;; |
| 11837 | esac |
| 11838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11839 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11840 | ac_status=$? |
| 11841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11842 | rm -f conftest.er1 |
| 11843 | cat conftest.err >&5 |
| 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11847 | { (case "(($ac_try" in |
| 11848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11849 | *) ac_try_echo=$ac_try;; |
| 11850 | esac |
| 11851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11852 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11853 | ac_status=$? |
| 11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11855 | (exit $ac_status); }; } && |
| 11856 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11857 | { (case "(($ac_try" in |
| 11858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11859 | *) ac_try_echo=$ac_try;; |
| 11860 | esac |
| 11861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11862 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11863 | ac_status=$? |
| 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11865 | (exit $ac_status); }; }; then |
| 11866 | eval "$as_ac_var=yes" |
| 11867 | else |
| 11868 | echo "$as_me: failed program was:" >&5 |
| 11869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11871 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11872 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11873 | |
| 11874 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11875 | conftest$ac_exeext conftest.$ac_ext |
| 11876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11877 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11878 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11879 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11881 | cat >>confdefs.h <<_ACEOF |
| 11882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11883 | _ACEOF |
| 11884 | |
| 11885 | fi |
| 11886 | done |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | for ac_func in closedir opendir readdir |
| 11892 | do |
| 11893 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11894 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11895 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11896 | 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] | 11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11898 | else |
| 11899 | cat >conftest.$ac_ext <<_ACEOF |
| 11900 | /* confdefs.h. */ |
| 11901 | _ACEOF |
| 11902 | cat confdefs.h >>conftest.$ac_ext |
| 11903 | cat >>conftest.$ac_ext <<_ACEOF |
| 11904 | /* end confdefs.h. */ |
| 11905 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11907 | #define $ac_func innocuous_$ac_func |
| 11908 | |
| 11909 | /* System header to define __stub macros and hopefully few prototypes, |
| 11910 | which can conflict with char $ac_func (); below. |
| 11911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11912 | <limits.h> exists even on freestanding compilers. */ |
| 11913 | |
| 11914 | #ifdef __STDC__ |
| 11915 | # include <limits.h> |
| 11916 | #else |
| 11917 | # include <assert.h> |
| 11918 | #endif |
| 11919 | |
| 11920 | #undef $ac_func |
| 11921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11922 | /* Override any GCC internal prototype to avoid an error. |
| 11923 | Use char because int might match the return type of a GCC |
| 11924 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11925 | #ifdef __cplusplus |
| 11926 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11927 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11928 | char $ac_func (); |
| 11929 | /* The GNU C library defines this for functions which it implements |
| 11930 | to always fail with ENOSYS. Some functions are actually named |
| 11931 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11932 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11933 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11934 | #endif |
| 11935 | |
| 11936 | int |
| 11937 | main () |
| 11938 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11939 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11940 | ; |
| 11941 | return 0; |
| 11942 | } |
| 11943 | _ACEOF |
| 11944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11945 | if { (ac_try="$ac_link" |
| 11946 | case "(($ac_try" in |
| 11947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11948 | *) ac_try_echo=$ac_try;; |
| 11949 | esac |
| 11950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11951 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11952 | ac_status=$? |
| 11953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11954 | rm -f conftest.er1 |
| 11955 | cat conftest.err >&5 |
| 11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11957 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11959 | { (case "(($ac_try" in |
| 11960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11961 | *) ac_try_echo=$ac_try;; |
| 11962 | esac |
| 11963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11964 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11965 | ac_status=$? |
| 11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11967 | (exit $ac_status); }; } && |
| 11968 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11969 | { (case "(($ac_try" in |
| 11970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11971 | *) ac_try_echo=$ac_try;; |
| 11972 | esac |
| 11973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11974 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11975 | ac_status=$? |
| 11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11977 | (exit $ac_status); }; }; then |
| 11978 | eval "$as_ac_var=yes" |
| 11979 | else |
| 11980 | echo "$as_me: failed program was:" >&5 |
| 11981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11983 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11985 | |
| 11986 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11987 | conftest$ac_exeext conftest.$ac_ext |
| 11988 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11989 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11991 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11992 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11993 | cat >>confdefs.h <<_ACEOF |
| 11994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11995 | _ACEOF |
| 11996 | |
| 11997 | fi |
| 11998 | done |
| 11999 | |
| 12000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12001 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12002 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12003 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12004 | case $enableval in |
| 12005 | yes) enable_shared=yes ;; |
| 12006 | no) enable_shared=no ;; |
| 12007 | *) |
| 12008 | enable_shared=no |
| 12009 | # Look at the argument we got. We use all the common list separators. |
| 12010 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12011 | for pkg in $enableval; do |
| 12012 | IFS="$lt_save_ifs" |
| 12013 | if test "X$pkg" = "X$p"; then |
| 12014 | enable_shared=yes |
| 12015 | fi |
| 12016 | done |
| 12017 | IFS="$lt_save_ifs" |
| 12018 | ;; |
| 12019 | esac |
| 12020 | else |
| 12021 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12022 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12024 | |
| 12025 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12026 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12027 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12028 | case $enableval in |
| 12029 | yes) enable_static=yes ;; |
| 12030 | no) enable_static=no ;; |
| 12031 | *) |
| 12032 | enable_static=no |
| 12033 | # Look at the argument we got. We use all the common list separators. |
| 12034 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12035 | for pkg in $enableval; do |
| 12036 | IFS="$lt_save_ifs" |
| 12037 | if test "X$pkg" = "X$p"; then |
| 12038 | enable_static=yes |
| 12039 | fi |
| 12040 | done |
| 12041 | IFS="$lt_save_ifs" |
| 12042 | ;; |
| 12043 | esac |
| 12044 | else |
| 12045 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12046 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12047 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12048 | |
| 12049 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12050 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12051 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12052 | case $enableval in |
| 12053 | yes) enable_fast_install=yes ;; |
| 12054 | no) enable_fast_install=no ;; |
| 12055 | *) |
| 12056 | enable_fast_install=no |
| 12057 | # Look at the argument we got. We use all the common list separators. |
| 12058 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12059 | for pkg in $enableval; do |
| 12060 | IFS="$lt_save_ifs" |
| 12061 | if test "X$pkg" = "X$p"; then |
| 12062 | enable_fast_install=yes |
| 12063 | fi |
| 12064 | done |
| 12065 | IFS="$lt_save_ifs" |
| 12066 | ;; |
| 12067 | esac |
| 12068 | else |
| 12069 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12070 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12071 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12072 | |
| 12073 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12074 | 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] | 12075 | if test "${lt_cv_path_SED+set}" = set; then |
| 12076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12077 | else |
| 12078 | # Loop through the user's path and test for sed and gsed. |
| 12079 | # Then use that list of sed's as ones to test for truncation. |
| 12080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12081 | for as_dir in $PATH |
| 12082 | do |
| 12083 | IFS=$as_save_IFS |
| 12084 | test -z "$as_dir" && as_dir=. |
| 12085 | for lt_ac_prog in sed gsed; do |
| 12086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12087 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12088 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12089 | fi |
| 12090 | done |
| 12091 | done |
| 12092 | done |
| 12093 | lt_ac_max=0 |
| 12094 | lt_ac_count=0 |
| 12095 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12096 | # along with /bin/sed that truncates output. |
| 12097 | 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] | 12098 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12099 | cat /dev/null > conftest.in |
| 12100 | lt_ac_count=0 |
| 12101 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12102 | # Check for GNU sed and select it if it is found. |
| 12103 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12104 | lt_cv_path_SED=$lt_ac_sed |
| 12105 | break |
| 12106 | fi |
| 12107 | while true; do |
| 12108 | cat conftest.in conftest.in >conftest.tmp |
| 12109 | mv conftest.tmp conftest.in |
| 12110 | cp conftest.in conftest.nl |
| 12111 | echo >>conftest.nl |
| 12112 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12113 | cmp -s conftest.out conftest.nl || break |
| 12114 | # 10000 chars as input seems more than enough |
| 12115 | test $lt_ac_count -gt 10 && break |
| 12116 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12117 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12118 | lt_ac_max=$lt_ac_count |
| 12119 | lt_cv_path_SED=$lt_ac_sed |
| 12120 | fi |
| 12121 | done |
| 12122 | done |
| 12123 | |
| 12124 | fi |
| 12125 | |
| 12126 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12127 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12128 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12129 | |
| 12130 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12131 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12132 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12133 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12134 | else |
| 12135 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12136 | fi |
| 12137 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12138 | ac_prog=ld |
| 12139 | if test "$GCC" = yes; then |
| 12140 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12141 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12142 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12143 | case $host in |
| 12144 | *-*-mingw*) |
| 12145 | # gcc leaves a trailing carriage return which upsets mingw |
| 12146 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12147 | *) |
| 12148 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12149 | esac |
| 12150 | case $ac_prog in |
| 12151 | # Accept absolute paths. |
| 12152 | [\\/]* | ?:[\\/]*) |
| 12153 | re_direlt='/[^/][^/]*/\.\./' |
| 12154 | # Canonicalize the pathname of ld |
| 12155 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12156 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12157 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12158 | done |
| 12159 | test -z "$LD" && LD="$ac_prog" |
| 12160 | ;; |
| 12161 | "") |
| 12162 | # If it fails, then pretend we aren't using GCC. |
| 12163 | ac_prog=ld |
| 12164 | ;; |
| 12165 | *) |
| 12166 | # If it is relative, then search for the first ld in PATH. |
| 12167 | with_gnu_ld=unknown |
| 12168 | ;; |
| 12169 | esac |
| 12170 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12171 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12172 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12173 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12174 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12175 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12176 | fi |
| 12177 | if test "${lt_cv_path_LD+set}" = set; then |
| 12178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12179 | else |
| 12180 | if test -z "$LD"; then |
| 12181 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12182 | for ac_dir in $PATH; do |
| 12183 | IFS="$lt_save_ifs" |
| 12184 | test -z "$ac_dir" && ac_dir=. |
| 12185 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12186 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12187 | # 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] | 12188 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12189 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12190 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12191 | *GNU* | *'with BFD'*) |
| 12192 | test "$with_gnu_ld" != no && break |
| 12193 | ;; |
| 12194 | *) |
| 12195 | test "$with_gnu_ld" != yes && break |
| 12196 | ;; |
| 12197 | esac |
| 12198 | fi |
| 12199 | done |
| 12200 | IFS="$lt_save_ifs" |
| 12201 | else |
| 12202 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12203 | fi |
| 12204 | fi |
| 12205 | |
| 12206 | LD="$lt_cv_path_LD" |
| 12207 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12208 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12209 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12210 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12211 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12212 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12213 | fi |
| 12214 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12215 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12216 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12217 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12218 | 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] | 12219 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12221 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12222 | # 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] | 12223 | case `$LD -v 2>&1 </dev/null` in |
| 12224 | *GNU* | *'with BFD'*) |
| 12225 | lt_cv_prog_gnu_ld=yes |
| 12226 | ;; |
| 12227 | *) |
| 12228 | lt_cv_prog_gnu_ld=no |
| 12229 | ;; |
| 12230 | esac |
| 12231 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12232 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12233 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12234 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12235 | |
| 12236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12237 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12238 | 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] | 12239 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12241 | else |
| 12242 | lt_cv_ld_reload_flag='-r' |
| 12243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12244 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12245 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12246 | reload_flag=$lt_cv_ld_reload_flag |
| 12247 | case $reload_flag in |
| 12248 | "" | " "*) ;; |
| 12249 | *) reload_flag=" $reload_flag" ;; |
| 12250 | esac |
| 12251 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12252 | case $host_os in |
| 12253 | darwin*) |
| 12254 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12255 | 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] | 12256 | else |
| 12257 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12258 | fi |
| 12259 | ;; |
| 12260 | esac |
| 12261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12262 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12263 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12264 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12266 | else |
| 12267 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12268 | lt_cv_file_magic_test_file= |
| 12269 | lt_cv_deplibs_check_method='unknown' |
| 12270 | # Need to set the preceding variable on all platforms that support |
| 12271 | # interlibrary dependencies. |
| 12272 | # 'none' -- dependencies not supported. |
| 12273 | # `unknown' -- same as none, but documents that we really don't know. |
| 12274 | # 'pass_all' -- all dependencies passed with no checks. |
| 12275 | # 'test_compile' -- check by making test program. |
| 12276 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12277 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12278 | # If you have `file' or equivalent on your system and you're not sure |
| 12279 | # whether `pass_all' will *always* work, you probably want this one. |
| 12280 | |
| 12281 | case $host_os in |
| 12282 | aix4* | aix5*) |
| 12283 | lt_cv_deplibs_check_method=pass_all |
| 12284 | ;; |
| 12285 | |
| 12286 | beos*) |
| 12287 | lt_cv_deplibs_check_method=pass_all |
| 12288 | ;; |
| 12289 | |
| 12290 | bsdi[45]*) |
| 12291 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12292 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12293 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12294 | ;; |
| 12295 | |
| 12296 | cygwin*) |
| 12297 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12298 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12299 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12300 | ;; |
| 12301 | |
| 12302 | mingw* | pw32*) |
| 12303 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12304 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12305 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12306 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12307 | ;; |
| 12308 | |
| 12309 | darwin* | rhapsody*) |
| 12310 | lt_cv_deplibs_check_method=pass_all |
| 12311 | ;; |
| 12312 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12313 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12314 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12315 | case $host_cpu in |
| 12316 | i*86 ) |
| 12317 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12318 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12319 | 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] | 12320 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12321 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12322 | ;; |
| 12323 | esac |
| 12324 | else |
| 12325 | lt_cv_deplibs_check_method=pass_all |
| 12326 | fi |
| 12327 | ;; |
| 12328 | |
| 12329 | gnu*) |
| 12330 | lt_cv_deplibs_check_method=pass_all |
| 12331 | ;; |
| 12332 | |
| 12333 | hpux10.20* | hpux11*) |
| 12334 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12336 | ia64*) |
| 12337 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12338 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12339 | ;; |
| 12340 | hppa*64*) |
| 12341 | 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]' |
| 12342 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12343 | ;; |
| 12344 | *) |
| 12345 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12346 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12347 | ;; |
| 12348 | esac |
| 12349 | ;; |
| 12350 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12351 | interix3*) |
| 12352 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12353 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12354 | ;; |
| 12355 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12356 | irix5* | irix6* | nonstopux*) |
| 12357 | case $LD in |
| 12358 | *-32|*"-32 ") libmagic=32-bit;; |
| 12359 | *-n32|*"-n32 ") libmagic=N32;; |
| 12360 | *-64|*"-64 ") libmagic=64-bit;; |
| 12361 | *) libmagic=never-match;; |
| 12362 | esac |
| 12363 | lt_cv_deplibs_check_method=pass_all |
| 12364 | ;; |
| 12365 | |
| 12366 | # This must be Linux ELF. |
| 12367 | linux*) |
| 12368 | lt_cv_deplibs_check_method=pass_all |
| 12369 | ;; |
| 12370 | |
| 12371 | netbsd*) |
| 12372 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12373 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12374 | else |
| 12375 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12376 | fi |
| 12377 | ;; |
| 12378 | |
| 12379 | newos6*) |
| 12380 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12381 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12382 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12383 | ;; |
| 12384 | |
| 12385 | nto-qnx*) |
| 12386 | lt_cv_deplibs_check_method=unknown |
| 12387 | ;; |
| 12388 | |
| 12389 | openbsd*) |
| 12390 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12391 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12392 | else |
| 12393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12394 | fi |
| 12395 | ;; |
| 12396 | |
| 12397 | osf3* | osf4* | osf5*) |
| 12398 | lt_cv_deplibs_check_method=pass_all |
| 12399 | ;; |
| 12400 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12401 | solaris*) |
| 12402 | lt_cv_deplibs_check_method=pass_all |
| 12403 | ;; |
| 12404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12405 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12406 | case $host_vendor in |
| 12407 | motorola) |
| 12408 | 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]' |
| 12409 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12410 | ;; |
| 12411 | ncr) |
| 12412 | lt_cv_deplibs_check_method=pass_all |
| 12413 | ;; |
| 12414 | sequent) |
| 12415 | lt_cv_file_magic_cmd='/bin/file' |
| 12416 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12417 | ;; |
| 12418 | sni) |
| 12419 | lt_cv_file_magic_cmd='/bin/file' |
| 12420 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12421 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12422 | ;; |
| 12423 | siemens) |
| 12424 | lt_cv_deplibs_check_method=pass_all |
| 12425 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12426 | pc) |
| 12427 | lt_cv_deplibs_check_method=pass_all |
| 12428 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12429 | esac |
| 12430 | ;; |
| 12431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12432 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12433 | lt_cv_deplibs_check_method=pass_all |
| 12434 | ;; |
| 12435 | esac |
| 12436 | |
| 12437 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12438 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12439 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12440 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12441 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12442 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12443 | |
| 12444 | |
| 12445 | |
| 12446 | # If no C compiler was specified, use CC. |
| 12447 | LTCC=${LTCC-"$CC"} |
| 12448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12449 | # If no C compiler flags were specified, use CFLAGS. |
| 12450 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12451 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12452 | # Allow CC to be a program name with arguments. |
| 12453 | compiler=$CC |
| 12454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12455 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12456 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12457 | enableval=$enable_libtool_lock; |
| 12458 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12459 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12460 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12461 | |
| 12462 | # Some flags need to be propagated to the compiler or linker for good |
| 12463 | # libtool support. |
| 12464 | case $host in |
| 12465 | ia64-*-hpux*) |
| 12466 | # Find out which ABI we are using. |
| 12467 | echo 'int i;' > conftest.$ac_ext |
| 12468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12469 | (eval $ac_compile) 2>&5 |
| 12470 | ac_status=$? |
| 12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12472 | (exit $ac_status); }; then |
| 12473 | case `/usr/bin/file conftest.$ac_objext` in |
| 12474 | *ELF-32*) |
| 12475 | HPUX_IA64_MODE="32" |
| 12476 | ;; |
| 12477 | *ELF-64*) |
| 12478 | HPUX_IA64_MODE="64" |
| 12479 | ;; |
| 12480 | esac |
| 12481 | fi |
| 12482 | rm -rf conftest* |
| 12483 | ;; |
| 12484 | *-*-irix6*) |
| 12485 | # Find out which ABI we are using. |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 12486 | echo '#line 12486 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12488 | (eval $ac_compile) 2>&5 |
| 12489 | ac_status=$? |
| 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); }; then |
| 12492 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12493 | case `/usr/bin/file conftest.$ac_objext` in |
| 12494 | *32-bit*) |
| 12495 | LD="${LD-ld} -melf32bsmip" |
| 12496 | ;; |
| 12497 | *N32*) |
| 12498 | LD="${LD-ld} -melf32bmipn32" |
| 12499 | ;; |
| 12500 | *64-bit*) |
| 12501 | LD="${LD-ld} -melf64bmip" |
| 12502 | ;; |
| 12503 | esac |
| 12504 | else |
| 12505 | case `/usr/bin/file conftest.$ac_objext` in |
| 12506 | *32-bit*) |
| 12507 | LD="${LD-ld} -32" |
| 12508 | ;; |
| 12509 | *N32*) |
| 12510 | LD="${LD-ld} -n32" |
| 12511 | ;; |
| 12512 | *64-bit*) |
| 12513 | LD="${LD-ld} -64" |
| 12514 | ;; |
| 12515 | esac |
| 12516 | fi |
| 12517 | fi |
| 12518 | rm -rf conftest* |
| 12519 | ;; |
| 12520 | |
| 12521 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12522 | # Find out which ABI we are using. |
| 12523 | echo 'int i;' > conftest.$ac_ext |
| 12524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12525 | (eval $ac_compile) 2>&5 |
| 12526 | ac_status=$? |
| 12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12528 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12529 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12530 | *32-bit*) |
| 12531 | case $host in |
| 12532 | x86_64-*linux*) |
| 12533 | LD="${LD-ld} -m elf_i386" |
| 12534 | ;; |
| 12535 | ppc64-*linux*|powerpc64-*linux*) |
| 12536 | LD="${LD-ld} -m elf32ppclinux" |
| 12537 | ;; |
| 12538 | s390x-*linux*) |
| 12539 | LD="${LD-ld} -m elf_s390" |
| 12540 | ;; |
| 12541 | sparc64-*linux*) |
| 12542 | LD="${LD-ld} -m elf32_sparc" |
| 12543 | ;; |
| 12544 | esac |
| 12545 | ;; |
| 12546 | *64-bit*) |
| 12547 | case $host in |
| 12548 | x86_64-*linux*) |
| 12549 | LD="${LD-ld} -m elf_x86_64" |
| 12550 | ;; |
| 12551 | ppc*-*linux*|powerpc*-*linux*) |
| 12552 | LD="${LD-ld} -m elf64ppc" |
| 12553 | ;; |
| 12554 | s390*-*linux*) |
| 12555 | LD="${LD-ld} -m elf64_s390" |
| 12556 | ;; |
| 12557 | sparc*-*linux*) |
| 12558 | LD="${LD-ld} -m elf64_sparc" |
| 12559 | ;; |
| 12560 | esac |
| 12561 | ;; |
| 12562 | esac |
| 12563 | fi |
| 12564 | rm -rf conftest* |
| 12565 | ;; |
| 12566 | |
| 12567 | *-*-sco3.2v5*) |
| 12568 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12569 | SAVE_CFLAGS="$CFLAGS" |
| 12570 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12571 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12572 | 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] | 12573 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12575 | else |
| 12576 | ac_ext=c |
| 12577 | ac_cpp='$CPP $CPPFLAGS' |
| 12578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12581 | |
| 12582 | cat >conftest.$ac_ext <<_ACEOF |
| 12583 | /* confdefs.h. */ |
| 12584 | _ACEOF |
| 12585 | cat confdefs.h >>conftest.$ac_ext |
| 12586 | cat >>conftest.$ac_ext <<_ACEOF |
| 12587 | /* end confdefs.h. */ |
| 12588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12589 | int |
| 12590 | main () |
| 12591 | { |
| 12592 | |
| 12593 | ; |
| 12594 | return 0; |
| 12595 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12596 | _ACEOF |
| 12597 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12598 | if { (ac_try="$ac_link" |
| 12599 | case "(($ac_try" in |
| 12600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12601 | *) ac_try_echo=$ac_try;; |
| 12602 | esac |
| 12603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12604 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12605 | ac_status=$? |
| 12606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12607 | rm -f conftest.er1 |
| 12608 | cat conftest.err >&5 |
| 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12612 | { (case "(($ac_try" in |
| 12613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12614 | *) ac_try_echo=$ac_try;; |
| 12615 | esac |
| 12616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12617 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12618 | ac_status=$? |
| 12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12620 | (exit $ac_status); }; } && |
| 12621 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12622 | { (case "(($ac_try" in |
| 12623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12624 | *) ac_try_echo=$ac_try;; |
| 12625 | esac |
| 12626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12627 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12628 | ac_status=$? |
| 12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12630 | (exit $ac_status); }; }; then |
| 12631 | lt_cv_cc_needs_belf=yes |
| 12632 | else |
| 12633 | echo "$as_me: failed program was:" >&5 |
| 12634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12635 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12636 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12637 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12638 | |
| 12639 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12640 | conftest$ac_exeext conftest.$ac_ext |
| 12641 | ac_ext=c |
| 12642 | ac_cpp='$CPP $CPPFLAGS' |
| 12643 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12644 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12645 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12646 | |
| 12647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12648 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12649 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12650 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12651 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12652 | CFLAGS="$SAVE_CFLAGS" |
| 12653 | fi |
| 12654 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12655 | sparc*-*solaris*) |
| 12656 | # Find out which ABI we are using. |
| 12657 | echo 'int i;' > conftest.$ac_ext |
| 12658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12659 | (eval $ac_compile) 2>&5 |
| 12660 | ac_status=$? |
| 12661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12662 | (exit $ac_status); }; then |
| 12663 | case `/usr/bin/file conftest.o` in |
| 12664 | *64-bit*) |
| 12665 | case $lt_cv_prog_gnu_ld in |
| 12666 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12667 | *) LD="${LD-ld} -64" ;; |
| 12668 | esac |
| 12669 | ;; |
| 12670 | esac |
| 12671 | fi |
| 12672 | rm -rf conftest* |
| 12673 | ;; |
| 12674 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12675 | |
| 12676 | esac |
| 12677 | |
| 12678 | need_locks="$enable_libtool_lock" |
| 12679 | |
| 12680 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12681 | |
| 12682 | |
| 12683 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12684 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12685 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12686 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12687 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12691 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12692 | 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] | 12693 | if test -z "$CXXCPP"; then |
| 12694 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12696 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12697 | # Double quotes because CXXCPP needs to be expanded |
| 12698 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12699 | do |
| 12700 | ac_preproc_ok=false |
| 12701 | for ac_cxx_preproc_warn_flag in '' yes |
| 12702 | do |
| 12703 | # Use a header file that comes with gcc, so configuring glibc |
| 12704 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12705 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12706 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12707 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12708 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12709 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12710 | /* confdefs.h. */ |
| 12711 | _ACEOF |
| 12712 | cat confdefs.h >>conftest.$ac_ext |
| 12713 | cat >>conftest.$ac_ext <<_ACEOF |
| 12714 | /* end confdefs.h. */ |
| 12715 | #ifdef __STDC__ |
| 12716 | # include <limits.h> |
| 12717 | #else |
| 12718 | # include <assert.h> |
| 12719 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12720 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12721 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12722 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12723 | case "(($ac_try" in |
| 12724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12725 | *) ac_try_echo=$ac_try;; |
| 12726 | esac |
| 12727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12728 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12729 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12730 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12731 | rm -f conftest.er1 |
| 12732 | cat conftest.err >&5 |
| 12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12734 | (exit $ac_status); } >/dev/null; then |
| 12735 | if test -s conftest.err; then |
| 12736 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12737 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12738 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12739 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12740 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12741 | else |
| 12742 | ac_cpp_err=yes |
| 12743 | fi |
| 12744 | if test -z "$ac_cpp_err"; then |
| 12745 | : |
| 12746 | else |
| 12747 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12749 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12750 | # Broken: fails on valid input. |
| 12751 | continue |
| 12752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12753 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12754 | rm -f conftest.err conftest.$ac_ext |
| 12755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12756 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12757 | # can be detected and how. |
| 12758 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12759 | /* confdefs.h. */ |
| 12760 | _ACEOF |
| 12761 | cat confdefs.h >>conftest.$ac_ext |
| 12762 | cat >>conftest.$ac_ext <<_ACEOF |
| 12763 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12764 | #include <ac_nonexistent.h> |
| 12765 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12766 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12767 | case "(($ac_try" in |
| 12768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12769 | *) ac_try_echo=$ac_try;; |
| 12770 | esac |
| 12771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12773 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12774 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12775 | rm -f conftest.er1 |
| 12776 | cat conftest.err >&5 |
| 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12778 | (exit $ac_status); } >/dev/null; then |
| 12779 | if test -s conftest.err; then |
| 12780 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12781 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12782 | else |
| 12783 | ac_cpp_err= |
| 12784 | fi |
| 12785 | else |
| 12786 | ac_cpp_err=yes |
| 12787 | fi |
| 12788 | if test -z "$ac_cpp_err"; then |
| 12789 | # Broken: success on invalid input. |
| 12790 | continue |
| 12791 | else |
| 12792 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12794 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12795 | # Passes both tests. |
| 12796 | ac_preproc_ok=: |
| 12797 | break |
| 12798 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12799 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12800 | rm -f conftest.err conftest.$ac_ext |
| 12801 | |
| 12802 | done |
| 12803 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12804 | rm -f conftest.err conftest.$ac_ext |
| 12805 | if $ac_preproc_ok; then |
| 12806 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12807 | fi |
| 12808 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12809 | done |
| 12810 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12811 | |
| 12812 | fi |
| 12813 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12814 | else |
| 12815 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12816 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12817 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12818 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12819 | ac_preproc_ok=false |
| 12820 | for ac_cxx_preproc_warn_flag in '' yes |
| 12821 | do |
| 12822 | # Use a header file that comes with gcc, so configuring glibc |
| 12823 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12824 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12825 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12826 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12827 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12828 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12829 | /* confdefs.h. */ |
| 12830 | _ACEOF |
| 12831 | cat confdefs.h >>conftest.$ac_ext |
| 12832 | cat >>conftest.$ac_ext <<_ACEOF |
| 12833 | /* end confdefs.h. */ |
| 12834 | #ifdef __STDC__ |
| 12835 | # include <limits.h> |
| 12836 | #else |
| 12837 | # include <assert.h> |
| 12838 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12839 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12840 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12841 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12842 | case "(($ac_try" in |
| 12843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12844 | *) ac_try_echo=$ac_try;; |
| 12845 | esac |
| 12846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12847 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12848 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12849 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12850 | rm -f conftest.er1 |
| 12851 | cat conftest.err >&5 |
| 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12853 | (exit $ac_status); } >/dev/null; then |
| 12854 | if test -s conftest.err; then |
| 12855 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12856 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12857 | else |
| 12858 | ac_cpp_err= |
| 12859 | fi |
| 12860 | else |
| 12861 | ac_cpp_err=yes |
| 12862 | fi |
| 12863 | if test -z "$ac_cpp_err"; then |
| 12864 | : |
| 12865 | else |
| 12866 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12868 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12869 | # Broken: fails on valid input. |
| 12870 | continue |
| 12871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12872 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12873 | rm -f conftest.err conftest.$ac_ext |
| 12874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12875 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12876 | # can be detected and how. |
| 12877 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12878 | /* confdefs.h. */ |
| 12879 | _ACEOF |
| 12880 | cat confdefs.h >>conftest.$ac_ext |
| 12881 | cat >>conftest.$ac_ext <<_ACEOF |
| 12882 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12883 | #include <ac_nonexistent.h> |
| 12884 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12885 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12886 | case "(($ac_try" in |
| 12887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12888 | *) ac_try_echo=$ac_try;; |
| 12889 | esac |
| 12890 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12891 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12892 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12893 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12894 | rm -f conftest.er1 |
| 12895 | cat conftest.err >&5 |
| 12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12897 | (exit $ac_status); } >/dev/null; then |
| 12898 | if test -s conftest.err; then |
| 12899 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12900 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12901 | else |
| 12902 | ac_cpp_err= |
| 12903 | fi |
| 12904 | else |
| 12905 | ac_cpp_err=yes |
| 12906 | fi |
| 12907 | if test -z "$ac_cpp_err"; then |
| 12908 | # Broken: success on invalid input. |
| 12909 | continue |
| 12910 | else |
| 12911 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12913 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12914 | # Passes both tests. |
| 12915 | ac_preproc_ok=: |
| 12916 | break |
| 12917 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12918 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12919 | rm -f conftest.err conftest.$ac_ext |
| 12920 | |
| 12921 | done |
| 12922 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12923 | rm -f conftest.err conftest.$ac_ext |
| 12924 | if $ac_preproc_ok; then |
| 12925 | : |
| 12926 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12927 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12928 | See \`config.log' for more details." >&5 |
| 12929 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12930 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12931 | { (exit 1); exit 1; }; } |
| 12932 | fi |
| 12933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12934 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12935 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12939 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12940 | fi |
| 12941 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12942 | |
| 12943 | ac_ext=f |
| 12944 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12945 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12946 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12947 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | 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] | 12949 | do |
| 12950 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12951 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12952 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12954 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12956 | else |
| 12957 | if test -n "$F77"; then |
| 12958 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12959 | else |
| 12960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12961 | for as_dir in $PATH |
| 12962 | do |
| 12963 | IFS=$as_save_IFS |
| 12964 | test -z "$as_dir" && as_dir=. |
| 12965 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12966 | 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] | 12967 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12969 | break 2 |
| 12970 | fi |
| 12971 | done |
| 12972 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12973 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12974 | |
| 12975 | fi |
| 12976 | fi |
| 12977 | F77=$ac_cv_prog_F77 |
| 12978 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12979 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12980 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12981 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12982 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12983 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12984 | fi |
| 12985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12986 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12987 | test -n "$F77" && break |
| 12988 | done |
| 12989 | fi |
| 12990 | if test -z "$F77"; then |
| 12991 | ac_ct_F77=$F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12992 | 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] | 12993 | do |
| 12994 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12995 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12996 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12998 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13000 | else |
| 13001 | if test -n "$ac_ct_F77"; then |
| 13002 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 13003 | else |
| 13004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13005 | for as_dir in $PATH |
| 13006 | do |
| 13007 | IFS=$as_save_IFS |
| 13008 | test -z "$as_dir" && as_dir=. |
| 13009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13010 | 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] | 13011 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13013 | break 2 |
| 13014 | fi |
| 13015 | done |
| 13016 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13017 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13018 | |
| 13019 | fi |
| 13020 | fi |
| 13021 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13022 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13023 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13024 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13026 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13027 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13028 | fi |
| 13029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13030 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13031 | test -n "$ac_ct_F77" && break |
| 13032 | done |
| 13033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13034 | if test "x$ac_ct_F77" = x; then |
| 13035 | F77="" |
| 13036 | else |
| 13037 | case $cross_compiling:$ac_tool_warned in |
| 13038 | yes:) |
| 13039 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13040 | whose name does not start with the host triplet. If you think this |
| 13041 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13042 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13043 | whose name does not start with the host triplet. If you think this |
| 13044 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13045 | ac_tool_warned=yes ;; |
| 13046 | esac |
| 13047 | F77=$ac_ct_F77 |
| 13048 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13049 | fi |
| 13050 | |
| 13051 | |
| 13052 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13053 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13054 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13055 | { (ac_try="$ac_compiler --version >&5" |
| 13056 | case "(($ac_try" in |
| 13057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13058 | *) ac_try_echo=$ac_try;; |
| 13059 | esac |
| 13060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13061 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13062 | ac_status=$? |
| 13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13064 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13065 | { (ac_try="$ac_compiler -v >&5" |
| 13066 | case "(($ac_try" in |
| 13067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13068 | *) ac_try_echo=$ac_try;; |
| 13069 | esac |
| 13070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13071 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13072 | ac_status=$? |
| 13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13074 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13075 | { (ac_try="$ac_compiler -V >&5" |
| 13076 | case "(($ac_try" in |
| 13077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13078 | *) ac_try_echo=$ac_try;; |
| 13079 | esac |
| 13080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13081 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13082 | ac_status=$? |
| 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13084 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13085 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13086 | |
| 13087 | # 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] | 13088 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13089 | ac_save_ext=$ac_ext |
| 13090 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13091 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13092 | 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] | 13093 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13095 | else |
| 13096 | cat >conftest.$ac_ext <<_ACEOF |
| 13097 | program main |
| 13098 | #ifndef __GNUC__ |
| 13099 | choke me |
| 13100 | #endif |
| 13101 | |
| 13102 | end |
| 13103 | _ACEOF |
| 13104 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13105 | if { (ac_try="$ac_compile" |
| 13106 | case "(($ac_try" in |
| 13107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13108 | *) ac_try_echo=$ac_try;; |
| 13109 | esac |
| 13110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13111 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13112 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13114 | rm -f conftest.er1 |
| 13115 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13118 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13119 | { (case "(($ac_try" in |
| 13120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13121 | *) ac_try_echo=$ac_try;; |
| 13122 | esac |
| 13123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13124 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13125 | ac_status=$? |
| 13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13127 | (exit $ac_status); }; } && |
| 13128 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13129 | { (case "(($ac_try" in |
| 13130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13131 | *) ac_try_echo=$ac_try;; |
| 13132 | esac |
| 13133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13134 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13135 | ac_status=$? |
| 13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13137 | (exit $ac_status); }; }; then |
| 13138 | ac_compiler_gnu=yes |
| 13139 | else |
| 13140 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13143 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13144 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13145 | |
| 13146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13147 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13148 | |
| 13149 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13150 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13151 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13152 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13153 | ac_test_FFLAGS=${FFLAGS+set} |
| 13154 | ac_save_FFLAGS=$FFLAGS |
| 13155 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13156 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13157 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13158 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13160 | else |
| 13161 | FFLAGS=-g |
| 13162 | cat >conftest.$ac_ext <<_ACEOF |
| 13163 | program main |
| 13164 | |
| 13165 | end |
| 13166 | _ACEOF |
| 13167 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13168 | if { (ac_try="$ac_compile" |
| 13169 | case "(($ac_try" in |
| 13170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13171 | *) ac_try_echo=$ac_try;; |
| 13172 | esac |
| 13173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13174 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13175 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13177 | rm -f conftest.er1 |
| 13178 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13180 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13181 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13182 | { (case "(($ac_try" in |
| 13183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13184 | *) ac_try_echo=$ac_try;; |
| 13185 | esac |
| 13186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13187 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13188 | ac_status=$? |
| 13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13190 | (exit $ac_status); }; } && |
| 13191 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13192 | { (case "(($ac_try" in |
| 13193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13194 | *) ac_try_echo=$ac_try;; |
| 13195 | esac |
| 13196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13197 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13198 | ac_status=$? |
| 13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13200 | (exit $ac_status); }; }; then |
| 13201 | ac_cv_prog_f77_g=yes |
| 13202 | else |
| 13203 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13204 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13206 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13207 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13208 | |
| 13209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13210 | |
| 13211 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13212 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13213 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13214 | if test "$ac_test_FFLAGS" = set; then |
| 13215 | FFLAGS=$ac_save_FFLAGS |
| 13216 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13217 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13218 | FFLAGS="-g -O2" |
| 13219 | else |
| 13220 | FFLAGS="-g" |
| 13221 | fi |
| 13222 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13223 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13224 | FFLAGS="-O2" |
| 13225 | else |
| 13226 | FFLAGS= |
| 13227 | fi |
| 13228 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13229 | |
| 13230 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13231 | ac_ext=c |
| 13232 | ac_cpp='$CPP $CPPFLAGS' |
| 13233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13236 | |
| 13237 | |
| 13238 | |
| 13239 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13240 | |
| 13241 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13242 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13243 | 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] | 13244 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13246 | else |
| 13247 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13248 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13249 | |
| 13250 | case $build_os in |
| 13251 | msdosdjgpp*) |
| 13252 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13253 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13254 | # during glob expansion). Even if it were fixed, the result of this |
| 13255 | # check would be larger than it should be. |
| 13256 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13257 | ;; |
| 13258 | |
| 13259 | gnu*) |
| 13260 | # Under GNU Hurd, this test is not required because there is |
| 13261 | # no limit to the length of command line arguments. |
| 13262 | # Libtool will interpret -1 as no limit whatsoever |
| 13263 | lt_cv_sys_max_cmd_len=-1; |
| 13264 | ;; |
| 13265 | |
| 13266 | cygwin* | mingw*) |
| 13267 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13268 | # about 5 minutes as the teststring grows exponentially. |
| 13269 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13270 | # you end up with a "frozen" computer, even though with patience |
| 13271 | # the test eventually succeeds (with a max line length of 256k). |
| 13272 | # Instead, let's just punt: use the minimum linelength reported by |
| 13273 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13274 | lt_cv_sys_max_cmd_len=8192; |
| 13275 | ;; |
| 13276 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13277 | amigaos*) |
| 13278 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13279 | # So we just punt and use a minimum line length of 8192. |
| 13280 | lt_cv_sys_max_cmd_len=8192; |
| 13281 | ;; |
| 13282 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13283 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13284 | # This has been around since 386BSD, at least. Likely further. |
| 13285 | if test -x /sbin/sysctl; then |
| 13286 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13287 | elif test -x /usr/sbin/sysctl; then |
| 13288 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13289 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13290 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13291 | fi |
| 13292 | # And add a safety zone |
| 13293 | 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] | 13294 | 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] | 13295 | ;; |
| 13296 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13297 | interix*) |
| 13298 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13299 | lt_cv_sys_max_cmd_len=196608 |
| 13300 | ;; |
| 13301 | |
| 13302 | osf*) |
| 13303 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13304 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13305 | # nice to cause kernel panics so lets avoid the loop below. |
| 13306 | # First set a reasonable default. |
| 13307 | lt_cv_sys_max_cmd_len=16384 |
| 13308 | # |
| 13309 | if test -x /sbin/sysconfig; then |
| 13310 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13311 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13312 | esac |
| 13313 | fi |
| 13314 | ;; |
| 13315 | sco3.2v5*) |
| 13316 | lt_cv_sys_max_cmd_len=102400 |
| 13317 | ;; |
| 13318 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13319 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13320 | if test -n "$kargmax"; then |
| 13321 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13322 | else |
| 13323 | lt_cv_sys_max_cmd_len=32768 |
| 13324 | fi |
| 13325 | ;; |
| 13326 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13327 | # If test is not a shell built-in, we'll probably end up computing a |
| 13328 | # maximum length that is only half of the actual maximum length, but |
| 13329 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13330 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13331 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13332 | = "XX$teststring") >/dev/null 2>&1 && |
| 13333 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13334 | lt_cv_sys_max_cmd_len=$new_result && |
| 13335 | test $i != 17 # 1/2 MB should be enough |
| 13336 | do |
| 13337 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13338 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13339 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13340 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13341 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13342 | # amounts of additional arguments before passing them to the linker. |
| 13343 | # It appears as though 1/2 is a usable value. |
| 13344 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13345 | ;; |
| 13346 | esac |
| 13347 | |
| 13348 | fi |
| 13349 | |
| 13350 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13351 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13352 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13353 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13354 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13355 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13356 | fi |
| 13357 | |
| 13358 | |
| 13359 | |
| 13360 | |
| 13361 | # 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] | 13362 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13363 | 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] | 13364 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13366 | else |
| 13367 | |
| 13368 | # These are sane defaults that work on at least a few old systems. |
| 13369 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13370 | |
| 13371 | # Character class describing NM global symbol codes. |
| 13372 | symcode='[BCDEGRST]' |
| 13373 | |
| 13374 | # Regexp to match symbols that can be accessed directly from C. |
| 13375 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13377 | # Transform an extracted symbol line into a proper C declaration |
| 13378 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13379 | |
| 13380 | # Transform an extracted symbol line into symbol name and symbol address |
| 13381 | 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'" |
| 13382 | |
| 13383 | # Define system-specific variables. |
| 13384 | case $host_os in |
| 13385 | aix*) |
| 13386 | symcode='[BCDT]' |
| 13387 | ;; |
| 13388 | cygwin* | mingw* | pw32*) |
| 13389 | symcode='[ABCDGISTW]' |
| 13390 | ;; |
| 13391 | hpux*) # Its linker distinguishes data from code symbols |
| 13392 | if test "$host_cpu" = ia64; then |
| 13393 | symcode='[ABCDEGRST]' |
| 13394 | fi |
| 13395 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13396 | 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'" |
| 13397 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13398 | linux*) |
| 13399 | if test "$host_cpu" = ia64; then |
| 13400 | symcode='[ABCDGIRSTW]' |
| 13401 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13402 | 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'" |
| 13403 | fi |
| 13404 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13405 | irix* | nonstopux*) |
| 13406 | symcode='[BCDEGRST]' |
| 13407 | ;; |
| 13408 | osf*) |
| 13409 | symcode='[BCDEGQRST]' |
| 13410 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13412 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13413 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13414 | sco3.2v5*) |
| 13415 | symcode='[DT]' |
| 13416 | ;; |
| 13417 | sysv4.2uw2*) |
| 13418 | symcode='[DT]' |
| 13419 | ;; |
| 13420 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13421 | symcode='[ABDT]' |
| 13422 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13423 | sysv4) |
| 13424 | symcode='[DFNSTU]' |
| 13425 | ;; |
| 13426 | esac |
| 13427 | |
| 13428 | # Handle CRLF in mingw tool chain |
| 13429 | opt_cr= |
| 13430 | case $build_os in |
| 13431 | mingw*) |
| 13432 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13433 | ;; |
| 13434 | esac |
| 13435 | |
| 13436 | # If we're using GNU nm, then use its standard symbol codes. |
| 13437 | case `$NM -V 2>&1` in |
| 13438 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13439 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13440 | esac |
| 13441 | |
| 13442 | # Try without a prefix undercore, then with it. |
| 13443 | for ac_symprfx in "" "_"; do |
| 13444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13445 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13446 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13447 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13448 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13449 | 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] | 13450 | |
| 13451 | # Check to see that the pipe works correctly. |
| 13452 | pipe_works=no |
| 13453 | |
| 13454 | rm -f conftest* |
| 13455 | cat > conftest.$ac_ext <<EOF |
| 13456 | #ifdef __cplusplus |
| 13457 | extern "C" { |
| 13458 | #endif |
| 13459 | char nm_test_var; |
| 13460 | void nm_test_func(){} |
| 13461 | #ifdef __cplusplus |
| 13462 | } |
| 13463 | #endif |
| 13464 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13465 | EOF |
| 13466 | |
| 13467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13468 | (eval $ac_compile) 2>&5 |
| 13469 | ac_status=$? |
| 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13471 | (exit $ac_status); }; then |
| 13472 | # Now try to grab the symbols. |
| 13473 | nlist=conftest.nm |
| 13474 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13475 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13476 | ac_status=$? |
| 13477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13478 | (exit $ac_status); } && test -s "$nlist"; then |
| 13479 | # Try sorting and uniquifying the output. |
| 13480 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13481 | mv -f "$nlist"T "$nlist" |
| 13482 | else |
| 13483 | rm -f "$nlist"T |
| 13484 | fi |
| 13485 | |
| 13486 | # Make sure that we snagged all the symbols we need. |
| 13487 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13488 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13489 | cat <<EOF > conftest.$ac_ext |
| 13490 | #ifdef __cplusplus |
| 13491 | extern "C" { |
| 13492 | #endif |
| 13493 | |
| 13494 | EOF |
| 13495 | # Now generate the symbol file. |
| 13496 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13497 | |
| 13498 | cat <<EOF >> conftest.$ac_ext |
| 13499 | #if defined (__STDC__) && __STDC__ |
| 13500 | # define lt_ptr_t void * |
| 13501 | #else |
| 13502 | # define lt_ptr_t char * |
| 13503 | # define const |
| 13504 | #endif |
| 13505 | |
| 13506 | /* The mapping between symbol names and symbols. */ |
| 13507 | const struct { |
| 13508 | const char *name; |
| 13509 | lt_ptr_t address; |
| 13510 | } |
| 13511 | lt_preloaded_symbols[] = |
| 13512 | { |
| 13513 | EOF |
| 13514 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13515 | cat <<\EOF >> conftest.$ac_ext |
| 13516 | {0, (lt_ptr_t) 0} |
| 13517 | }; |
| 13518 | |
| 13519 | #ifdef __cplusplus |
| 13520 | } |
| 13521 | #endif |
| 13522 | EOF |
| 13523 | # Now try linking the two files. |
| 13524 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13525 | lt_save_LIBS="$LIBS" |
| 13526 | lt_save_CFLAGS="$CFLAGS" |
| 13527 | LIBS="conftstm.$ac_objext" |
| 13528 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13530 | (eval $ac_link) 2>&5 |
| 13531 | ac_status=$? |
| 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13534 | pipe_works=yes |
| 13535 | fi |
| 13536 | LIBS="$lt_save_LIBS" |
| 13537 | CFLAGS="$lt_save_CFLAGS" |
| 13538 | else |
| 13539 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13540 | fi |
| 13541 | else |
| 13542 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13543 | fi |
| 13544 | else |
| 13545 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13546 | fi |
| 13547 | else |
| 13548 | echo "$progname: failed program was:" >&5 |
| 13549 | cat conftest.$ac_ext >&5 |
| 13550 | fi |
| 13551 | rm -f conftest* conftst* |
| 13552 | |
| 13553 | # Do not use the global_symbol_pipe unless it works. |
| 13554 | if test "$pipe_works" = yes; then |
| 13555 | break |
| 13556 | else |
| 13557 | lt_cv_sys_global_symbol_pipe= |
| 13558 | fi |
| 13559 | done |
| 13560 | |
| 13561 | fi |
| 13562 | |
| 13563 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13564 | lt_cv_sys_global_symbol_to_cdecl= |
| 13565 | fi |
| 13566 | 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] | 13567 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13568 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13569 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13570 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13571 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13572 | fi |
| 13573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13574 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13575 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13576 | if test "${lt_cv_objdir+set}" = set; then |
| 13577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13578 | else |
| 13579 | rm -f .libs 2>/dev/null |
| 13580 | mkdir .libs 2>/dev/null |
| 13581 | if test -d .libs; then |
| 13582 | lt_cv_objdir=.libs |
| 13583 | else |
| 13584 | # MS-DOS does not allow filenames that begin with a dot. |
| 13585 | lt_cv_objdir=_libs |
| 13586 | fi |
| 13587 | rmdir .libs 2>/dev/null |
| 13588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13589 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13590 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13591 | objdir=$lt_cv_objdir |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | case $host_os in |
| 13598 | aix3*) |
| 13599 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13600 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13601 | # vanish in a puff of smoke. |
| 13602 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13603 | COLLECT_NAMES= |
| 13604 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13605 | fi |
| 13606 | ;; |
| 13607 | esac |
| 13608 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13609 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13610 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13611 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13612 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13613 | |
| 13614 | # Same as above, but do not quote variable references. |
| 13615 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13616 | |
| 13617 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13618 | # double_quote_subst'ed string. |
| 13619 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13620 | |
| 13621 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13622 | no_glob_subst='s/\*/\\\*/g' |
| 13623 | |
| 13624 | # Constants: |
| 13625 | rm="rm -f" |
| 13626 | |
| 13627 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13628 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13629 | can_build_shared=yes |
| 13630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13631 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13632 | # which needs '.lib'). |
| 13633 | libext=a |
| 13634 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13635 | ofile="$default_ofile" |
| 13636 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13637 | |
| 13638 | if test -n "$ac_tool_prefix"; then |
| 13639 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13640 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13641 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13643 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13645 | else |
| 13646 | if test -n "$AR"; then |
| 13647 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13648 | else |
| 13649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13650 | for as_dir in $PATH |
| 13651 | do |
| 13652 | IFS=$as_save_IFS |
| 13653 | test -z "$as_dir" && as_dir=. |
| 13654 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13655 | 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] | 13656 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13657 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13658 | break 2 |
| 13659 | fi |
| 13660 | done |
| 13661 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13662 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | |
| 13664 | fi |
| 13665 | fi |
| 13666 | AR=$ac_cv_prog_AR |
| 13667 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13668 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13669 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13670 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13671 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13672 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13673 | fi |
| 13674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13676 | fi |
| 13677 | if test -z "$ac_cv_prog_AR"; then |
| 13678 | ac_ct_AR=$AR |
| 13679 | # Extract the first word of "ar", so it can be a program name with args. |
| 13680 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13681 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13683 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13685 | else |
| 13686 | if test -n "$ac_ct_AR"; then |
| 13687 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13688 | else |
| 13689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13690 | for as_dir in $PATH |
| 13691 | do |
| 13692 | IFS=$as_save_IFS |
| 13693 | test -z "$as_dir" && as_dir=. |
| 13694 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13695 | 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] | 13696 | ac_cv_prog_ac_ct_AR="ar" |
| 13697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13698 | break 2 |
| 13699 | fi |
| 13700 | done |
| 13701 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13702 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13703 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13704 | fi |
| 13705 | fi |
| 13706 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13707 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13708 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13709 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13710 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13711 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13712 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13713 | fi |
| 13714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13715 | if test "x$ac_ct_AR" = x; then |
| 13716 | AR="false" |
| 13717 | else |
| 13718 | case $cross_compiling:$ac_tool_warned in |
| 13719 | yes:) |
| 13720 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13721 | whose name does not start with the host triplet. If you think this |
| 13722 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13723 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13724 | whose name does not start with the host triplet. If you think this |
| 13725 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13726 | ac_tool_warned=yes ;; |
| 13727 | esac |
| 13728 | AR=$ac_ct_AR |
| 13729 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13730 | else |
| 13731 | AR="$ac_cv_prog_AR" |
| 13732 | fi |
| 13733 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13734 | if test -n "$ac_tool_prefix"; then |
| 13735 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13736 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13737 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13738 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13739 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13741 | else |
| 13742 | if test -n "$RANLIB"; then |
| 13743 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13744 | else |
| 13745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13746 | for as_dir in $PATH |
| 13747 | do |
| 13748 | IFS=$as_save_IFS |
| 13749 | test -z "$as_dir" && as_dir=. |
| 13750 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13751 | 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] | 13752 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13754 | break 2 |
| 13755 | fi |
| 13756 | done |
| 13757 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13758 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13759 | |
| 13760 | fi |
| 13761 | fi |
| 13762 | RANLIB=$ac_cv_prog_RANLIB |
| 13763 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13764 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13765 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13766 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13767 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13768 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13769 | fi |
| 13770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13771 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13772 | fi |
| 13773 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13774 | ac_ct_RANLIB=$RANLIB |
| 13775 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13776 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13779 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13781 | else |
| 13782 | if test -n "$ac_ct_RANLIB"; then |
| 13783 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13784 | else |
| 13785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13786 | for as_dir in $PATH |
| 13787 | do |
| 13788 | IFS=$as_save_IFS |
| 13789 | test -z "$as_dir" && as_dir=. |
| 13790 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13791 | 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] | 13792 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13794 | break 2 |
| 13795 | fi |
| 13796 | done |
| 13797 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13798 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13799 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13800 | fi |
| 13801 | fi |
| 13802 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13803 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13804 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13805 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13806 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13808 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13809 | fi |
| 13810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13811 | if test "x$ac_ct_RANLIB" = x; then |
| 13812 | RANLIB=":" |
| 13813 | else |
| 13814 | case $cross_compiling:$ac_tool_warned in |
| 13815 | yes:) |
| 13816 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13817 | whose name does not start with the host triplet. If you think this |
| 13818 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13819 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13820 | whose name does not start with the host triplet. If you think this |
| 13821 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13822 | ac_tool_warned=yes ;; |
| 13823 | esac |
| 13824 | RANLIB=$ac_ct_RANLIB |
| 13825 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13826 | else |
| 13827 | RANLIB="$ac_cv_prog_RANLIB" |
| 13828 | fi |
| 13829 | |
| 13830 | if test -n "$ac_tool_prefix"; then |
| 13831 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13832 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13833 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13835 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13837 | else |
| 13838 | if test -n "$STRIP"; then |
| 13839 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13840 | else |
| 13841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13842 | for as_dir in $PATH |
| 13843 | do |
| 13844 | IFS=$as_save_IFS |
| 13845 | test -z "$as_dir" && as_dir=. |
| 13846 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13847 | 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] | 13848 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13850 | break 2 |
| 13851 | fi |
| 13852 | done |
| 13853 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13854 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13855 | |
| 13856 | fi |
| 13857 | fi |
| 13858 | STRIP=$ac_cv_prog_STRIP |
| 13859 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13860 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13861 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13862 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13863 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13864 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13865 | fi |
| 13866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13867 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13868 | fi |
| 13869 | if test -z "$ac_cv_prog_STRIP"; then |
| 13870 | ac_ct_STRIP=$STRIP |
| 13871 | # Extract the first word of "strip", so it can be a program name with args. |
| 13872 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13873 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13875 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13877 | else |
| 13878 | if test -n "$ac_ct_STRIP"; then |
| 13879 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13880 | else |
| 13881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13882 | for as_dir in $PATH |
| 13883 | do |
| 13884 | IFS=$as_save_IFS |
| 13885 | test -z "$as_dir" && as_dir=. |
| 13886 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13887 | 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] | 13888 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13890 | break 2 |
| 13891 | fi |
| 13892 | done |
| 13893 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13894 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13895 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13896 | fi |
| 13897 | fi |
| 13898 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13899 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13900 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13901 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13902 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13903 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13904 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13905 | fi |
| 13906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13907 | if test "x$ac_ct_STRIP" = x; then |
| 13908 | STRIP=":" |
| 13909 | else |
| 13910 | case $cross_compiling:$ac_tool_warned in |
| 13911 | yes:) |
| 13912 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13913 | whose name does not start with the host triplet. If you think this |
| 13914 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13915 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13916 | whose name does not start with the host triplet. If you think this |
| 13917 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13918 | ac_tool_warned=yes ;; |
| 13919 | esac |
| 13920 | STRIP=$ac_ct_STRIP |
| 13921 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13922 | else |
| 13923 | STRIP="$ac_cv_prog_STRIP" |
| 13924 | fi |
| 13925 | |
| 13926 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13927 | old_CC="$CC" |
| 13928 | old_CFLAGS="$CFLAGS" |
| 13929 | |
| 13930 | # Set sane defaults for various variables |
| 13931 | test -z "$AR" && AR=ar |
| 13932 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13933 | test -z "$AS" && AS=as |
| 13934 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13935 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13936 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13937 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13938 | test -z "$LD" && LD=ld |
| 13939 | test -z "$LN_S" && LN_S="ln -s" |
| 13940 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13941 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13942 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13943 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13944 | test -z "$RANLIB" && RANLIB=: |
| 13945 | test -z "$STRIP" && STRIP=: |
| 13946 | test -z "$ac_objext" && ac_objext=o |
| 13947 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13948 | # Determine commands to create old-style static archives. |
| 13949 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13950 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13951 | old_postuninstall_cmds= |
| 13952 | |
| 13953 | if test -n "$RANLIB"; then |
| 13954 | case $host_os in |
| 13955 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13956 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13957 | ;; |
| 13958 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13959 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13960 | ;; |
| 13961 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13962 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13963 | fi |
| 13964 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13965 | for cc_temp in $compiler""; do |
| 13966 | case $cc_temp in |
| 13967 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13968 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13969 | \-*) ;; |
| 13970 | *) break;; |
| 13971 | esac |
| 13972 | done |
| 13973 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13974 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13975 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13976 | # Only perform the check for file, if the check method requires it |
| 13977 | case $deplibs_check_method in |
| 13978 | file_magic*) |
| 13979 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13980 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13981 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13982 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13984 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13985 | case $MAGIC_CMD in |
| 13986 | [\\/*] | ?:[\\/]*) |
| 13987 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13988 | ;; |
| 13989 | *) |
| 13990 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13991 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13992 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13993 | for ac_dir in $ac_dummy; do |
| 13994 | IFS="$lt_save_ifs" |
| 13995 | test -z "$ac_dir" && ac_dir=. |
| 13996 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13997 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13998 | if test -n "$file_magic_test_file"; then |
| 13999 | case $deplibs_check_method in |
| 14000 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14001 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14002 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14003 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14004 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14005 | : |
| 14006 | else |
| 14007 | cat <<EOF 1>&2 |
| 14008 | |
| 14009 | *** Warning: the command libtool uses to detect shared libraries, |
| 14010 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14011 | *** The result is that libtool may fail to recognize shared libraries |
| 14012 | *** as such. This will affect the creation of libtool libraries that |
| 14013 | *** depend on shared libraries, but programs linked with such libtool |
| 14014 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14015 | *** may want to report the problem to your system manager and/or to |
| 14016 | *** bug-libtool@gnu.org |
| 14017 | |
| 14018 | EOF |
| 14019 | fi ;; |
| 14020 | esac |
| 14021 | fi |
| 14022 | break |
| 14023 | fi |
| 14024 | done |
| 14025 | IFS="$lt_save_ifs" |
| 14026 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14027 | ;; |
| 14028 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14029 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14030 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14031 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14032 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14033 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14034 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14035 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14036 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14037 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14038 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14039 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14040 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14041 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14042 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14043 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14044 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14046 | else |
| 14047 | case $MAGIC_CMD in |
| 14048 | [\\/*] | ?:[\\/]*) |
| 14049 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14050 | ;; |
| 14051 | *) |
| 14052 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14053 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14054 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14055 | for ac_dir in $ac_dummy; do |
| 14056 | IFS="$lt_save_ifs" |
| 14057 | test -z "$ac_dir" && ac_dir=. |
| 14058 | if test -f $ac_dir/file; then |
| 14059 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14060 | if test -n "$file_magic_test_file"; then |
| 14061 | case $deplibs_check_method in |
| 14062 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14063 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14064 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14065 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14066 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14067 | : |
| 14068 | else |
| 14069 | cat <<EOF 1>&2 |
| 14070 | |
| 14071 | *** Warning: the command libtool uses to detect shared libraries, |
| 14072 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14073 | *** The result is that libtool may fail to recognize shared libraries |
| 14074 | *** as such. This will affect the creation of libtool libraries that |
| 14075 | *** depend on shared libraries, but programs linked with such libtool |
| 14076 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14077 | *** may want to report the problem to your system manager and/or to |
| 14078 | *** bug-libtool@gnu.org |
| 14079 | |
| 14080 | EOF |
| 14081 | fi ;; |
| 14082 | esac |
| 14083 | fi |
| 14084 | break |
| 14085 | fi |
| 14086 | done |
| 14087 | IFS="$lt_save_ifs" |
| 14088 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14089 | ;; |
| 14090 | esac |
| 14091 | fi |
| 14092 | |
| 14093 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14094 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14095 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14096 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14097 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14098 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14099 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14100 | fi |
| 14101 | |
| 14102 | else |
| 14103 | MAGIC_CMD=: |
| 14104 | fi |
| 14105 | fi |
| 14106 | |
| 14107 | fi |
| 14108 | ;; |
| 14109 | esac |
| 14110 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14111 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14112 | enable_win32_dll=no |
| 14113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14114 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14115 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14116 | enableval=$enable_libtool_lock; |
| 14117 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14118 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14119 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14120 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14122 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14123 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14124 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14125 | else |
| 14126 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14127 | fi |
| 14128 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14129 | test -z "$pic_mode" && pic_mode=default |
| 14130 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14131 | # Use C for the default configuration in the libtool script |
| 14132 | tagname= |
| 14133 | lt_save_CC="$CC" |
| 14134 | ac_ext=c |
| 14135 | ac_cpp='$CPP $CPPFLAGS' |
| 14136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14139 | |
| 14140 | |
| 14141 | # Source file extension for C test sources. |
| 14142 | ac_ext=c |
| 14143 | |
| 14144 | # Object file extension for compiled C test sources. |
| 14145 | objext=o |
| 14146 | objext=$objext |
| 14147 | |
| 14148 | # Code to be used in simple compile tests |
| 14149 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14150 | |
| 14151 | # Code to be used in simple link tests |
| 14152 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14153 | |
| 14154 | |
| 14155 | # If no C compiler was specified, use CC. |
| 14156 | LTCC=${LTCC-"$CC"} |
| 14157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14158 | # If no C compiler flags were specified, use CFLAGS. |
| 14159 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14160 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14161 | # Allow CC to be a program name with arguments. |
| 14162 | compiler=$CC |
| 14163 | |
| 14164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14165 | # save warnings/boilerplate of simple test code |
| 14166 | ac_outfile=conftest.$ac_objext |
| 14167 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14168 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14169 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14170 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14172 | ac_outfile=conftest.$ac_objext |
| 14173 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14174 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14175 | _lt_linker_boilerplate=`cat conftest.err` |
| 14176 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14177 | |
| 14178 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14179 | |
| 14180 | lt_prog_compiler_no_builtin_flag= |
| 14181 | |
| 14182 | if test "$GCC" = yes; then |
| 14183 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14184 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14186 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14187 | 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] | 14188 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14190 | else |
| 14191 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14192 | ac_outfile=conftest.$ac_objext |
| 14193 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14194 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14195 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14196 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14197 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14198 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14199 | # The option is referenced via a variable to avoid confusing sed. |
| 14200 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14201 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14202 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14203 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14204 | (eval echo "\"\$as_me:14204: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14205 | (eval "$lt_compile" 2>conftest.err) |
| 14206 | ac_status=$? |
| 14207 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14208 | echo "$as_me:14208: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14209 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14210 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14211 | # So say no if there are warnings other than the usual output. |
| 14212 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14213 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14214 | 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] | 14215 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14216 | fi |
| 14217 | fi |
| 14218 | $rm conftest* |
| 14219 | |
| 14220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14221 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14222 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14223 | |
| 14224 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14225 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14226 | else |
| 14227 | : |
| 14228 | fi |
| 14229 | |
| 14230 | fi |
| 14231 | |
| 14232 | lt_prog_compiler_wl= |
| 14233 | lt_prog_compiler_pic= |
| 14234 | lt_prog_compiler_static= |
| 14235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14236 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14237 | 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] | 14238 | |
| 14239 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14240 | lt_prog_compiler_wl='-Wl,' |
| 14241 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14242 | |
| 14243 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14244 | aix*) |
| 14245 | # All AIX code is PIC. |
| 14246 | if test "$host_cpu" = ia64; then |
| 14247 | # AIX 5 now supports IA64 processor |
| 14248 | lt_prog_compiler_static='-Bstatic' |
| 14249 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14251 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14252 | amigaos*) |
| 14253 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14254 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14255 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14256 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14257 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14258 | |
| 14259 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14260 | # PIC is the default for these OSes. |
| 14261 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14262 | |
| 14263 | mingw* | pw32* | os2*) |
| 14264 | # This hack is so that the source file can tell whether it is being |
| 14265 | # built for inclusion in a dll (and should export symbols for example). |
| 14266 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14267 | ;; |
| 14268 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14269 | darwin* | rhapsody*) |
| 14270 | # PIC is the default on this platform |
| 14271 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14272 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14273 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14274 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14275 | interix3*) |
| 14276 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14277 | # Instead, we relocate shared libraries at runtime. |
| 14278 | ;; |
| 14279 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14280 | msdosdjgpp*) |
| 14281 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14282 | # on systems that don't support them. |
| 14283 | lt_prog_compiler_can_build_shared=no |
| 14284 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14285 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14286 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14287 | sysv4*MP*) |
| 14288 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14289 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14290 | fi |
| 14291 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14292 | |
| 14293 | hpux*) |
| 14294 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14295 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14296 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14297 | hppa*64*|ia64*) |
| 14298 | # +Z the default |
| 14299 | ;; |
| 14300 | *) |
| 14301 | lt_prog_compiler_pic='-fPIC' |
| 14302 | ;; |
| 14303 | esac |
| 14304 | ;; |
| 14305 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14306 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14307 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14308 | ;; |
| 14309 | esac |
| 14310 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14311 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14312 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14313 | aix*) |
| 14314 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14315 | if test "$host_cpu" = ia64; then |
| 14316 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14317 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14318 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14319 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14320 | fi |
| 14321 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14322 | darwin*) |
| 14323 | # PIC is the default on this platform |
| 14324 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14325 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14326 | xlc*) |
| 14327 | lt_prog_compiler_pic='-qnocommon' |
| 14328 | lt_prog_compiler_wl='-Wl,' |
| 14329 | ;; |
| 14330 | esac |
| 14331 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14332 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14333 | mingw* | pw32* | os2*) |
| 14334 | # This hack is so that the source file can tell whether it is being |
| 14335 | # built for inclusion in a dll (and should export symbols for example). |
| 14336 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14337 | ;; |
| 14338 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14339 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14340 | lt_prog_compiler_wl='-Wl,' |
| 14341 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14342 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14343 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14344 | hppa*64*|ia64*) |
| 14345 | # +Z the default |
| 14346 | ;; |
| 14347 | *) |
| 14348 | lt_prog_compiler_pic='+Z' |
| 14349 | ;; |
| 14350 | esac |
| 14351 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14352 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14353 | ;; |
| 14354 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14355 | irix5* | irix6* | nonstopux*) |
| 14356 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14357 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14358 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14359 | ;; |
| 14360 | |
| 14361 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14362 | lt_prog_compiler_pic='-KPIC' |
| 14363 | lt_prog_compiler_static='-Bstatic' |
| 14364 | ;; |
| 14365 | |
| 14366 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14367 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14368 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14369 | lt_prog_compiler_wl='-Wl,' |
| 14370 | lt_prog_compiler_pic='-KPIC' |
| 14371 | lt_prog_compiler_static='-static' |
| 14372 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14373 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14374 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14375 | # which looks to be a dead project) |
| 14376 | lt_prog_compiler_wl='-Wl,' |
| 14377 | lt_prog_compiler_pic='-fpic' |
| 14378 | lt_prog_compiler_static='-Bstatic' |
| 14379 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14380 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14381 | lt_prog_compiler_wl='-Wl,' |
| 14382 | # All Alpha code is PIC. |
| 14383 | lt_prog_compiler_static='-non_shared' |
| 14384 | ;; |
| 14385 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14386 | ;; |
| 14387 | |
| 14388 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14389 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14390 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14391 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14392 | ;; |
| 14393 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14394 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14395 | lt_prog_compiler_pic='-KPIC' |
| 14396 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14397 | case $cc_basename in |
| 14398 | f77* | f90* | f95*) |
| 14399 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14400 | *) |
| 14401 | lt_prog_compiler_wl='-Wl,';; |
| 14402 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14403 | ;; |
| 14404 | |
| 14405 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14406 | lt_prog_compiler_wl='-Qoption ld ' |
| 14407 | lt_prog_compiler_pic='-PIC' |
| 14408 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14409 | ;; |
| 14410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14411 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14412 | lt_prog_compiler_wl='-Wl,' |
| 14413 | lt_prog_compiler_pic='-KPIC' |
| 14414 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14415 | ;; |
| 14416 | |
| 14417 | sysv4*MP*) |
| 14418 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14419 | lt_prog_compiler_pic='-Kconform_pic' |
| 14420 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14421 | fi |
| 14422 | ;; |
| 14423 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14424 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14425 | lt_prog_compiler_wl='-Wl,' |
| 14426 | lt_prog_compiler_pic='-KPIC' |
| 14427 | lt_prog_compiler_static='-Bstatic' |
| 14428 | ;; |
| 14429 | |
| 14430 | unicos*) |
| 14431 | lt_prog_compiler_wl='-Wl,' |
| 14432 | lt_prog_compiler_can_build_shared=no |
| 14433 | ;; |
| 14434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14435 | uts4*) |
| 14436 | lt_prog_compiler_pic='-pic' |
| 14437 | lt_prog_compiler_static='-Bstatic' |
| 14438 | ;; |
| 14439 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14440 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14441 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14442 | ;; |
| 14443 | esac |
| 14444 | fi |
| 14445 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14446 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14447 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14448 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14449 | # |
| 14450 | # Check to make sure the PIC flag actually works. |
| 14451 | # |
| 14452 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14454 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14455 | 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] | 14456 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14458 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14459 | lt_prog_compiler_pic_works=no |
| 14460 | ac_outfile=conftest.$ac_objext |
| 14461 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14462 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14463 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14464 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14465 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14466 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14467 | # The option is referenced via a variable to avoid confusing sed. |
| 14468 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14469 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14470 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14471 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14472 | (eval echo "\"\$as_me:14472: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14473 | (eval "$lt_compile" 2>conftest.err) |
| 14474 | ac_status=$? |
| 14475 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14476 | echo "$as_me:14476: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14477 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14478 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14479 | # So say no if there are warnings other than the usual output. |
| 14480 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14481 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14482 | 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] | 14483 | lt_prog_compiler_pic_works=yes |
| 14484 | fi |
| 14485 | fi |
| 14486 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14488 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14489 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14490 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14492 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14493 | case $lt_prog_compiler_pic in |
| 14494 | "" | " "*) ;; |
| 14495 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14496 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14497 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14498 | lt_prog_compiler_pic= |
| 14499 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14500 | fi |
| 14501 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14503 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14504 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14505 | *djgpp*) |
| 14506 | lt_prog_compiler_pic= |
| 14507 | ;; |
| 14508 | *) |
| 14509 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14510 | ;; |
| 14511 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14513 | # |
| 14514 | # Check to make sure the static flag actually works. |
| 14515 | # |
| 14516 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14517 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14518 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14519 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14521 | else |
| 14522 | lt_prog_compiler_static_works=no |
| 14523 | save_LDFLAGS="$LDFLAGS" |
| 14524 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14525 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14526 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14527 | # The linker can only warn and ignore the option if not recognized |
| 14528 | # So say no if there are warnings |
| 14529 | if test -s conftest.err; then |
| 14530 | # Append any errors to the config.log. |
| 14531 | cat conftest.err 1>&5 |
| 14532 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14533 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14534 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14535 | lt_prog_compiler_static_works=yes |
| 14536 | fi |
| 14537 | else |
| 14538 | lt_prog_compiler_static_works=yes |
| 14539 | fi |
| 14540 | fi |
| 14541 | $rm conftest* |
| 14542 | LDFLAGS="$save_LDFLAGS" |
| 14543 | |
| 14544 | fi |
| 14545 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14546 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14547 | |
| 14548 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14549 | : |
| 14550 | else |
| 14551 | lt_prog_compiler_static= |
| 14552 | fi |
| 14553 | |
| 14554 | |
| 14555 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14556 | 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] | 14557 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14559 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14560 | lt_cv_prog_compiler_c_o=no |
| 14561 | $rm -r conftest 2>/dev/null |
| 14562 | mkdir conftest |
| 14563 | cd conftest |
| 14564 | mkdir out |
| 14565 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14566 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14567 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14568 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14569 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14570 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14571 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14572 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14573 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14574 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14575 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14576 | (eval echo "\"\$as_me:14576: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14577 | (eval "$lt_compile" 2>out/conftest.err) |
| 14578 | ac_status=$? |
| 14579 | cat out/conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 14580 | echo "$as_me:14580: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14581 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14582 | then |
| 14583 | # The compiler can only warn and ignore the option if not recognized |
| 14584 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14585 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14586 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14587 | 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] | 14588 | lt_cv_prog_compiler_c_o=yes |
| 14589 | fi |
| 14590 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14591 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14592 | $rm conftest* |
| 14593 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14594 | # template instantiation |
| 14595 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14596 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14597 | cd .. |
| 14598 | rmdir conftest |
| 14599 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14600 | |
| 14601 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14602 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14603 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14604 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14605 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14606 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14607 | 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] | 14608 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14609 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14610 | 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] | 14611 | hard_links=yes |
| 14612 | $rm conftest* |
| 14613 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14614 | touch conftest.a |
| 14615 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14616 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14617 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14618 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14619 | if test "$hard_links" = no; then |
| 14620 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14621 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14622 | need_locks=warn |
| 14623 | fi |
| 14624 | else |
| 14625 | need_locks=no |
| 14626 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14627 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14628 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14629 | 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] | 14630 | |
| 14631 | runpath_var= |
| 14632 | allow_undefined_flag= |
| 14633 | enable_shared_with_static_runtimes=no |
| 14634 | archive_cmds= |
| 14635 | archive_expsym_cmds= |
| 14636 | old_archive_From_new_cmds= |
| 14637 | old_archive_from_expsyms_cmds= |
| 14638 | export_dynamic_flag_spec= |
| 14639 | whole_archive_flag_spec= |
| 14640 | thread_safe_flag_spec= |
| 14641 | hardcode_libdir_flag_spec= |
| 14642 | hardcode_libdir_flag_spec_ld= |
| 14643 | hardcode_libdir_separator= |
| 14644 | hardcode_direct=no |
| 14645 | hardcode_minus_L=no |
| 14646 | hardcode_shlibpath_var=unsupported |
| 14647 | link_all_deplibs=unknown |
| 14648 | hardcode_automatic=no |
| 14649 | module_cmds= |
| 14650 | module_expsym_cmds= |
| 14651 | always_export_symbols=no |
| 14652 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14653 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14654 | # included in the symbol list |
| 14655 | include_expsyms= |
| 14656 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14657 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14658 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14659 | # as well as any symbol that contains `d'. |
| 14660 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14661 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14662 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14663 | # the symbol is explicitly referenced. Since portable code cannot |
| 14664 | # rely on this symbol name, it's probably fine to never include it in |
| 14665 | # preloaded symbol tables. |
| 14666 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14667 | # Just being paranoid about ensuring that cc_basename is set. |
| 14668 | for cc_temp in $compiler""; do |
| 14669 | case $cc_temp in |
| 14670 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14671 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14672 | \-*) ;; |
| 14673 | *) break;; |
| 14674 | esac |
| 14675 | done |
| 14676 | 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] | 14677 | |
| 14678 | case $host_os in |
| 14679 | cygwin* | mingw* | pw32*) |
| 14680 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14681 | # When not using gcc, we currently assume that we are using |
| 14682 | # Microsoft Visual C++. |
| 14683 | if test "$GCC" != yes; then |
| 14684 | with_gnu_ld=no |
| 14685 | fi |
| 14686 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14687 | interix*) |
| 14688 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14689 | with_gnu_ld=yes |
| 14690 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14691 | openbsd*) |
| 14692 | with_gnu_ld=no |
| 14693 | ;; |
| 14694 | esac |
| 14695 | |
| 14696 | ld_shlibs=yes |
| 14697 | if test "$with_gnu_ld" = yes; then |
| 14698 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14699 | wlarc='${wl}' |
| 14700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14701 | # Set some defaults for GNU ld with shared library support. These |
| 14702 | # are reset later if shared libraries are not supported. Putting them |
| 14703 | # here allows them to be overridden if necessary. |
| 14704 | runpath_var=LD_RUN_PATH |
| 14705 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14706 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14707 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14708 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14709 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14710 | else |
| 14711 | whole_archive_flag_spec= |
| 14712 | fi |
| 14713 | supports_anon_versioning=no |
| 14714 | case `$LD -v 2>/dev/null` in |
| 14715 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14716 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14717 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14718 | *\ 2.11.*) ;; # other 2.11 versions |
| 14719 | *) supports_anon_versioning=yes ;; |
| 14720 | esac |
| 14721 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14722 | # See if GNU ld supports shared libraries. |
| 14723 | case $host_os in |
| 14724 | aix3* | aix4* | aix5*) |
| 14725 | # On AIX/PPC, the GNU linker is very broken |
| 14726 | if test "$host_cpu" != ia64; then |
| 14727 | ld_shlibs=no |
| 14728 | cat <<EOF 1>&2 |
| 14729 | |
| 14730 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14731 | *** to be unable to reliably create shared libraries on AIX. |
| 14732 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14733 | *** really care for shared libraries, you may want to modify your PATH |
| 14734 | *** so that a non-GNU linker is found, and then restart. |
| 14735 | |
| 14736 | EOF |
| 14737 | fi |
| 14738 | ;; |
| 14739 | |
| 14740 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14741 | 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] | 14742 | hardcode_libdir_flag_spec='-L$libdir' |
| 14743 | hardcode_minus_L=yes |
| 14744 | |
| 14745 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14746 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14747 | # to version 4, is to share data among multiple programs linked |
| 14748 | # with the same dynamic library. Since this doesn't match the |
| 14749 | # behavior of shared libraries on other platforms, we can't use |
| 14750 | # them. |
| 14751 | ld_shlibs=no |
| 14752 | ;; |
| 14753 | |
| 14754 | beos*) |
| 14755 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14756 | allow_undefined_flag=unsupported |
| 14757 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14758 | # support --undefined. This deserves some investigation. FIXME |
| 14759 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14760 | else |
| 14761 | ld_shlibs=no |
| 14762 | fi |
| 14763 | ;; |
| 14764 | |
| 14765 | cygwin* | mingw* | pw32*) |
| 14766 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14767 | # as there is no search path for DLLs. |
| 14768 | hardcode_libdir_flag_spec='-L$libdir' |
| 14769 | allow_undefined_flag=unsupported |
| 14770 | always_export_symbols=no |
| 14771 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14772 | 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] | 14773 | |
| 14774 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14775 | 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] | 14776 | # If the export-symbols file already is a .def file (1st line |
| 14777 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14778 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14779 | cp $export_symbols $output_objdir/$soname.def; |
| 14780 | else |
| 14781 | echo EXPORTS > $output_objdir/$soname.def; |
| 14782 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14783 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14784 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14785 | else |
| 14786 | ld_shlibs=no |
| 14787 | fi |
| 14788 | ;; |
| 14789 | |
| 14790 | interix3*) |
| 14791 | hardcode_direct=no |
| 14792 | hardcode_shlibpath_var=no |
| 14793 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14794 | export_dynamic_flag_spec='${wl}-E' |
| 14795 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14796 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14797 | # default) and relocated if they conflict, which is a slow very memory |
| 14798 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14799 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14800 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14801 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14802 | 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' |
| 14803 | ;; |
| 14804 | |
| 14805 | linux*) |
| 14806 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14807 | tmp_addflag= |
| 14808 | case $cc_basename,$host_cpu in |
| 14809 | pgcc*) # Portland Group C compiler |
| 14810 | 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' |
| 14811 | tmp_addflag=' $pic_flag' |
| 14812 | ;; |
| 14813 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14814 | 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' |
| 14815 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14816 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14817 | tmp_addflag=' -i_dynamic' ;; |
| 14818 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14819 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14820 | ifc* | ifort*) # Intel Fortran compiler |
| 14821 | tmp_addflag=' -nofor_main' ;; |
| 14822 | esac |
| 14823 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14824 | |
| 14825 | if test $supports_anon_versioning = yes; then |
| 14826 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14827 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14828 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14829 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14830 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14831 | else |
| 14832 | ld_shlibs=no |
| 14833 | fi |
| 14834 | ;; |
| 14835 | |
| 14836 | netbsd*) |
| 14837 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14838 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14839 | wlarc= |
| 14840 | else |
| 14841 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14842 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14843 | fi |
| 14844 | ;; |
| 14845 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14846 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14847 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14848 | ld_shlibs=no |
| 14849 | cat <<EOF 1>&2 |
| 14850 | |
| 14851 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14852 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14853 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14854 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14855 | *** your PATH or compiler configuration so that the native linker is |
| 14856 | *** used, and then restart. |
| 14857 | |
| 14858 | EOF |
| 14859 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14860 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14861 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14862 | else |
| 14863 | ld_shlibs=no |
| 14864 | fi |
| 14865 | ;; |
| 14866 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14867 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14868 | case `$LD -v 2>&1` in |
| 14869 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14870 | ld_shlibs=no |
| 14871 | cat <<_LT_EOF 1>&2 |
| 14872 | |
| 14873 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14874 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14875 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14876 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14877 | *** your PATH or compiler configuration so that the native linker is |
| 14878 | *** used, and then restart. |
| 14879 | |
| 14880 | _LT_EOF |
| 14881 | ;; |
| 14882 | *) |
| 14883 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14884 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14885 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14886 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14887 | else |
| 14888 | ld_shlibs=no |
| 14889 | fi |
| 14890 | ;; |
| 14891 | esac |
| 14892 | ;; |
| 14893 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14894 | sunos4*) |
| 14895 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14896 | wlarc= |
| 14897 | hardcode_direct=yes |
| 14898 | hardcode_shlibpath_var=no |
| 14899 | ;; |
| 14900 | |
| 14901 | *) |
| 14902 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14903 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14904 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14905 | else |
| 14906 | ld_shlibs=no |
| 14907 | fi |
| 14908 | ;; |
| 14909 | esac |
| 14910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14911 | if test "$ld_shlibs" = no; then |
| 14912 | runpath_var= |
| 14913 | hardcode_libdir_flag_spec= |
| 14914 | export_dynamic_flag_spec= |
| 14915 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14916 | fi |
| 14917 | else |
| 14918 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14919 | case $host_os in |
| 14920 | aix3*) |
| 14921 | allow_undefined_flag=unsupported |
| 14922 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14923 | 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] | 14924 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14925 | # are no directories specified by -L. |
| 14926 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14927 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14928 | # Neither direct hardcoding nor static linking is supported with a |
| 14929 | # broken collect2. |
| 14930 | hardcode_direct=unsupported |
| 14931 | fi |
| 14932 | ;; |
| 14933 | |
| 14934 | aix4* | aix5*) |
| 14935 | if test "$host_cpu" = ia64; then |
| 14936 | # On IA64, the linker does run time linking by default, so we don't |
| 14937 | # have to do anything special. |
| 14938 | aix_use_runtimelinking=no |
| 14939 | exp_sym_flag='-Bexport' |
| 14940 | no_entry_flag="" |
| 14941 | else |
| 14942 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14943 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14944 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14945 | 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' |
| 14946 | else |
| 14947 | 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' |
| 14948 | fi |
| 14949 | aix_use_runtimelinking=no |
| 14950 | |
| 14951 | # Test if we are trying to use run time linking or normal |
| 14952 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14953 | # need to do runtime linking. |
| 14954 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14955 | for ld_flag in $LDFLAGS; do |
| 14956 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14957 | aix_use_runtimelinking=yes |
| 14958 | break |
| 14959 | fi |
| 14960 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14961 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14962 | esac |
| 14963 | |
| 14964 | exp_sym_flag='-bexport' |
| 14965 | no_entry_flag='-bnoentry' |
| 14966 | fi |
| 14967 | |
| 14968 | # When large executables or shared objects are built, AIX ld can |
| 14969 | # have problems creating the table of contents. If linking a library |
| 14970 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14971 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14972 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14973 | |
| 14974 | archive_cmds='' |
| 14975 | hardcode_direct=yes |
| 14976 | hardcode_libdir_separator=':' |
| 14977 | link_all_deplibs=yes |
| 14978 | |
| 14979 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14980 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14981 | # We only want to do this on AIX 4.2 and lower, the check |
| 14982 | # below for broken collect2 doesn't work under 4.3+ |
| 14983 | collect2name=`${CC} -print-prog-name=collect2` |
| 14984 | if test -f "$collect2name" && \ |
| 14985 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14986 | then |
| 14987 | # We have reworked collect2 |
| 14988 | hardcode_direct=yes |
| 14989 | else |
| 14990 | # We have old collect2 |
| 14991 | hardcode_direct=unsupported |
| 14992 | # It fails to find uninstalled libraries when the uninstalled |
| 14993 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14994 | # to unsupported forces relinking |
| 14995 | hardcode_minus_L=yes |
| 14996 | hardcode_libdir_flag_spec='-L$libdir' |
| 14997 | hardcode_libdir_separator= |
| 14998 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14999 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15000 | esac |
| 15001 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15002 | if test "$aix_use_runtimelinking" = yes; then |
| 15003 | shared_flag="$shared_flag "'${wl}-G' |
| 15004 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15005 | else |
| 15006 | # not using gcc |
| 15007 | if test "$host_cpu" = ia64; then |
| 15008 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15009 | # chokes on -Wl,-G. The following line is correct: |
| 15010 | shared_flag='-G' |
| 15011 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15012 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15013 | shared_flag='${wl}-G' |
| 15014 | else |
| 15015 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15016 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15017 | fi |
| 15018 | fi |
| 15019 | |
| 15020 | # It seems that -bexpall does not export symbols beginning with |
| 15021 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15022 | always_export_symbols=yes |
| 15023 | if test "$aix_use_runtimelinking" = yes; then |
| 15024 | # Warning - without using the other runtime loading flags (-brtl), |
| 15025 | # -berok will link without error, but may produce a broken library. |
| 15026 | allow_undefined_flag='-berok' |
| 15027 | # Determine the default libpath from the value encoded in an empty executable. |
| 15028 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15029 | /* confdefs.h. */ |
| 15030 | _ACEOF |
| 15031 | cat confdefs.h >>conftest.$ac_ext |
| 15032 | cat >>conftest.$ac_ext <<_ACEOF |
| 15033 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15034 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15035 | int |
| 15036 | main () |
| 15037 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15038 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15039 | ; |
| 15040 | return 0; |
| 15041 | } |
| 15042 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15043 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15044 | if { (ac_try="$ac_link" |
| 15045 | case "(($ac_try" in |
| 15046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15047 | *) ac_try_echo=$ac_try;; |
| 15048 | esac |
| 15049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15050 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15051 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15053 | rm -f conftest.er1 |
| 15054 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15057 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15058 | { (case "(($ac_try" in |
| 15059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15060 | *) ac_try_echo=$ac_try;; |
| 15061 | esac |
| 15062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15063 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15064 | ac_status=$? |
| 15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15066 | (exit $ac_status); }; } && |
| 15067 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15068 | { (case "(($ac_try" in |
| 15069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15070 | *) ac_try_echo=$ac_try;; |
| 15071 | esac |
| 15072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15073 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15074 | ac_status=$? |
| 15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15076 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15077 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15078 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15079 | }'` |
| 15080 | # Check for a 64-bit object if we didn't find anything. |
| 15081 | 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; } |
| 15082 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15083 | else |
| 15084 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15087 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15088 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15089 | |
| 15090 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15091 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15092 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15093 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15094 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15095 | 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] | 15096 | else |
| 15097 | if test "$host_cpu" = ia64; then |
| 15098 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15099 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15100 | 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] | 15101 | else |
| 15102 | # Determine the default libpath from the value encoded in an empty executable. |
| 15103 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15104 | /* confdefs.h. */ |
| 15105 | _ACEOF |
| 15106 | cat confdefs.h >>conftest.$ac_ext |
| 15107 | cat >>conftest.$ac_ext <<_ACEOF |
| 15108 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15109 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15110 | int |
| 15111 | main () |
| 15112 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15113 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15114 | ; |
| 15115 | return 0; |
| 15116 | } |
| 15117 | _ACEOF |
| 15118 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15119 | if { (ac_try="$ac_link" |
| 15120 | case "(($ac_try" in |
| 15121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15122 | *) ac_try_echo=$ac_try;; |
| 15123 | esac |
| 15124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15125 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15126 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15128 | rm -f conftest.er1 |
| 15129 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15131 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15133 | { (case "(($ac_try" in |
| 15134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15135 | *) ac_try_echo=$ac_try;; |
| 15136 | esac |
| 15137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15138 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; } && |
| 15142 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15143 | { (case "(($ac_try" in |
| 15144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15145 | *) ac_try_echo=$ac_try;; |
| 15146 | esac |
| 15147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15148 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15149 | ac_status=$? |
| 15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15151 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15152 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15153 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15154 | }'` |
| 15155 | # Check for a 64-bit object if we didn't find anything. |
| 15156 | 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; } |
| 15157 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15158 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15159 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15162 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15163 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15164 | |
| 15165 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15166 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15167 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15169 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15170 | # Warning - without using the other run time loading flags, |
| 15171 | # -berok will link without error, but may produce a broken library. |
| 15172 | no_undefined_flag=' ${wl}-bernotok' |
| 15173 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15174 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15175 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15176 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15177 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15178 | 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] | 15179 | fi |
| 15180 | fi |
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 | |
| 15183 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15184 | 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] | 15185 | hardcode_libdir_flag_spec='-L$libdir' |
| 15186 | hardcode_minus_L=yes |
| 15187 | # see comment about different semantics on the GNU ld section |
| 15188 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15189 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15190 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15191 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15192 | export_dynamic_flag_spec=-rdynamic |
| 15193 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15194 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15195 | cygwin* | mingw* | pw32*) |
| 15196 | # When not using gcc, we currently assume that we are using |
| 15197 | # Microsoft Visual C++. |
| 15198 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15199 | # no search path for DLLs. |
| 15200 | hardcode_libdir_flag_spec=' ' |
| 15201 | allow_undefined_flag=unsupported |
| 15202 | # Tell ltmain to make .lib files, not .a files. |
| 15203 | libext=lib |
| 15204 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15205 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15206 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15207 | 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] | 15208 | # The linker will automatically build a .lib file if we build a DLL. |
| 15209 | old_archive_From_new_cmds='true' |
| 15210 | # FIXME: Should let the user specify the lib program. |
| 15211 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15212 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15213 | enable_shared_with_static_runtimes=yes |
| 15214 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15215 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15216 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15217 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15218 | rhapsody* | darwin1.[012]) |
| 15219 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15220 | ;; |
| 15221 | *) # Darwin 1.3 on |
| 15222 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15223 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15224 | else |
| 15225 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15226 | 10.[012]) |
| 15227 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15228 | ;; |
| 15229 | 10.*) |
| 15230 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15231 | ;; |
| 15232 | esac |
| 15233 | fi |
| 15234 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15235 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15236 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15237 | hardcode_direct=no |
| 15238 | hardcode_automatic=yes |
| 15239 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15240 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15241 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15242 | if test "$GCC" = yes ; then |
| 15243 | output_verbose_link_cmd='echo' |
| 15244 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15245 | 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] | 15246 | # 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] | 15247 | 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}' |
| 15248 | 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] | 15249 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15250 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15251 | xlc*) |
| 15252 | output_verbose_link_cmd='echo' |
| 15253 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15254 | 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] | 15255 | # 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] | 15256 | 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}' |
| 15257 | 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] | 15258 | ;; |
| 15259 | *) |
| 15260 | ld_shlibs=no |
| 15261 | ;; |
| 15262 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15263 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15264 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15265 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15266 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15267 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15268 | hardcode_libdir_flag_spec='-L$libdir' |
| 15269 | hardcode_shlibpath_var=no |
| 15270 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15271 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15272 | freebsd1*) |
| 15273 | ld_shlibs=no |
| 15274 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15275 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15276 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15277 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15278 | # does not break anything, and helps significantly (at the cost of a little |
| 15279 | # extra space). |
| 15280 | freebsd2.2*) |
| 15281 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15282 | hardcode_libdir_flag_spec='-R$libdir' |
| 15283 | hardcode_direct=yes |
| 15284 | hardcode_shlibpath_var=no |
| 15285 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15286 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15287 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15288 | freebsd2*) |
| 15289 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15290 | hardcode_direct=yes |
| 15291 | hardcode_minus_L=yes |
| 15292 | hardcode_shlibpath_var=no |
| 15293 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15294 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15295 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15296 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15297 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15298 | hardcode_libdir_flag_spec='-R$libdir' |
| 15299 | hardcode_direct=yes |
| 15300 | hardcode_shlibpath_var=no |
| 15301 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15302 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15303 | hpux9*) |
| 15304 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15305 | 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] | 15306 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15307 | 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] | 15308 | fi |
| 15309 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15310 | hardcode_libdir_separator=: |
| 15311 | hardcode_direct=yes |
| 15312 | |
| 15313 | # hardcode_minus_L: Not really in the search PATH, |
| 15314 | # but as the default location of the library. |
| 15315 | hardcode_minus_L=yes |
| 15316 | export_dynamic_flag_spec='${wl}-E' |
| 15317 | ;; |
| 15318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15319 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15320 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15321 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15322 | else |
| 15323 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15324 | fi |
| 15325 | if test "$with_gnu_ld" = no; then |
| 15326 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15327 | hardcode_libdir_separator=: |
| 15328 | |
| 15329 | hardcode_direct=yes |
| 15330 | export_dynamic_flag_spec='${wl}-E' |
| 15331 | |
| 15332 | # hardcode_minus_L: Not really in the search PATH, |
| 15333 | # but as the default location of the library. |
| 15334 | hardcode_minus_L=yes |
| 15335 | fi |
| 15336 | ;; |
| 15337 | |
| 15338 | hpux11*) |
| 15339 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15340 | case $host_cpu in |
| 15341 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15342 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15343 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15344 | ia64*) |
| 15345 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15346 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15347 | *) |
| 15348 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15349 | ;; |
| 15350 | esac |
| 15351 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15352 | case $host_cpu in |
| 15353 | hppa*64*) |
| 15354 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15355 | ;; |
| 15356 | ia64*) |
| 15357 | 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] | 15358 | ;; |
| 15359 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15360 | 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] | 15361 | ;; |
| 15362 | esac |
| 15363 | fi |
| 15364 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15365 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15366 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15368 | case $host_cpu in |
| 15369 | hppa*64*|ia64*) |
| 15370 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15371 | hardcode_direct=no |
| 15372 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15373 | ;; |
| 15374 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15375 | hardcode_direct=yes |
| 15376 | export_dynamic_flag_spec='${wl}-E' |
| 15377 | |
| 15378 | # hardcode_minus_L: Not really in the search PATH, |
| 15379 | # but as the default location of the library. |
| 15380 | hardcode_minus_L=yes |
| 15381 | ;; |
| 15382 | esac |
| 15383 | fi |
| 15384 | ;; |
| 15385 | |
| 15386 | irix5* | irix6* | nonstopux*) |
| 15387 | if test "$GCC" = yes; then |
| 15388 | 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' |
| 15389 | else |
| 15390 | 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' |
| 15391 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15392 | fi |
| 15393 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15394 | hardcode_libdir_separator=: |
| 15395 | link_all_deplibs=yes |
| 15396 | ;; |
| 15397 | |
| 15398 | netbsd*) |
| 15399 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15400 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15401 | else |
| 15402 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15403 | fi |
| 15404 | hardcode_libdir_flag_spec='-R$libdir' |
| 15405 | hardcode_direct=yes |
| 15406 | hardcode_shlibpath_var=no |
| 15407 | ;; |
| 15408 | |
| 15409 | newsos6) |
| 15410 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15411 | hardcode_direct=yes |
| 15412 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15413 | hardcode_libdir_separator=: |
| 15414 | hardcode_shlibpath_var=no |
| 15415 | ;; |
| 15416 | |
| 15417 | openbsd*) |
| 15418 | hardcode_direct=yes |
| 15419 | hardcode_shlibpath_var=no |
| 15420 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15421 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15422 | 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] | 15423 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15424 | export_dynamic_flag_spec='${wl}-E' |
| 15425 | else |
| 15426 | case $host_os in |
| 15427 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15428 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15429 | hardcode_libdir_flag_spec='-R$libdir' |
| 15430 | ;; |
| 15431 | *) |
| 15432 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15433 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15434 | ;; |
| 15435 | esac |
| 15436 | fi |
| 15437 | ;; |
| 15438 | |
| 15439 | os2*) |
| 15440 | hardcode_libdir_flag_spec='-L$libdir' |
| 15441 | hardcode_minus_L=yes |
| 15442 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15443 | 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] | 15444 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15445 | ;; |
| 15446 | |
| 15447 | osf3*) |
| 15448 | if test "$GCC" = yes; then |
| 15449 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15450 | 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' |
| 15451 | else |
| 15452 | allow_undefined_flag=' -expect_unresolved \*' |
| 15453 | 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' |
| 15454 | fi |
| 15455 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15456 | hardcode_libdir_separator=: |
| 15457 | ;; |
| 15458 | |
| 15459 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15460 | if test "$GCC" = yes; then |
| 15461 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15462 | 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' |
| 15463 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15464 | else |
| 15465 | allow_undefined_flag=' -expect_unresolved \*' |
| 15466 | 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] | 15467 | 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] | 15468 | $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] | 15469 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15470 | # Both c and cxx compiler support -rpath directly |
| 15471 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15472 | fi |
| 15473 | hardcode_libdir_separator=: |
| 15474 | ;; |
| 15475 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15476 | solaris*) |
| 15477 | no_undefined_flag=' -z text' |
| 15478 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15479 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15480 | 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] | 15481 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15482 | $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] | 15483 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15484 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15485 | 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] | 15486 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15487 | $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] | 15488 | fi |
| 15489 | hardcode_libdir_flag_spec='-R$libdir' |
| 15490 | hardcode_shlibpath_var=no |
| 15491 | case $host_os in |
| 15492 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15493 | *) |
| 15494 | # The compiler driver will combine linker options so we |
| 15495 | # cannot just pass the convience library names through |
| 15496 | # without $wl, iff we do not link with $LD. |
| 15497 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15498 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15499 | case $wlarc in |
| 15500 | '') |
| 15501 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15502 | *) |
| 15503 | 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' ;; |
| 15504 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15505 | esac |
| 15506 | link_all_deplibs=yes |
| 15507 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15509 | sunos4*) |
| 15510 | if test "x$host_vendor" = xsequent; then |
| 15511 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15512 | # files that make .init and .fini sections work. |
| 15513 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15514 | else |
| 15515 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15516 | fi |
| 15517 | hardcode_libdir_flag_spec='-L$libdir' |
| 15518 | hardcode_direct=yes |
| 15519 | hardcode_minus_L=yes |
| 15520 | hardcode_shlibpath_var=no |
| 15521 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15522 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15523 | sysv4) |
| 15524 | case $host_vendor in |
| 15525 | sni) |
| 15526 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15527 | hardcode_direct=yes # is this really true??? |
| 15528 | ;; |
| 15529 | siemens) |
| 15530 | ## LD is ld it makes a PLAMLIB |
| 15531 | ## CC just makes a GrossModule. |
| 15532 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15533 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15534 | hardcode_direct=no |
| 15535 | ;; |
| 15536 | motorola) |
| 15537 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15538 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15539 | ;; |
| 15540 | esac |
| 15541 | runpath_var='LD_RUN_PATH' |
| 15542 | hardcode_shlibpath_var=no |
| 15543 | ;; |
| 15544 | |
| 15545 | sysv4.3*) |
| 15546 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15547 | hardcode_shlibpath_var=no |
| 15548 | export_dynamic_flag_spec='-Bexport' |
| 15549 | ;; |
| 15550 | |
| 15551 | sysv4*MP*) |
| 15552 | if test -d /usr/nec; then |
| 15553 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15554 | hardcode_shlibpath_var=no |
| 15555 | runpath_var=LD_RUN_PATH |
| 15556 | hardcode_runpath_var=yes |
| 15557 | ld_shlibs=yes |
| 15558 | fi |
| 15559 | ;; |
| 15560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15561 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15562 | no_undefined_flag='${wl}-z,text' |
| 15563 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15564 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15565 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15566 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15567 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15568 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15569 | 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] | 15570 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15571 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15572 | 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] | 15573 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15574 | ;; |
| 15575 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15576 | sysv5* | sco3.2v5* | sco5v6*) |
| 15577 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15578 | # link with -lc, and that would cause any symbols used from libc to |
| 15579 | # always be unresolved, which means just about no library would |
| 15580 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15581 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15582 | # as -z defs. |
| 15583 | no_undefined_flag='${wl}-z,text' |
| 15584 | allow_undefined_flag='${wl}-z,nodefs' |
| 15585 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15586 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15587 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15588 | hardcode_libdir_separator=':' |
| 15589 | link_all_deplibs=yes |
| 15590 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15591 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15592 | |
| 15593 | if test "$GCC" = yes; then |
| 15594 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15595 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15596 | else |
| 15597 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15598 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15599 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15600 | ;; |
| 15601 | |
| 15602 | uts4*) |
| 15603 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15604 | hardcode_libdir_flag_spec='-L$libdir' |
| 15605 | hardcode_shlibpath_var=no |
| 15606 | ;; |
| 15607 | |
| 15608 | *) |
| 15609 | ld_shlibs=no |
| 15610 | ;; |
| 15611 | esac |
| 15612 | fi |
| 15613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15614 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15615 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15616 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15617 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15618 | # |
| 15619 | # Do we need to explicitly link libc? |
| 15620 | # |
| 15621 | case "x$archive_cmds_need_lc" in |
| 15622 | x|xyes) |
| 15623 | # Assume -lc should be added |
| 15624 | archive_cmds_need_lc=yes |
| 15625 | |
| 15626 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15627 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15628 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15629 | # FIXME: we may have to deal with multi-command sequences. |
| 15630 | ;; |
| 15631 | '$CC '*) |
| 15632 | # Test whether the compiler implicitly links with -lc since on some |
| 15633 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15634 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15635 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15636 | 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] | 15637 | $rm conftest* |
| 15638 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15639 | |
| 15640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15641 | (eval $ac_compile) 2>&5 |
| 15642 | ac_status=$? |
| 15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15644 | (exit $ac_status); } 2>conftest.err; then |
| 15645 | soname=conftest |
| 15646 | lib=conftest |
| 15647 | libobjs=conftest.$ac_objext |
| 15648 | deplibs= |
| 15649 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15650 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15651 | compiler_flags=-v |
| 15652 | linker_flags=-v |
| 15653 | verstring= |
| 15654 | output_objdir=. |
| 15655 | libname=conftest |
| 15656 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15657 | allow_undefined_flag= |
| 15658 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15659 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15660 | ac_status=$? |
| 15661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15662 | (exit $ac_status); } |
| 15663 | then |
| 15664 | archive_cmds_need_lc=no |
| 15665 | else |
| 15666 | archive_cmds_need_lc=yes |
| 15667 | fi |
| 15668 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15669 | else |
| 15670 | cat conftest.err 1>&5 |
| 15671 | fi |
| 15672 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15673 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15674 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15675 | ;; |
| 15676 | esac |
| 15677 | fi |
| 15678 | ;; |
| 15679 | esac |
| 15680 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15681 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15682 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15683 | library_names_spec= |
| 15684 | libname_spec='lib$name' |
| 15685 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15686 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15687 | postinstall_cmds= |
| 15688 | postuninstall_cmds= |
| 15689 | finish_cmds= |
| 15690 | finish_eval= |
| 15691 | shlibpath_var= |
| 15692 | shlibpath_overrides_runpath=unknown |
| 15693 | version_type=none |
| 15694 | dynamic_linker="$host_os ld.so" |
| 15695 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15696 | if test "$GCC" = yes; then |
| 15697 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15698 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15699 | # if the path contains ";" then we assume it to be the separator |
| 15700 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15701 | # assumed that no part of a normal pathname contains ";" but that should |
| 15702 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15703 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15704 | else |
| 15705 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15706 | fi |
| 15707 | else |
| 15708 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15709 | fi |
| 15710 | need_lib_prefix=unknown |
| 15711 | hardcode_into_libs=no |
| 15712 | |
| 15713 | # when you set need_version to no, make sure it does not cause -set_version |
| 15714 | # flags to be left without arguments |
| 15715 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15716 | |
| 15717 | case $host_os in |
| 15718 | aix3*) |
| 15719 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15720 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15721 | shlibpath_var=LIBPATH |
| 15722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15723 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15724 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15725 | ;; |
| 15726 | |
| 15727 | aix4* | aix5*) |
| 15728 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15729 | need_lib_prefix=no |
| 15730 | need_version=no |
| 15731 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15732 | if test "$host_cpu" = ia64; then |
| 15733 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15734 | 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] | 15735 | shlibpath_var=LD_LIBRARY_PATH |
| 15736 | else |
| 15737 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15738 | # for dependence libraries. The import file would start with |
| 15739 | # the line `#! .'. This would cause the generated library to |
| 15740 | # depend on `.', always an invalid library. This was fixed in |
| 15741 | # development snapshots of GCC prior to 3.0. |
| 15742 | case $host_os in |
| 15743 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15744 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15745 | echo ' yes ' |
| 15746 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15747 | : |
| 15748 | else |
| 15749 | can_build_shared=no |
| 15750 | fi |
| 15751 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15752 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15753 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15754 | # soname into executable. Probably we can add versioning support to |
| 15755 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15756 | if test "$aix_use_runtimelinking" = yes; then |
| 15757 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15758 | # instead of lib<name>.a to let people know that these are not |
| 15759 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15760 | 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] | 15761 | else |
| 15762 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15763 | # and later when we are not doing run time linking. |
| 15764 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15765 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15766 | fi |
| 15767 | shlibpath_var=LIBPATH |
| 15768 | fi |
| 15769 | ;; |
| 15770 | |
| 15771 | amigaos*) |
| 15772 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15773 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15774 | 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] | 15775 | ;; |
| 15776 | |
| 15777 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15778 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15779 | dynamic_linker="$host_os ld.so" |
| 15780 | shlibpath_var=LIBRARY_PATH |
| 15781 | ;; |
| 15782 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15783 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15784 | version_type=linux |
| 15785 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15786 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15787 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15788 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15789 | shlibpath_var=LD_LIBRARY_PATH |
| 15790 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15791 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15792 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15793 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15794 | # libtool to hard-code these into programs |
| 15795 | ;; |
| 15796 | |
| 15797 | cygwin* | mingw* | pw32*) |
| 15798 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15799 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15800 | need_version=no |
| 15801 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15802 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15803 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15804 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15805 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15807 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15808 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15809 | dldir=$destdir/`dirname \$dlpath`~ |
| 15810 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15811 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15812 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15813 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15814 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15815 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15816 | shlibpath_overrides_runpath=yes |
| 15817 | |
| 15818 | case $host_os in |
| 15819 | cygwin*) |
| 15820 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15821 | 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] | 15822 | 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] | 15823 | ;; |
| 15824 | mingw*) |
| 15825 | # MinGW DLLs use traditional 'lib' prefix |
| 15826 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15827 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15828 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15829 | # It is most probably a Windows format PATH printed by |
| 15830 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15831 | # path with ; separators, and with drive letters. We can handle the |
| 15832 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15833 | # especially as we might pass files found there to a mingw objdump, |
| 15834 | # which wouldn't understand a cygwinified path. Ahh. |
| 15835 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15836 | else |
| 15837 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15838 | fi |
| 15839 | ;; |
| 15840 | pw32*) |
| 15841 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15842 | 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] | 15843 | ;; |
| 15844 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15845 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15846 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15847 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15848 | 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] | 15849 | ;; |
| 15850 | esac |
| 15851 | dynamic_linker='Win32 ld.exe' |
| 15852 | # FIXME: first we should search . and the directory the executable is in |
| 15853 | shlibpath_var=PATH |
| 15854 | ;; |
| 15855 | |
| 15856 | darwin* | rhapsody*) |
| 15857 | dynamic_linker="$host_os dyld" |
| 15858 | version_type=darwin |
| 15859 | need_lib_prefix=no |
| 15860 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15861 | 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] | 15862 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15863 | shlibpath_overrides_runpath=yes |
| 15864 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15865 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15866 | # 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] | 15867 | if test "$GCC" = yes; then |
| 15868 | 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"` |
| 15869 | else |
| 15870 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15871 | fi |
| 15872 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15873 | ;; |
| 15874 | |
| 15875 | dgux*) |
| 15876 | version_type=linux |
| 15877 | need_lib_prefix=no |
| 15878 | need_version=no |
| 15879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15880 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15881 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15882 | ;; |
| 15883 | |
| 15884 | freebsd1*) |
| 15885 | dynamic_linker=no |
| 15886 | ;; |
| 15887 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15888 | kfreebsd*-gnu) |
| 15889 | version_type=linux |
| 15890 | need_lib_prefix=no |
| 15891 | need_version=no |
| 15892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15894 | shlibpath_var=LD_LIBRARY_PATH |
| 15895 | shlibpath_overrides_runpath=no |
| 15896 | hardcode_into_libs=yes |
| 15897 | dynamic_linker='GNU ld.so' |
| 15898 | ;; |
| 15899 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15900 | freebsd* | dragonfly*) |
| 15901 | # DragonFly does not have aout. When/if they implement a new |
| 15902 | # versioning mechanism, adjust this. |
| 15903 | if test -x /usr/bin/objformat; then |
| 15904 | objformat=`/usr/bin/objformat` |
| 15905 | else |
| 15906 | case $host_os in |
| 15907 | freebsd[123]*) objformat=aout ;; |
| 15908 | *) objformat=elf ;; |
| 15909 | esac |
| 15910 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15911 | version_type=freebsd-$objformat |
| 15912 | case $version_type in |
| 15913 | freebsd-elf*) |
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} $libname${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15915 | need_version=no |
| 15916 | need_lib_prefix=no |
| 15917 | ;; |
| 15918 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15919 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15920 | need_version=yes |
| 15921 | ;; |
| 15922 | esac |
| 15923 | shlibpath_var=LD_LIBRARY_PATH |
| 15924 | case $host_os in |
| 15925 | freebsd2*) |
| 15926 | shlibpath_overrides_runpath=yes |
| 15927 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15928 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15929 | shlibpath_overrides_runpath=yes |
| 15930 | hardcode_into_libs=yes |
| 15931 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15932 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15933 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15934 | shlibpath_overrides_runpath=no |
| 15935 | hardcode_into_libs=yes |
| 15936 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15937 | freebsd*) # from 4.6 on |
| 15938 | shlibpath_overrides_runpath=yes |
| 15939 | hardcode_into_libs=yes |
| 15940 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15941 | esac |
| 15942 | ;; |
| 15943 | |
| 15944 | gnu*) |
| 15945 | version_type=linux |
| 15946 | need_lib_prefix=no |
| 15947 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 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' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15950 | shlibpath_var=LD_LIBRARY_PATH |
| 15951 | hardcode_into_libs=yes |
| 15952 | ;; |
| 15953 | |
| 15954 | hpux9* | hpux10* | hpux11*) |
| 15955 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15956 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15957 | version_type=sunos |
| 15958 | need_lib_prefix=no |
| 15959 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15960 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15961 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15962 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15963 | hardcode_into_libs=yes |
| 15964 | dynamic_linker="$host_os dld.so" |
| 15965 | shlibpath_var=LD_LIBRARY_PATH |
| 15966 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15969 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15970 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15971 | else |
| 15972 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15973 | fi |
| 15974 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15975 | ;; |
| 15976 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15977 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15978 | hardcode_into_libs=yes |
| 15979 | dynamic_linker="$host_os dld.sl" |
| 15980 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15981 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15983 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15984 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15985 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15986 | ;; |
| 15987 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15988 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15989 | dynamic_linker="$host_os dld.sl" |
| 15990 | shlibpath_var=SHLIB_PATH |
| 15991 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15994 | ;; |
| 15995 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15996 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15997 | postinstall_cmds='chmod 555 $lib' |
| 15998 | ;; |
| 15999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16000 | interix3*) |
| 16001 | version_type=linux |
| 16002 | need_lib_prefix=no |
| 16003 | need_version=no |
| 16004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16005 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16006 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16007 | shlibpath_var=LD_LIBRARY_PATH |
| 16008 | shlibpath_overrides_runpath=no |
| 16009 | hardcode_into_libs=yes |
| 16010 | ;; |
| 16011 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16012 | irix5* | irix6* | nonstopux*) |
| 16013 | case $host_os in |
| 16014 | nonstopux*) version_type=nonstopux ;; |
| 16015 | *) |
| 16016 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16017 | version_type=linux |
| 16018 | else |
| 16019 | version_type=irix |
| 16020 | fi ;; |
| 16021 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16022 | need_lib_prefix=no |
| 16023 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16024 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16025 | 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] | 16026 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16027 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16028 | libsuff= shlibsuff= |
| 16029 | ;; |
| 16030 | *) |
| 16031 | 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] | 16032 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16033 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16034 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16035 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16036 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16037 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16038 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16039 | esac |
| 16040 | ;; |
| 16041 | esac |
| 16042 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16043 | shlibpath_overrides_runpath=no |
| 16044 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16045 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16046 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16047 | ;; |
| 16048 | |
| 16049 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16050 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16051 | dynamic_linker=no |
| 16052 | ;; |
| 16053 | |
| 16054 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16055 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16056 | version_type=linux |
| 16057 | need_lib_prefix=no |
| 16058 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16060 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16061 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16062 | shlibpath_var=LD_LIBRARY_PATH |
| 16063 | shlibpath_overrides_runpath=no |
| 16064 | # This implies no fast_install, which is unacceptable. |
| 16065 | # Some rework will be needed to allow for fast_install |
| 16066 | # before this can be enabled. |
| 16067 | hardcode_into_libs=yes |
| 16068 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16069 | # Append ld.so.conf contents to the search path |
| 16070 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16071 | 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] | 16072 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16073 | fi |
| 16074 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16075 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16076 | # powerpc, because MkLinux only supported shared libraries with the |
| 16077 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16078 | # most powerpc-linux boxes support dynamic linking these days and |
| 16079 | # people can always --disable-shared, the test was removed, and we |
| 16080 | # assume the GNU/Linux dynamic linker is in use. |
| 16081 | dynamic_linker='GNU/Linux ld.so' |
| 16082 | ;; |
| 16083 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16084 | knetbsd*-gnu) |
| 16085 | version_type=linux |
| 16086 | need_lib_prefix=no |
| 16087 | need_version=no |
| 16088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16089 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16090 | shlibpath_var=LD_LIBRARY_PATH |
| 16091 | shlibpath_overrides_runpath=no |
| 16092 | hardcode_into_libs=yes |
| 16093 | dynamic_linker='GNU ld.so' |
| 16094 | ;; |
| 16095 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16096 | netbsd*) |
| 16097 | version_type=sunos |
| 16098 | need_lib_prefix=no |
| 16099 | need_version=no |
| 16100 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16102 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16103 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16104 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16105 | 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] | 16106 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16107 | dynamic_linker='NetBSD ld.elf_so' |
| 16108 | fi |
| 16109 | shlibpath_var=LD_LIBRARY_PATH |
| 16110 | shlibpath_overrides_runpath=yes |
| 16111 | hardcode_into_libs=yes |
| 16112 | ;; |
| 16113 | |
| 16114 | newsos6) |
| 16115 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16117 | shlibpath_var=LD_LIBRARY_PATH |
| 16118 | shlibpath_overrides_runpath=yes |
| 16119 | ;; |
| 16120 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16121 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16122 | version_type=linux |
| 16123 | need_lib_prefix=no |
| 16124 | need_version=no |
| 16125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16126 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16127 | shlibpath_var=LD_LIBRARY_PATH |
| 16128 | shlibpath_overrides_runpath=yes |
| 16129 | ;; |
| 16130 | |
| 16131 | openbsd*) |
| 16132 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16133 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16134 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16135 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16136 | case $host_os in |
| 16137 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16138 | *) need_version=no ;; |
| 16139 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16141 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16142 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16143 | 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] | 16144 | case $host_os in |
| 16145 | openbsd2.[89] | openbsd2.[89].*) |
| 16146 | shlibpath_overrides_runpath=no |
| 16147 | ;; |
| 16148 | *) |
| 16149 | shlibpath_overrides_runpath=yes |
| 16150 | ;; |
| 16151 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16152 | else |
| 16153 | shlibpath_overrides_runpath=yes |
| 16154 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16155 | ;; |
| 16156 | |
| 16157 | os2*) |
| 16158 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16159 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16160 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16161 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16162 | dynamic_linker='OS/2 ld.exe' |
| 16163 | shlibpath_var=LIBPATH |
| 16164 | ;; |
| 16165 | |
| 16166 | osf3* | osf4* | osf5*) |
| 16167 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16168 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16169 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16170 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16171 | 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] | 16172 | shlibpath_var=LD_LIBRARY_PATH |
| 16173 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16174 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16175 | ;; |
| 16176 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16177 | solaris*) |
| 16178 | version_type=linux |
| 16179 | need_lib_prefix=no |
| 16180 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16182 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16183 | shlibpath_var=LD_LIBRARY_PATH |
| 16184 | shlibpath_overrides_runpath=yes |
| 16185 | hardcode_into_libs=yes |
| 16186 | # ldd complains unless libraries are executable |
| 16187 | postinstall_cmds='chmod +x $lib' |
| 16188 | ;; |
| 16189 | |
| 16190 | sunos4*) |
| 16191 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16193 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16194 | shlibpath_var=LD_LIBRARY_PATH |
| 16195 | shlibpath_overrides_runpath=yes |
| 16196 | if test "$with_gnu_ld" = yes; then |
| 16197 | need_lib_prefix=no |
| 16198 | fi |
| 16199 | need_version=yes |
| 16200 | ;; |
| 16201 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16202 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16203 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16205 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16206 | shlibpath_var=LD_LIBRARY_PATH |
| 16207 | case $host_vendor in |
| 16208 | sni) |
| 16209 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16210 | need_lib_prefix=no |
| 16211 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16212 | runpath_var=LD_RUN_PATH |
| 16213 | ;; |
| 16214 | siemens) |
| 16215 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16216 | ;; |
| 16217 | motorola) |
| 16218 | need_lib_prefix=no |
| 16219 | need_version=no |
| 16220 | shlibpath_overrides_runpath=no |
| 16221 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16222 | ;; |
| 16223 | esac |
| 16224 | ;; |
| 16225 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16226 | sysv4*MP*) |
| 16227 | if test -d /usr/nec ;then |
| 16228 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16229 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16230 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16231 | shlibpath_var=LD_LIBRARY_PATH |
| 16232 | fi |
| 16233 | ;; |
| 16234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16235 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16236 | version_type=freebsd-elf |
| 16237 | need_lib_prefix=no |
| 16238 | need_version=no |
| 16239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16241 | shlibpath_var=LD_LIBRARY_PATH |
| 16242 | hardcode_into_libs=yes |
| 16243 | if test "$with_gnu_ld" = yes; then |
| 16244 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16245 | shlibpath_overrides_runpath=no |
| 16246 | else |
| 16247 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16248 | shlibpath_overrides_runpath=yes |
| 16249 | case $host_os in |
| 16250 | sco3.2v5*) |
| 16251 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16252 | ;; |
| 16253 | esac |
| 16254 | fi |
| 16255 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16256 | ;; |
| 16257 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16258 | uts4*) |
| 16259 | version_type=linux |
| 16260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16261 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16262 | shlibpath_var=LD_LIBRARY_PATH |
| 16263 | ;; |
| 16264 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16265 | *) |
| 16266 | dynamic_linker=no |
| 16267 | ;; |
| 16268 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16269 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16270 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16271 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16273 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16274 | if test "$GCC" = yes; then |
| 16275 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16276 | fi |
| 16277 | |
| 16278 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16279 | 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] | 16280 | hardcode_action= |
| 16281 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16282 | test -n "$runpath_var" || \ |
| 16283 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16284 | |
| 16285 | # We can hardcode non-existant directories. |
| 16286 | if test "$hardcode_direct" != no && |
| 16287 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16288 | # have to relink, otherwise we might link with an installed library |
| 16289 | # when we should be linking with a yet-to-be-installed one |
| 16290 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16291 | test "$hardcode_minus_L" != no; then |
| 16292 | # Linking always hardcodes the temporary library directory. |
| 16293 | hardcode_action=relink |
| 16294 | else |
| 16295 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16296 | hardcode_action=immediate |
| 16297 | fi |
| 16298 | else |
| 16299 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16300 | # directories. |
| 16301 | hardcode_action=unsupported |
| 16302 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16303 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16304 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16305 | |
| 16306 | if test "$hardcode_action" = relink; then |
| 16307 | # Fast installation is not supported |
| 16308 | enable_fast_install=no |
| 16309 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16310 | test "$enable_shared" = no; then |
| 16311 | # Fast installation is not necessary |
| 16312 | enable_fast_install=needless |
| 16313 | fi |
| 16314 | |
| 16315 | striplib= |
| 16316 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16317 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16318 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16319 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16320 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16321 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16322 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16323 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16324 | else |
| 16325 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16326 | case $host_os in |
| 16327 | darwin*) |
| 16328 | if test -n "$STRIP" ; then |
| 16329 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16330 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16331 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16332 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16333 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16334 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16335 | fi |
| 16336 | ;; |
| 16337 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16338 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16339 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16340 | ;; |
| 16341 | esac |
| 16342 | fi |
| 16343 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16344 | if test "x$enable_dlopen" != xyes; then |
| 16345 | enable_dlopen=unknown |
| 16346 | enable_dlopen_self=unknown |
| 16347 | enable_dlopen_self_static=unknown |
| 16348 | else |
| 16349 | lt_cv_dlopen=no |
| 16350 | lt_cv_dlopen_libs= |
| 16351 | |
| 16352 | case $host_os in |
| 16353 | beos*) |
| 16354 | lt_cv_dlopen="load_add_on" |
| 16355 | lt_cv_dlopen_libs= |
| 16356 | lt_cv_dlopen_self=yes |
| 16357 | ;; |
| 16358 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16359 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16360 | lt_cv_dlopen="LoadLibrary" |
| 16361 | lt_cv_dlopen_libs= |
| 16362 | ;; |
| 16363 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16364 | cygwin*) |
| 16365 | lt_cv_dlopen="dlopen" |
| 16366 | lt_cv_dlopen_libs= |
| 16367 | ;; |
| 16368 | |
| 16369 | darwin*) |
| 16370 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16371 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16372 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16373 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16375 | else |
| 16376 | ac_check_lib_save_LIBS=$LIBS |
| 16377 | LIBS="-ldl $LIBS" |
| 16378 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16379 | /* confdefs.h. */ |
| 16380 | _ACEOF |
| 16381 | cat confdefs.h >>conftest.$ac_ext |
| 16382 | cat >>conftest.$ac_ext <<_ACEOF |
| 16383 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16384 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16385 | /* Override any GCC internal prototype to avoid an error. |
| 16386 | Use char because int might match the return type of a GCC |
| 16387 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16388 | #ifdef __cplusplus |
| 16389 | extern "C" |
| 16390 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16391 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16392 | int |
| 16393 | main () |
| 16394 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16395 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16396 | ; |
| 16397 | return 0; |
| 16398 | } |
| 16399 | _ACEOF |
| 16400 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16401 | if { (ac_try="$ac_link" |
| 16402 | case "(($ac_try" in |
| 16403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16404 | *) ac_try_echo=$ac_try;; |
| 16405 | esac |
| 16406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16407 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16408 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16410 | rm -f conftest.er1 |
| 16411 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16413 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16415 | { (case "(($ac_try" in |
| 16416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16417 | *) ac_try_echo=$ac_try;; |
| 16418 | esac |
| 16419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16420 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16421 | ac_status=$? |
| 16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16423 | (exit $ac_status); }; } && |
| 16424 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16425 | { (case "(($ac_try" in |
| 16426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16427 | *) ac_try_echo=$ac_try;; |
| 16428 | esac |
| 16429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16430 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16431 | ac_status=$? |
| 16432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16433 | (exit $ac_status); }; }; then |
| 16434 | ac_cv_lib_dl_dlopen=yes |
| 16435 | else |
| 16436 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16439 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16440 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16441 | |
| 16442 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16443 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16444 | LIBS=$ac_check_lib_save_LIBS |
| 16445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16446 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16447 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16448 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16449 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16450 | else |
| 16451 | |
| 16452 | lt_cv_dlopen="dyld" |
| 16453 | lt_cv_dlopen_libs= |
| 16454 | lt_cv_dlopen_self=yes |
| 16455 | |
| 16456 | fi |
| 16457 | |
| 16458 | ;; |
| 16459 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16460 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16461 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16462 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16463 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16465 | else |
| 16466 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16467 | /* confdefs.h. */ |
| 16468 | _ACEOF |
| 16469 | cat confdefs.h >>conftest.$ac_ext |
| 16470 | cat >>conftest.$ac_ext <<_ACEOF |
| 16471 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16472 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16474 | #define shl_load innocuous_shl_load |
| 16475 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16476 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16477 | which can conflict with char shl_load (); below. |
| 16478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16479 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16480 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16481 | #ifdef __STDC__ |
| 16482 | # include <limits.h> |
| 16483 | #else |
| 16484 | # include <assert.h> |
| 16485 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16486 | |
| 16487 | #undef shl_load |
| 16488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16489 | /* Override any GCC internal prototype to avoid an error. |
| 16490 | Use char because int might match the return type of a GCC |
| 16491 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16492 | #ifdef __cplusplus |
| 16493 | extern "C" |
| 16494 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16495 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16496 | /* The GNU C library defines this for functions which it implements |
| 16497 | to always fail with ENOSYS. Some functions are actually named |
| 16498 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16499 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16501 | #endif |
| 16502 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16503 | int |
| 16504 | main () |
| 16505 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16506 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16507 | ; |
| 16508 | return 0; |
| 16509 | } |
| 16510 | _ACEOF |
| 16511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16512 | if { (ac_try="$ac_link" |
| 16513 | case "(($ac_try" in |
| 16514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16515 | *) ac_try_echo=$ac_try;; |
| 16516 | esac |
| 16517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16518 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16519 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16521 | rm -f conftest.er1 |
| 16522 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16524 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16526 | { (case "(($ac_try" in |
| 16527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16528 | *) ac_try_echo=$ac_try;; |
| 16529 | esac |
| 16530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16531 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16532 | ac_status=$? |
| 16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16534 | (exit $ac_status); }; } && |
| 16535 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16536 | { (case "(($ac_try" in |
| 16537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16538 | *) ac_try_echo=$ac_try;; |
| 16539 | esac |
| 16540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16541 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16542 | ac_status=$? |
| 16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16544 | (exit $ac_status); }; }; then |
| 16545 | ac_cv_func_shl_load=yes |
| 16546 | else |
| 16547 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16550 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16552 | |
| 16553 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16554 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16556 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16557 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16558 | if test $ac_cv_func_shl_load = yes; then |
| 16559 | lt_cv_dlopen="shl_load" |
| 16560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16561 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16562 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16563 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16565 | else |
| 16566 | ac_check_lib_save_LIBS=$LIBS |
| 16567 | LIBS="-ldld $LIBS" |
| 16568 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16569 | /* confdefs.h. */ |
| 16570 | _ACEOF |
| 16571 | cat confdefs.h >>conftest.$ac_ext |
| 16572 | cat >>conftest.$ac_ext <<_ACEOF |
| 16573 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16575 | /* Override any GCC internal prototype to avoid an error. |
| 16576 | Use char because int might match the return type of a GCC |
| 16577 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16578 | #ifdef __cplusplus |
| 16579 | extern "C" |
| 16580 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16581 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16582 | int |
| 16583 | main () |
| 16584 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16585 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16586 | ; |
| 16587 | return 0; |
| 16588 | } |
| 16589 | _ACEOF |
| 16590 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16591 | if { (ac_try="$ac_link" |
| 16592 | case "(($ac_try" in |
| 16593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16594 | *) ac_try_echo=$ac_try;; |
| 16595 | esac |
| 16596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16597 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16598 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16600 | rm -f conftest.er1 |
| 16601 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16603 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16605 | { (case "(($ac_try" in |
| 16606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16607 | *) ac_try_echo=$ac_try;; |
| 16608 | esac |
| 16609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16610 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16611 | ac_status=$? |
| 16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16613 | (exit $ac_status); }; } && |
| 16614 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16615 | { (case "(($ac_try" in |
| 16616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16617 | *) ac_try_echo=$ac_try;; |
| 16618 | esac |
| 16619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16620 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16621 | ac_status=$? |
| 16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16623 | (exit $ac_status); }; }; then |
| 16624 | ac_cv_lib_dld_shl_load=yes |
| 16625 | else |
| 16626 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16629 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16630 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16631 | |
| 16632 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16633 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16634 | LIBS=$ac_check_lib_save_LIBS |
| 16635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16636 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16637 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16638 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16639 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16640 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16641 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16642 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16643 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16645 | else |
| 16646 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16647 | /* confdefs.h. */ |
| 16648 | _ACEOF |
| 16649 | cat confdefs.h >>conftest.$ac_ext |
| 16650 | cat >>conftest.$ac_ext <<_ACEOF |
| 16651 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16652 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16654 | #define dlopen innocuous_dlopen |
| 16655 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16656 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16657 | which can conflict with char dlopen (); below. |
| 16658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16659 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16660 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16661 | #ifdef __STDC__ |
| 16662 | # include <limits.h> |
| 16663 | #else |
| 16664 | # include <assert.h> |
| 16665 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16666 | |
| 16667 | #undef dlopen |
| 16668 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16669 | /* Override any GCC internal prototype to avoid an error. |
| 16670 | Use char because int might match the return type of a GCC |
| 16671 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16672 | #ifdef __cplusplus |
| 16673 | extern "C" |
| 16674 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16675 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16676 | /* The GNU C library defines this for functions which it implements |
| 16677 | to always fail with ENOSYS. Some functions are actually named |
| 16678 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16679 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16680 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16681 | #endif |
| 16682 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16683 | int |
| 16684 | main () |
| 16685 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16686 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16687 | ; |
| 16688 | return 0; |
| 16689 | } |
| 16690 | _ACEOF |
| 16691 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16692 | if { (ac_try="$ac_link" |
| 16693 | case "(($ac_try" in |
| 16694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16695 | *) ac_try_echo=$ac_try;; |
| 16696 | esac |
| 16697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16698 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16699 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16701 | rm -f conftest.er1 |
| 16702 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16704 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16706 | { (case "(($ac_try" in |
| 16707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16708 | *) ac_try_echo=$ac_try;; |
| 16709 | esac |
| 16710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16711 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16712 | ac_status=$? |
| 16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16714 | (exit $ac_status); }; } && |
| 16715 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16716 | { (case "(($ac_try" in |
| 16717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16718 | *) ac_try_echo=$ac_try;; |
| 16719 | esac |
| 16720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16721 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16722 | ac_status=$? |
| 16723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16724 | (exit $ac_status); }; }; then |
| 16725 | ac_cv_func_dlopen=yes |
| 16726 | else |
| 16727 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16730 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16732 | |
| 16733 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16734 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16736 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16737 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16738 | if test $ac_cv_func_dlopen = yes; then |
| 16739 | lt_cv_dlopen="dlopen" |
| 16740 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16741 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16742 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16743 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16745 | else |
| 16746 | ac_check_lib_save_LIBS=$LIBS |
| 16747 | LIBS="-ldl $LIBS" |
| 16748 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16749 | /* confdefs.h. */ |
| 16750 | _ACEOF |
| 16751 | cat confdefs.h >>conftest.$ac_ext |
| 16752 | cat >>conftest.$ac_ext <<_ACEOF |
| 16753 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16755 | /* Override any GCC internal prototype to avoid an error. |
| 16756 | Use char because int might match the return type of a GCC |
| 16757 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16758 | #ifdef __cplusplus |
| 16759 | extern "C" |
| 16760 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16761 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16762 | int |
| 16763 | main () |
| 16764 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16765 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16766 | ; |
| 16767 | return 0; |
| 16768 | } |
| 16769 | _ACEOF |
| 16770 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16771 | if { (ac_try="$ac_link" |
| 16772 | case "(($ac_try" in |
| 16773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16774 | *) ac_try_echo=$ac_try;; |
| 16775 | esac |
| 16776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16777 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16778 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16780 | rm -f conftest.er1 |
| 16781 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16783 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16785 | { (case "(($ac_try" in |
| 16786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16787 | *) ac_try_echo=$ac_try;; |
| 16788 | esac |
| 16789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16790 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16791 | ac_status=$? |
| 16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16793 | (exit $ac_status); }; } && |
| 16794 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16795 | { (case "(($ac_try" in |
| 16796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16797 | *) ac_try_echo=$ac_try;; |
| 16798 | esac |
| 16799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16800 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16801 | ac_status=$? |
| 16802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16803 | (exit $ac_status); }; }; then |
| 16804 | ac_cv_lib_dl_dlopen=yes |
| 16805 | else |
| 16806 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16809 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16810 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16811 | |
| 16812 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16813 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16814 | LIBS=$ac_check_lib_save_LIBS |
| 16815 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16816 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16817 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16818 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16819 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16820 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16821 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16822 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16823 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16825 | else |
| 16826 | ac_check_lib_save_LIBS=$LIBS |
| 16827 | LIBS="-lsvld $LIBS" |
| 16828 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16829 | /* confdefs.h. */ |
| 16830 | _ACEOF |
| 16831 | cat confdefs.h >>conftest.$ac_ext |
| 16832 | cat >>conftest.$ac_ext <<_ACEOF |
| 16833 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16835 | /* Override any GCC internal prototype to avoid an error. |
| 16836 | Use char because int might match the return type of a GCC |
| 16837 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16838 | #ifdef __cplusplus |
| 16839 | extern "C" |
| 16840 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16841 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16842 | int |
| 16843 | main () |
| 16844 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16845 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16846 | ; |
| 16847 | return 0; |
| 16848 | } |
| 16849 | _ACEOF |
| 16850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16851 | if { (ac_try="$ac_link" |
| 16852 | case "(($ac_try" in |
| 16853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16854 | *) ac_try_echo=$ac_try;; |
| 16855 | esac |
| 16856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16857 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16858 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16860 | rm -f conftest.er1 |
| 16861 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16863 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16865 | { (case "(($ac_try" in |
| 16866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16867 | *) ac_try_echo=$ac_try;; |
| 16868 | esac |
| 16869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16870 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16871 | ac_status=$? |
| 16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16873 | (exit $ac_status); }; } && |
| 16874 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16875 | { (case "(($ac_try" in |
| 16876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16877 | *) ac_try_echo=$ac_try;; |
| 16878 | esac |
| 16879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16880 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; }; then |
| 16884 | ac_cv_lib_svld_dlopen=yes |
| 16885 | else |
| 16886 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16888 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16889 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16890 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | |
| 16892 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16893 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16894 | LIBS=$ac_check_lib_save_LIBS |
| 16895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16896 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16897 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16898 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16899 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16900 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16901 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16902 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16903 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16905 | else |
| 16906 | ac_check_lib_save_LIBS=$LIBS |
| 16907 | LIBS="-ldld $LIBS" |
| 16908 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16909 | /* confdefs.h. */ |
| 16910 | _ACEOF |
| 16911 | cat confdefs.h >>conftest.$ac_ext |
| 16912 | cat >>conftest.$ac_ext <<_ACEOF |
| 16913 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16915 | /* Override any GCC internal prototype to avoid an error. |
| 16916 | Use char because int might match the return type of a GCC |
| 16917 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16918 | #ifdef __cplusplus |
| 16919 | extern "C" |
| 16920 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16921 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16922 | int |
| 16923 | main () |
| 16924 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16925 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16926 | ; |
| 16927 | return 0; |
| 16928 | } |
| 16929 | _ACEOF |
| 16930 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16931 | if { (ac_try="$ac_link" |
| 16932 | case "(($ac_try" in |
| 16933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16934 | *) ac_try_echo=$ac_try;; |
| 16935 | esac |
| 16936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16937 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16938 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16939 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16940 | rm -f conftest.er1 |
| 16941 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16943 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16945 | { (case "(($ac_try" in |
| 16946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16947 | *) ac_try_echo=$ac_try;; |
| 16948 | esac |
| 16949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16950 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16951 | ac_status=$? |
| 16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16953 | (exit $ac_status); }; } && |
| 16954 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16955 | { (case "(($ac_try" in |
| 16956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16957 | *) ac_try_echo=$ac_try;; |
| 16958 | esac |
| 16959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16960 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16961 | ac_status=$? |
| 16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16963 | (exit $ac_status); }; }; then |
| 16964 | ac_cv_lib_dld_dld_link=yes |
| 16965 | else |
| 16966 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16969 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16971 | |
| 16972 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16973 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16974 | LIBS=$ac_check_lib_save_LIBS |
| 16975 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16976 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16977 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16978 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16979 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16980 | fi |
| 16981 | |
| 16982 | |
| 16983 | fi |
| 16984 | |
| 16985 | |
| 16986 | fi |
| 16987 | |
| 16988 | |
| 16989 | fi |
| 16990 | |
| 16991 | |
| 16992 | fi |
| 16993 | |
| 16994 | |
| 16995 | fi |
| 16996 | |
| 16997 | ;; |
| 16998 | esac |
| 16999 | |
| 17000 | if test "x$lt_cv_dlopen" != xno; then |
| 17001 | enable_dlopen=yes |
| 17002 | else |
| 17003 | enable_dlopen=no |
| 17004 | fi |
| 17005 | |
| 17006 | case $lt_cv_dlopen in |
| 17007 | dlopen) |
| 17008 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17009 | 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] | 17010 | |
| 17011 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17012 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17013 | |
| 17014 | save_LIBS="$LIBS" |
| 17015 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17017 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17018 | 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] | 17019 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17021 | else |
| 17022 | if test "$cross_compiling" = yes; then : |
| 17023 | lt_cv_dlopen_self=cross |
| 17024 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17025 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17026 | lt_status=$lt_dlunknown |
| 17027 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 17028 | #line 17028 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17029 | #include "confdefs.h" |
| 17030 | |
| 17031 | #if HAVE_DLFCN_H |
| 17032 | #include <dlfcn.h> |
| 17033 | #endif |
| 17034 | |
| 17035 | #include <stdio.h> |
| 17036 | |
| 17037 | #ifdef RTLD_GLOBAL |
| 17038 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17039 | #else |
| 17040 | # ifdef DL_GLOBAL |
| 17041 | # define LT_DLGLOBAL DL_GLOBAL |
| 17042 | # else |
| 17043 | # define LT_DLGLOBAL 0 |
| 17044 | # endif |
| 17045 | #endif |
| 17046 | |
| 17047 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17048 | find out it does not work in some platform. */ |
| 17049 | #ifndef LT_DLLAZY_OR_NOW |
| 17050 | # ifdef RTLD_LAZY |
| 17051 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17052 | # else |
| 17053 | # ifdef DL_LAZY |
| 17054 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17055 | # else |
| 17056 | # ifdef RTLD_NOW |
| 17057 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17058 | # else |
| 17059 | # ifdef DL_NOW |
| 17060 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17061 | # else |
| 17062 | # define LT_DLLAZY_OR_NOW 0 |
| 17063 | # endif |
| 17064 | # endif |
| 17065 | # endif |
| 17066 | # endif |
| 17067 | #endif |
| 17068 | |
| 17069 | #ifdef __cplusplus |
| 17070 | extern "C" void exit (int); |
| 17071 | #endif |
| 17072 | |
| 17073 | void fnord() { int i=42;} |
| 17074 | int main () |
| 17075 | { |
| 17076 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17077 | int status = $lt_dlunknown; |
| 17078 | |
| 17079 | if (self) |
| 17080 | { |
| 17081 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17082 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17083 | /* dlclose (self); */ |
| 17084 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17085 | else |
| 17086 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17087 | |
| 17088 | exit (status); |
| 17089 | } |
| 17090 | EOF |
| 17091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17092 | (eval $ac_link) 2>&5 |
| 17093 | ac_status=$? |
| 17094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17095 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17096 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17097 | lt_status=$? |
| 17098 | case x$lt_status in |
| 17099 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17100 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17101 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17102 | esac |
| 17103 | else : |
| 17104 | # compilation failed |
| 17105 | lt_cv_dlopen_self=no |
| 17106 | fi |
| 17107 | fi |
| 17108 | rm -fr conftest* |
| 17109 | |
| 17110 | |
| 17111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17112 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17113 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17114 | |
| 17115 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17116 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17117 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17118 | 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] | 17119 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17121 | else |
| 17122 | if test "$cross_compiling" = yes; then : |
| 17123 | lt_cv_dlopen_self_static=cross |
| 17124 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17125 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17126 | lt_status=$lt_dlunknown |
| 17127 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 17128 | #line 17128 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17129 | #include "confdefs.h" |
| 17130 | |
| 17131 | #if HAVE_DLFCN_H |
| 17132 | #include <dlfcn.h> |
| 17133 | #endif |
| 17134 | |
| 17135 | #include <stdio.h> |
| 17136 | |
| 17137 | #ifdef RTLD_GLOBAL |
| 17138 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17139 | #else |
| 17140 | # ifdef DL_GLOBAL |
| 17141 | # define LT_DLGLOBAL DL_GLOBAL |
| 17142 | # else |
| 17143 | # define LT_DLGLOBAL 0 |
| 17144 | # endif |
| 17145 | #endif |
| 17146 | |
| 17147 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17148 | find out it does not work in some platform. */ |
| 17149 | #ifndef LT_DLLAZY_OR_NOW |
| 17150 | # ifdef RTLD_LAZY |
| 17151 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17152 | # else |
| 17153 | # ifdef DL_LAZY |
| 17154 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17155 | # else |
| 17156 | # ifdef RTLD_NOW |
| 17157 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17158 | # else |
| 17159 | # ifdef DL_NOW |
| 17160 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17161 | # else |
| 17162 | # define LT_DLLAZY_OR_NOW 0 |
| 17163 | # endif |
| 17164 | # endif |
| 17165 | # endif |
| 17166 | # endif |
| 17167 | #endif |
| 17168 | |
| 17169 | #ifdef __cplusplus |
| 17170 | extern "C" void exit (int); |
| 17171 | #endif |
| 17172 | |
| 17173 | void fnord() { int i=42;} |
| 17174 | int main () |
| 17175 | { |
| 17176 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17177 | int status = $lt_dlunknown; |
| 17178 | |
| 17179 | if (self) |
| 17180 | { |
| 17181 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17182 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17183 | /* dlclose (self); */ |
| 17184 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17185 | else |
| 17186 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17187 | |
| 17188 | exit (status); |
| 17189 | } |
| 17190 | EOF |
| 17191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17192 | (eval $ac_link) 2>&5 |
| 17193 | ac_status=$? |
| 17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17195 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17196 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17197 | lt_status=$? |
| 17198 | case x$lt_status in |
| 17199 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17200 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17201 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17202 | esac |
| 17203 | else : |
| 17204 | # compilation failed |
| 17205 | lt_cv_dlopen_self_static=no |
| 17206 | fi |
| 17207 | fi |
| 17208 | rm -fr conftest* |
| 17209 | |
| 17210 | |
| 17211 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17212 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17213 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17214 | fi |
| 17215 | |
| 17216 | CPPFLAGS="$save_CPPFLAGS" |
| 17217 | LDFLAGS="$save_LDFLAGS" |
| 17218 | LIBS="$save_LIBS" |
| 17219 | ;; |
| 17220 | esac |
| 17221 | |
| 17222 | case $lt_cv_dlopen_self in |
| 17223 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17224 | *) enable_dlopen_self=unknown ;; |
| 17225 | esac |
| 17226 | |
| 17227 | case $lt_cv_dlopen_self_static in |
| 17228 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17229 | *) enable_dlopen_self_static=unknown ;; |
| 17230 | esac |
| 17231 | fi |
| 17232 | |
| 17233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17234 | # Report which library types will actually be built |
| 17235 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17236 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17237 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17238 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17239 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17240 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17241 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17242 | test "$can_build_shared" = "no" && enable_shared=no |
| 17243 | |
| 17244 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17245 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17246 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17247 | aix3*) |
| 17248 | test "$enable_shared" = yes && enable_static=no |
| 17249 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17250 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17251 | postinstall_cmds='$RANLIB $lib' |
| 17252 | fi |
| 17253 | ;; |
| 17254 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17255 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17256 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17257 | test "$enable_shared" = yes && enable_static=no |
| 17258 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17259 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17260 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17261 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17262 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17263 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17264 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17265 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17266 | # Make sure either enable_shared or enable_static is yes. |
| 17267 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17268 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17269 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17270 | |
| 17271 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17272 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17273 | # with your package, and you will get complaints that there are |
| 17274 | # no rules to generate ltmain.sh. |
| 17275 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17276 | # See if we are running on zsh, and set the options which allow our commands through |
| 17277 | # without removal of \ escapes. |
| 17278 | if test -n "${ZSH_VERSION+set}" ; then |
| 17279 | setopt NO_GLOB_SUBST |
| 17280 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17281 | # Now quote all the things that may contain metacharacters while being |
| 17282 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17283 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17284 | 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] | 17285 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17286 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17287 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17288 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17289 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17290 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17291 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17292 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17293 | compiler \ |
| 17294 | CC \ |
| 17295 | LD \ |
| 17296 | lt_prog_compiler_wl \ |
| 17297 | lt_prog_compiler_pic \ |
| 17298 | lt_prog_compiler_static \ |
| 17299 | lt_prog_compiler_no_builtin_flag \ |
| 17300 | export_dynamic_flag_spec \ |
| 17301 | thread_safe_flag_spec \ |
| 17302 | whole_archive_flag_spec \ |
| 17303 | enable_shared_with_static_runtimes \ |
| 17304 | old_archive_cmds \ |
| 17305 | old_archive_from_new_cmds \ |
| 17306 | predep_objects \ |
| 17307 | postdep_objects \ |
| 17308 | predeps \ |
| 17309 | postdeps \ |
| 17310 | compiler_lib_search_path \ |
| 17311 | archive_cmds \ |
| 17312 | archive_expsym_cmds \ |
| 17313 | postinstall_cmds \ |
| 17314 | postuninstall_cmds \ |
| 17315 | old_archive_from_expsyms_cmds \ |
| 17316 | allow_undefined_flag \ |
| 17317 | no_undefined_flag \ |
| 17318 | export_symbols_cmds \ |
| 17319 | hardcode_libdir_flag_spec \ |
| 17320 | hardcode_libdir_flag_spec_ld \ |
| 17321 | hardcode_libdir_separator \ |
| 17322 | hardcode_automatic \ |
| 17323 | module_cmds \ |
| 17324 | module_expsym_cmds \ |
| 17325 | lt_cv_prog_compiler_c_o \ |
| 17326 | exclude_expsyms \ |
| 17327 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17328 | |
| 17329 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17330 | old_archive_cmds | \ |
| 17331 | old_archive_from_new_cmds | \ |
| 17332 | archive_cmds | \ |
| 17333 | archive_expsym_cmds | \ |
| 17334 | module_cmds | \ |
| 17335 | module_expsym_cmds | \ |
| 17336 | old_archive_from_expsyms_cmds | \ |
| 17337 | export_symbols_cmds | \ |
| 17338 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17339 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17340 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17341 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17342 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17343 | 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] | 17344 | ;; |
| 17345 | *) |
| 17346 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17347 | ;; |
| 17348 | esac |
| 17349 | done |
| 17350 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17351 | case $lt_echo in |
| 17352 | *'\$0 --fallback-echo"') |
| 17353 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17354 | ;; |
| 17355 | esac |
| 17356 | |
| 17357 | cfgfile="${ofile}T" |
| 17358 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17359 | $rm -f "$cfgfile" |
| 17360 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17361 | echo "$as_me: creating $ofile" >&6;} |
| 17362 | |
| 17363 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17364 | #! $SHELL |
| 17365 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17366 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17367 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17368 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17369 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17370 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17371 | # Free Software Foundation, Inc. |
| 17372 | # |
| 17373 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17374 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17375 | # |
| 17376 | # This program is free software; you can redistribute it and/or modify |
| 17377 | # it under the terms of the GNU General Public License as published by |
| 17378 | # the Free Software Foundation; either version 2 of the License, or |
| 17379 | # (at your option) any later version. |
| 17380 | # |
| 17381 | # This program is distributed in the hope that it will be useful, but |
| 17382 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17383 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17384 | # General Public License for more details. |
| 17385 | # |
| 17386 | # You should have received a copy of the GNU General Public License |
| 17387 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17388 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17389 | # |
| 17390 | # As a special exception to the GNU General Public License, if you |
| 17391 | # distribute this file as part of a program that contains a |
| 17392 | # configuration script generated by Autoconf, you may include it under |
| 17393 | # the same distribution terms that you use for the rest of that program. |
| 17394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17395 | # A sed program that does not truncate output. |
| 17396 | SED=$lt_SED |
| 17397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17398 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17399 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17400 | |
| 17401 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17402 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17403 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17404 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17405 | # The names of the tagged configurations supported by this script. |
| 17406 | available_tags= |
| 17407 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17408 | # ### BEGIN LIBTOOL CONFIG |
| 17409 | |
| 17410 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17411 | |
| 17412 | # Shell to use when invoking shell scripts. |
| 17413 | SHELL=$lt_SHELL |
| 17414 | |
| 17415 | # Whether or not to build shared libraries. |
| 17416 | build_libtool_libs=$enable_shared |
| 17417 | |
| 17418 | # Whether or not to build static libraries. |
| 17419 | build_old_libs=$enable_static |
| 17420 | |
| 17421 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17422 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17423 | |
| 17424 | # Whether or not to disallow shared libs when runtime libs are static |
| 17425 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17426 | |
| 17427 | # Whether or not to optimize for fast installation. |
| 17428 | fast_install=$enable_fast_install |
| 17429 | |
| 17430 | # The host system. |
| 17431 | host_alias=$host_alias |
| 17432 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17433 | host_os=$host_os |
| 17434 | |
| 17435 | # The build system. |
| 17436 | build_alias=$build_alias |
| 17437 | build=$build |
| 17438 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17439 | |
| 17440 | # An echo program that does not interpret backslashes. |
| 17441 | echo=$lt_echo |
| 17442 | |
| 17443 | # The archiver. |
| 17444 | AR=$lt_AR |
| 17445 | AR_FLAGS=$lt_AR_FLAGS |
| 17446 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17447 | # A C compiler. |
| 17448 | LTCC=$lt_LTCC |
| 17449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17450 | # LTCC compiler flags. |
| 17451 | LTCFLAGS=$lt_LTCFLAGS |
| 17452 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17453 | # A language-specific compiler. |
| 17454 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17455 | |
| 17456 | # Is the compiler the GNU C compiler? |
| 17457 | with_gcc=$GCC |
| 17458 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17459 | # An ERE matcher. |
| 17460 | EGREP=$lt_EGREP |
| 17461 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17462 | # The linker used to build libraries. |
| 17463 | LD=$lt_LD |
| 17464 | |
| 17465 | # Whether we need hard or soft links. |
| 17466 | LN_S=$lt_LN_S |
| 17467 | |
| 17468 | # A BSD-compatible nm program. |
| 17469 | NM=$lt_NM |
| 17470 | |
| 17471 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17472 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17473 | |
| 17474 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17475 | MAGIC_CMD=$MAGIC_CMD |
| 17476 | |
| 17477 | # Used on cygwin: DLL creation program. |
| 17478 | DLLTOOL="$DLLTOOL" |
| 17479 | |
| 17480 | # Used on cygwin: object dumper. |
| 17481 | OBJDUMP="$OBJDUMP" |
| 17482 | |
| 17483 | # Used on cygwin: assembler. |
| 17484 | AS="$AS" |
| 17485 | |
| 17486 | # The name of the directory that contains temporary libtool files. |
| 17487 | objdir=$objdir |
| 17488 | |
| 17489 | # How to create reloadable object files. |
| 17490 | reload_flag=$lt_reload_flag |
| 17491 | reload_cmds=$lt_reload_cmds |
| 17492 | |
| 17493 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17494 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | |
| 17496 | # Object file suffix (normally "o"). |
| 17497 | objext="$ac_objext" |
| 17498 | |
| 17499 | # Old archive suffix (normally "a"). |
| 17500 | libext="$libext" |
| 17501 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17502 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17503 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17504 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17505 | # Executable file suffix (normally ""). |
| 17506 | exeext="$exeext" |
| 17507 | |
| 17508 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17509 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17510 | pic_mode=$pic_mode |
| 17511 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17512 | # What is the maximum length of a command? |
| 17513 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17514 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17515 | # Does compiler simultaneously support -c and -o options? |
| 17516 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17518 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17519 | need_locks=$lt_need_locks |
| 17520 | |
| 17521 | # Do we need the lib prefix for modules? |
| 17522 | need_lib_prefix=$need_lib_prefix |
| 17523 | |
| 17524 | # Do we need a version for libraries? |
| 17525 | need_version=$need_version |
| 17526 | |
| 17527 | # Whether dlopen is supported. |
| 17528 | dlopen_support=$enable_dlopen |
| 17529 | |
| 17530 | # Whether dlopen of programs is supported. |
| 17531 | dlopen_self=$enable_dlopen_self |
| 17532 | |
| 17533 | # Whether dlopen of statically linked programs is supported. |
| 17534 | dlopen_self_static=$enable_dlopen_self_static |
| 17535 | |
| 17536 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17537 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17538 | |
| 17539 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17540 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17541 | |
| 17542 | # Compiler flag to allow reflexive dlopens. |
| 17543 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17544 | |
| 17545 | # Compiler flag to generate shared objects directly from archives. |
| 17546 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17547 | |
| 17548 | # Compiler flag to generate thread-safe objects. |
| 17549 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17550 | |
| 17551 | # Library versioning type. |
| 17552 | version_type=$version_type |
| 17553 | |
| 17554 | # Format of library name prefix. |
| 17555 | libname_spec=$lt_libname_spec |
| 17556 | |
| 17557 | # List of archive names. First name is the real one, the rest are links. |
| 17558 | # The last name is the one that the linker finds with -lNAME. |
| 17559 | library_names_spec=$lt_library_names_spec |
| 17560 | |
| 17561 | # The coded name of the library, if different from the real name. |
| 17562 | soname_spec=$lt_soname_spec |
| 17563 | |
| 17564 | # Commands used to build and install an old-style archive. |
| 17565 | RANLIB=$lt_RANLIB |
| 17566 | old_archive_cmds=$lt_old_archive_cmds |
| 17567 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17568 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17569 | |
| 17570 | # Create an old-style archive from a shared archive. |
| 17571 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17572 | |
| 17573 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17574 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17575 | |
| 17576 | # Commands used to build and install a shared archive. |
| 17577 | archive_cmds=$lt_archive_cmds |
| 17578 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17579 | postinstall_cmds=$lt_postinstall_cmds |
| 17580 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17582 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17583 | module_cmds=$lt_module_cmds |
| 17584 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17585 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17586 | # Commands to strip libraries. |
| 17587 | old_striplib=$lt_old_striplib |
| 17588 | striplib=$lt_striplib |
| 17589 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17590 | # Dependencies to place before the objects being linked to create a |
| 17591 | # shared library. |
| 17592 | predep_objects=$lt_predep_objects |
| 17593 | |
| 17594 | # Dependencies to place after the objects being linked to create a |
| 17595 | # shared library. |
| 17596 | postdep_objects=$lt_postdep_objects |
| 17597 | |
| 17598 | # Dependencies to place before the objects being linked to create a |
| 17599 | # shared library. |
| 17600 | predeps=$lt_predeps |
| 17601 | |
| 17602 | # Dependencies to place after the objects being linked to create a |
| 17603 | # shared library. |
| 17604 | postdeps=$lt_postdeps |
| 17605 | |
| 17606 | # The library search path used internally by the compiler when linking |
| 17607 | # a shared library. |
| 17608 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17609 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17610 | # Method to check whether dependent libraries are shared objects. |
| 17611 | deplibs_check_method=$lt_deplibs_check_method |
| 17612 | |
| 17613 | # Command to use when deplibs_check_method == file_magic. |
| 17614 | file_magic_cmd=$lt_file_magic_cmd |
| 17615 | |
| 17616 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17617 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17618 | |
| 17619 | # Flag that forces no undefined symbols. |
| 17620 | no_undefined_flag=$lt_no_undefined_flag |
| 17621 | |
| 17622 | # Commands used to finish a libtool library installation in a directory. |
| 17623 | finish_cmds=$lt_finish_cmds |
| 17624 | |
| 17625 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17626 | finish_eval=$lt_finish_eval |
| 17627 | |
| 17628 | # 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] | 17629 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17630 | |
| 17631 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17632 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17633 | |
| 17634 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17635 | 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] | 17636 | |
| 17637 | # This is the shared library runtime path variable. |
| 17638 | runpath_var=$runpath_var |
| 17639 | |
| 17640 | # This is the shared library path variable. |
| 17641 | shlibpath_var=$shlibpath_var |
| 17642 | |
| 17643 | # Is shlibpath searched before the hard-coded library search path? |
| 17644 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17645 | |
| 17646 | # How to hardcode a shared library path into an executable. |
| 17647 | hardcode_action=$hardcode_action |
| 17648 | |
| 17649 | # Whether we should hardcode library paths into libraries. |
| 17650 | hardcode_into_libs=$hardcode_into_libs |
| 17651 | |
| 17652 | # Flag to hardcode \$libdir into a binary during linking. |
| 17653 | # This must work even if \$libdir does not exist. |
| 17654 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17655 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17656 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17657 | # a binary during linking. This must work even if \$libdir does |
| 17658 | # not exist. |
| 17659 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17660 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17661 | # Whether we need a single -rpath flag with a separated argument. |
| 17662 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17663 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17664 | # 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] | 17665 | # resulting binary. |
| 17666 | hardcode_direct=$hardcode_direct |
| 17667 | |
| 17668 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17669 | # resulting binary. |
| 17670 | hardcode_minus_L=$hardcode_minus_L |
| 17671 | |
| 17672 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17673 | # the resulting binary. |
| 17674 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17675 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17676 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17677 | # and all subsequent libraries and executables linked against it. |
| 17678 | hardcode_automatic=$hardcode_automatic |
| 17679 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17680 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17681 | # restored at relink time. |
| 17682 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17683 | |
| 17684 | # Whether libtool must link a program against all its dependency libraries. |
| 17685 | link_all_deplibs=$link_all_deplibs |
| 17686 | |
| 17687 | # Compile-time system search path for libraries |
| 17688 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17689 | |
| 17690 | # Run-time system search path for libraries |
| 17691 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17692 | |
| 17693 | # Fix the shell variable \$srcfile for the compiler. |
| 17694 | fix_srcfile_path="$fix_srcfile_path" |
| 17695 | |
| 17696 | # Set to yes if exported symbols are required. |
| 17697 | always_export_symbols=$always_export_symbols |
| 17698 | |
| 17699 | # The commands to list exported symbols. |
| 17700 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17701 | |
| 17702 | # The commands to extract the exported symbol list from a shared archive. |
| 17703 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17704 | |
| 17705 | # Symbols that should not be listed in the preloaded symbols. |
| 17706 | exclude_expsyms=$lt_exclude_expsyms |
| 17707 | |
| 17708 | # Symbols that must always be exported. |
| 17709 | include_expsyms=$lt_include_expsyms |
| 17710 | |
| 17711 | # ### END LIBTOOL CONFIG |
| 17712 | |
| 17713 | __EOF__ |
| 17714 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17715 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17716 | case $host_os in |
| 17717 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17718 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17719 | |
| 17720 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17721 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17722 | # vanish in a puff of smoke. |
| 17723 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17724 | COLLECT_NAMES= |
| 17725 | export COLLECT_NAMES |
| 17726 | fi |
| 17727 | EOF |
| 17728 | ;; |
| 17729 | esac |
| 17730 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17731 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17732 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17733 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17734 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17735 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17736 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17737 | mv -f "$cfgfile" "$ofile" || \ |
| 17738 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17739 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17740 | |
| 17741 | else |
| 17742 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17743 | # `config.status --recheck' to rerun these tests and create the |
| 17744 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17745 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17746 | if test -f "$ltmain_in"; then |
| 17747 | test -f Makefile && make "$ltmain" |
| 17748 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17749 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17750 | |
| 17751 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17752 | ac_ext=c |
| 17753 | ac_cpp='$CPP $CPPFLAGS' |
| 17754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17757 | |
| 17758 | CC="$lt_save_CC" |
| 17759 | |
| 17760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17761 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17762 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17763 | withval=$with_tags; tagnames="$withval" |
| 17764 | fi |
| 17765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17766 | |
| 17767 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17768 | if test ! -f "${ofile}"; then |
| 17769 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17770 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17771 | fi |
| 17772 | |
| 17773 | if test -z "$LTCC"; then |
| 17774 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17775 | if test -z "$LTCC"; then |
| 17776 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17777 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17778 | else |
| 17779 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17780 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17781 | fi |
| 17782 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17783 | if test -z "$LTCFLAGS"; then |
| 17784 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17785 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17786 | |
| 17787 | # Extract list of available tagged configurations in $ofile. |
| 17788 | # Note that this assumes the entire list is on one line. |
| 17789 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17790 | |
| 17791 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17792 | for tagname in $tagnames; do |
| 17793 | IFS="$lt_save_ifs" |
| 17794 | # Check whether tagname contains only valid characters |
| 17795 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 17796 | "") ;; |
| 17797 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 17798 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 17799 | { (exit 1); exit 1; }; } |
| 17800 | ;; |
| 17801 | esac |
| 17802 | |
| 17803 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 17804 | then |
| 17805 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 17806 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 17807 | { (exit 1); exit 1; }; } |
| 17808 | fi |
| 17809 | |
| 17810 | # Update the list of available tags. |
| 17811 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17812 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17813 | |
| 17814 | case $tagname in |
| 17815 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17816 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17817 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17818 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17819 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17820 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17821 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17822 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17823 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17824 | |
| 17825 | |
| 17826 | |
| 17827 | |
| 17828 | archive_cmds_need_lc_CXX=no |
| 17829 | allow_undefined_flag_CXX= |
| 17830 | always_export_symbols_CXX=no |
| 17831 | archive_expsym_cmds_CXX= |
| 17832 | export_dynamic_flag_spec_CXX= |
| 17833 | hardcode_direct_CXX=no |
| 17834 | hardcode_libdir_flag_spec_CXX= |
| 17835 | hardcode_libdir_flag_spec_ld_CXX= |
| 17836 | hardcode_libdir_separator_CXX= |
| 17837 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17838 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17839 | hardcode_automatic_CXX=no |
| 17840 | module_cmds_CXX= |
| 17841 | module_expsym_cmds_CXX= |
| 17842 | link_all_deplibs_CXX=unknown |
| 17843 | old_archive_cmds_CXX=$old_archive_cmds |
| 17844 | no_undefined_flag_CXX= |
| 17845 | whole_archive_flag_spec_CXX= |
| 17846 | enable_shared_with_static_runtimes_CXX=no |
| 17847 | |
| 17848 | # Dependencies to place before and after the object being linked: |
| 17849 | predep_objects_CXX= |
| 17850 | postdep_objects_CXX= |
| 17851 | predeps_CXX= |
| 17852 | postdeps_CXX= |
| 17853 | compiler_lib_search_path_CXX= |
| 17854 | |
| 17855 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17856 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17857 | |
| 17858 | # Object file extension for compiled C++ test sources. |
| 17859 | objext=o |
| 17860 | objext_CXX=$objext |
| 17861 | |
| 17862 | # Code to be used in simple compile tests |
| 17863 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17864 | |
| 17865 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17866 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17867 | |
| 17868 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17869 | |
| 17870 | # If no C compiler was specified, use CC. |
| 17871 | LTCC=${LTCC-"$CC"} |
| 17872 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17873 | # If no C compiler flags were specified, use CFLAGS. |
| 17874 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17875 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17876 | # Allow CC to be a program name with arguments. |
| 17877 | compiler=$CC |
| 17878 | |
| 17879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17880 | # save warnings/boilerplate of simple test code |
| 17881 | ac_outfile=conftest.$ac_objext |
| 17882 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17883 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17884 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17885 | $rm conftest* |
| 17886 | |
| 17887 | ac_outfile=conftest.$ac_objext |
| 17888 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17889 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17890 | _lt_linker_boilerplate=`cat conftest.err` |
| 17891 | $rm conftest* |
| 17892 | |
| 17893 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17894 | # Allow CC to be a program name with arguments. |
| 17895 | lt_save_CC=$CC |
| 17896 | lt_save_LD=$LD |
| 17897 | lt_save_GCC=$GCC |
| 17898 | GCC=$GXX |
| 17899 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17900 | lt_save_path_LD=$lt_cv_path_LD |
| 17901 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17902 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17903 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17904 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17905 | fi |
| 17906 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17907 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17908 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17909 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17910 | fi |
| 17911 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17912 | CC=${CXX-"c++"} |
| 17913 | compiler=$CC |
| 17914 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17915 | for cc_temp in $compiler""; do |
| 17916 | case $cc_temp in |
| 17917 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17918 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17919 | \-*) ;; |
| 17920 | *) break;; |
| 17921 | esac |
| 17922 | done |
| 17923 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17924 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17925 | |
| 17926 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17927 | # no_builtin_flag separately |
| 17928 | if test "$GXX" = yes; then |
| 17929 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17930 | else |
| 17931 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17932 | fi |
| 17933 | |
| 17934 | if test "$GXX" = yes; then |
| 17935 | # Set up default GNU C++ configuration |
| 17936 | |
| 17937 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17938 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17939 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17940 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17941 | else |
| 17942 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17943 | fi |
| 17944 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17945 | ac_prog=ld |
| 17946 | if test "$GCC" = yes; then |
| 17947 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17948 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17949 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17950 | case $host in |
| 17951 | *-*-mingw*) |
| 17952 | # gcc leaves a trailing carriage return which upsets mingw |
| 17953 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17954 | *) |
| 17955 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17956 | esac |
| 17957 | case $ac_prog in |
| 17958 | # Accept absolute paths. |
| 17959 | [\\/]* | ?:[\\/]*) |
| 17960 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17961 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17962 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17963 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17964 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17965 | done |
| 17966 | test -z "$LD" && LD="$ac_prog" |
| 17967 | ;; |
| 17968 | "") |
| 17969 | # If it fails, then pretend we aren't using GCC. |
| 17970 | ac_prog=ld |
| 17971 | ;; |
| 17972 | *) |
| 17973 | # If it is relative, then search for the first ld in PATH. |
| 17974 | with_gnu_ld=unknown |
| 17975 | ;; |
| 17976 | esac |
| 17977 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17978 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17979 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17980 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17981 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17982 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17983 | fi |
| 17984 | if test "${lt_cv_path_LD+set}" = set; then |
| 17985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17986 | else |
| 17987 | if test -z "$LD"; then |
| 17988 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17989 | for ac_dir in $PATH; do |
| 17990 | IFS="$lt_save_ifs" |
| 17991 | test -z "$ac_dir" && ac_dir=. |
| 17992 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17993 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17994 | # 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] | 17995 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17996 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17997 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17998 | *GNU* | *'with BFD'*) |
| 17999 | test "$with_gnu_ld" != no && break |
| 18000 | ;; |
| 18001 | *) |
| 18002 | test "$with_gnu_ld" != yes && break |
| 18003 | ;; |
| 18004 | esac |
| 18005 | fi |
| 18006 | done |
| 18007 | IFS="$lt_save_ifs" |
| 18008 | else |
| 18009 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18010 | fi |
| 18011 | fi |
| 18012 | |
| 18013 | LD="$lt_cv_path_LD" |
| 18014 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18015 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18016 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18017 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18018 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18019 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18020 | fi |
| 18021 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18022 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18023 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18024 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18025 | 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] | 18026 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18028 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18029 | # 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] | 18030 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18031 | *GNU* | *'with BFD'*) |
| 18032 | lt_cv_prog_gnu_ld=yes |
| 18033 | ;; |
| 18034 | *) |
| 18035 | lt_cv_prog_gnu_ld=no |
| 18036 | ;; |
| 18037 | esac |
| 18038 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18039 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18040 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18041 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18042 | |
| 18043 | |
| 18044 | |
| 18045 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18046 | # archiving commands below assume that GNU ld is being used. |
| 18047 | if test "$with_gnu_ld" = yes; then |
| 18048 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18049 | 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' |
| 18050 | |
| 18051 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18052 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18053 | |
| 18054 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18055 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18056 | # investigate it a little bit more. (MM) |
| 18057 | wlarc='${wl}' |
| 18058 | |
| 18059 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18060 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18061 | grep 'no-whole-archive' > /dev/null; then |
| 18062 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18063 | else |
| 18064 | whole_archive_flag_spec_CXX= |
| 18065 | fi |
| 18066 | else |
| 18067 | with_gnu_ld=no |
| 18068 | wlarc= |
| 18069 | |
| 18070 | # A generic and very simple default shared library creation |
| 18071 | # command for GNU C++ for the case where it uses the native |
| 18072 | # linker, instead of GNU ld. If possible, this setting should |
| 18073 | # overridden to take advantage of the native linker features on |
| 18074 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18075 | 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] | 18076 | fi |
| 18077 | |
| 18078 | # Commands to make compiler produce verbose output that lists |
| 18079 | # what "hidden" libraries, object files and flags are used when |
| 18080 | # linking a shared library. |
| 18081 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18082 | |
| 18083 | else |
| 18084 | GXX=no |
| 18085 | with_gnu_ld=no |
| 18086 | wlarc= |
| 18087 | fi |
| 18088 | |
| 18089 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18090 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18091 | 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] | 18092 | ld_shlibs_CXX=yes |
| 18093 | case $host_os in |
| 18094 | aix3*) |
| 18095 | # FIXME: insert proper C++ library support |
| 18096 | ld_shlibs_CXX=no |
| 18097 | ;; |
| 18098 | aix4* | aix5*) |
| 18099 | if test "$host_cpu" = ia64; then |
| 18100 | # On IA64, the linker does run time linking by default, so we don't |
| 18101 | # have to do anything special. |
| 18102 | aix_use_runtimelinking=no |
| 18103 | exp_sym_flag='-Bexport' |
| 18104 | no_entry_flag="" |
| 18105 | else |
| 18106 | aix_use_runtimelinking=no |
| 18107 | |
| 18108 | # Test if we are trying to use run time linking or normal |
| 18109 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18110 | # need to do runtime linking. |
| 18111 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18112 | for ld_flag in $LDFLAGS; do |
| 18113 | case $ld_flag in |
| 18114 | *-brtl*) |
| 18115 | aix_use_runtimelinking=yes |
| 18116 | break |
| 18117 | ;; |
| 18118 | esac |
| 18119 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18120 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18121 | esac |
| 18122 | |
| 18123 | exp_sym_flag='-bexport' |
| 18124 | no_entry_flag='-bnoentry' |
| 18125 | fi |
| 18126 | |
| 18127 | # When large executables or shared objects are built, AIX ld can |
| 18128 | # have problems creating the table of contents. If linking a library |
| 18129 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18130 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18131 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18132 | |
| 18133 | archive_cmds_CXX='' |
| 18134 | hardcode_direct_CXX=yes |
| 18135 | hardcode_libdir_separator_CXX=':' |
| 18136 | link_all_deplibs_CXX=yes |
| 18137 | |
| 18138 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18139 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18140 | # We only want to do this on AIX 4.2 and lower, the check |
| 18141 | # below for broken collect2 doesn't work under 4.3+ |
| 18142 | collect2name=`${CC} -print-prog-name=collect2` |
| 18143 | if test -f "$collect2name" && \ |
| 18144 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18145 | then |
| 18146 | # We have reworked collect2 |
| 18147 | hardcode_direct_CXX=yes |
| 18148 | else |
| 18149 | # We have old collect2 |
| 18150 | hardcode_direct_CXX=unsupported |
| 18151 | # It fails to find uninstalled libraries when the uninstalled |
| 18152 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18153 | # to unsupported forces relinking |
| 18154 | hardcode_minus_L_CXX=yes |
| 18155 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18156 | hardcode_libdir_separator_CXX= |
| 18157 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18158 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18159 | esac |
| 18160 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18161 | if test "$aix_use_runtimelinking" = yes; then |
| 18162 | shared_flag="$shared_flag "'${wl}-G' |
| 18163 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18164 | else |
| 18165 | # not using gcc |
| 18166 | if test "$host_cpu" = ia64; then |
| 18167 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18168 | # chokes on -Wl,-G. The following line is correct: |
| 18169 | shared_flag='-G' |
| 18170 | else |
| 18171 | if test "$aix_use_runtimelinking" = yes; then |
| 18172 | shared_flag='${wl}-G' |
| 18173 | else |
| 18174 | shared_flag='${wl}-bM:SRE' |
| 18175 | fi |
| 18176 | fi |
| 18177 | fi |
| 18178 | |
| 18179 | # It seems that -bexpall does not export symbols beginning with |
| 18180 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18181 | always_export_symbols_CXX=yes |
| 18182 | if test "$aix_use_runtimelinking" = yes; then |
| 18183 | # Warning - without using the other runtime loading flags (-brtl), |
| 18184 | # -berok will link without error, but may produce a broken library. |
| 18185 | allow_undefined_flag_CXX='-berok' |
| 18186 | # Determine the default libpath from the value encoded in an empty executable. |
| 18187 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18188 | /* confdefs.h. */ |
| 18189 | _ACEOF |
| 18190 | cat confdefs.h >>conftest.$ac_ext |
| 18191 | cat >>conftest.$ac_ext <<_ACEOF |
| 18192 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18193 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18194 | int |
| 18195 | main () |
| 18196 | { |
| 18197 | |
| 18198 | ; |
| 18199 | return 0; |
| 18200 | } |
| 18201 | _ACEOF |
| 18202 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18203 | if { (ac_try="$ac_link" |
| 18204 | case "(($ac_try" in |
| 18205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18206 | *) ac_try_echo=$ac_try;; |
| 18207 | esac |
| 18208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18209 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18210 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18212 | rm -f conftest.er1 |
| 18213 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18215 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18216 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18217 | { (case "(($ac_try" in |
| 18218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18219 | *) ac_try_echo=$ac_try;; |
| 18220 | esac |
| 18221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18222 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18223 | ac_status=$? |
| 18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18225 | (exit $ac_status); }; } && |
| 18226 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18227 | { (case "(($ac_try" in |
| 18228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18229 | *) ac_try_echo=$ac_try;; |
| 18230 | esac |
| 18231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18232 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18233 | ac_status=$? |
| 18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18235 | (exit $ac_status); }; }; then |
| 18236 | |
| 18237 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18238 | }'` |
| 18239 | # Check for a 64-bit object if we didn't find anything. |
| 18240 | 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; } |
| 18241 | }'`; fi |
| 18242 | else |
| 18243 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18245 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18246 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18248 | |
| 18249 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18250 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18251 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18252 | |
| 18253 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18255 | 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] | 18256 | else |
| 18257 | if test "$host_cpu" = ia64; then |
| 18258 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18259 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18260 | 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] | 18261 | else |
| 18262 | # Determine the default libpath from the value encoded in an empty executable. |
| 18263 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18264 | /* confdefs.h. */ |
| 18265 | _ACEOF |
| 18266 | cat confdefs.h >>conftest.$ac_ext |
| 18267 | cat >>conftest.$ac_ext <<_ACEOF |
| 18268 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18269 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18270 | int |
| 18271 | main () |
| 18272 | { |
| 18273 | |
| 18274 | ; |
| 18275 | return 0; |
| 18276 | } |
| 18277 | _ACEOF |
| 18278 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18279 | if { (ac_try="$ac_link" |
| 18280 | case "(($ac_try" in |
| 18281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18282 | *) ac_try_echo=$ac_try;; |
| 18283 | esac |
| 18284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18285 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18286 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18288 | rm -f conftest.er1 |
| 18289 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18291 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18292 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18293 | { (case "(($ac_try" in |
| 18294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18295 | *) ac_try_echo=$ac_try;; |
| 18296 | esac |
| 18297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18298 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18299 | ac_status=$? |
| 18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18301 | (exit $ac_status); }; } && |
| 18302 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18303 | { (case "(($ac_try" in |
| 18304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18305 | *) ac_try_echo=$ac_try;; |
| 18306 | esac |
| 18307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18308 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18309 | ac_status=$? |
| 18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18311 | (exit $ac_status); }; }; then |
| 18312 | |
| 18313 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18314 | }'` |
| 18315 | # Check for a 64-bit object if we didn't find anything. |
| 18316 | 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; } |
| 18317 | }'`; fi |
| 18318 | else |
| 18319 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18321 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18323 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18324 | |
| 18325 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18326 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18327 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18328 | |
| 18329 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18330 | # Warning - without using the other run time loading flags, |
| 18331 | # -berok will link without error, but may produce a broken library. |
| 18332 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18333 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18334 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18335 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18336 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18337 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18338 | 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] | 18339 | fi |
| 18340 | fi |
| 18341 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18342 | |
| 18343 | beos*) |
| 18344 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18345 | allow_undefined_flag_CXX=unsupported |
| 18346 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18347 | # support --undefined. This deserves some investigation. FIXME |
| 18348 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18349 | else |
| 18350 | ld_shlibs_CXX=no |
| 18351 | fi |
| 18352 | ;; |
| 18353 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18354 | chorus*) |
| 18355 | case $cc_basename in |
| 18356 | *) |
| 18357 | # FIXME: insert proper C++ library support |
| 18358 | ld_shlibs_CXX=no |
| 18359 | ;; |
| 18360 | esac |
| 18361 | ;; |
| 18362 | |
| 18363 | cygwin* | mingw* | pw32*) |
| 18364 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18365 | # as there is no search path for DLLs. |
| 18366 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18367 | allow_undefined_flag_CXX=unsupported |
| 18368 | always_export_symbols_CXX=no |
| 18369 | enable_shared_with_static_runtimes_CXX=yes |
| 18370 | |
| 18371 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18372 | 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] | 18373 | # If the export-symbols file already is a .def file (1st line |
| 18374 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18375 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18376 | cp $export_symbols $output_objdir/$soname.def; |
| 18377 | else |
| 18378 | echo EXPORTS > $output_objdir/$soname.def; |
| 18379 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18380 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18381 | $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] | 18382 | else |
| 18383 | ld_shlibs_CXX=no |
| 18384 | fi |
| 18385 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18386 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18387 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18388 | rhapsody* | darwin1.[012]) |
| 18389 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18390 | ;; |
| 18391 | *) # Darwin 1.3 on |
| 18392 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18393 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18394 | else |
| 18395 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18396 | 10.[012]) |
| 18397 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18398 | ;; |
| 18399 | 10.*) |
| 18400 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18401 | ;; |
| 18402 | esac |
| 18403 | fi |
| 18404 | ;; |
| 18405 | esac |
| 18406 | archive_cmds_need_lc_CXX=no |
| 18407 | hardcode_direct_CXX=no |
| 18408 | hardcode_automatic_CXX=yes |
| 18409 | hardcode_shlibpath_var_CXX=unsupported |
| 18410 | whole_archive_flag_spec_CXX='' |
| 18411 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18412 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18413 | if test "$GXX" = yes ; then |
| 18414 | lt_int_apple_cc_single_mod=no |
| 18415 | output_verbose_link_cmd='echo' |
| 18416 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18417 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18418 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18419 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18420 | 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] | 18421 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18422 | 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] | 18423 | fi |
| 18424 | 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] | 18425 | # 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] | 18426 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18427 | 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] | 18428 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18429 | 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] | 18430 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18431 | 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] | 18432 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18433 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18434 | xlc*) |
| 18435 | output_verbose_link_cmd='echo' |
| 18436 | 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' |
| 18437 | 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] | 18438 | # 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] | 18439 | 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}' |
| 18440 | 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] | 18441 | ;; |
| 18442 | *) |
| 18443 | ld_shlibs_CXX=no |
| 18444 | ;; |
| 18445 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18446 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18447 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18448 | |
| 18449 | dgux*) |
| 18450 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18451 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18452 | # FIXME: insert proper C++ library support |
| 18453 | ld_shlibs_CXX=no |
| 18454 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18455 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18456 | # Green Hills C++ Compiler |
| 18457 | # FIXME: insert proper C++ library support |
| 18458 | ld_shlibs_CXX=no |
| 18459 | ;; |
| 18460 | *) |
| 18461 | # FIXME: insert proper C++ library support |
| 18462 | ld_shlibs_CXX=no |
| 18463 | ;; |
| 18464 | esac |
| 18465 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18466 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18467 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18468 | ld_shlibs_CXX=no |
| 18469 | ;; |
| 18470 | freebsd-elf*) |
| 18471 | archive_cmds_need_lc_CXX=no |
| 18472 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18473 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18474 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18475 | # conventions |
| 18476 | ld_shlibs_CXX=yes |
| 18477 | ;; |
| 18478 | gnu*) |
| 18479 | ;; |
| 18480 | hpux9*) |
| 18481 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18482 | hardcode_libdir_separator_CXX=: |
| 18483 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18484 | hardcode_direct_CXX=yes |
| 18485 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18486 | # but as the default |
| 18487 | # location of the library. |
| 18488 | |
| 18489 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18490 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18491 | # FIXME: insert proper C++ library support |
| 18492 | ld_shlibs_CXX=no |
| 18493 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18494 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18495 | 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] | 18496 | # Commands to make compiler produce verbose output that lists |
| 18497 | # what "hidden" libraries, object files and flags are used when |
| 18498 | # linking a shared library. |
| 18499 | # |
| 18500 | # There doesn't appear to be a way to prevent this compiler from |
| 18501 | # explicitly linking system object files so we need to strip them |
| 18502 | # from the output so that they don't get included in the library |
| 18503 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18504 | 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] | 18505 | ;; |
| 18506 | *) |
| 18507 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18508 | 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] | 18509 | else |
| 18510 | # FIXME: insert proper C++ library support |
| 18511 | ld_shlibs_CXX=no |
| 18512 | fi |
| 18513 | ;; |
| 18514 | esac |
| 18515 | ;; |
| 18516 | hpux10*|hpux11*) |
| 18517 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18518 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18519 | hardcode_libdir_separator_CXX=: |
| 18520 | |
| 18521 | case $host_cpu in |
| 18522 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18523 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18524 | ;; |
| 18525 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18526 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18527 | ;; |
| 18528 | esac |
| 18529 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18530 | case $host_cpu in |
| 18531 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18532 | hardcode_direct_CXX=no |
| 18533 | hardcode_shlibpath_var_CXX=no |
| 18534 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18535 | *) |
| 18536 | hardcode_direct_CXX=yes |
| 18537 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18538 | # but as the default |
| 18539 | # location of the library. |
| 18540 | ;; |
| 18541 | esac |
| 18542 | |
| 18543 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18544 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18545 | # FIXME: insert proper C++ library support |
| 18546 | ld_shlibs_CXX=no |
| 18547 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18548 | aCC*) |
| 18549 | case $host_cpu in |
| 18550 | hppa*64*) |
| 18551 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18552 | ;; |
| 18553 | ia64*) |
| 18554 | 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] | 18555 | ;; |
| 18556 | *) |
| 18557 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18558 | ;; |
| 18559 | esac |
| 18560 | # Commands to make compiler produce verbose output that lists |
| 18561 | # what "hidden" libraries, object files and flags are used when |
| 18562 | # linking a shared library. |
| 18563 | # |
| 18564 | # There doesn't appear to be a way to prevent this compiler from |
| 18565 | # explicitly linking system object files so we need to strip them |
| 18566 | # from the output so that they don't get included in the library |
| 18567 | # dependencies. |
| 18568 | 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' |
| 18569 | ;; |
| 18570 | *) |
| 18571 | if test "$GXX" = yes; then |
| 18572 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18573 | case $host_cpu in |
| 18574 | hppa*64*) |
| 18575 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18576 | ;; |
| 18577 | ia64*) |
| 18578 | 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] | 18579 | ;; |
| 18580 | *) |
| 18581 | 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' |
| 18582 | ;; |
| 18583 | esac |
| 18584 | fi |
| 18585 | else |
| 18586 | # FIXME: insert proper C++ library support |
| 18587 | ld_shlibs_CXX=no |
| 18588 | fi |
| 18589 | ;; |
| 18590 | esac |
| 18591 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18592 | interix3*) |
| 18593 | hardcode_direct_CXX=no |
| 18594 | hardcode_shlibpath_var_CXX=no |
| 18595 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18596 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18597 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18598 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18599 | # default) and relocated if they conflict, which is a slow very memory |
| 18600 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18601 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18602 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18603 | 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' |
| 18604 | 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' |
| 18605 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18606 | irix5* | irix6*) |
| 18607 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18608 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18609 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18610 | 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] | 18611 | |
| 18612 | # Archives containing C++ object files must be created using |
| 18613 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18614 | # necessary to make sure instantiated templates are included |
| 18615 | # in the archive. |
| 18616 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18617 | ;; |
| 18618 | *) |
| 18619 | if test "$GXX" = yes; then |
| 18620 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18621 | 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] | 18622 | else |
| 18623 | 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' |
| 18624 | fi |
| 18625 | fi |
| 18626 | link_all_deplibs_CXX=yes |
| 18627 | ;; |
| 18628 | esac |
| 18629 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18630 | hardcode_libdir_separator_CXX=: |
| 18631 | ;; |
| 18632 | linux*) |
| 18633 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18634 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18635 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18636 | |
| 18637 | # KCC will only create a shared library if the output file |
| 18638 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18639 | # to its proper name (with version) after linking. |
| 18640 | 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' |
| 18641 | 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' |
| 18642 | # Commands to make compiler produce verbose output that lists |
| 18643 | # what "hidden" libraries, object files and flags are used when |
| 18644 | # linking a shared library. |
| 18645 | # |
| 18646 | # There doesn't appear to be a way to prevent this compiler from |
| 18647 | # explicitly linking system object files so we need to strip them |
| 18648 | # from the output so that they don't get included in the library |
| 18649 | # dependencies. |
| 18650 | 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' |
| 18651 | |
| 18652 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18653 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18654 | |
| 18655 | # Archives containing C++ object files must be created using |
| 18656 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18657 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18658 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18659 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18660 | # Intel C++ |
| 18661 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18662 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18663 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18664 | # earlier do not add the objects themselves. |
| 18665 | case `$CC -V 2>&1` in |
| 18666 | *"Version 7."*) |
| 18667 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18668 | 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' |
| 18669 | ;; |
| 18670 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18671 | tmp_idyn= |
| 18672 | case $host_cpu in |
| 18673 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18674 | esac |
| 18675 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18676 | 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] | 18677 | ;; |
| 18678 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18679 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18680 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18681 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18682 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18683 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18684 | pgCC*) |
| 18685 | # Portland Group C++ compiler |
| 18686 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18687 | 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' |
| 18688 | |
| 18689 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18690 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18691 | 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' |
| 18692 | ;; |
| 18693 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18694 | # Compaq C++ |
| 18695 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18696 | 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' |
| 18697 | |
| 18698 | runpath_var=LD_RUN_PATH |
| 18699 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18700 | hardcode_libdir_separator_CXX=: |
| 18701 | |
| 18702 | # Commands to make compiler produce verbose output that lists |
| 18703 | # what "hidden" libraries, object files and flags are used when |
| 18704 | # linking a shared library. |
| 18705 | # |
| 18706 | # There doesn't appear to be a way to prevent this compiler from |
| 18707 | # explicitly linking system object files so we need to strip them |
| 18708 | # from the output so that they don't get included in the library |
| 18709 | # dependencies. |
| 18710 | 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' |
| 18711 | ;; |
| 18712 | esac |
| 18713 | ;; |
| 18714 | lynxos*) |
| 18715 | # FIXME: insert proper C++ library support |
| 18716 | ld_shlibs_CXX=no |
| 18717 | ;; |
| 18718 | m88k*) |
| 18719 | # FIXME: insert proper C++ library support |
| 18720 | ld_shlibs_CXX=no |
| 18721 | ;; |
| 18722 | mvs*) |
| 18723 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18724 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18725 | # FIXME: insert proper C++ library support |
| 18726 | ld_shlibs_CXX=no |
| 18727 | ;; |
| 18728 | *) |
| 18729 | # FIXME: insert proper C++ library support |
| 18730 | ld_shlibs_CXX=no |
| 18731 | ;; |
| 18732 | esac |
| 18733 | ;; |
| 18734 | netbsd*) |
| 18735 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18736 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18737 | wlarc= |
| 18738 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18739 | hardcode_direct_CXX=yes |
| 18740 | hardcode_shlibpath_var_CXX=no |
| 18741 | fi |
| 18742 | # Workaround some broken pre-1.5 toolchains |
| 18743 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18744 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18745 | openbsd2*) |
| 18746 | # C++ shared libraries are fairly broken |
| 18747 | ld_shlibs_CXX=no |
| 18748 | ;; |
| 18749 | openbsd*) |
| 18750 | hardcode_direct_CXX=yes |
| 18751 | hardcode_shlibpath_var_CXX=no |
| 18752 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18753 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18754 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18755 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18756 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18757 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18758 | fi |
| 18759 | output_verbose_link_cmd='echo' |
| 18760 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18761 | osf3*) |
| 18762 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18763 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18764 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18765 | |
| 18766 | # KCC will only create a shared library if the output file |
| 18767 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18768 | # to its proper name (with version) after linking. |
| 18769 | 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' |
| 18770 | |
| 18771 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18772 | hardcode_libdir_separator_CXX=: |
| 18773 | |
| 18774 | # Archives containing C++ object files must be created using |
| 18775 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18776 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18777 | |
| 18778 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18779 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18780 | # Rational C++ 2.4.1 |
| 18781 | # FIXME: insert proper C++ library support |
| 18782 | ld_shlibs_CXX=no |
| 18783 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18784 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18785 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18786 | 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] | 18787 | |
| 18788 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18789 | hardcode_libdir_separator_CXX=: |
| 18790 | |
| 18791 | # Commands to make compiler produce verbose output that lists |
| 18792 | # what "hidden" libraries, object files and flags are used when |
| 18793 | # linking a shared library. |
| 18794 | # |
| 18795 | # There doesn't appear to be a way to prevent this compiler from |
| 18796 | # explicitly linking system object files so we need to strip them |
| 18797 | # from the output so that they don't get included in the library |
| 18798 | # dependencies. |
| 18799 | 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' |
| 18800 | ;; |
| 18801 | *) |
| 18802 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18803 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18804 | 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] | 18805 | |
| 18806 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18807 | hardcode_libdir_separator_CXX=: |
| 18808 | |
| 18809 | # Commands to make compiler produce verbose output that lists |
| 18810 | # what "hidden" libraries, object files and flags are used when |
| 18811 | # linking a shared library. |
| 18812 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18813 | |
| 18814 | else |
| 18815 | # FIXME: insert proper C++ library support |
| 18816 | ld_shlibs_CXX=no |
| 18817 | fi |
| 18818 | ;; |
| 18819 | esac |
| 18820 | ;; |
| 18821 | osf4* | osf5*) |
| 18822 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18823 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18824 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18825 | |
| 18826 | # KCC will only create a shared library if the output file |
| 18827 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18828 | # to its proper name (with version) after linking. |
| 18829 | 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' |
| 18830 | |
| 18831 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18832 | hardcode_libdir_separator_CXX=: |
| 18833 | |
| 18834 | # Archives containing C++ object files must be created using |
| 18835 | # the KAI C++ compiler. |
| 18836 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 18837 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18838 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18839 | # Rational C++ 2.4.1 |
| 18840 | # FIXME: insert proper C++ library support |
| 18841 | ld_shlibs_CXX=no |
| 18842 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18843 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18844 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18845 | 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] | 18846 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18847 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18848 | $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] | 18849 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18850 | |
| 18851 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18852 | hardcode_libdir_separator_CXX=: |
| 18853 | |
| 18854 | # Commands to make compiler produce verbose output that lists |
| 18855 | # what "hidden" libraries, object files and flags are used when |
| 18856 | # linking a shared library. |
| 18857 | # |
| 18858 | # There doesn't appear to be a way to prevent this compiler from |
| 18859 | # explicitly linking system object files so we need to strip them |
| 18860 | # from the output so that they don't get included in the library |
| 18861 | # dependencies. |
| 18862 | 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' |
| 18863 | ;; |
| 18864 | *) |
| 18865 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18866 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18867 | 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] | 18868 | |
| 18869 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18870 | hardcode_libdir_separator_CXX=: |
| 18871 | |
| 18872 | # Commands to make compiler produce verbose output that lists |
| 18873 | # what "hidden" libraries, object files and flags are used when |
| 18874 | # linking a shared library. |
| 18875 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18876 | |
| 18877 | else |
| 18878 | # FIXME: insert proper C++ library support |
| 18879 | ld_shlibs_CXX=no |
| 18880 | fi |
| 18881 | ;; |
| 18882 | esac |
| 18883 | ;; |
| 18884 | psos*) |
| 18885 | # FIXME: insert proper C++ library support |
| 18886 | ld_shlibs_CXX=no |
| 18887 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18888 | sunos4*) |
| 18889 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18890 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18891 | # Sun C++ 4.x |
| 18892 | # FIXME: insert proper C++ library support |
| 18893 | ld_shlibs_CXX=no |
| 18894 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18895 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18896 | # Lucid |
| 18897 | # FIXME: insert proper C++ library support |
| 18898 | ld_shlibs_CXX=no |
| 18899 | ;; |
| 18900 | *) |
| 18901 | # FIXME: insert proper C++ library support |
| 18902 | ld_shlibs_CXX=no |
| 18903 | ;; |
| 18904 | esac |
| 18905 | ;; |
| 18906 | solaris*) |
| 18907 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18908 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18909 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18910 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18911 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18912 | 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] | 18913 | 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] | 18914 | $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] | 18915 | |
| 18916 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18917 | hardcode_shlibpath_var_CXX=no |
| 18918 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18919 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18920 | *) |
| 18921 | # The C++ compiler is used as linker so we must use $wl |
| 18922 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18923 | # linker. We must also pass each convience library through |
| 18924 | # to the system linker between allextract/defaultextract. |
| 18925 | # The C++ compiler will combine linker options so we |
| 18926 | # cannot just pass the convience library names through |
| 18927 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18928 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18929 | 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] | 18930 | ;; |
| 18931 | esac |
| 18932 | link_all_deplibs_CXX=yes |
| 18933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18934 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18935 | |
| 18936 | # Archives containing C++ object files must be created using |
| 18937 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18938 | # necessary to make sure instantiated templates are included |
| 18939 | # in the archive. |
| 18940 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18941 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18942 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18943 | # Green Hills C++ Compiler |
| 18944 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18945 | |
| 18946 | # The C++ compiler must be used to create the archive. |
| 18947 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18948 | ;; |
| 18949 | *) |
| 18950 | # GNU C++ compiler with Solaris linker |
| 18951 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18952 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18953 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18954 | 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] | 18955 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18956 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18957 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18958 | # Commands to make compiler produce verbose output that lists |
| 18959 | # what "hidden" libraries, object files and flags are used when |
| 18960 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18961 | 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] | 18962 | else |
| 18963 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18964 | # platform. |
| 18965 | 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] | 18966 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18967 | $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] | 18968 | |
| 18969 | # Commands to make compiler produce verbose output that lists |
| 18970 | # what "hidden" libraries, object files and flags are used when |
| 18971 | # linking a shared library. |
| 18972 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18973 | fi |
| 18974 | |
| 18975 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18976 | fi |
| 18977 | ;; |
| 18978 | esac |
| 18979 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18980 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18981 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18982 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18983 | hardcode_shlibpath_var_CXX=no |
| 18984 | runpath_var='LD_RUN_PATH' |
| 18985 | |
| 18986 | case $cc_basename in |
| 18987 | CC*) |
| 18988 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18989 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18990 | ;; |
| 18991 | *) |
| 18992 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18993 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18994 | ;; |
| 18995 | esac |
| 18996 | ;; |
| 18997 | sysv5* | sco3.2v5* | sco5v6*) |
| 18998 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18999 | # link with -lc, and that would cause any symbols used from libc to |
| 19000 | # always be unresolved, which means just about no library would |
| 19001 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19002 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19003 | # as -z defs. |
| 19004 | # For security reasons, it is highly recommended that you always |
| 19005 | # use absolute paths for naming shared libraries, and exclude the |
| 19006 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 19007 | # requires that you compile everything twice, which is a pain. |
| 19008 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 19009 | # non-empty value in the environment. Most likely only useful for |
| 19010 | # creating official distributions of packages. |
| 19011 | # This is a hack until libtool officially supports absolute path |
| 19012 | # names for shared libraries. |
| 19013 | no_undefined_flag_CXX='${wl}-z,text' |
| 19014 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19015 | archive_cmds_need_lc_CXX=no |
| 19016 | hardcode_shlibpath_var_CXX=no |
| 19017 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19018 | hardcode_libdir_separator_CXX=':' |
| 19019 | link_all_deplibs_CXX=yes |
| 19020 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19021 | runpath_var='LD_RUN_PATH' |
| 19022 | |
| 19023 | case $cc_basename in |
| 19024 | CC*) |
| 19025 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19026 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19027 | ;; |
| 19028 | *) |
| 19029 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19030 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19031 | ;; |
| 19032 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19033 | ;; |
| 19034 | tandem*) |
| 19035 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19036 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19037 | # NonStop-UX NCC 3.20 |
| 19038 | # FIXME: insert proper C++ library support |
| 19039 | ld_shlibs_CXX=no |
| 19040 | ;; |
| 19041 | *) |
| 19042 | # FIXME: insert proper C++ library support |
| 19043 | ld_shlibs_CXX=no |
| 19044 | ;; |
| 19045 | esac |
| 19046 | ;; |
| 19047 | vxworks*) |
| 19048 | # FIXME: insert proper C++ library support |
| 19049 | ld_shlibs_CXX=no |
| 19050 | ;; |
| 19051 | *) |
| 19052 | # FIXME: insert proper C++ library support |
| 19053 | ld_shlibs_CXX=no |
| 19054 | ;; |
| 19055 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19056 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19057 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19058 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19059 | |
| 19060 | GCC_CXX="$GXX" |
| 19061 | LD_CXX="$LD" |
| 19062 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19063 | |
| 19064 | cat > conftest.$ac_ext <<EOF |
| 19065 | class Foo |
| 19066 | { |
| 19067 | public: |
| 19068 | Foo (void) { a = 0; } |
| 19069 | private: |
| 19070 | int a; |
| 19071 | }; |
| 19072 | EOF |
| 19073 | |
| 19074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19075 | (eval $ac_compile) 2>&5 |
| 19076 | ac_status=$? |
| 19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19078 | (exit $ac_status); }; then |
| 19079 | # Parse the compiler output and extract the necessary |
| 19080 | # objects, libraries and library flags. |
| 19081 | |
| 19082 | # Sentinel used to keep track of whether or not we are before |
| 19083 | # the conftest object file. |
| 19084 | pre_test_object_deps_done=no |
| 19085 | |
| 19086 | # The `*' in the case matches for architectures that use `case' in |
| 19087 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19088 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19089 | 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] | 19090 | |
| 19091 | for p in `eval $output_verbose_link_cmd`; do |
| 19092 | case $p in |
| 19093 | |
| 19094 | -L* | -R* | -l*) |
| 19095 | # Some compilers place space between "-{L,R}" and the path. |
| 19096 | # Remove the space. |
| 19097 | if test $p = "-L" \ |
| 19098 | || test $p = "-R"; then |
| 19099 | prev=$p |
| 19100 | continue |
| 19101 | else |
| 19102 | prev= |
| 19103 | fi |
| 19104 | |
| 19105 | if test "$pre_test_object_deps_done" = no; then |
| 19106 | case $p in |
| 19107 | -L* | -R*) |
| 19108 | # Internal compiler library paths should come after those |
| 19109 | # provided the user. The postdeps already come after the |
| 19110 | # user supplied libs so there is no need to process them. |
| 19111 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19112 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19113 | else |
| 19114 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19115 | fi |
| 19116 | ;; |
| 19117 | # The "-l" case would never come before the object being |
| 19118 | # linked, so don't bother handling this case. |
| 19119 | esac |
| 19120 | else |
| 19121 | if test -z "$postdeps_CXX"; then |
| 19122 | postdeps_CXX="${prev}${p}" |
| 19123 | else |
| 19124 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19125 | fi |
| 19126 | fi |
| 19127 | ;; |
| 19128 | |
| 19129 | *.$objext) |
| 19130 | # This assumes that the test object file only shows up |
| 19131 | # once in the compiler output. |
| 19132 | if test "$p" = "conftest.$objext"; then |
| 19133 | pre_test_object_deps_done=yes |
| 19134 | continue |
| 19135 | fi |
| 19136 | |
| 19137 | if test "$pre_test_object_deps_done" = no; then |
| 19138 | if test -z "$predep_objects_CXX"; then |
| 19139 | predep_objects_CXX="$p" |
| 19140 | else |
| 19141 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19142 | fi |
| 19143 | else |
| 19144 | if test -z "$postdep_objects_CXX"; then |
| 19145 | postdep_objects_CXX="$p" |
| 19146 | else |
| 19147 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19148 | fi |
| 19149 | fi |
| 19150 | ;; |
| 19151 | |
| 19152 | *) ;; # Ignore the rest. |
| 19153 | |
| 19154 | esac |
| 19155 | done |
| 19156 | |
| 19157 | # Clean up. |
| 19158 | rm -f a.out a.exe |
| 19159 | else |
| 19160 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19161 | fi |
| 19162 | |
| 19163 | $rm -f confest.$objext |
| 19164 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19165 | # PORTME: override above test on systems where it is broken |
| 19166 | case $host_os in |
| 19167 | interix3*) |
| 19168 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19169 | # hack all around it, let's just trust "g++" to DTRT. |
| 19170 | predep_objects_CXX= |
| 19171 | postdep_objects_CXX= |
| 19172 | postdeps_CXX= |
| 19173 | ;; |
| 19174 | |
| 19175 | solaris*) |
| 19176 | case $cc_basename in |
| 19177 | CC*) |
| 19178 | # Adding this requires a known-good setup of shared libraries for |
| 19179 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19180 | # archive will be linked into the output, leading to subtle bugs. |
| 19181 | postdeps_CXX='-lCstd -lCrun' |
| 19182 | ;; |
| 19183 | esac |
| 19184 | ;; |
| 19185 | esac |
| 19186 | |
| 19187 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19188 | case " $postdeps_CXX " in |
| 19189 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19190 | esac |
| 19191 | |
| 19192 | lt_prog_compiler_wl_CXX= |
| 19193 | lt_prog_compiler_pic_CXX= |
| 19194 | lt_prog_compiler_static_CXX= |
| 19195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19196 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19197 | 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] | 19198 | |
| 19199 | # C++ specific cases for pic, static, wl, etc. |
| 19200 | if test "$GXX" = yes; then |
| 19201 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19202 | lt_prog_compiler_static_CXX='-static' |
| 19203 | |
| 19204 | case $host_os in |
| 19205 | aix*) |
| 19206 | # All AIX code is PIC. |
| 19207 | if test "$host_cpu" = ia64; then |
| 19208 | # AIX 5 now supports IA64 processor |
| 19209 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19210 | fi |
| 19211 | ;; |
| 19212 | amigaos*) |
| 19213 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19214 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19215 | # like `-m68040'. |
| 19216 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19217 | ;; |
| 19218 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19219 | # PIC is the default for these OSes. |
| 19220 | ;; |
| 19221 | mingw* | os2* | pw32*) |
| 19222 | # This hack is so that the source file can tell whether it is being |
| 19223 | # built for inclusion in a dll (and should export symbols for example). |
| 19224 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19225 | ;; |
| 19226 | darwin* | rhapsody*) |
| 19227 | # PIC is the default on this platform |
| 19228 | # Common symbols not allowed in MH_DYLIB files |
| 19229 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19230 | ;; |
| 19231 | *djgpp*) |
| 19232 | # DJGPP does not support shared libraries at all |
| 19233 | lt_prog_compiler_pic_CXX= |
| 19234 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19235 | interix3*) |
| 19236 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19237 | # Instead, we relocate shared libraries at runtime. |
| 19238 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19239 | sysv4*MP*) |
| 19240 | if test -d /usr/nec; then |
| 19241 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19242 | fi |
| 19243 | ;; |
| 19244 | hpux*) |
| 19245 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19246 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19247 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19248 | hppa*64*|ia64*) |
| 19249 | ;; |
| 19250 | *) |
| 19251 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19252 | ;; |
| 19253 | esac |
| 19254 | ;; |
| 19255 | *) |
| 19256 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19257 | ;; |
| 19258 | esac |
| 19259 | else |
| 19260 | case $host_os in |
| 19261 | aix4* | aix5*) |
| 19262 | # All AIX code is PIC. |
| 19263 | if test "$host_cpu" = ia64; then |
| 19264 | # AIX 5 now supports IA64 processor |
| 19265 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19266 | else |
| 19267 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19268 | fi |
| 19269 | ;; |
| 19270 | chorus*) |
| 19271 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19272 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19273 | # Green Hills C++ Compiler |
| 19274 | # _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" |
| 19275 | ;; |
| 19276 | esac |
| 19277 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19278 | darwin*) |
| 19279 | # PIC is the default on this platform |
| 19280 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19281 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19282 | xlc*) |
| 19283 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19284 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19285 | ;; |
| 19286 | esac |
| 19287 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19288 | dgux*) |
| 19289 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19290 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19291 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19292 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19293 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19294 | # Green Hills C++ Compiler |
| 19295 | lt_prog_compiler_pic_CXX='-pic' |
| 19296 | ;; |
| 19297 | *) |
| 19298 | ;; |
| 19299 | esac |
| 19300 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19301 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19302 | # FreeBSD uses GNU C++ |
| 19303 | ;; |
| 19304 | hpux9* | hpux10* | hpux11*) |
| 19305 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19306 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19307 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19308 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19309 | if test "$host_cpu" != ia64; then |
| 19310 | lt_prog_compiler_pic_CXX='+Z' |
| 19311 | fi |
| 19312 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19313 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19314 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19315 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19316 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19317 | hppa*64*|ia64*) |
| 19318 | # +Z the default |
| 19319 | ;; |
| 19320 | *) |
| 19321 | lt_prog_compiler_pic_CXX='+Z' |
| 19322 | ;; |
| 19323 | esac |
| 19324 | ;; |
| 19325 | *) |
| 19326 | ;; |
| 19327 | esac |
| 19328 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19329 | interix*) |
| 19330 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19331 | # Anyone wants to do a port? |
| 19332 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19333 | irix5* | irix6* | nonstopux*) |
| 19334 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19335 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19336 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19337 | lt_prog_compiler_static_CXX='-non_shared' |
| 19338 | # CC pic flag -KPIC is the default. |
| 19339 | ;; |
| 19340 | *) |
| 19341 | ;; |
| 19342 | esac |
| 19343 | ;; |
| 19344 | linux*) |
| 19345 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19346 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19347 | # KAI C++ Compiler |
| 19348 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19349 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19350 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19351 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19352 | # Intel C++ |
| 19353 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19354 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19355 | lt_prog_compiler_static_CXX='-static' |
| 19356 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19357 | pgCC*) |
| 19358 | # Portland Group C++ compiler. |
| 19359 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19360 | lt_prog_compiler_pic_CXX='-fpic' |
| 19361 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19362 | ;; |
| 19363 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19364 | # Compaq C++ |
| 19365 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19366 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19367 | lt_prog_compiler_pic_CXX= |
| 19368 | lt_prog_compiler_static_CXX='-non_shared' |
| 19369 | ;; |
| 19370 | *) |
| 19371 | ;; |
| 19372 | esac |
| 19373 | ;; |
| 19374 | lynxos*) |
| 19375 | ;; |
| 19376 | m88k*) |
| 19377 | ;; |
| 19378 | mvs*) |
| 19379 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19380 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19381 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19382 | ;; |
| 19383 | *) |
| 19384 | ;; |
| 19385 | esac |
| 19386 | ;; |
| 19387 | netbsd*) |
| 19388 | ;; |
| 19389 | osf3* | osf4* | osf5*) |
| 19390 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19391 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19392 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19393 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19394 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19395 | # Rational C++ 2.4.1 |
| 19396 | lt_prog_compiler_pic_CXX='-pic' |
| 19397 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19398 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19399 | # Digital/Compaq C++ |
| 19400 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19401 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19402 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19403 | lt_prog_compiler_pic_CXX= |
| 19404 | lt_prog_compiler_static_CXX='-non_shared' |
| 19405 | ;; |
| 19406 | *) |
| 19407 | ;; |
| 19408 | esac |
| 19409 | ;; |
| 19410 | psos*) |
| 19411 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19412 | solaris*) |
| 19413 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19414 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19415 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19416 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19417 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19418 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19419 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19420 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19421 | # Green Hills C++ Compiler |
| 19422 | lt_prog_compiler_pic_CXX='-PIC' |
| 19423 | ;; |
| 19424 | *) |
| 19425 | ;; |
| 19426 | esac |
| 19427 | ;; |
| 19428 | sunos4*) |
| 19429 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19430 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19431 | # Sun C++ 4.x |
| 19432 | lt_prog_compiler_pic_CXX='-pic' |
| 19433 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19434 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19435 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19436 | # Lucid |
| 19437 | lt_prog_compiler_pic_CXX='-pic' |
| 19438 | ;; |
| 19439 | *) |
| 19440 | ;; |
| 19441 | esac |
| 19442 | ;; |
| 19443 | tandem*) |
| 19444 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19445 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19446 | # NonStop-UX NCC 3.20 |
| 19447 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19448 | ;; |
| 19449 | *) |
| 19450 | ;; |
| 19451 | esac |
| 19452 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19453 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19454 | case $cc_basename in |
| 19455 | CC*) |
| 19456 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19457 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19458 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19459 | ;; |
| 19460 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19461 | ;; |
| 19462 | vxworks*) |
| 19463 | ;; |
| 19464 | *) |
| 19465 | lt_prog_compiler_can_build_shared_CXX=no |
| 19466 | ;; |
| 19467 | esac |
| 19468 | fi |
| 19469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19470 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19471 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19472 | |
| 19473 | # |
| 19474 | # Check to make sure the PIC flag actually works. |
| 19475 | # |
| 19476 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19477 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19478 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19479 | 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] | 19480 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19482 | else |
| 19483 | lt_prog_compiler_pic_works_CXX=no |
| 19484 | ac_outfile=conftest.$ac_objext |
| 19485 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19486 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19487 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19488 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19489 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19490 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19491 | # The option is referenced via a variable to avoid confusing sed. |
| 19492 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19493 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19494 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19495 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 19496 | (eval echo "\"\$as_me:19496: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19497 | (eval "$lt_compile" 2>conftest.err) |
| 19498 | ac_status=$? |
| 19499 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 19500 | echo "$as_me:19500: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19501 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19502 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | # So say no if there are warnings other than the usual output. |
| 19504 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19505 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19506 | 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] | 19507 | lt_prog_compiler_pic_works_CXX=yes |
| 19508 | fi |
| 19509 | fi |
| 19510 | $rm conftest* |
| 19511 | |
| 19512 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19513 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19514 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19515 | |
| 19516 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19517 | case $lt_prog_compiler_pic_CXX in |
| 19518 | "" | " "*) ;; |
| 19519 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19520 | esac |
| 19521 | else |
| 19522 | lt_prog_compiler_pic_CXX= |
| 19523 | lt_prog_compiler_can_build_shared_CXX=no |
| 19524 | fi |
| 19525 | |
| 19526 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19527 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19528 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19529 | *djgpp*) |
| 19530 | lt_prog_compiler_pic_CXX= |
| 19531 | ;; |
| 19532 | *) |
| 19533 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19534 | ;; |
| 19535 | esac |
| 19536 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19537 | # |
| 19538 | # Check to make sure the static flag actually works. |
| 19539 | # |
| 19540 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19541 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19542 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19543 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19545 | else |
| 19546 | lt_prog_compiler_static_works_CXX=no |
| 19547 | save_LDFLAGS="$LDFLAGS" |
| 19548 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19549 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19550 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19551 | # The linker can only warn and ignore the option if not recognized |
| 19552 | # So say no if there are warnings |
| 19553 | if test -s conftest.err; then |
| 19554 | # Append any errors to the config.log. |
| 19555 | cat conftest.err 1>&5 |
| 19556 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19557 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19558 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19559 | lt_prog_compiler_static_works_CXX=yes |
| 19560 | fi |
| 19561 | else |
| 19562 | lt_prog_compiler_static_works_CXX=yes |
| 19563 | fi |
| 19564 | fi |
| 19565 | $rm conftest* |
| 19566 | LDFLAGS="$save_LDFLAGS" |
| 19567 | |
| 19568 | fi |
| 19569 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19570 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19571 | |
| 19572 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19573 | : |
| 19574 | else |
| 19575 | lt_prog_compiler_static_CXX= |
| 19576 | fi |
| 19577 | |
| 19578 | |
| 19579 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19580 | 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] | 19581 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19583 | else |
| 19584 | lt_cv_prog_compiler_c_o_CXX=no |
| 19585 | $rm -r conftest 2>/dev/null |
| 19586 | mkdir conftest |
| 19587 | cd conftest |
| 19588 | mkdir out |
| 19589 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19590 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19591 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19592 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19593 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19594 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19595 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19596 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19597 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19598 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19599 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 19600 | (eval echo "\"\$as_me:19600: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19601 | (eval "$lt_compile" 2>out/conftest.err) |
| 19602 | ac_status=$? |
| 19603 | cat out/conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 19604 | echo "$as_me:19604: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19605 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19606 | then |
| 19607 | # The compiler can only warn and ignore the option if not recognized |
| 19608 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19609 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19610 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19611 | 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] | 19612 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19613 | fi |
| 19614 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19615 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19616 | $rm conftest* |
| 19617 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19618 | # template instantiation |
| 19619 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19620 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19621 | cd .. |
| 19622 | rmdir conftest |
| 19623 | $rm conftest* |
| 19624 | |
| 19625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19626 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19627 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19628 | |
| 19629 | |
| 19630 | hard_links="nottested" |
| 19631 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19632 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19633 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19634 | 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] | 19635 | hard_links=yes |
| 19636 | $rm conftest* |
| 19637 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19638 | touch conftest.a |
| 19639 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19640 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19641 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19642 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19643 | if test "$hard_links" = no; then |
| 19644 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19645 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19646 | need_locks=warn |
| 19647 | fi |
| 19648 | else |
| 19649 | need_locks=no |
| 19650 | fi |
| 19651 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19652 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19653 | 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] | 19654 | |
| 19655 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19656 | case $host_os in |
| 19657 | aix4* | aix5*) |
| 19658 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19659 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19660 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19661 | 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' |
| 19662 | else |
| 19663 | 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' |
| 19664 | fi |
| 19665 | ;; |
| 19666 | pw32*) |
| 19667 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19668 | ;; |
| 19669 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19670 | 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] | 19671 | ;; |
| 19672 | *) |
| 19673 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19674 | ;; |
| 19675 | esac |
| 19676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19677 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19678 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19679 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19681 | # |
| 19682 | # Do we need to explicitly link libc? |
| 19683 | # |
| 19684 | case "x$archive_cmds_need_lc_CXX" in |
| 19685 | x|xyes) |
| 19686 | # Assume -lc should be added |
| 19687 | archive_cmds_need_lc_CXX=yes |
| 19688 | |
| 19689 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19690 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19691 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19692 | # FIXME: we may have to deal with multi-command sequences. |
| 19693 | ;; |
| 19694 | '$CC '*) |
| 19695 | # Test whether the compiler implicitly links with -lc since on some |
| 19696 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19697 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19698 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19699 | 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] | 19700 | $rm conftest* |
| 19701 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19702 | |
| 19703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19704 | (eval $ac_compile) 2>&5 |
| 19705 | ac_status=$? |
| 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19707 | (exit $ac_status); } 2>conftest.err; then |
| 19708 | soname=conftest |
| 19709 | lib=conftest |
| 19710 | libobjs=conftest.$ac_objext |
| 19711 | deplibs= |
| 19712 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19713 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19714 | compiler_flags=-v |
| 19715 | linker_flags=-v |
| 19716 | verstring= |
| 19717 | output_objdir=. |
| 19718 | libname=conftest |
| 19719 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19720 | allow_undefined_flag_CXX= |
| 19721 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19722 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19723 | ac_status=$? |
| 19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19725 | (exit $ac_status); } |
| 19726 | then |
| 19727 | archive_cmds_need_lc_CXX=no |
| 19728 | else |
| 19729 | archive_cmds_need_lc_CXX=yes |
| 19730 | fi |
| 19731 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19732 | else |
| 19733 | cat conftest.err 1>&5 |
| 19734 | fi |
| 19735 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19736 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19737 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19738 | ;; |
| 19739 | esac |
| 19740 | fi |
| 19741 | ;; |
| 19742 | esac |
| 19743 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19744 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19745 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19746 | library_names_spec= |
| 19747 | libname_spec='lib$name' |
| 19748 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19749 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19750 | postinstall_cmds= |
| 19751 | postuninstall_cmds= |
| 19752 | finish_cmds= |
| 19753 | finish_eval= |
| 19754 | shlibpath_var= |
| 19755 | shlibpath_overrides_runpath=unknown |
| 19756 | version_type=none |
| 19757 | dynamic_linker="$host_os ld.so" |
| 19758 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19759 | if test "$GCC" = yes; then |
| 19760 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19761 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19762 | # if the path contains ";" then we assume it to be the separator |
| 19763 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19764 | # assumed that no part of a normal pathname contains ";" but that should |
| 19765 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19766 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19767 | else |
| 19768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19769 | fi |
| 19770 | else |
| 19771 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19772 | fi |
| 19773 | need_lib_prefix=unknown |
| 19774 | hardcode_into_libs=no |
| 19775 | |
| 19776 | # when you set need_version to no, make sure it does not cause -set_version |
| 19777 | # flags to be left without arguments |
| 19778 | need_version=unknown |
| 19779 | |
| 19780 | case $host_os in |
| 19781 | aix3*) |
| 19782 | version_type=linux |
| 19783 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19784 | shlibpath_var=LIBPATH |
| 19785 | |
| 19786 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19787 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19788 | ;; |
| 19789 | |
| 19790 | aix4* | aix5*) |
| 19791 | version_type=linux |
| 19792 | need_lib_prefix=no |
| 19793 | need_version=no |
| 19794 | hardcode_into_libs=yes |
| 19795 | if test "$host_cpu" = ia64; then |
| 19796 | # AIX 5 supports IA64 |
| 19797 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19798 | shlibpath_var=LD_LIBRARY_PATH |
| 19799 | else |
| 19800 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19801 | # for dependence libraries. The import file would start with |
| 19802 | # the line `#! .'. This would cause the generated library to |
| 19803 | # depend on `.', always an invalid library. This was fixed in |
| 19804 | # development snapshots of GCC prior to 3.0. |
| 19805 | case $host_os in |
| 19806 | aix4 | aix4.[01] | aix4.[01].*) |
| 19807 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19808 | echo ' yes ' |
| 19809 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19810 | : |
| 19811 | else |
| 19812 | can_build_shared=no |
| 19813 | fi |
| 19814 | ;; |
| 19815 | esac |
| 19816 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19817 | # soname into executable. Probably we can add versioning support to |
| 19818 | # collect2, so additional links can be useful in future. |
| 19819 | if test "$aix_use_runtimelinking" = yes; then |
| 19820 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19821 | # instead of lib<name>.a to let people know that these are not |
| 19822 | # typical AIX shared libraries. |
| 19823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19824 | else |
| 19825 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19826 | # and later when we are not doing run time linking. |
| 19827 | library_names_spec='${libname}${release}.a $libname.a' |
| 19828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19829 | fi |
| 19830 | shlibpath_var=LIBPATH |
| 19831 | fi |
| 19832 | ;; |
| 19833 | |
| 19834 | amigaos*) |
| 19835 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19836 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19837 | 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] | 19838 | ;; |
| 19839 | |
| 19840 | beos*) |
| 19841 | library_names_spec='${libname}${shared_ext}' |
| 19842 | dynamic_linker="$host_os ld.so" |
| 19843 | shlibpath_var=LIBRARY_PATH |
| 19844 | ;; |
| 19845 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19846 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19847 | version_type=linux |
| 19848 | need_version=no |
| 19849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19850 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19851 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19852 | shlibpath_var=LD_LIBRARY_PATH |
| 19853 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19854 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19855 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19856 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19857 | # libtool to hard-code these into programs |
| 19858 | ;; |
| 19859 | |
| 19860 | cygwin* | mingw* | pw32*) |
| 19861 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19862 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19863 | need_version=no |
| 19864 | need_lib_prefix=no |
| 19865 | |
| 19866 | case $GCC,$host_os in |
| 19867 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19868 | library_names_spec='$libname.dll.a' |
| 19869 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19870 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19871 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19872 | dldir=$destdir/`dirname \$dlpath`~ |
| 19873 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19874 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19875 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19876 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19877 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19878 | $rm \$dlpath' |
| 19879 | shlibpath_overrides_runpath=yes |
| 19880 | |
| 19881 | case $host_os in |
| 19882 | cygwin*) |
| 19883 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19884 | 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] | 19885 | 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] | 19886 | ;; |
| 19887 | mingw*) |
| 19888 | # MinGW DLLs use traditional 'lib' prefix |
| 19889 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19890 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19891 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19892 | # It is most probably a Windows format PATH printed by |
| 19893 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19894 | # path with ; separators, and with drive letters. We can handle the |
| 19895 | # drive letters (cygwin fileutils understands them), so leave them, |
| 19896 | # especially as we might pass files found there to a mingw objdump, |
| 19897 | # which wouldn't understand a cygwinified path. Ahh. |
| 19898 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19899 | else |
| 19900 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19901 | fi |
| 19902 | ;; |
| 19903 | pw32*) |
| 19904 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19905 | 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] | 19906 | ;; |
| 19907 | esac |
| 19908 | ;; |
| 19909 | |
| 19910 | *) |
| 19911 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19912 | ;; |
| 19913 | esac |
| 19914 | dynamic_linker='Win32 ld.exe' |
| 19915 | # FIXME: first we should search . and the directory the executable is in |
| 19916 | shlibpath_var=PATH |
| 19917 | ;; |
| 19918 | |
| 19919 | darwin* | rhapsody*) |
| 19920 | dynamic_linker="$host_os dyld" |
| 19921 | version_type=darwin |
| 19922 | need_lib_prefix=no |
| 19923 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19924 | 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] | 19925 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19926 | shlibpath_overrides_runpath=yes |
| 19927 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19928 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19929 | # 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] | 19930 | if test "$GCC" = yes; then |
| 19931 | 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"` |
| 19932 | else |
| 19933 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19934 | fi |
| 19935 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19936 | ;; |
| 19937 | |
| 19938 | dgux*) |
| 19939 | version_type=linux |
| 19940 | need_lib_prefix=no |
| 19941 | need_version=no |
| 19942 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19943 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19944 | shlibpath_var=LD_LIBRARY_PATH |
| 19945 | ;; |
| 19946 | |
| 19947 | freebsd1*) |
| 19948 | dynamic_linker=no |
| 19949 | ;; |
| 19950 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19951 | kfreebsd*-gnu) |
| 19952 | version_type=linux |
| 19953 | need_lib_prefix=no |
| 19954 | need_version=no |
| 19955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19956 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19957 | shlibpath_var=LD_LIBRARY_PATH |
| 19958 | shlibpath_overrides_runpath=no |
| 19959 | hardcode_into_libs=yes |
| 19960 | dynamic_linker='GNU ld.so' |
| 19961 | ;; |
| 19962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19963 | freebsd* | dragonfly*) |
| 19964 | # DragonFly does not have aout. When/if they implement a new |
| 19965 | # versioning mechanism, adjust this. |
| 19966 | if test -x /usr/bin/objformat; then |
| 19967 | objformat=`/usr/bin/objformat` |
| 19968 | else |
| 19969 | case $host_os in |
| 19970 | freebsd[123]*) objformat=aout ;; |
| 19971 | *) objformat=elf ;; |
| 19972 | esac |
| 19973 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19974 | version_type=freebsd-$objformat |
| 19975 | case $version_type in |
| 19976 | freebsd-elf*) |
| 19977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19978 | need_version=no |
| 19979 | need_lib_prefix=no |
| 19980 | ;; |
| 19981 | freebsd-*) |
| 19982 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19983 | need_version=yes |
| 19984 | ;; |
| 19985 | esac |
| 19986 | shlibpath_var=LD_LIBRARY_PATH |
| 19987 | case $host_os in |
| 19988 | freebsd2*) |
| 19989 | shlibpath_overrides_runpath=yes |
| 19990 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19991 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19992 | shlibpath_overrides_runpath=yes |
| 19993 | hardcode_into_libs=yes |
| 19994 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19995 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19996 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19997 | shlibpath_overrides_runpath=no |
| 19998 | hardcode_into_libs=yes |
| 19999 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20000 | freebsd*) # from 4.6 on |
| 20001 | shlibpath_overrides_runpath=yes |
| 20002 | hardcode_into_libs=yes |
| 20003 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20004 | esac |
| 20005 | ;; |
| 20006 | |
| 20007 | gnu*) |
| 20008 | version_type=linux |
| 20009 | need_lib_prefix=no |
| 20010 | need_version=no |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 20014 | hardcode_into_libs=yes |
| 20015 | ;; |
| 20016 | |
| 20017 | hpux9* | hpux10* | hpux11*) |
| 20018 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20019 | # link against other versions. |
| 20020 | version_type=sunos |
| 20021 | need_lib_prefix=no |
| 20022 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20023 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20024 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20025 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20026 | hardcode_into_libs=yes |
| 20027 | dynamic_linker="$host_os dld.so" |
| 20028 | shlibpath_var=LD_LIBRARY_PATH |
| 20029 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20031 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20032 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20033 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20034 | else |
| 20035 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20036 | fi |
| 20037 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20038 | ;; |
| 20039 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20040 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20041 | hardcode_into_libs=yes |
| 20042 | dynamic_linker="$host_os dld.sl" |
| 20043 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20044 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20047 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20048 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20049 | ;; |
| 20050 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20051 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20052 | dynamic_linker="$host_os dld.sl" |
| 20053 | shlibpath_var=SHLIB_PATH |
| 20054 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20056 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20057 | ;; |
| 20058 | esac |
| 20059 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20060 | postinstall_cmds='chmod 555 $lib' |
| 20061 | ;; |
| 20062 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20063 | interix3*) |
| 20064 | version_type=linux |
| 20065 | need_lib_prefix=no |
| 20066 | need_version=no |
| 20067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20069 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20070 | shlibpath_var=LD_LIBRARY_PATH |
| 20071 | shlibpath_overrides_runpath=no |
| 20072 | hardcode_into_libs=yes |
| 20073 | ;; |
| 20074 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20075 | irix5* | irix6* | nonstopux*) |
| 20076 | case $host_os in |
| 20077 | nonstopux*) version_type=nonstopux ;; |
| 20078 | *) |
| 20079 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20080 | version_type=linux |
| 20081 | else |
| 20082 | version_type=irix |
| 20083 | fi ;; |
| 20084 | esac |
| 20085 | need_lib_prefix=no |
| 20086 | need_version=no |
| 20087 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20089 | case $host_os in |
| 20090 | irix5* | nonstopux*) |
| 20091 | libsuff= shlibsuff= |
| 20092 | ;; |
| 20093 | *) |
| 20094 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20095 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20096 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20097 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20098 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20099 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20100 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20101 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20102 | esac |
| 20103 | ;; |
| 20104 | esac |
| 20105 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20106 | shlibpath_overrides_runpath=no |
| 20107 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20108 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20109 | hardcode_into_libs=yes |
| 20110 | ;; |
| 20111 | |
| 20112 | # No shared lib support for Linux oldld, aout, or coff. |
| 20113 | linux*oldld* | linux*aout* | linux*coff*) |
| 20114 | dynamic_linker=no |
| 20115 | ;; |
| 20116 | |
| 20117 | # This must be Linux ELF. |
| 20118 | linux*) |
| 20119 | version_type=linux |
| 20120 | need_lib_prefix=no |
| 20121 | need_version=no |
| 20122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20124 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20125 | shlibpath_var=LD_LIBRARY_PATH |
| 20126 | shlibpath_overrides_runpath=no |
| 20127 | # This implies no fast_install, which is unacceptable. |
| 20128 | # Some rework will be needed to allow for fast_install |
| 20129 | # before this can be enabled. |
| 20130 | hardcode_into_libs=yes |
| 20131 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20132 | # Append ld.so.conf contents to the search path |
| 20133 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20134 | 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] | 20135 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20136 | fi |
| 20137 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20138 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20139 | # powerpc, because MkLinux only supported shared libraries with the |
| 20140 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20141 | # most powerpc-linux boxes support dynamic linking these days and |
| 20142 | # people can always --disable-shared, the test was removed, and we |
| 20143 | # assume the GNU/Linux dynamic linker is in use. |
| 20144 | dynamic_linker='GNU/Linux ld.so' |
| 20145 | ;; |
| 20146 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20147 | knetbsd*-gnu) |
| 20148 | version_type=linux |
| 20149 | need_lib_prefix=no |
| 20150 | need_version=no |
| 20151 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20152 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20153 | shlibpath_var=LD_LIBRARY_PATH |
| 20154 | shlibpath_overrides_runpath=no |
| 20155 | hardcode_into_libs=yes |
| 20156 | dynamic_linker='GNU ld.so' |
| 20157 | ;; |
| 20158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20159 | netbsd*) |
| 20160 | version_type=sunos |
| 20161 | need_lib_prefix=no |
| 20162 | need_version=no |
| 20163 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20165 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20166 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20167 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20168 | 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] | 20169 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20170 | dynamic_linker='NetBSD ld.elf_so' |
| 20171 | fi |
| 20172 | shlibpath_var=LD_LIBRARY_PATH |
| 20173 | shlibpath_overrides_runpath=yes |
| 20174 | hardcode_into_libs=yes |
| 20175 | ;; |
| 20176 | |
| 20177 | newsos6) |
| 20178 | version_type=linux |
| 20179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20180 | shlibpath_var=LD_LIBRARY_PATH |
| 20181 | shlibpath_overrides_runpath=yes |
| 20182 | ;; |
| 20183 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20184 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20185 | version_type=linux |
| 20186 | need_lib_prefix=no |
| 20187 | need_version=no |
| 20188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20189 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20190 | shlibpath_var=LD_LIBRARY_PATH |
| 20191 | shlibpath_overrides_runpath=yes |
| 20192 | ;; |
| 20193 | |
| 20194 | openbsd*) |
| 20195 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20196 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20197 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20198 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20199 | case $host_os in |
| 20200 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20201 | *) need_version=no ;; |
| 20202 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20204 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20205 | shlibpath_var=LD_LIBRARY_PATH |
| 20206 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20207 | case $host_os in |
| 20208 | openbsd2.[89] | openbsd2.[89].*) |
| 20209 | shlibpath_overrides_runpath=no |
| 20210 | ;; |
| 20211 | *) |
| 20212 | shlibpath_overrides_runpath=yes |
| 20213 | ;; |
| 20214 | esac |
| 20215 | else |
| 20216 | shlibpath_overrides_runpath=yes |
| 20217 | fi |
| 20218 | ;; |
| 20219 | |
| 20220 | os2*) |
| 20221 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20222 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20223 | need_lib_prefix=no |
| 20224 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20225 | dynamic_linker='OS/2 ld.exe' |
| 20226 | shlibpath_var=LIBPATH |
| 20227 | ;; |
| 20228 | |
| 20229 | osf3* | osf4* | osf5*) |
| 20230 | version_type=osf |
| 20231 | need_lib_prefix=no |
| 20232 | need_version=no |
| 20233 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20235 | shlibpath_var=LD_LIBRARY_PATH |
| 20236 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20237 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20238 | ;; |
| 20239 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20240 | solaris*) |
| 20241 | version_type=linux |
| 20242 | need_lib_prefix=no |
| 20243 | need_version=no |
| 20244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20246 | shlibpath_var=LD_LIBRARY_PATH |
| 20247 | shlibpath_overrides_runpath=yes |
| 20248 | hardcode_into_libs=yes |
| 20249 | # ldd complains unless libraries are executable |
| 20250 | postinstall_cmds='chmod +x $lib' |
| 20251 | ;; |
| 20252 | |
| 20253 | sunos4*) |
| 20254 | version_type=sunos |
| 20255 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20256 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20257 | shlibpath_var=LD_LIBRARY_PATH |
| 20258 | shlibpath_overrides_runpath=yes |
| 20259 | if test "$with_gnu_ld" = yes; then |
| 20260 | need_lib_prefix=no |
| 20261 | fi |
| 20262 | need_version=yes |
| 20263 | ;; |
| 20264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20265 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20266 | version_type=linux |
| 20267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20268 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20269 | shlibpath_var=LD_LIBRARY_PATH |
| 20270 | case $host_vendor in |
| 20271 | sni) |
| 20272 | shlibpath_overrides_runpath=no |
| 20273 | need_lib_prefix=no |
| 20274 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20275 | runpath_var=LD_RUN_PATH |
| 20276 | ;; |
| 20277 | siemens) |
| 20278 | need_lib_prefix=no |
| 20279 | ;; |
| 20280 | motorola) |
| 20281 | need_lib_prefix=no |
| 20282 | need_version=no |
| 20283 | shlibpath_overrides_runpath=no |
| 20284 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20285 | ;; |
| 20286 | esac |
| 20287 | ;; |
| 20288 | |
| 20289 | sysv4*MP*) |
| 20290 | if test -d /usr/nec ;then |
| 20291 | version_type=linux |
| 20292 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20293 | soname_spec='$libname${shared_ext}.$major' |
| 20294 | shlibpath_var=LD_LIBRARY_PATH |
| 20295 | fi |
| 20296 | ;; |
| 20297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20298 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20299 | version_type=freebsd-elf |
| 20300 | need_lib_prefix=no |
| 20301 | need_version=no |
| 20302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20304 | shlibpath_var=LD_LIBRARY_PATH |
| 20305 | hardcode_into_libs=yes |
| 20306 | if test "$with_gnu_ld" = yes; then |
| 20307 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20308 | shlibpath_overrides_runpath=no |
| 20309 | else |
| 20310 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20311 | shlibpath_overrides_runpath=yes |
| 20312 | case $host_os in |
| 20313 | sco3.2v5*) |
| 20314 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20315 | ;; |
| 20316 | esac |
| 20317 | fi |
| 20318 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20319 | ;; |
| 20320 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20321 | uts4*) |
| 20322 | version_type=linux |
| 20323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20324 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20325 | shlibpath_var=LD_LIBRARY_PATH |
| 20326 | ;; |
| 20327 | |
| 20328 | *) |
| 20329 | dynamic_linker=no |
| 20330 | ;; |
| 20331 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20332 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20333 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20334 | test "$dynamic_linker" = no && can_build_shared=no |
| 20335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20336 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20337 | if test "$GCC" = yes; then |
| 20338 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20339 | fi |
| 20340 | |
| 20341 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20342 | 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] | 20343 | hardcode_action_CXX= |
| 20344 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20345 | test -n "$runpath_var_CXX" || \ |
| 20346 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20347 | |
| 20348 | # We can hardcode non-existant directories. |
| 20349 | if test "$hardcode_direct_CXX" != no && |
| 20350 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20351 | # have to relink, otherwise we might link with an installed library |
| 20352 | # when we should be linking with a yet-to-be-installed one |
| 20353 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20354 | test "$hardcode_minus_L_CXX" != no; then |
| 20355 | # Linking always hardcodes the temporary library directory. |
| 20356 | hardcode_action_CXX=relink |
| 20357 | else |
| 20358 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20359 | hardcode_action_CXX=immediate |
| 20360 | fi |
| 20361 | else |
| 20362 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20363 | # directories. |
| 20364 | hardcode_action_CXX=unsupported |
| 20365 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20366 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20367 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20368 | |
| 20369 | if test "$hardcode_action_CXX" = relink; then |
| 20370 | # Fast installation is not supported |
| 20371 | enable_fast_install=no |
| 20372 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20373 | test "$enable_shared" = no; then |
| 20374 | # Fast installation is not necessary |
| 20375 | enable_fast_install=needless |
| 20376 | fi |
| 20377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20378 | |
| 20379 | # The else clause should only fire when bootstrapping the |
| 20380 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20381 | # with your package, and you will get complaints that there are |
| 20382 | # no rules to generate ltmain.sh. |
| 20383 | if test -f "$ltmain"; then |
| 20384 | # See if we are running on zsh, and set the options which allow our commands through |
| 20385 | # without removal of \ escapes. |
| 20386 | if test -n "${ZSH_VERSION+set}" ; then |
| 20387 | setopt NO_GLOB_SUBST |
| 20388 | fi |
| 20389 | # Now quote all the things that may contain metacharacters while being |
| 20390 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20391 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20392 | 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] | 20393 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20394 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20395 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20396 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20397 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20398 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20399 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20400 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20401 | compiler_CXX \ |
| 20402 | CC_CXX \ |
| 20403 | LD_CXX \ |
| 20404 | lt_prog_compiler_wl_CXX \ |
| 20405 | lt_prog_compiler_pic_CXX \ |
| 20406 | lt_prog_compiler_static_CXX \ |
| 20407 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20408 | export_dynamic_flag_spec_CXX \ |
| 20409 | thread_safe_flag_spec_CXX \ |
| 20410 | whole_archive_flag_spec_CXX \ |
| 20411 | enable_shared_with_static_runtimes_CXX \ |
| 20412 | old_archive_cmds_CXX \ |
| 20413 | old_archive_from_new_cmds_CXX \ |
| 20414 | predep_objects_CXX \ |
| 20415 | postdep_objects_CXX \ |
| 20416 | predeps_CXX \ |
| 20417 | postdeps_CXX \ |
| 20418 | compiler_lib_search_path_CXX \ |
| 20419 | archive_cmds_CXX \ |
| 20420 | archive_expsym_cmds_CXX \ |
| 20421 | postinstall_cmds_CXX \ |
| 20422 | postuninstall_cmds_CXX \ |
| 20423 | old_archive_from_expsyms_cmds_CXX \ |
| 20424 | allow_undefined_flag_CXX \ |
| 20425 | no_undefined_flag_CXX \ |
| 20426 | export_symbols_cmds_CXX \ |
| 20427 | hardcode_libdir_flag_spec_CXX \ |
| 20428 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20429 | hardcode_libdir_separator_CXX \ |
| 20430 | hardcode_automatic_CXX \ |
| 20431 | module_cmds_CXX \ |
| 20432 | module_expsym_cmds_CXX \ |
| 20433 | lt_cv_prog_compiler_c_o_CXX \ |
| 20434 | exclude_expsyms_CXX \ |
| 20435 | include_expsyms_CXX; do |
| 20436 | |
| 20437 | case $var in |
| 20438 | old_archive_cmds_CXX | \ |
| 20439 | old_archive_from_new_cmds_CXX | \ |
| 20440 | archive_cmds_CXX | \ |
| 20441 | archive_expsym_cmds_CXX | \ |
| 20442 | module_cmds_CXX | \ |
| 20443 | module_expsym_cmds_CXX | \ |
| 20444 | old_archive_from_expsyms_cmds_CXX | \ |
| 20445 | export_symbols_cmds_CXX | \ |
| 20446 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20447 | postinstall_cmds | postuninstall_cmds | \ |
| 20448 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20449 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20450 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20451 | 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] | 20452 | ;; |
| 20453 | *) |
| 20454 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20455 | ;; |
| 20456 | esac |
| 20457 | done |
| 20458 | |
| 20459 | case $lt_echo in |
| 20460 | *'\$0 --fallback-echo"') |
| 20461 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20462 | ;; |
| 20463 | esac |
| 20464 | |
| 20465 | cfgfile="$ofile" |
| 20466 | |
| 20467 | cat <<__EOF__ >> "$cfgfile" |
| 20468 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20469 | |
| 20470 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20471 | |
| 20472 | # Shell to use when invoking shell scripts. |
| 20473 | SHELL=$lt_SHELL |
| 20474 | |
| 20475 | # Whether or not to build shared libraries. |
| 20476 | build_libtool_libs=$enable_shared |
| 20477 | |
| 20478 | # Whether or not to build static libraries. |
| 20479 | build_old_libs=$enable_static |
| 20480 | |
| 20481 | # Whether or not to add -lc for building shared libraries. |
| 20482 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20483 | |
| 20484 | # Whether or not to disallow shared libs when runtime libs are static |
| 20485 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20486 | |
| 20487 | # Whether or not to optimize for fast installation. |
| 20488 | fast_install=$enable_fast_install |
| 20489 | |
| 20490 | # The host system. |
| 20491 | host_alias=$host_alias |
| 20492 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20493 | host_os=$host_os |
| 20494 | |
| 20495 | # The build system. |
| 20496 | build_alias=$build_alias |
| 20497 | build=$build |
| 20498 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20499 | |
| 20500 | # An echo program that does not interpret backslashes. |
| 20501 | echo=$lt_echo |
| 20502 | |
| 20503 | # The archiver. |
| 20504 | AR=$lt_AR |
| 20505 | AR_FLAGS=$lt_AR_FLAGS |
| 20506 | |
| 20507 | # A C compiler. |
| 20508 | LTCC=$lt_LTCC |
| 20509 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20510 | # LTCC compiler flags. |
| 20511 | LTCFLAGS=$lt_LTCFLAGS |
| 20512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20513 | # A language-specific compiler. |
| 20514 | CC=$lt_compiler_CXX |
| 20515 | |
| 20516 | # Is the compiler the GNU C compiler? |
| 20517 | with_gcc=$GCC_CXX |
| 20518 | |
| 20519 | # An ERE matcher. |
| 20520 | EGREP=$lt_EGREP |
| 20521 | |
| 20522 | # The linker used to build libraries. |
| 20523 | LD=$lt_LD_CXX |
| 20524 | |
| 20525 | # Whether we need hard or soft links. |
| 20526 | LN_S=$lt_LN_S |
| 20527 | |
| 20528 | # A BSD-compatible nm program. |
| 20529 | NM=$lt_NM |
| 20530 | |
| 20531 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20532 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20533 | |
| 20534 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20535 | MAGIC_CMD=$MAGIC_CMD |
| 20536 | |
| 20537 | # Used on cygwin: DLL creation program. |
| 20538 | DLLTOOL="$DLLTOOL" |
| 20539 | |
| 20540 | # Used on cygwin: object dumper. |
| 20541 | OBJDUMP="$OBJDUMP" |
| 20542 | |
| 20543 | # Used on cygwin: assembler. |
| 20544 | AS="$AS" |
| 20545 | |
| 20546 | # The name of the directory that contains temporary libtool files. |
| 20547 | objdir=$objdir |
| 20548 | |
| 20549 | # How to create reloadable object files. |
| 20550 | reload_flag=$lt_reload_flag |
| 20551 | reload_cmds=$lt_reload_cmds |
| 20552 | |
| 20553 | # How to pass a linker flag through the compiler. |
| 20554 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20555 | |
| 20556 | # Object file suffix (normally "o"). |
| 20557 | objext="$ac_objext" |
| 20558 | |
| 20559 | # Old archive suffix (normally "a"). |
| 20560 | libext="$libext" |
| 20561 | |
| 20562 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20563 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20564 | |
| 20565 | # Executable file suffix (normally ""). |
| 20566 | exeext="$exeext" |
| 20567 | |
| 20568 | # Additional compiler flags for building library objects. |
| 20569 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20570 | pic_mode=$pic_mode |
| 20571 | |
| 20572 | # What is the maximum length of a command? |
| 20573 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20574 | |
| 20575 | # Does compiler simultaneously support -c and -o options? |
| 20576 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20578 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20579 | need_locks=$lt_need_locks |
| 20580 | |
| 20581 | # Do we need the lib prefix for modules? |
| 20582 | need_lib_prefix=$need_lib_prefix |
| 20583 | |
| 20584 | # Do we need a version for libraries? |
| 20585 | need_version=$need_version |
| 20586 | |
| 20587 | # Whether dlopen is supported. |
| 20588 | dlopen_support=$enable_dlopen |
| 20589 | |
| 20590 | # Whether dlopen of programs is supported. |
| 20591 | dlopen_self=$enable_dlopen_self |
| 20592 | |
| 20593 | # Whether dlopen of statically linked programs is supported. |
| 20594 | dlopen_self_static=$enable_dlopen_self_static |
| 20595 | |
| 20596 | # Compiler flag to prevent dynamic linking. |
| 20597 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20598 | |
| 20599 | # Compiler flag to turn off builtin functions. |
| 20600 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20601 | |
| 20602 | # Compiler flag to allow reflexive dlopens. |
| 20603 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20604 | |
| 20605 | # Compiler flag to generate shared objects directly from archives. |
| 20606 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20607 | |
| 20608 | # Compiler flag to generate thread-safe objects. |
| 20609 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20610 | |
| 20611 | # Library versioning type. |
| 20612 | version_type=$version_type |
| 20613 | |
| 20614 | # Format of library name prefix. |
| 20615 | libname_spec=$lt_libname_spec |
| 20616 | |
| 20617 | # List of archive names. First name is the real one, the rest are links. |
| 20618 | # The last name is the one that the linker finds with -lNAME. |
| 20619 | library_names_spec=$lt_library_names_spec |
| 20620 | |
| 20621 | # The coded name of the library, if different from the real name. |
| 20622 | soname_spec=$lt_soname_spec |
| 20623 | |
| 20624 | # Commands used to build and install an old-style archive. |
| 20625 | RANLIB=$lt_RANLIB |
| 20626 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20627 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20628 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20629 | |
| 20630 | # Create an old-style archive from a shared archive. |
| 20631 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20632 | |
| 20633 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20634 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20635 | |
| 20636 | # Commands used to build and install a shared archive. |
| 20637 | archive_cmds=$lt_archive_cmds_CXX |
| 20638 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20639 | postinstall_cmds=$lt_postinstall_cmds |
| 20640 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20641 | |
| 20642 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20643 | module_cmds=$lt_module_cmds_CXX |
| 20644 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20645 | |
| 20646 | # Commands to strip libraries. |
| 20647 | old_striplib=$lt_old_striplib |
| 20648 | striplib=$lt_striplib |
| 20649 | |
| 20650 | # Dependencies to place before the objects being linked to create a |
| 20651 | # shared library. |
| 20652 | predep_objects=$lt_predep_objects_CXX |
| 20653 | |
| 20654 | # Dependencies to place after the objects being linked to create a |
| 20655 | # shared library. |
| 20656 | postdep_objects=$lt_postdep_objects_CXX |
| 20657 | |
| 20658 | # Dependencies to place before the objects being linked to create a |
| 20659 | # shared library. |
| 20660 | predeps=$lt_predeps_CXX |
| 20661 | |
| 20662 | # Dependencies to place after the objects being linked to create a |
| 20663 | # shared library. |
| 20664 | postdeps=$lt_postdeps_CXX |
| 20665 | |
| 20666 | # The library search path used internally by the compiler when linking |
| 20667 | # a shared library. |
| 20668 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20669 | |
| 20670 | # Method to check whether dependent libraries are shared objects. |
| 20671 | deplibs_check_method=$lt_deplibs_check_method |
| 20672 | |
| 20673 | # Command to use when deplibs_check_method == file_magic. |
| 20674 | file_magic_cmd=$lt_file_magic_cmd |
| 20675 | |
| 20676 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20677 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20678 | |
| 20679 | # Flag that forces no undefined symbols. |
| 20680 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20681 | |
| 20682 | # Commands used to finish a libtool library installation in a directory. |
| 20683 | finish_cmds=$lt_finish_cmds |
| 20684 | |
| 20685 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20686 | finish_eval=$lt_finish_eval |
| 20687 | |
| 20688 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20689 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20690 | |
| 20691 | # Transform the output of nm in a proper C declaration |
| 20692 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20693 | |
| 20694 | # Transform the output of nm in a C name address pair |
| 20695 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20696 | |
| 20697 | # This is the shared library runtime path variable. |
| 20698 | runpath_var=$runpath_var |
| 20699 | |
| 20700 | # This is the shared library path variable. |
| 20701 | shlibpath_var=$shlibpath_var |
| 20702 | |
| 20703 | # Is shlibpath searched before the hard-coded library search path? |
| 20704 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20705 | |
| 20706 | # How to hardcode a shared library path into an executable. |
| 20707 | hardcode_action=$hardcode_action_CXX |
| 20708 | |
| 20709 | # Whether we should hardcode library paths into libraries. |
| 20710 | hardcode_into_libs=$hardcode_into_libs |
| 20711 | |
| 20712 | # Flag to hardcode \$libdir into a binary during linking. |
| 20713 | # This must work even if \$libdir does not exist. |
| 20714 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20715 | |
| 20716 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20717 | # a binary during linking. This must work even if \$libdir does |
| 20718 | # not exist. |
| 20719 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20720 | |
| 20721 | # Whether we need a single -rpath flag with a separated argument. |
| 20722 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20723 | |
| 20724 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20725 | # resulting binary. |
| 20726 | hardcode_direct=$hardcode_direct_CXX |
| 20727 | |
| 20728 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20729 | # resulting binary. |
| 20730 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20731 | |
| 20732 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20733 | # the resulting binary. |
| 20734 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20735 | |
| 20736 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20737 | # and all subsequent libraries and executables linked against it. |
| 20738 | hardcode_automatic=$hardcode_automatic_CXX |
| 20739 | |
| 20740 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20741 | # restored at relink time. |
| 20742 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20743 | |
| 20744 | # Whether libtool must link a program against all its dependency libraries. |
| 20745 | link_all_deplibs=$link_all_deplibs_CXX |
| 20746 | |
| 20747 | # Compile-time system search path for libraries |
| 20748 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20749 | |
| 20750 | # Run-time system search path for libraries |
| 20751 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20752 | |
| 20753 | # Fix the shell variable \$srcfile for the compiler. |
| 20754 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20755 | |
| 20756 | # Set to yes if exported symbols are required. |
| 20757 | always_export_symbols=$always_export_symbols_CXX |
| 20758 | |
| 20759 | # The commands to list exported symbols. |
| 20760 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20761 | |
| 20762 | # The commands to extract the exported symbol list from a shared archive. |
| 20763 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20764 | |
| 20765 | # Symbols that should not be listed in the preloaded symbols. |
| 20766 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20767 | |
| 20768 | # Symbols that must always be exported. |
| 20769 | include_expsyms=$lt_include_expsyms_CXX |
| 20770 | |
| 20771 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20772 | |
| 20773 | __EOF__ |
| 20774 | |
| 20775 | |
| 20776 | else |
| 20777 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20778 | # `config.status --recheck' to rerun these tests and create the |
| 20779 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20780 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20781 | if test -f "$ltmain_in"; then |
| 20782 | test -f Makefile && make "$ltmain" |
| 20783 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20784 | fi |
| 20785 | |
| 20786 | |
| 20787 | ac_ext=c |
| 20788 | ac_cpp='$CPP $CPPFLAGS' |
| 20789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20792 | |
| 20793 | CC=$lt_save_CC |
| 20794 | LDCXX=$LD |
| 20795 | LD=$lt_save_LD |
| 20796 | GCC=$lt_save_GCC |
| 20797 | with_gnu_ldcxx=$with_gnu_ld |
| 20798 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20799 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20800 | lt_cv_path_LD=$lt_save_path_LD |
| 20801 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20802 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20803 | |
| 20804 | else |
| 20805 | tagname="" |
| 20806 | fi |
| 20807 | ;; |
| 20808 | |
| 20809 | F77) |
| 20810 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 20811 | |
| 20812 | ac_ext=f |
| 20813 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 20814 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20815 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 20816 | |
| 20817 | |
| 20818 | archive_cmds_need_lc_F77=no |
| 20819 | allow_undefined_flag_F77= |
| 20820 | always_export_symbols_F77=no |
| 20821 | archive_expsym_cmds_F77= |
| 20822 | export_dynamic_flag_spec_F77= |
| 20823 | hardcode_direct_F77=no |
| 20824 | hardcode_libdir_flag_spec_F77= |
| 20825 | hardcode_libdir_flag_spec_ld_F77= |
| 20826 | hardcode_libdir_separator_F77= |
| 20827 | hardcode_minus_L_F77=no |
| 20828 | hardcode_automatic_F77=no |
| 20829 | module_cmds_F77= |
| 20830 | module_expsym_cmds_F77= |
| 20831 | link_all_deplibs_F77=unknown |
| 20832 | old_archive_cmds_F77=$old_archive_cmds |
| 20833 | no_undefined_flag_F77= |
| 20834 | whole_archive_flag_spec_F77= |
| 20835 | enable_shared_with_static_runtimes_F77=no |
| 20836 | |
| 20837 | # Source file extension for f77 test sources. |
| 20838 | ac_ext=f |
| 20839 | |
| 20840 | # Object file extension for compiled f77 test sources. |
| 20841 | objext=o |
| 20842 | objext_F77=$objext |
| 20843 | |
| 20844 | # Code to be used in simple compile tests |
| 20845 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20846 | |
| 20847 | # Code to be used in simple link tests |
| 20848 | lt_simple_link_test_code=" program t\n end\n" |
| 20849 | |
| 20850 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20851 | |
| 20852 | # If no C compiler was specified, use CC. |
| 20853 | LTCC=${LTCC-"$CC"} |
| 20854 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20855 | # If no C compiler flags were specified, use CFLAGS. |
| 20856 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20857 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20858 | # Allow CC to be a program name with arguments. |
| 20859 | compiler=$CC |
| 20860 | |
| 20861 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20862 | # save warnings/boilerplate of simple test code |
| 20863 | ac_outfile=conftest.$ac_objext |
| 20864 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20865 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20866 | _lt_compiler_boilerplate=`cat conftest.err` |
| 20867 | $rm conftest* |
| 20868 | |
| 20869 | ac_outfile=conftest.$ac_objext |
| 20870 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20871 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20872 | _lt_linker_boilerplate=`cat conftest.err` |
| 20873 | $rm conftest* |
| 20874 | |
| 20875 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20876 | # Allow CC to be a program name with arguments. |
| 20877 | lt_save_CC="$CC" |
| 20878 | CC=${F77-"f77"} |
| 20879 | compiler=$CC |
| 20880 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20881 | for cc_temp in $compiler""; do |
| 20882 | case $cc_temp in |
| 20883 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20884 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20885 | \-*) ;; |
| 20886 | *) break;; |
| 20887 | esac |
| 20888 | done |
| 20889 | 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] | 20890 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20891 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20892 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 20893 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 20894 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 20895 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 20896 | |
| 20897 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 20898 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20899 | test "$can_build_shared" = "no" && enable_shared=no |
| 20900 | |
| 20901 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 20902 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20903 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20904 | aix3*) |
| 20905 | test "$enable_shared" = yes && enable_static=no |
| 20906 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20907 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20908 | postinstall_cmds='$RANLIB $lib' |
| 20909 | fi |
| 20910 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20911 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20912 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20913 | test "$enable_shared" = yes && enable_static=no |
| 20914 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20915 | ;; |
| 20916 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20917 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 20918 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20919 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20920 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 20921 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20922 | # Make sure either enable_shared or enable_static is yes. |
| 20923 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20924 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 20925 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20926 | |
| 20927 | GCC_F77="$G77" |
| 20928 | LD_F77="$LD" |
| 20929 | |
| 20930 | lt_prog_compiler_wl_F77= |
| 20931 | lt_prog_compiler_pic_F77= |
| 20932 | lt_prog_compiler_static_F77= |
| 20933 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20934 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20935 | 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] | 20936 | |
| 20937 | if test "$GCC" = yes; then |
| 20938 | lt_prog_compiler_wl_F77='-Wl,' |
| 20939 | lt_prog_compiler_static_F77='-static' |
| 20940 | |
| 20941 | case $host_os in |
| 20942 | aix*) |
| 20943 | # All AIX code is PIC. |
| 20944 | if test "$host_cpu" = ia64; then |
| 20945 | # AIX 5 now supports IA64 processor |
| 20946 | lt_prog_compiler_static_F77='-Bstatic' |
| 20947 | fi |
| 20948 | ;; |
| 20949 | |
| 20950 | amigaos*) |
| 20951 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20952 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20953 | # like `-m68040'. |
| 20954 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20955 | ;; |
| 20956 | |
| 20957 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20958 | # PIC is the default for these OSes. |
| 20959 | ;; |
| 20960 | |
| 20961 | mingw* | pw32* | os2*) |
| 20962 | # This hack is so that the source file can tell whether it is being |
| 20963 | # built for inclusion in a dll (and should export symbols for example). |
| 20964 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20965 | ;; |
| 20966 | |
| 20967 | darwin* | rhapsody*) |
| 20968 | # PIC is the default on this platform |
| 20969 | # Common symbols not allowed in MH_DYLIB files |
| 20970 | lt_prog_compiler_pic_F77='-fno-common' |
| 20971 | ;; |
| 20972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20973 | interix3*) |
| 20974 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20975 | # Instead, we relocate shared libraries at runtime. |
| 20976 | ;; |
| 20977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20978 | msdosdjgpp*) |
| 20979 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20980 | # on systems that don't support them. |
| 20981 | lt_prog_compiler_can_build_shared_F77=no |
| 20982 | enable_shared=no |
| 20983 | ;; |
| 20984 | |
| 20985 | sysv4*MP*) |
| 20986 | if test -d /usr/nec; then |
| 20987 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20988 | fi |
| 20989 | ;; |
| 20990 | |
| 20991 | hpux*) |
| 20992 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20993 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20994 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20995 | hppa*64*|ia64*) |
| 20996 | # +Z the default |
| 20997 | ;; |
| 20998 | *) |
| 20999 | lt_prog_compiler_pic_F77='-fPIC' |
| 21000 | ;; |
| 21001 | esac |
| 21002 | ;; |
| 21003 | |
| 21004 | *) |
| 21005 | lt_prog_compiler_pic_F77='-fPIC' |
| 21006 | ;; |
| 21007 | esac |
| 21008 | else |
| 21009 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21010 | case $host_os in |
| 21011 | aix*) |
| 21012 | lt_prog_compiler_wl_F77='-Wl,' |
| 21013 | if test "$host_cpu" = ia64; then |
| 21014 | # AIX 5 now supports IA64 processor |
| 21015 | lt_prog_compiler_static_F77='-Bstatic' |
| 21016 | else |
| 21017 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21018 | fi |
| 21019 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21020 | darwin*) |
| 21021 | # PIC is the default on this platform |
| 21022 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21023 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21024 | xlc*) |
| 21025 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21026 | lt_prog_compiler_wl_F77='-Wl,' |
| 21027 | ;; |
| 21028 | esac |
| 21029 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21030 | |
| 21031 | mingw* | pw32* | os2*) |
| 21032 | # This hack is so that the source file can tell whether it is being |
| 21033 | # built for inclusion in a dll (and should export symbols for example). |
| 21034 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21035 | ;; |
| 21036 | |
| 21037 | hpux9* | hpux10* | hpux11*) |
| 21038 | lt_prog_compiler_wl_F77='-Wl,' |
| 21039 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21040 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21041 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21042 | hppa*64*|ia64*) |
| 21043 | # +Z the default |
| 21044 | ;; |
| 21045 | *) |
| 21046 | lt_prog_compiler_pic_F77='+Z' |
| 21047 | ;; |
| 21048 | esac |
| 21049 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21050 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21051 | ;; |
| 21052 | |
| 21053 | irix5* | irix6* | nonstopux*) |
| 21054 | lt_prog_compiler_wl_F77='-Wl,' |
| 21055 | # PIC (with -KPIC) is the default. |
| 21056 | lt_prog_compiler_static_F77='-non_shared' |
| 21057 | ;; |
| 21058 | |
| 21059 | newsos6) |
| 21060 | lt_prog_compiler_pic_F77='-KPIC' |
| 21061 | lt_prog_compiler_static_F77='-Bstatic' |
| 21062 | ;; |
| 21063 | |
| 21064 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21065 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21066 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21067 | lt_prog_compiler_wl_F77='-Wl,' |
| 21068 | lt_prog_compiler_pic_F77='-KPIC' |
| 21069 | lt_prog_compiler_static_F77='-static' |
| 21070 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21071 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21072 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21073 | # which looks to be a dead project) |
| 21074 | lt_prog_compiler_wl_F77='-Wl,' |
| 21075 | lt_prog_compiler_pic_F77='-fpic' |
| 21076 | lt_prog_compiler_static_F77='-Bstatic' |
| 21077 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21078 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21079 | lt_prog_compiler_wl_F77='-Wl,' |
| 21080 | # All Alpha code is PIC. |
| 21081 | lt_prog_compiler_static_F77='-non_shared' |
| 21082 | ;; |
| 21083 | esac |
| 21084 | ;; |
| 21085 | |
| 21086 | osf3* | osf4* | osf5*) |
| 21087 | lt_prog_compiler_wl_F77='-Wl,' |
| 21088 | # All OSF/1 code is PIC. |
| 21089 | lt_prog_compiler_static_F77='-non_shared' |
| 21090 | ;; |
| 21091 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21092 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21093 | lt_prog_compiler_pic_F77='-KPIC' |
| 21094 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21095 | case $cc_basename in |
| 21096 | f77* | f90* | f95*) |
| 21097 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21098 | *) |
| 21099 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21100 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21101 | ;; |
| 21102 | |
| 21103 | sunos4*) |
| 21104 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21105 | lt_prog_compiler_pic_F77='-PIC' |
| 21106 | lt_prog_compiler_static_F77='-Bstatic' |
| 21107 | ;; |
| 21108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21109 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21110 | lt_prog_compiler_wl_F77='-Wl,' |
| 21111 | lt_prog_compiler_pic_F77='-KPIC' |
| 21112 | lt_prog_compiler_static_F77='-Bstatic' |
| 21113 | ;; |
| 21114 | |
| 21115 | sysv4*MP*) |
| 21116 | if test -d /usr/nec ;then |
| 21117 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21118 | lt_prog_compiler_static_F77='-Bstatic' |
| 21119 | fi |
| 21120 | ;; |
| 21121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21122 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21123 | lt_prog_compiler_wl_F77='-Wl,' |
| 21124 | lt_prog_compiler_pic_F77='-KPIC' |
| 21125 | lt_prog_compiler_static_F77='-Bstatic' |
| 21126 | ;; |
| 21127 | |
| 21128 | unicos*) |
| 21129 | lt_prog_compiler_wl_F77='-Wl,' |
| 21130 | lt_prog_compiler_can_build_shared_F77=no |
| 21131 | ;; |
| 21132 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21133 | uts4*) |
| 21134 | lt_prog_compiler_pic_F77='-pic' |
| 21135 | lt_prog_compiler_static_F77='-Bstatic' |
| 21136 | ;; |
| 21137 | |
| 21138 | *) |
| 21139 | lt_prog_compiler_can_build_shared_F77=no |
| 21140 | ;; |
| 21141 | esac |
| 21142 | fi |
| 21143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21144 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21145 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21146 | |
| 21147 | # |
| 21148 | # Check to make sure the PIC flag actually works. |
| 21149 | # |
| 21150 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21152 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21153 | 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] | 21154 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21156 | else |
| 21157 | lt_prog_compiler_pic_works_F77=no |
| 21158 | ac_outfile=conftest.$ac_objext |
| 21159 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21160 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21161 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21162 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21163 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21164 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21165 | # The option is referenced via a variable to avoid confusing sed. |
| 21166 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21167 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21168 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21169 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 21170 | (eval echo "\"\$as_me:21170: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21171 | (eval "$lt_compile" 2>conftest.err) |
| 21172 | ac_status=$? |
| 21173 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 21174 | echo "$as_me:21174: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21175 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21176 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | # So say no if there are warnings other than the usual output. |
| 21178 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21179 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21180 | 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] | 21181 | lt_prog_compiler_pic_works_F77=yes |
| 21182 | fi |
| 21183 | fi |
| 21184 | $rm conftest* |
| 21185 | |
| 21186 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21187 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21188 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21189 | |
| 21190 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21191 | case $lt_prog_compiler_pic_F77 in |
| 21192 | "" | " "*) ;; |
| 21193 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21194 | esac |
| 21195 | else |
| 21196 | lt_prog_compiler_pic_F77= |
| 21197 | lt_prog_compiler_can_build_shared_F77=no |
| 21198 | fi |
| 21199 | |
| 21200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21202 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21203 | *djgpp*) |
| 21204 | lt_prog_compiler_pic_F77= |
| 21205 | ;; |
| 21206 | *) |
| 21207 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21208 | ;; |
| 21209 | esac |
| 21210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21211 | # |
| 21212 | # Check to make sure the static flag actually works. |
| 21213 | # |
| 21214 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21215 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21216 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21217 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21219 | else |
| 21220 | lt_prog_compiler_static_works_F77=no |
| 21221 | save_LDFLAGS="$LDFLAGS" |
| 21222 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21223 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21224 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21225 | # The linker can only warn and ignore the option if not recognized |
| 21226 | # So say no if there are warnings |
| 21227 | if test -s conftest.err; then |
| 21228 | # Append any errors to the config.log. |
| 21229 | cat conftest.err 1>&5 |
| 21230 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21231 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21232 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21233 | lt_prog_compiler_static_works_F77=yes |
| 21234 | fi |
| 21235 | else |
| 21236 | lt_prog_compiler_static_works_F77=yes |
| 21237 | fi |
| 21238 | fi |
| 21239 | $rm conftest* |
| 21240 | LDFLAGS="$save_LDFLAGS" |
| 21241 | |
| 21242 | fi |
| 21243 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21244 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21245 | |
| 21246 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21247 | : |
| 21248 | else |
| 21249 | lt_prog_compiler_static_F77= |
| 21250 | fi |
| 21251 | |
| 21252 | |
| 21253 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21254 | 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] | 21255 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21257 | else |
| 21258 | lt_cv_prog_compiler_c_o_F77=no |
| 21259 | $rm -r conftest 2>/dev/null |
| 21260 | mkdir conftest |
| 21261 | cd conftest |
| 21262 | mkdir out |
| 21263 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21264 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21265 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21266 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21267 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21268 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21269 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21270 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21271 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21272 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21273 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 21274 | (eval echo "\"\$as_me:21274: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21275 | (eval "$lt_compile" 2>out/conftest.err) |
| 21276 | ac_status=$? |
| 21277 | cat out/conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 21278 | echo "$as_me:21278: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21279 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21280 | then |
| 21281 | # The compiler can only warn and ignore the option if not recognized |
| 21282 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21283 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21284 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21285 | 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] | 21286 | lt_cv_prog_compiler_c_o_F77=yes |
| 21287 | fi |
| 21288 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21289 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21290 | $rm conftest* |
| 21291 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21292 | # template instantiation |
| 21293 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21294 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21295 | cd .. |
| 21296 | rmdir conftest |
| 21297 | $rm conftest* |
| 21298 | |
| 21299 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21300 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21301 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21302 | |
| 21303 | |
| 21304 | hard_links="nottested" |
| 21305 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21306 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21307 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21308 | 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] | 21309 | hard_links=yes |
| 21310 | $rm conftest* |
| 21311 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21312 | touch conftest.a |
| 21313 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21314 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21315 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21316 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21317 | if test "$hard_links" = no; then |
| 21318 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21319 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21320 | need_locks=warn |
| 21321 | fi |
| 21322 | else |
| 21323 | need_locks=no |
| 21324 | fi |
| 21325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21326 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21327 | 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] | 21328 | |
| 21329 | runpath_var= |
| 21330 | allow_undefined_flag_F77= |
| 21331 | enable_shared_with_static_runtimes_F77=no |
| 21332 | archive_cmds_F77= |
| 21333 | archive_expsym_cmds_F77= |
| 21334 | old_archive_From_new_cmds_F77= |
| 21335 | old_archive_from_expsyms_cmds_F77= |
| 21336 | export_dynamic_flag_spec_F77= |
| 21337 | whole_archive_flag_spec_F77= |
| 21338 | thread_safe_flag_spec_F77= |
| 21339 | hardcode_libdir_flag_spec_F77= |
| 21340 | hardcode_libdir_flag_spec_ld_F77= |
| 21341 | hardcode_libdir_separator_F77= |
| 21342 | hardcode_direct_F77=no |
| 21343 | hardcode_minus_L_F77=no |
| 21344 | hardcode_shlibpath_var_F77=unsupported |
| 21345 | link_all_deplibs_F77=unknown |
| 21346 | hardcode_automatic_F77=no |
| 21347 | module_cmds_F77= |
| 21348 | module_expsym_cmds_F77= |
| 21349 | always_export_symbols_F77=no |
| 21350 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21351 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21352 | # included in the symbol list |
| 21353 | include_expsyms_F77= |
| 21354 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21355 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21356 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21357 | # as well as any symbol that contains `d'. |
| 21358 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21359 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21360 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21361 | # the symbol is explicitly referenced. Since portable code cannot |
| 21362 | # rely on this symbol name, it's probably fine to never include it in |
| 21363 | # preloaded symbol tables. |
| 21364 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21365 | # Just being paranoid about ensuring that cc_basename is set. |
| 21366 | for cc_temp in $compiler""; do |
| 21367 | case $cc_temp in |
| 21368 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21369 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21370 | \-*) ;; |
| 21371 | *) break;; |
| 21372 | esac |
| 21373 | done |
| 21374 | 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] | 21375 | |
| 21376 | case $host_os in |
| 21377 | cygwin* | mingw* | pw32*) |
| 21378 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21379 | # When not using gcc, we currently assume that we are using |
| 21380 | # Microsoft Visual C++. |
| 21381 | if test "$GCC" != yes; then |
| 21382 | with_gnu_ld=no |
| 21383 | fi |
| 21384 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21385 | interix*) |
| 21386 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21387 | with_gnu_ld=yes |
| 21388 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21389 | openbsd*) |
| 21390 | with_gnu_ld=no |
| 21391 | ;; |
| 21392 | esac |
| 21393 | |
| 21394 | ld_shlibs_F77=yes |
| 21395 | if test "$with_gnu_ld" = yes; then |
| 21396 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21397 | wlarc='${wl}' |
| 21398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21399 | # Set some defaults for GNU ld with shared library support. These |
| 21400 | # are reset later if shared libraries are not supported. Putting them |
| 21401 | # here allows them to be overridden if necessary. |
| 21402 | runpath_var=LD_RUN_PATH |
| 21403 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21404 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21405 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21406 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21407 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21408 | else |
| 21409 | whole_archive_flag_spec_F77= |
| 21410 | fi |
| 21411 | supports_anon_versioning=no |
| 21412 | case `$LD -v 2>/dev/null` in |
| 21413 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21414 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21415 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21416 | *\ 2.11.*) ;; # other 2.11 versions |
| 21417 | *) supports_anon_versioning=yes ;; |
| 21418 | esac |
| 21419 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21420 | # See if GNU ld supports shared libraries. |
| 21421 | case $host_os in |
| 21422 | aix3* | aix4* | aix5*) |
| 21423 | # On AIX/PPC, the GNU linker is very broken |
| 21424 | if test "$host_cpu" != ia64; then |
| 21425 | ld_shlibs_F77=no |
| 21426 | cat <<EOF 1>&2 |
| 21427 | |
| 21428 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21429 | *** to be unable to reliably create shared libraries on AIX. |
| 21430 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21431 | *** really care for shared libraries, you may want to modify your PATH |
| 21432 | *** so that a non-GNU linker is found, and then restart. |
| 21433 | |
| 21434 | EOF |
| 21435 | fi |
| 21436 | ;; |
| 21437 | |
| 21438 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21439 | 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] | 21440 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21441 | hardcode_minus_L_F77=yes |
| 21442 | |
| 21443 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21444 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21445 | # to version 4, is to share data among multiple programs linked |
| 21446 | # with the same dynamic library. Since this doesn't match the |
| 21447 | # behavior of shared libraries on other platforms, we can't use |
| 21448 | # them. |
| 21449 | ld_shlibs_F77=no |
| 21450 | ;; |
| 21451 | |
| 21452 | beos*) |
| 21453 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21454 | allow_undefined_flag_F77=unsupported |
| 21455 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21456 | # support --undefined. This deserves some investigation. FIXME |
| 21457 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21458 | else |
| 21459 | ld_shlibs_F77=no |
| 21460 | fi |
| 21461 | ;; |
| 21462 | |
| 21463 | cygwin* | mingw* | pw32*) |
| 21464 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21465 | # as there is no search path for DLLs. |
| 21466 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21467 | allow_undefined_flag_F77=unsupported |
| 21468 | always_export_symbols_F77=no |
| 21469 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21470 | 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] | 21471 | |
| 21472 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21473 | 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] | 21474 | # If the export-symbols file already is a .def file (1st line |
| 21475 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21476 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21477 | cp $export_symbols $output_objdir/$soname.def; |
| 21478 | else |
| 21479 | echo EXPORTS > $output_objdir/$soname.def; |
| 21480 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21481 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21482 | $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] | 21483 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21484 | ld_shlibs_F77=no |
| 21485 | fi |
| 21486 | ;; |
| 21487 | |
| 21488 | interix3*) |
| 21489 | hardcode_direct_F77=no |
| 21490 | hardcode_shlibpath_var_F77=no |
| 21491 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21492 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21493 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21494 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21495 | # default) and relocated if they conflict, which is a slow very memory |
| 21496 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21497 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21498 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21499 | 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' |
| 21500 | 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' |
| 21501 | ;; |
| 21502 | |
| 21503 | linux*) |
| 21504 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21505 | tmp_addflag= |
| 21506 | case $cc_basename,$host_cpu in |
| 21507 | pgcc*) # Portland Group C compiler |
| 21508 | 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' |
| 21509 | tmp_addflag=' $pic_flag' |
| 21510 | ;; |
| 21511 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21512 | 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' |
| 21513 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21514 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21515 | tmp_addflag=' -i_dynamic' ;; |
| 21516 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21517 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21518 | ifc* | ifort*) # Intel Fortran compiler |
| 21519 | tmp_addflag=' -nofor_main' ;; |
| 21520 | esac |
| 21521 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21522 | |
| 21523 | if test $supports_anon_versioning = yes; then |
| 21524 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21525 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21526 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21527 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21528 | fi |
| 21529 | else |
| 21530 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21531 | fi |
| 21532 | ;; |
| 21533 | |
| 21534 | netbsd*) |
| 21535 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21536 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21537 | wlarc= |
| 21538 | else |
| 21539 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21540 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21541 | fi |
| 21542 | ;; |
| 21543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21544 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21545 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21546 | ld_shlibs_F77=no |
| 21547 | cat <<EOF 1>&2 |
| 21548 | |
| 21549 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21550 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21551 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21552 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21553 | *** your PATH or compiler configuration so that the native linker is |
| 21554 | *** used, and then restart. |
| 21555 | |
| 21556 | EOF |
| 21557 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21558 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21559 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21560 | else |
| 21561 | ld_shlibs_F77=no |
| 21562 | fi |
| 21563 | ;; |
| 21564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21565 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21566 | case `$LD -v 2>&1` in |
| 21567 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21568 | ld_shlibs_F77=no |
| 21569 | cat <<_LT_EOF 1>&2 |
| 21570 | |
| 21571 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21572 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21573 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21574 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21575 | *** your PATH or compiler configuration so that the native linker is |
| 21576 | *** used, and then restart. |
| 21577 | |
| 21578 | _LT_EOF |
| 21579 | ;; |
| 21580 | *) |
| 21581 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21582 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21583 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21584 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21585 | else |
| 21586 | ld_shlibs_F77=no |
| 21587 | fi |
| 21588 | ;; |
| 21589 | esac |
| 21590 | ;; |
| 21591 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21592 | sunos4*) |
| 21593 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21594 | wlarc= |
| 21595 | hardcode_direct_F77=yes |
| 21596 | hardcode_shlibpath_var_F77=no |
| 21597 | ;; |
| 21598 | |
| 21599 | *) |
| 21600 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21601 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21602 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21603 | else |
| 21604 | ld_shlibs_F77=no |
| 21605 | fi |
| 21606 | ;; |
| 21607 | esac |
| 21608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21609 | if test "$ld_shlibs_F77" = no; then |
| 21610 | runpath_var= |
| 21611 | hardcode_libdir_flag_spec_F77= |
| 21612 | export_dynamic_flag_spec_F77= |
| 21613 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21614 | fi |
| 21615 | else |
| 21616 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21617 | case $host_os in |
| 21618 | aix3*) |
| 21619 | allow_undefined_flag_F77=unsupported |
| 21620 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21621 | 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] | 21622 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21623 | # are no directories specified by -L. |
| 21624 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21625 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21626 | # Neither direct hardcoding nor static linking is supported with a |
| 21627 | # broken collect2. |
| 21628 | hardcode_direct_F77=unsupported |
| 21629 | fi |
| 21630 | ;; |
| 21631 | |
| 21632 | aix4* | aix5*) |
| 21633 | if test "$host_cpu" = ia64; then |
| 21634 | # On IA64, the linker does run time linking by default, so we don't |
| 21635 | # have to do anything special. |
| 21636 | aix_use_runtimelinking=no |
| 21637 | exp_sym_flag='-Bexport' |
| 21638 | no_entry_flag="" |
| 21639 | else |
| 21640 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21641 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21642 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21643 | 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' |
| 21644 | else |
| 21645 | 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' |
| 21646 | fi |
| 21647 | aix_use_runtimelinking=no |
| 21648 | |
| 21649 | # Test if we are trying to use run time linking or normal |
| 21650 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21651 | # need to do runtime linking. |
| 21652 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21653 | for ld_flag in $LDFLAGS; do |
| 21654 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21655 | aix_use_runtimelinking=yes |
| 21656 | break |
| 21657 | fi |
| 21658 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21659 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21660 | esac |
| 21661 | |
| 21662 | exp_sym_flag='-bexport' |
| 21663 | no_entry_flag='-bnoentry' |
| 21664 | fi |
| 21665 | |
| 21666 | # When large executables or shared objects are built, AIX ld can |
| 21667 | # have problems creating the table of contents. If linking a library |
| 21668 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21669 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21670 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21671 | |
| 21672 | archive_cmds_F77='' |
| 21673 | hardcode_direct_F77=yes |
| 21674 | hardcode_libdir_separator_F77=':' |
| 21675 | link_all_deplibs_F77=yes |
| 21676 | |
| 21677 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21678 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | # We only want to do this on AIX 4.2 and lower, the check |
| 21680 | # below for broken collect2 doesn't work under 4.3+ |
| 21681 | collect2name=`${CC} -print-prog-name=collect2` |
| 21682 | if test -f "$collect2name" && \ |
| 21683 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21684 | then |
| 21685 | # We have reworked collect2 |
| 21686 | hardcode_direct_F77=yes |
| 21687 | else |
| 21688 | # We have old collect2 |
| 21689 | hardcode_direct_F77=unsupported |
| 21690 | # It fails to find uninstalled libraries when the uninstalled |
| 21691 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21692 | # to unsupported forces relinking |
| 21693 | hardcode_minus_L_F77=yes |
| 21694 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21695 | hardcode_libdir_separator_F77= |
| 21696 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21697 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21698 | esac |
| 21699 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | if test "$aix_use_runtimelinking" = yes; then |
| 21701 | shared_flag="$shared_flag "'${wl}-G' |
| 21702 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21703 | else |
| 21704 | # not using gcc |
| 21705 | if test "$host_cpu" = ia64; then |
| 21706 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21707 | # chokes on -Wl,-G. The following line is correct: |
| 21708 | shared_flag='-G' |
| 21709 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21710 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21711 | shared_flag='${wl}-G' |
| 21712 | else |
| 21713 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21714 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21715 | fi |
| 21716 | fi |
| 21717 | |
| 21718 | # It seems that -bexpall does not export symbols beginning with |
| 21719 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21720 | always_export_symbols_F77=yes |
| 21721 | if test "$aix_use_runtimelinking" = yes; then |
| 21722 | # Warning - without using the other runtime loading flags (-brtl), |
| 21723 | # -berok will link without error, but may produce a broken library. |
| 21724 | allow_undefined_flag_F77='-berok' |
| 21725 | # Determine the default libpath from the value encoded in an empty executable. |
| 21726 | cat >conftest.$ac_ext <<_ACEOF |
| 21727 | program main |
| 21728 | |
| 21729 | end |
| 21730 | _ACEOF |
| 21731 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21732 | if { (ac_try="$ac_link" |
| 21733 | case "(($ac_try" in |
| 21734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21735 | *) ac_try_echo=$ac_try;; |
| 21736 | esac |
| 21737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21738 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21739 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21741 | rm -f conftest.er1 |
| 21742 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21744 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21745 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21746 | { (case "(($ac_try" in |
| 21747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21748 | *) ac_try_echo=$ac_try;; |
| 21749 | esac |
| 21750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21751 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21752 | ac_status=$? |
| 21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21754 | (exit $ac_status); }; } && |
| 21755 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21756 | { (case "(($ac_try" in |
| 21757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21758 | *) ac_try_echo=$ac_try;; |
| 21759 | esac |
| 21760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21761 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21762 | ac_status=$? |
| 21763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21764 | (exit $ac_status); }; }; then |
| 21765 | |
| 21766 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21767 | }'` |
| 21768 | # Check for a 64-bit object if we didn't find anything. |
| 21769 | 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; } |
| 21770 | }'`; fi |
| 21771 | else |
| 21772 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21775 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21776 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21777 | |
| 21778 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21779 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21780 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21781 | |
| 21782 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21783 | 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] | 21784 | else |
| 21785 | if test "$host_cpu" = ia64; then |
| 21786 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21787 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21788 | 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] | 21789 | else |
| 21790 | # Determine the default libpath from the value encoded in an empty executable. |
| 21791 | cat >conftest.$ac_ext <<_ACEOF |
| 21792 | program main |
| 21793 | |
| 21794 | end |
| 21795 | _ACEOF |
| 21796 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21797 | if { (ac_try="$ac_link" |
| 21798 | case "(($ac_try" in |
| 21799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21800 | *) ac_try_echo=$ac_try;; |
| 21801 | esac |
| 21802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21803 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21804 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21806 | rm -f conftest.er1 |
| 21807 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21809 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21810 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21811 | { (case "(($ac_try" in |
| 21812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21813 | *) ac_try_echo=$ac_try;; |
| 21814 | esac |
| 21815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21816 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21817 | ac_status=$? |
| 21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21819 | (exit $ac_status); }; } && |
| 21820 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21821 | { (case "(($ac_try" in |
| 21822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21823 | *) ac_try_echo=$ac_try;; |
| 21824 | esac |
| 21825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21826 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21827 | ac_status=$? |
| 21828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21829 | (exit $ac_status); }; }; then |
| 21830 | |
| 21831 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21832 | }'` |
| 21833 | # Check for a 64-bit object if we didn't find anything. |
| 21834 | 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; } |
| 21835 | }'`; fi |
| 21836 | else |
| 21837 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21839 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21840 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21841 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21842 | |
| 21843 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21844 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21845 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21846 | |
| 21847 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21848 | # Warning - without using the other run time loading flags, |
| 21849 | # -berok will link without error, but may produce a broken library. |
| 21850 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 21851 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21852 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21853 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21854 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21855 | # This is similar to how AIX traditionally builds its shared libraries. |
| 21856 | 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] | 21857 | fi |
| 21858 | fi |
| 21859 | ;; |
| 21860 | |
| 21861 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21862 | 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] | 21863 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21864 | hardcode_minus_L_F77=yes |
| 21865 | # see comment about different semantics on the GNU ld section |
| 21866 | ld_shlibs_F77=no |
| 21867 | ;; |
| 21868 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21869 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21870 | export_dynamic_flag_spec_F77=-rdynamic |
| 21871 | ;; |
| 21872 | |
| 21873 | cygwin* | mingw* | pw32*) |
| 21874 | # When not using gcc, we currently assume that we are using |
| 21875 | # Microsoft Visual C++. |
| 21876 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21877 | # no search path for DLLs. |
| 21878 | hardcode_libdir_flag_spec_F77=' ' |
| 21879 | allow_undefined_flag_F77=unsupported |
| 21880 | # Tell ltmain to make .lib files, not .a files. |
| 21881 | libext=lib |
| 21882 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21883 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21884 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21885 | 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] | 21886 | # The linker will automatically build a .lib file if we build a DLL. |
| 21887 | old_archive_From_new_cmds_F77='true' |
| 21888 | # FIXME: Should let the user specify the lib program. |
| 21889 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21890 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21891 | enable_shared_with_static_runtimes_F77=yes |
| 21892 | ;; |
| 21893 | |
| 21894 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21895 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21896 | rhapsody* | darwin1.[012]) |
| 21897 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 21898 | ;; |
| 21899 | *) # Darwin 1.3 on |
| 21900 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21901 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21902 | else |
| 21903 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21904 | 10.[012]) |
| 21905 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21906 | ;; |
| 21907 | 10.*) |
| 21908 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 21909 | ;; |
| 21910 | esac |
| 21911 | fi |
| 21912 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21913 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21914 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21915 | hardcode_direct_F77=no |
| 21916 | hardcode_automatic_F77=yes |
| 21917 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21918 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21919 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21920 | if test "$GCC" = yes ; then |
| 21921 | output_verbose_link_cmd='echo' |
| 21922 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21923 | 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] | 21924 | # 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] | 21925 | 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}' |
| 21926 | 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] | 21927 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21928 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21929 | xlc*) |
| 21930 | output_verbose_link_cmd='echo' |
| 21931 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21932 | 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] | 21933 | # 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] | 21934 | 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}' |
| 21935 | 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] | 21936 | ;; |
| 21937 | *) |
| 21938 | ld_shlibs_F77=no |
| 21939 | ;; |
| 21940 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21941 | fi |
| 21942 | ;; |
| 21943 | |
| 21944 | dgux*) |
| 21945 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21946 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21947 | hardcode_shlibpath_var_F77=no |
| 21948 | ;; |
| 21949 | |
| 21950 | freebsd1*) |
| 21951 | ld_shlibs_F77=no |
| 21952 | ;; |
| 21953 | |
| 21954 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21955 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21956 | # does not break anything, and helps significantly (at the cost of a little |
| 21957 | # extra space). |
| 21958 | freebsd2.2*) |
| 21959 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21960 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21961 | hardcode_direct_F77=yes |
| 21962 | hardcode_shlibpath_var_F77=no |
| 21963 | ;; |
| 21964 | |
| 21965 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21966 | freebsd2*) |
| 21967 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21968 | hardcode_direct_F77=yes |
| 21969 | hardcode_minus_L_F77=yes |
| 21970 | hardcode_shlibpath_var_F77=no |
| 21971 | ;; |
| 21972 | |
| 21973 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21974 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21975 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21976 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21977 | hardcode_direct_F77=yes |
| 21978 | hardcode_shlibpath_var_F77=no |
| 21979 | ;; |
| 21980 | |
| 21981 | hpux9*) |
| 21982 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21983 | 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] | 21984 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21985 | 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] | 21986 | fi |
| 21987 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21988 | hardcode_libdir_separator_F77=: |
| 21989 | hardcode_direct_F77=yes |
| 21990 | |
| 21991 | # hardcode_minus_L: Not really in the search PATH, |
| 21992 | # but as the default location of the library. |
| 21993 | hardcode_minus_L_F77=yes |
| 21994 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21995 | ;; |
| 21996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21997 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21998 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21999 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22000 | else |
| 22001 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 22002 | fi |
| 22003 | if test "$with_gnu_ld" = no; then |
| 22004 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22005 | hardcode_libdir_separator_F77=: |
| 22006 | |
| 22007 | hardcode_direct_F77=yes |
| 22008 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22009 | |
| 22010 | # hardcode_minus_L: Not really in the search PATH, |
| 22011 | # but as the default location of the library. |
| 22012 | hardcode_minus_L_F77=yes |
| 22013 | fi |
| 22014 | ;; |
| 22015 | |
| 22016 | hpux11*) |
| 22017 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22018 | case $host_cpu in |
| 22019 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22020 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22021 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22022 | ia64*) |
| 22023 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22024 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22025 | *) |
| 22026 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22027 | ;; |
| 22028 | esac |
| 22029 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22030 | case $host_cpu in |
| 22031 | hppa*64*) |
| 22032 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22033 | ;; |
| 22034 | ia64*) |
| 22035 | 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] | 22036 | ;; |
| 22037 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22038 | 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] | 22039 | ;; |
| 22040 | esac |
| 22041 | fi |
| 22042 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22043 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22044 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22045 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22046 | case $host_cpu in |
| 22047 | hppa*64*|ia64*) |
| 22048 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22049 | hardcode_direct_F77=no |
| 22050 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22051 | ;; |
| 22052 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22053 | hardcode_direct_F77=yes |
| 22054 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22055 | |
| 22056 | # hardcode_minus_L: Not really in the search PATH, |
| 22057 | # but as the default location of the library. |
| 22058 | hardcode_minus_L_F77=yes |
| 22059 | ;; |
| 22060 | esac |
| 22061 | fi |
| 22062 | ;; |
| 22063 | |
| 22064 | irix5* | irix6* | nonstopux*) |
| 22065 | if test "$GCC" = yes; then |
| 22066 | 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' |
| 22067 | else |
| 22068 | 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' |
| 22069 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22070 | fi |
| 22071 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22072 | hardcode_libdir_separator_F77=: |
| 22073 | link_all_deplibs_F77=yes |
| 22074 | ;; |
| 22075 | |
| 22076 | netbsd*) |
| 22077 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22078 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22079 | else |
| 22080 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22081 | fi |
| 22082 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22083 | hardcode_direct_F77=yes |
| 22084 | hardcode_shlibpath_var_F77=no |
| 22085 | ;; |
| 22086 | |
| 22087 | newsos6) |
| 22088 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22089 | hardcode_direct_F77=yes |
| 22090 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22091 | hardcode_libdir_separator_F77=: |
| 22092 | hardcode_shlibpath_var_F77=no |
| 22093 | ;; |
| 22094 | |
| 22095 | openbsd*) |
| 22096 | hardcode_direct_F77=yes |
| 22097 | hardcode_shlibpath_var_F77=no |
| 22098 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22099 | 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] | 22100 | 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] | 22101 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22102 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22103 | else |
| 22104 | case $host_os in |
| 22105 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22106 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22107 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22108 | ;; |
| 22109 | *) |
| 22110 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22111 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22112 | ;; |
| 22113 | esac |
| 22114 | fi |
| 22115 | ;; |
| 22116 | |
| 22117 | os2*) |
| 22118 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22119 | hardcode_minus_L_F77=yes |
| 22120 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22121 | 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] | 22122 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22123 | ;; |
| 22124 | |
| 22125 | osf3*) |
| 22126 | if test "$GCC" = yes; then |
| 22127 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22128 | 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' |
| 22129 | else |
| 22130 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22131 | 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' |
| 22132 | fi |
| 22133 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22134 | hardcode_libdir_separator_F77=: |
| 22135 | ;; |
| 22136 | |
| 22137 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22138 | if test "$GCC" = yes; then |
| 22139 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22140 | 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' |
| 22141 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22142 | else |
| 22143 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22144 | 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] | 22145 | 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] | 22146 | $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] | 22147 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22148 | # Both c and cxx compiler support -rpath directly |
| 22149 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22150 | fi |
| 22151 | hardcode_libdir_separator_F77=: |
| 22152 | ;; |
| 22153 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22154 | solaris*) |
| 22155 | no_undefined_flag_F77=' -z text' |
| 22156 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22157 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22158 | 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] | 22159 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22160 | $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] | 22161 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22162 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22163 | 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] | 22164 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22165 | $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] | 22166 | fi |
| 22167 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22168 | hardcode_shlibpath_var_F77=no |
| 22169 | case $host_os in |
| 22170 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22171 | *) |
| 22172 | # The compiler driver will combine linker options so we |
| 22173 | # cannot just pass the convience library names through |
| 22174 | # without $wl, iff we do not link with $LD. |
| 22175 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22176 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22177 | case $wlarc in |
| 22178 | '') |
| 22179 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22180 | *) |
| 22181 | 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' ;; |
| 22182 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22183 | esac |
| 22184 | link_all_deplibs_F77=yes |
| 22185 | ;; |
| 22186 | |
| 22187 | sunos4*) |
| 22188 | if test "x$host_vendor" = xsequent; then |
| 22189 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22190 | # files that make .init and .fini sections work. |
| 22191 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22192 | else |
| 22193 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22194 | fi |
| 22195 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22196 | hardcode_direct_F77=yes |
| 22197 | hardcode_minus_L_F77=yes |
| 22198 | hardcode_shlibpath_var_F77=no |
| 22199 | ;; |
| 22200 | |
| 22201 | sysv4) |
| 22202 | case $host_vendor in |
| 22203 | sni) |
| 22204 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22205 | hardcode_direct_F77=yes # is this really true??? |
| 22206 | ;; |
| 22207 | siemens) |
| 22208 | ## LD is ld it makes a PLAMLIB |
| 22209 | ## CC just makes a GrossModule. |
| 22210 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22211 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22212 | hardcode_direct_F77=no |
| 22213 | ;; |
| 22214 | motorola) |
| 22215 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22216 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22217 | ;; |
| 22218 | esac |
| 22219 | runpath_var='LD_RUN_PATH' |
| 22220 | hardcode_shlibpath_var_F77=no |
| 22221 | ;; |
| 22222 | |
| 22223 | sysv4.3*) |
| 22224 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22225 | hardcode_shlibpath_var_F77=no |
| 22226 | export_dynamic_flag_spec_F77='-Bexport' |
| 22227 | ;; |
| 22228 | |
| 22229 | sysv4*MP*) |
| 22230 | if test -d /usr/nec; then |
| 22231 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22232 | hardcode_shlibpath_var_F77=no |
| 22233 | runpath_var=LD_RUN_PATH |
| 22234 | hardcode_runpath_var=yes |
| 22235 | ld_shlibs_F77=yes |
| 22236 | fi |
| 22237 | ;; |
| 22238 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22239 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22240 | no_undefined_flag_F77='${wl}-z,text' |
| 22241 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22242 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22243 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22244 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22245 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22246 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22247 | 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] | 22248 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22249 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22250 | 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] | 22251 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22252 | ;; |
| 22253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22254 | sysv5* | sco3.2v5* | sco5v6*) |
| 22255 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22256 | # link with -lc, and that would cause any symbols used from libc to |
| 22257 | # always be unresolved, which means just about no library would |
| 22258 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22259 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22260 | # as -z defs. |
| 22261 | no_undefined_flag_F77='${wl}-z,text' |
| 22262 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22263 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22264 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22265 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22266 | hardcode_libdir_separator_F77=':' |
| 22267 | link_all_deplibs_F77=yes |
| 22268 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22269 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22270 | |
| 22271 | if test "$GCC" = yes; then |
| 22272 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22273 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22274 | else |
| 22275 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22276 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22277 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22278 | ;; |
| 22279 | |
| 22280 | uts4*) |
| 22281 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22282 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22283 | hardcode_shlibpath_var_F77=no |
| 22284 | ;; |
| 22285 | |
| 22286 | *) |
| 22287 | ld_shlibs_F77=no |
| 22288 | ;; |
| 22289 | esac |
| 22290 | fi |
| 22291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22292 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22293 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22294 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22296 | # |
| 22297 | # Do we need to explicitly link libc? |
| 22298 | # |
| 22299 | case "x$archive_cmds_need_lc_F77" in |
| 22300 | x|xyes) |
| 22301 | # Assume -lc should be added |
| 22302 | archive_cmds_need_lc_F77=yes |
| 22303 | |
| 22304 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22305 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22306 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22307 | # FIXME: we may have to deal with multi-command sequences. |
| 22308 | ;; |
| 22309 | '$CC '*) |
| 22310 | # Test whether the compiler implicitly links with -lc since on some |
| 22311 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22312 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22313 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22314 | 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] | 22315 | $rm conftest* |
| 22316 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22317 | |
| 22318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22319 | (eval $ac_compile) 2>&5 |
| 22320 | ac_status=$? |
| 22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22322 | (exit $ac_status); } 2>conftest.err; then |
| 22323 | soname=conftest |
| 22324 | lib=conftest |
| 22325 | libobjs=conftest.$ac_objext |
| 22326 | deplibs= |
| 22327 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22328 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22329 | compiler_flags=-v |
| 22330 | linker_flags=-v |
| 22331 | verstring= |
| 22332 | output_objdir=. |
| 22333 | libname=conftest |
| 22334 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22335 | allow_undefined_flag_F77= |
| 22336 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22337 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22338 | ac_status=$? |
| 22339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22340 | (exit $ac_status); } |
| 22341 | then |
| 22342 | archive_cmds_need_lc_F77=no |
| 22343 | else |
| 22344 | archive_cmds_need_lc_F77=yes |
| 22345 | fi |
| 22346 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22347 | else |
| 22348 | cat conftest.err 1>&5 |
| 22349 | fi |
| 22350 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22351 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22352 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22353 | ;; |
| 22354 | esac |
| 22355 | fi |
| 22356 | ;; |
| 22357 | esac |
| 22358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22359 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22360 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22361 | library_names_spec= |
| 22362 | libname_spec='lib$name' |
| 22363 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22364 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22365 | postinstall_cmds= |
| 22366 | postuninstall_cmds= |
| 22367 | finish_cmds= |
| 22368 | finish_eval= |
| 22369 | shlibpath_var= |
| 22370 | shlibpath_overrides_runpath=unknown |
| 22371 | version_type=none |
| 22372 | dynamic_linker="$host_os ld.so" |
| 22373 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22374 | if test "$GCC" = yes; then |
| 22375 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22376 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22377 | # if the path contains ";" then we assume it to be the separator |
| 22378 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22379 | # assumed that no part of a normal pathname contains ";" but that should |
| 22380 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22381 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22382 | else |
| 22383 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22384 | fi |
| 22385 | else |
| 22386 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22387 | fi |
| 22388 | need_lib_prefix=unknown |
| 22389 | hardcode_into_libs=no |
| 22390 | |
| 22391 | # when you set need_version to no, make sure it does not cause -set_version |
| 22392 | # flags to be left without arguments |
| 22393 | need_version=unknown |
| 22394 | |
| 22395 | case $host_os in |
| 22396 | aix3*) |
| 22397 | version_type=linux |
| 22398 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22399 | shlibpath_var=LIBPATH |
| 22400 | |
| 22401 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22402 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22403 | ;; |
| 22404 | |
| 22405 | aix4* | aix5*) |
| 22406 | version_type=linux |
| 22407 | need_lib_prefix=no |
| 22408 | need_version=no |
| 22409 | hardcode_into_libs=yes |
| 22410 | if test "$host_cpu" = ia64; then |
| 22411 | # AIX 5 supports IA64 |
| 22412 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22413 | shlibpath_var=LD_LIBRARY_PATH |
| 22414 | else |
| 22415 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22416 | # for dependence libraries. The import file would start with |
| 22417 | # the line `#! .'. This would cause the generated library to |
| 22418 | # depend on `.', always an invalid library. This was fixed in |
| 22419 | # development snapshots of GCC prior to 3.0. |
| 22420 | case $host_os in |
| 22421 | aix4 | aix4.[01] | aix4.[01].*) |
| 22422 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22423 | echo ' yes ' |
| 22424 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22425 | : |
| 22426 | else |
| 22427 | can_build_shared=no |
| 22428 | fi |
| 22429 | ;; |
| 22430 | esac |
| 22431 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22432 | # soname into executable. Probably we can add versioning support to |
| 22433 | # collect2, so additional links can be useful in future. |
| 22434 | if test "$aix_use_runtimelinking" = yes; then |
| 22435 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22436 | # instead of lib<name>.a to let people know that these are not |
| 22437 | # typical AIX shared libraries. |
| 22438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22439 | else |
| 22440 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22441 | # and later when we are not doing run time linking. |
| 22442 | library_names_spec='${libname}${release}.a $libname.a' |
| 22443 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22444 | fi |
| 22445 | shlibpath_var=LIBPATH |
| 22446 | fi |
| 22447 | ;; |
| 22448 | |
| 22449 | amigaos*) |
| 22450 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22451 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22452 | 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] | 22453 | ;; |
| 22454 | |
| 22455 | beos*) |
| 22456 | library_names_spec='${libname}${shared_ext}' |
| 22457 | dynamic_linker="$host_os ld.so" |
| 22458 | shlibpath_var=LIBRARY_PATH |
| 22459 | ;; |
| 22460 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22461 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22462 | version_type=linux |
| 22463 | need_version=no |
| 22464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22467 | shlibpath_var=LD_LIBRARY_PATH |
| 22468 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22469 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22470 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22471 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22472 | # libtool to hard-code these into programs |
| 22473 | ;; |
| 22474 | |
| 22475 | cygwin* | mingw* | pw32*) |
| 22476 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22477 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22478 | need_version=no |
| 22479 | need_lib_prefix=no |
| 22480 | |
| 22481 | case $GCC,$host_os in |
| 22482 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22483 | library_names_spec='$libname.dll.a' |
| 22484 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22485 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22486 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22487 | dldir=$destdir/`dirname \$dlpath`~ |
| 22488 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22489 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22490 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22491 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22492 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22493 | $rm \$dlpath' |
| 22494 | shlibpath_overrides_runpath=yes |
| 22495 | |
| 22496 | case $host_os in |
| 22497 | cygwin*) |
| 22498 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22499 | 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] | 22500 | 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] | 22501 | ;; |
| 22502 | mingw*) |
| 22503 | # MinGW DLLs use traditional 'lib' prefix |
| 22504 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22505 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22506 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22507 | # It is most probably a Windows format PATH printed by |
| 22508 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22509 | # path with ; separators, and with drive letters. We can handle the |
| 22510 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22511 | # especially as we might pass files found there to a mingw objdump, |
| 22512 | # which wouldn't understand a cygwinified path. Ahh. |
| 22513 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22514 | else |
| 22515 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22516 | fi |
| 22517 | ;; |
| 22518 | pw32*) |
| 22519 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22520 | 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] | 22521 | ;; |
| 22522 | esac |
| 22523 | ;; |
| 22524 | |
| 22525 | *) |
| 22526 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22527 | ;; |
| 22528 | esac |
| 22529 | dynamic_linker='Win32 ld.exe' |
| 22530 | # FIXME: first we should search . and the directory the executable is in |
| 22531 | shlibpath_var=PATH |
| 22532 | ;; |
| 22533 | |
| 22534 | darwin* | rhapsody*) |
| 22535 | dynamic_linker="$host_os dyld" |
| 22536 | version_type=darwin |
| 22537 | need_lib_prefix=no |
| 22538 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22539 | 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] | 22540 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22541 | shlibpath_overrides_runpath=yes |
| 22542 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22543 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22544 | # 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] | 22545 | if test "$GCC" = yes; then |
| 22546 | 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"` |
| 22547 | else |
| 22548 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22549 | fi |
| 22550 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22551 | ;; |
| 22552 | |
| 22553 | dgux*) |
| 22554 | version_type=linux |
| 22555 | need_lib_prefix=no |
| 22556 | need_version=no |
| 22557 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22558 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22559 | shlibpath_var=LD_LIBRARY_PATH |
| 22560 | ;; |
| 22561 | |
| 22562 | freebsd1*) |
| 22563 | dynamic_linker=no |
| 22564 | ;; |
| 22565 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22566 | kfreebsd*-gnu) |
| 22567 | version_type=linux |
| 22568 | need_lib_prefix=no |
| 22569 | need_version=no |
| 22570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22572 | shlibpath_var=LD_LIBRARY_PATH |
| 22573 | shlibpath_overrides_runpath=no |
| 22574 | hardcode_into_libs=yes |
| 22575 | dynamic_linker='GNU ld.so' |
| 22576 | ;; |
| 22577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22578 | freebsd* | dragonfly*) |
| 22579 | # DragonFly does not have aout. When/if they implement a new |
| 22580 | # versioning mechanism, adjust this. |
| 22581 | if test -x /usr/bin/objformat; then |
| 22582 | objformat=`/usr/bin/objformat` |
| 22583 | else |
| 22584 | case $host_os in |
| 22585 | freebsd[123]*) objformat=aout ;; |
| 22586 | *) objformat=elf ;; |
| 22587 | esac |
| 22588 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22589 | version_type=freebsd-$objformat |
| 22590 | case $version_type in |
| 22591 | freebsd-elf*) |
| 22592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22593 | need_version=no |
| 22594 | need_lib_prefix=no |
| 22595 | ;; |
| 22596 | freebsd-*) |
| 22597 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22598 | need_version=yes |
| 22599 | ;; |
| 22600 | esac |
| 22601 | shlibpath_var=LD_LIBRARY_PATH |
| 22602 | case $host_os in |
| 22603 | freebsd2*) |
| 22604 | shlibpath_overrides_runpath=yes |
| 22605 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22606 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22607 | shlibpath_overrides_runpath=yes |
| 22608 | hardcode_into_libs=yes |
| 22609 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22610 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22611 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22612 | shlibpath_overrides_runpath=no |
| 22613 | hardcode_into_libs=yes |
| 22614 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22615 | freebsd*) # from 4.6 on |
| 22616 | shlibpath_overrides_runpath=yes |
| 22617 | hardcode_into_libs=yes |
| 22618 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22619 | esac |
| 22620 | ;; |
| 22621 | |
| 22622 | gnu*) |
| 22623 | version_type=linux |
| 22624 | need_lib_prefix=no |
| 22625 | need_version=no |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 22629 | hardcode_into_libs=yes |
| 22630 | ;; |
| 22631 | |
| 22632 | hpux9* | hpux10* | hpux11*) |
| 22633 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22634 | # link against other versions. |
| 22635 | version_type=sunos |
| 22636 | need_lib_prefix=no |
| 22637 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22638 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22639 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22640 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22641 | hardcode_into_libs=yes |
| 22642 | dynamic_linker="$host_os dld.so" |
| 22643 | shlibpath_var=LD_LIBRARY_PATH |
| 22644 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22646 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22647 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22648 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22649 | else |
| 22650 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22651 | fi |
| 22652 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22653 | ;; |
| 22654 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22655 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22656 | hardcode_into_libs=yes |
| 22657 | dynamic_linker="$host_os dld.sl" |
| 22658 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22659 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22662 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22663 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22664 | ;; |
| 22665 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22666 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22667 | dynamic_linker="$host_os dld.sl" |
| 22668 | shlibpath_var=SHLIB_PATH |
| 22669 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 22670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22671 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22672 | ;; |
| 22673 | esac |
| 22674 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22675 | postinstall_cmds='chmod 555 $lib' |
| 22676 | ;; |
| 22677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22678 | interix3*) |
| 22679 | version_type=linux |
| 22680 | need_lib_prefix=no |
| 22681 | need_version=no |
| 22682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22683 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22684 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22685 | shlibpath_var=LD_LIBRARY_PATH |
| 22686 | shlibpath_overrides_runpath=no |
| 22687 | hardcode_into_libs=yes |
| 22688 | ;; |
| 22689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22690 | irix5* | irix6* | nonstopux*) |
| 22691 | case $host_os in |
| 22692 | nonstopux*) version_type=nonstopux ;; |
| 22693 | *) |
| 22694 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22695 | version_type=linux |
| 22696 | else |
| 22697 | version_type=irix |
| 22698 | fi ;; |
| 22699 | esac |
| 22700 | need_lib_prefix=no |
| 22701 | need_version=no |
| 22702 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22703 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22704 | case $host_os in |
| 22705 | irix5* | nonstopux*) |
| 22706 | libsuff= shlibsuff= |
| 22707 | ;; |
| 22708 | *) |
| 22709 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22710 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22711 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22712 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22713 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22714 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22715 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22716 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22717 | esac |
| 22718 | ;; |
| 22719 | esac |
| 22720 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22721 | shlibpath_overrides_runpath=no |
| 22722 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22723 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22724 | hardcode_into_libs=yes |
| 22725 | ;; |
| 22726 | |
| 22727 | # No shared lib support for Linux oldld, aout, or coff. |
| 22728 | linux*oldld* | linux*aout* | linux*coff*) |
| 22729 | dynamic_linker=no |
| 22730 | ;; |
| 22731 | |
| 22732 | # This must be Linux ELF. |
| 22733 | linux*) |
| 22734 | version_type=linux |
| 22735 | need_lib_prefix=no |
| 22736 | need_version=no |
| 22737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22738 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22739 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22740 | shlibpath_var=LD_LIBRARY_PATH |
| 22741 | shlibpath_overrides_runpath=no |
| 22742 | # This implies no fast_install, which is unacceptable. |
| 22743 | # Some rework will be needed to allow for fast_install |
| 22744 | # before this can be enabled. |
| 22745 | hardcode_into_libs=yes |
| 22746 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22747 | # Append ld.so.conf contents to the search path |
| 22748 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22749 | 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] | 22750 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22751 | fi |
| 22752 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22753 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22754 | # powerpc, because MkLinux only supported shared libraries with the |
| 22755 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22756 | # most powerpc-linux boxes support dynamic linking these days and |
| 22757 | # people can always --disable-shared, the test was removed, and we |
| 22758 | # assume the GNU/Linux dynamic linker is in use. |
| 22759 | dynamic_linker='GNU/Linux ld.so' |
| 22760 | ;; |
| 22761 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22762 | knetbsd*-gnu) |
| 22763 | version_type=linux |
| 22764 | need_lib_prefix=no |
| 22765 | need_version=no |
| 22766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22768 | shlibpath_var=LD_LIBRARY_PATH |
| 22769 | shlibpath_overrides_runpath=no |
| 22770 | hardcode_into_libs=yes |
| 22771 | dynamic_linker='GNU ld.so' |
| 22772 | ;; |
| 22773 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22774 | netbsd*) |
| 22775 | version_type=sunos |
| 22776 | need_lib_prefix=no |
| 22777 | need_version=no |
| 22778 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22780 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22781 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22782 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22783 | 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] | 22784 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22785 | dynamic_linker='NetBSD ld.elf_so' |
| 22786 | fi |
| 22787 | shlibpath_var=LD_LIBRARY_PATH |
| 22788 | shlibpath_overrides_runpath=yes |
| 22789 | hardcode_into_libs=yes |
| 22790 | ;; |
| 22791 | |
| 22792 | newsos6) |
| 22793 | version_type=linux |
| 22794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22795 | shlibpath_var=LD_LIBRARY_PATH |
| 22796 | shlibpath_overrides_runpath=yes |
| 22797 | ;; |
| 22798 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22799 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22800 | version_type=linux |
| 22801 | need_lib_prefix=no |
| 22802 | need_version=no |
| 22803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22805 | shlibpath_var=LD_LIBRARY_PATH |
| 22806 | shlibpath_overrides_runpath=yes |
| 22807 | ;; |
| 22808 | |
| 22809 | openbsd*) |
| 22810 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22811 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22812 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22813 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 22814 | case $host_os in |
| 22815 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 22816 | *) need_version=no ;; |
| 22817 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22819 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22820 | shlibpath_var=LD_LIBRARY_PATH |
| 22821 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22822 | case $host_os in |
| 22823 | openbsd2.[89] | openbsd2.[89].*) |
| 22824 | shlibpath_overrides_runpath=no |
| 22825 | ;; |
| 22826 | *) |
| 22827 | shlibpath_overrides_runpath=yes |
| 22828 | ;; |
| 22829 | esac |
| 22830 | else |
| 22831 | shlibpath_overrides_runpath=yes |
| 22832 | fi |
| 22833 | ;; |
| 22834 | |
| 22835 | os2*) |
| 22836 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22837 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22838 | need_lib_prefix=no |
| 22839 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22840 | dynamic_linker='OS/2 ld.exe' |
| 22841 | shlibpath_var=LIBPATH |
| 22842 | ;; |
| 22843 | |
| 22844 | osf3* | osf4* | osf5*) |
| 22845 | version_type=osf |
| 22846 | need_lib_prefix=no |
| 22847 | need_version=no |
| 22848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22850 | shlibpath_var=LD_LIBRARY_PATH |
| 22851 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22852 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22853 | ;; |
| 22854 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22855 | solaris*) |
| 22856 | version_type=linux |
| 22857 | need_lib_prefix=no |
| 22858 | need_version=no |
| 22859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22860 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22861 | shlibpath_var=LD_LIBRARY_PATH |
| 22862 | shlibpath_overrides_runpath=yes |
| 22863 | hardcode_into_libs=yes |
| 22864 | # ldd complains unless libraries are executable |
| 22865 | postinstall_cmds='chmod +x $lib' |
| 22866 | ;; |
| 22867 | |
| 22868 | sunos4*) |
| 22869 | version_type=sunos |
| 22870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22871 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22872 | shlibpath_var=LD_LIBRARY_PATH |
| 22873 | shlibpath_overrides_runpath=yes |
| 22874 | if test "$with_gnu_ld" = yes; then |
| 22875 | need_lib_prefix=no |
| 22876 | fi |
| 22877 | need_version=yes |
| 22878 | ;; |
| 22879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22880 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22881 | version_type=linux |
| 22882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22884 | shlibpath_var=LD_LIBRARY_PATH |
| 22885 | case $host_vendor in |
| 22886 | sni) |
| 22887 | shlibpath_overrides_runpath=no |
| 22888 | need_lib_prefix=no |
| 22889 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22890 | runpath_var=LD_RUN_PATH |
| 22891 | ;; |
| 22892 | siemens) |
| 22893 | need_lib_prefix=no |
| 22894 | ;; |
| 22895 | motorola) |
| 22896 | need_lib_prefix=no |
| 22897 | need_version=no |
| 22898 | shlibpath_overrides_runpath=no |
| 22899 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22900 | ;; |
| 22901 | esac |
| 22902 | ;; |
| 22903 | |
| 22904 | sysv4*MP*) |
| 22905 | if test -d /usr/nec ;then |
| 22906 | version_type=linux |
| 22907 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22908 | soname_spec='$libname${shared_ext}.$major' |
| 22909 | shlibpath_var=LD_LIBRARY_PATH |
| 22910 | fi |
| 22911 | ;; |
| 22912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22913 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 22914 | version_type=freebsd-elf |
| 22915 | need_lib_prefix=no |
| 22916 | need_version=no |
| 22917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22918 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22919 | shlibpath_var=LD_LIBRARY_PATH |
| 22920 | hardcode_into_libs=yes |
| 22921 | if test "$with_gnu_ld" = yes; then |
| 22922 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 22923 | shlibpath_overrides_runpath=no |
| 22924 | else |
| 22925 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 22926 | shlibpath_overrides_runpath=yes |
| 22927 | case $host_os in |
| 22928 | sco3.2v5*) |
| 22929 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 22930 | ;; |
| 22931 | esac |
| 22932 | fi |
| 22933 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 22934 | ;; |
| 22935 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22936 | uts4*) |
| 22937 | version_type=linux |
| 22938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22939 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22940 | shlibpath_var=LD_LIBRARY_PATH |
| 22941 | ;; |
| 22942 | |
| 22943 | *) |
| 22944 | dynamic_linker=no |
| 22945 | ;; |
| 22946 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22947 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22948 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22949 | test "$dynamic_linker" = no && can_build_shared=no |
| 22950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22951 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22952 | if test "$GCC" = yes; then |
| 22953 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22954 | fi |
| 22955 | |
| 22956 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22957 | 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] | 22958 | hardcode_action_F77= |
| 22959 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 22960 | test -n "$runpath_var_F77" || \ |
| 22961 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22962 | |
| 22963 | # We can hardcode non-existant directories. |
| 22964 | if test "$hardcode_direct_F77" != no && |
| 22965 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22966 | # have to relink, otherwise we might link with an installed library |
| 22967 | # when we should be linking with a yet-to-be-installed one |
| 22968 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22969 | test "$hardcode_minus_L_F77" != no; then |
| 22970 | # Linking always hardcodes the temporary library directory. |
| 22971 | hardcode_action_F77=relink |
| 22972 | else |
| 22973 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22974 | hardcode_action_F77=immediate |
| 22975 | fi |
| 22976 | else |
| 22977 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22978 | # directories. |
| 22979 | hardcode_action_F77=unsupported |
| 22980 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22981 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22982 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22983 | |
| 22984 | if test "$hardcode_action_F77" = relink; then |
| 22985 | # Fast installation is not supported |
| 22986 | enable_fast_install=no |
| 22987 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22988 | test "$enable_shared" = no; then |
| 22989 | # Fast installation is not necessary |
| 22990 | enable_fast_install=needless |
| 22991 | fi |
| 22992 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22993 | |
| 22994 | # The else clause should only fire when bootstrapping the |
| 22995 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22996 | # with your package, and you will get complaints that there are |
| 22997 | # no rules to generate ltmain.sh. |
| 22998 | if test -f "$ltmain"; then |
| 22999 | # See if we are running on zsh, and set the options which allow our commands through |
| 23000 | # without removal of \ escapes. |
| 23001 | if test -n "${ZSH_VERSION+set}" ; then |
| 23002 | setopt NO_GLOB_SUBST |
| 23003 | fi |
| 23004 | # Now quote all the things that may contain metacharacters while being |
| 23005 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 23006 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23007 | 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] | 23008 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23009 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23010 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23011 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23012 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23013 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23014 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23015 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23016 | compiler_F77 \ |
| 23017 | CC_F77 \ |
| 23018 | LD_F77 \ |
| 23019 | lt_prog_compiler_wl_F77 \ |
| 23020 | lt_prog_compiler_pic_F77 \ |
| 23021 | lt_prog_compiler_static_F77 \ |
| 23022 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23023 | export_dynamic_flag_spec_F77 \ |
| 23024 | thread_safe_flag_spec_F77 \ |
| 23025 | whole_archive_flag_spec_F77 \ |
| 23026 | enable_shared_with_static_runtimes_F77 \ |
| 23027 | old_archive_cmds_F77 \ |
| 23028 | old_archive_from_new_cmds_F77 \ |
| 23029 | predep_objects_F77 \ |
| 23030 | postdep_objects_F77 \ |
| 23031 | predeps_F77 \ |
| 23032 | postdeps_F77 \ |
| 23033 | compiler_lib_search_path_F77 \ |
| 23034 | archive_cmds_F77 \ |
| 23035 | archive_expsym_cmds_F77 \ |
| 23036 | postinstall_cmds_F77 \ |
| 23037 | postuninstall_cmds_F77 \ |
| 23038 | old_archive_from_expsyms_cmds_F77 \ |
| 23039 | allow_undefined_flag_F77 \ |
| 23040 | no_undefined_flag_F77 \ |
| 23041 | export_symbols_cmds_F77 \ |
| 23042 | hardcode_libdir_flag_spec_F77 \ |
| 23043 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23044 | hardcode_libdir_separator_F77 \ |
| 23045 | hardcode_automatic_F77 \ |
| 23046 | module_cmds_F77 \ |
| 23047 | module_expsym_cmds_F77 \ |
| 23048 | lt_cv_prog_compiler_c_o_F77 \ |
| 23049 | exclude_expsyms_F77 \ |
| 23050 | include_expsyms_F77; do |
| 23051 | |
| 23052 | case $var in |
| 23053 | old_archive_cmds_F77 | \ |
| 23054 | old_archive_from_new_cmds_F77 | \ |
| 23055 | archive_cmds_F77 | \ |
| 23056 | archive_expsym_cmds_F77 | \ |
| 23057 | module_cmds_F77 | \ |
| 23058 | module_expsym_cmds_F77 | \ |
| 23059 | old_archive_from_expsyms_cmds_F77 | \ |
| 23060 | export_symbols_cmds_F77 | \ |
| 23061 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23062 | postinstall_cmds | postuninstall_cmds | \ |
| 23063 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23064 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23065 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23066 | 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] | 23067 | ;; |
| 23068 | *) |
| 23069 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23070 | ;; |
| 23071 | esac |
| 23072 | done |
| 23073 | |
| 23074 | case $lt_echo in |
| 23075 | *'\$0 --fallback-echo"') |
| 23076 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23077 | ;; |
| 23078 | esac |
| 23079 | |
| 23080 | cfgfile="$ofile" |
| 23081 | |
| 23082 | cat <<__EOF__ >> "$cfgfile" |
| 23083 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23084 | |
| 23085 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23086 | |
| 23087 | # Shell to use when invoking shell scripts. |
| 23088 | SHELL=$lt_SHELL |
| 23089 | |
| 23090 | # Whether or not to build shared libraries. |
| 23091 | build_libtool_libs=$enable_shared |
| 23092 | |
| 23093 | # Whether or not to build static libraries. |
| 23094 | build_old_libs=$enable_static |
| 23095 | |
| 23096 | # Whether or not to add -lc for building shared libraries. |
| 23097 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23098 | |
| 23099 | # Whether or not to disallow shared libs when runtime libs are static |
| 23100 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23101 | |
| 23102 | # Whether or not to optimize for fast installation. |
| 23103 | fast_install=$enable_fast_install |
| 23104 | |
| 23105 | # The host system. |
| 23106 | host_alias=$host_alias |
| 23107 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23108 | host_os=$host_os |
| 23109 | |
| 23110 | # The build system. |
| 23111 | build_alias=$build_alias |
| 23112 | build=$build |
| 23113 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23114 | |
| 23115 | # An echo program that does not interpret backslashes. |
| 23116 | echo=$lt_echo |
| 23117 | |
| 23118 | # The archiver. |
| 23119 | AR=$lt_AR |
| 23120 | AR_FLAGS=$lt_AR_FLAGS |
| 23121 | |
| 23122 | # A C compiler. |
| 23123 | LTCC=$lt_LTCC |
| 23124 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23125 | # LTCC compiler flags. |
| 23126 | LTCFLAGS=$lt_LTCFLAGS |
| 23127 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23128 | # A language-specific compiler. |
| 23129 | CC=$lt_compiler_F77 |
| 23130 | |
| 23131 | # Is the compiler the GNU C compiler? |
| 23132 | with_gcc=$GCC_F77 |
| 23133 | |
| 23134 | # An ERE matcher. |
| 23135 | EGREP=$lt_EGREP |
| 23136 | |
| 23137 | # The linker used to build libraries. |
| 23138 | LD=$lt_LD_F77 |
| 23139 | |
| 23140 | # Whether we need hard or soft links. |
| 23141 | LN_S=$lt_LN_S |
| 23142 | |
| 23143 | # A BSD-compatible nm program. |
| 23144 | NM=$lt_NM |
| 23145 | |
| 23146 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23147 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23148 | |
| 23149 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23150 | MAGIC_CMD=$MAGIC_CMD |
| 23151 | |
| 23152 | # Used on cygwin: DLL creation program. |
| 23153 | DLLTOOL="$DLLTOOL" |
| 23154 | |
| 23155 | # Used on cygwin: object dumper. |
| 23156 | OBJDUMP="$OBJDUMP" |
| 23157 | |
| 23158 | # Used on cygwin: assembler. |
| 23159 | AS="$AS" |
| 23160 | |
| 23161 | # The name of the directory that contains temporary libtool files. |
| 23162 | objdir=$objdir |
| 23163 | |
| 23164 | # How to create reloadable object files. |
| 23165 | reload_flag=$lt_reload_flag |
| 23166 | reload_cmds=$lt_reload_cmds |
| 23167 | |
| 23168 | # How to pass a linker flag through the compiler. |
| 23169 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23170 | |
| 23171 | # Object file suffix (normally "o"). |
| 23172 | objext="$ac_objext" |
| 23173 | |
| 23174 | # Old archive suffix (normally "a"). |
| 23175 | libext="$libext" |
| 23176 | |
| 23177 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23178 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23179 | |
| 23180 | # Executable file suffix (normally ""). |
| 23181 | exeext="$exeext" |
| 23182 | |
| 23183 | # Additional compiler flags for building library objects. |
| 23184 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23185 | pic_mode=$pic_mode |
| 23186 | |
| 23187 | # What is the maximum length of a command? |
| 23188 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23189 | |
| 23190 | # Does compiler simultaneously support -c and -o options? |
| 23191 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23193 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23194 | need_locks=$lt_need_locks |
| 23195 | |
| 23196 | # Do we need the lib prefix for modules? |
| 23197 | need_lib_prefix=$need_lib_prefix |
| 23198 | |
| 23199 | # Do we need a version for libraries? |
| 23200 | need_version=$need_version |
| 23201 | |
| 23202 | # Whether dlopen is supported. |
| 23203 | dlopen_support=$enable_dlopen |
| 23204 | |
| 23205 | # Whether dlopen of programs is supported. |
| 23206 | dlopen_self=$enable_dlopen_self |
| 23207 | |
| 23208 | # Whether dlopen of statically linked programs is supported. |
| 23209 | dlopen_self_static=$enable_dlopen_self_static |
| 23210 | |
| 23211 | # Compiler flag to prevent dynamic linking. |
| 23212 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23213 | |
| 23214 | # Compiler flag to turn off builtin functions. |
| 23215 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23216 | |
| 23217 | # Compiler flag to allow reflexive dlopens. |
| 23218 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23219 | |
| 23220 | # Compiler flag to generate shared objects directly from archives. |
| 23221 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23222 | |
| 23223 | # Compiler flag to generate thread-safe objects. |
| 23224 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23225 | |
| 23226 | # Library versioning type. |
| 23227 | version_type=$version_type |
| 23228 | |
| 23229 | # Format of library name prefix. |
| 23230 | libname_spec=$lt_libname_spec |
| 23231 | |
| 23232 | # List of archive names. First name is the real one, the rest are links. |
| 23233 | # The last name is the one that the linker finds with -lNAME. |
| 23234 | library_names_spec=$lt_library_names_spec |
| 23235 | |
| 23236 | # The coded name of the library, if different from the real name. |
| 23237 | soname_spec=$lt_soname_spec |
| 23238 | |
| 23239 | # Commands used to build and install an old-style archive. |
| 23240 | RANLIB=$lt_RANLIB |
| 23241 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23242 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23243 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23244 | |
| 23245 | # Create an old-style archive from a shared archive. |
| 23246 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23247 | |
| 23248 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23249 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23250 | |
| 23251 | # Commands used to build and install a shared archive. |
| 23252 | archive_cmds=$lt_archive_cmds_F77 |
| 23253 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23254 | postinstall_cmds=$lt_postinstall_cmds |
| 23255 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23256 | |
| 23257 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23258 | module_cmds=$lt_module_cmds_F77 |
| 23259 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23260 | |
| 23261 | # Commands to strip libraries. |
| 23262 | old_striplib=$lt_old_striplib |
| 23263 | striplib=$lt_striplib |
| 23264 | |
| 23265 | # Dependencies to place before the objects being linked to create a |
| 23266 | # shared library. |
| 23267 | predep_objects=$lt_predep_objects_F77 |
| 23268 | |
| 23269 | # Dependencies to place after the objects being linked to create a |
| 23270 | # shared library. |
| 23271 | postdep_objects=$lt_postdep_objects_F77 |
| 23272 | |
| 23273 | # Dependencies to place before the objects being linked to create a |
| 23274 | # shared library. |
| 23275 | predeps=$lt_predeps_F77 |
| 23276 | |
| 23277 | # Dependencies to place after the objects being linked to create a |
| 23278 | # shared library. |
| 23279 | postdeps=$lt_postdeps_F77 |
| 23280 | |
| 23281 | # The library search path used internally by the compiler when linking |
| 23282 | # a shared library. |
| 23283 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23284 | |
| 23285 | # Method to check whether dependent libraries are shared objects. |
| 23286 | deplibs_check_method=$lt_deplibs_check_method |
| 23287 | |
| 23288 | # Command to use when deplibs_check_method == file_magic. |
| 23289 | file_magic_cmd=$lt_file_magic_cmd |
| 23290 | |
| 23291 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23292 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23293 | |
| 23294 | # Flag that forces no undefined symbols. |
| 23295 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23296 | |
| 23297 | # Commands used to finish a libtool library installation in a directory. |
| 23298 | finish_cmds=$lt_finish_cmds |
| 23299 | |
| 23300 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23301 | finish_eval=$lt_finish_eval |
| 23302 | |
| 23303 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23304 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23305 | |
| 23306 | # Transform the output of nm in a proper C declaration |
| 23307 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23308 | |
| 23309 | # Transform the output of nm in a C name address pair |
| 23310 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23311 | |
| 23312 | # This is the shared library runtime path variable. |
| 23313 | runpath_var=$runpath_var |
| 23314 | |
| 23315 | # This is the shared library path variable. |
| 23316 | shlibpath_var=$shlibpath_var |
| 23317 | |
| 23318 | # Is shlibpath searched before the hard-coded library search path? |
| 23319 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23320 | |
| 23321 | # How to hardcode a shared library path into an executable. |
| 23322 | hardcode_action=$hardcode_action_F77 |
| 23323 | |
| 23324 | # Whether we should hardcode library paths into libraries. |
| 23325 | hardcode_into_libs=$hardcode_into_libs |
| 23326 | |
| 23327 | # Flag to hardcode \$libdir into a binary during linking. |
| 23328 | # This must work even if \$libdir does not exist. |
| 23329 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23330 | |
| 23331 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23332 | # a binary during linking. This must work even if \$libdir does |
| 23333 | # not exist. |
| 23334 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23335 | |
| 23336 | # Whether we need a single -rpath flag with a separated argument. |
| 23337 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23338 | |
| 23339 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23340 | # resulting binary. |
| 23341 | hardcode_direct=$hardcode_direct_F77 |
| 23342 | |
| 23343 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23344 | # resulting binary. |
| 23345 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23346 | |
| 23347 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23348 | # the resulting binary. |
| 23349 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23350 | |
| 23351 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23352 | # and all subsequent libraries and executables linked against it. |
| 23353 | hardcode_automatic=$hardcode_automatic_F77 |
| 23354 | |
| 23355 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23356 | # restored at relink time. |
| 23357 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23358 | |
| 23359 | # Whether libtool must link a program against all its dependency libraries. |
| 23360 | link_all_deplibs=$link_all_deplibs_F77 |
| 23361 | |
| 23362 | # Compile-time system search path for libraries |
| 23363 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23364 | |
| 23365 | # Run-time system search path for libraries |
| 23366 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23367 | |
| 23368 | # Fix the shell variable \$srcfile for the compiler. |
| 23369 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23370 | |
| 23371 | # Set to yes if exported symbols are required. |
| 23372 | always_export_symbols=$always_export_symbols_F77 |
| 23373 | |
| 23374 | # The commands to list exported symbols. |
| 23375 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23376 | |
| 23377 | # The commands to extract the exported symbol list from a shared archive. |
| 23378 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23379 | |
| 23380 | # Symbols that should not be listed in the preloaded symbols. |
| 23381 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23382 | |
| 23383 | # Symbols that must always be exported. |
| 23384 | include_expsyms=$lt_include_expsyms_F77 |
| 23385 | |
| 23386 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23387 | |
| 23388 | __EOF__ |
| 23389 | |
| 23390 | |
| 23391 | else |
| 23392 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23393 | # `config.status --recheck' to rerun these tests and create the |
| 23394 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23395 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23396 | if test -f "$ltmain_in"; then |
| 23397 | test -f Makefile && make "$ltmain" |
| 23398 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23399 | fi |
| 23400 | |
| 23401 | |
| 23402 | ac_ext=c |
| 23403 | ac_cpp='$CPP $CPPFLAGS' |
| 23404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23407 | |
| 23408 | CC="$lt_save_CC" |
| 23409 | |
| 23410 | else |
| 23411 | tagname="" |
| 23412 | fi |
| 23413 | ;; |
| 23414 | |
| 23415 | GCJ) |
| 23416 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23417 | ac_ext=c |
| 23418 | ac_cpp='$CPP $CPPFLAGS' |
| 23419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23422 | |
| 23423 | |
| 23424 | # Source file extension for Java test sources. |
| 23425 | ac_ext=java |
| 23426 | |
| 23427 | # Object file extension for compiled Java test sources. |
| 23428 | objext=o |
| 23429 | objext_GCJ=$objext |
| 23430 | |
| 23431 | # Code to be used in simple compile tests |
| 23432 | lt_simple_compile_test_code="class foo {}\n" |
| 23433 | |
| 23434 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23435 | 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] | 23436 | |
| 23437 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23438 | |
| 23439 | # If no C compiler was specified, use CC. |
| 23440 | LTCC=${LTCC-"$CC"} |
| 23441 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23442 | # If no C compiler flags were specified, use CFLAGS. |
| 23443 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23444 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23445 | # Allow CC to be a program name with arguments. |
| 23446 | compiler=$CC |
| 23447 | |
| 23448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23449 | # save warnings/boilerplate of simple test code |
| 23450 | ac_outfile=conftest.$ac_objext |
| 23451 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23452 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23453 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23454 | $rm conftest* |
| 23455 | |
| 23456 | ac_outfile=conftest.$ac_objext |
| 23457 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23458 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23459 | _lt_linker_boilerplate=`cat conftest.err` |
| 23460 | $rm conftest* |
| 23461 | |
| 23462 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23463 | # Allow CC to be a program name with arguments. |
| 23464 | lt_save_CC="$CC" |
| 23465 | CC=${GCJ-"gcj"} |
| 23466 | compiler=$CC |
| 23467 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23468 | for cc_temp in $compiler""; do |
| 23469 | case $cc_temp in |
| 23470 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23471 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23472 | \-*) ;; |
| 23473 | *) break;; |
| 23474 | esac |
| 23475 | done |
| 23476 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23477 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23478 | |
| 23479 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23480 | archive_cmds_need_lc_GCJ=no |
| 23481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23482 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23483 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23484 | |
| 23485 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23486 | |
| 23487 | if test "$GCC" = yes; then |
| 23488 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23489 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23491 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23492 | 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] | 23493 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23495 | else |
| 23496 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23497 | ac_outfile=conftest.$ac_objext |
| 23498 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23499 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23500 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23501 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23502 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23503 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23504 | # The option is referenced via a variable to avoid confusing sed. |
| 23505 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23506 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23507 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23508 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23509 | (eval echo "\"\$as_me:23509: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23510 | (eval "$lt_compile" 2>conftest.err) |
| 23511 | ac_status=$? |
| 23512 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23513 | echo "$as_me:23513: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23514 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23515 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23516 | # So say no if there are warnings other than the usual output. |
| 23517 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23518 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23519 | 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] | 23520 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23521 | fi |
| 23522 | fi |
| 23523 | $rm conftest* |
| 23524 | |
| 23525 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23526 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23527 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23528 | |
| 23529 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23530 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23531 | else |
| 23532 | : |
| 23533 | fi |
| 23534 | |
| 23535 | fi |
| 23536 | |
| 23537 | lt_prog_compiler_wl_GCJ= |
| 23538 | lt_prog_compiler_pic_GCJ= |
| 23539 | lt_prog_compiler_static_GCJ= |
| 23540 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23541 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23542 | 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] | 23543 | |
| 23544 | if test "$GCC" = yes; then |
| 23545 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23546 | lt_prog_compiler_static_GCJ='-static' |
| 23547 | |
| 23548 | case $host_os in |
| 23549 | aix*) |
| 23550 | # All AIX code is PIC. |
| 23551 | if test "$host_cpu" = ia64; then |
| 23552 | # AIX 5 now supports IA64 processor |
| 23553 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23554 | fi |
| 23555 | ;; |
| 23556 | |
| 23557 | amigaos*) |
| 23558 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23559 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23560 | # like `-m68040'. |
| 23561 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23562 | ;; |
| 23563 | |
| 23564 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23565 | # PIC is the default for these OSes. |
| 23566 | ;; |
| 23567 | |
| 23568 | mingw* | pw32* | os2*) |
| 23569 | # This hack is so that the source file can tell whether it is being |
| 23570 | # built for inclusion in a dll (and should export symbols for example). |
| 23571 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23572 | ;; |
| 23573 | |
| 23574 | darwin* | rhapsody*) |
| 23575 | # PIC is the default on this platform |
| 23576 | # Common symbols not allowed in MH_DYLIB files |
| 23577 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23578 | ;; |
| 23579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23580 | interix3*) |
| 23581 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23582 | # Instead, we relocate shared libraries at runtime. |
| 23583 | ;; |
| 23584 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23585 | msdosdjgpp*) |
| 23586 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23587 | # on systems that don't support them. |
| 23588 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23589 | enable_shared=no |
| 23590 | ;; |
| 23591 | |
| 23592 | sysv4*MP*) |
| 23593 | if test -d /usr/nec; then |
| 23594 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23595 | fi |
| 23596 | ;; |
| 23597 | |
| 23598 | hpux*) |
| 23599 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23600 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23601 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23602 | hppa*64*|ia64*) |
| 23603 | # +Z the default |
| 23604 | ;; |
| 23605 | *) |
| 23606 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23607 | ;; |
| 23608 | esac |
| 23609 | ;; |
| 23610 | |
| 23611 | *) |
| 23612 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23613 | ;; |
| 23614 | esac |
| 23615 | else |
| 23616 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23617 | case $host_os in |
| 23618 | aix*) |
| 23619 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23620 | if test "$host_cpu" = ia64; then |
| 23621 | # AIX 5 now supports IA64 processor |
| 23622 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23623 | else |
| 23624 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23625 | fi |
| 23626 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23627 | darwin*) |
| 23628 | # PIC is the default on this platform |
| 23629 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23630 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23631 | xlc*) |
| 23632 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23633 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23634 | ;; |
| 23635 | esac |
| 23636 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23637 | |
| 23638 | mingw* | pw32* | os2*) |
| 23639 | # This hack is so that the source file can tell whether it is being |
| 23640 | # built for inclusion in a dll (and should export symbols for example). |
| 23641 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23642 | ;; |
| 23643 | |
| 23644 | hpux9* | hpux10* | hpux11*) |
| 23645 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23646 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23647 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23648 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23649 | hppa*64*|ia64*) |
| 23650 | # +Z the default |
| 23651 | ;; |
| 23652 | *) |
| 23653 | lt_prog_compiler_pic_GCJ='+Z' |
| 23654 | ;; |
| 23655 | esac |
| 23656 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23657 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23658 | ;; |
| 23659 | |
| 23660 | irix5* | irix6* | nonstopux*) |
| 23661 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23662 | # PIC (with -KPIC) is the default. |
| 23663 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23664 | ;; |
| 23665 | |
| 23666 | newsos6) |
| 23667 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23668 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23669 | ;; |
| 23670 | |
| 23671 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23672 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23673 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23674 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23675 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23676 | lt_prog_compiler_static_GCJ='-static' |
| 23677 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23678 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23679 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23680 | # which looks to be a dead project) |
| 23681 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23682 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23683 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23684 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23685 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23686 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23687 | # All Alpha code is PIC. |
| 23688 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23689 | ;; |
| 23690 | esac |
| 23691 | ;; |
| 23692 | |
| 23693 | osf3* | osf4* | osf5*) |
| 23694 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23695 | # All OSF/1 code is PIC. |
| 23696 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23697 | ;; |
| 23698 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23699 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23700 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23701 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23702 | case $cc_basename in |
| 23703 | f77* | f90* | f95*) |
| 23704 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23705 | *) |
| 23706 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23707 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23708 | ;; |
| 23709 | |
| 23710 | sunos4*) |
| 23711 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23712 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23713 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23714 | ;; |
| 23715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23716 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23717 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23718 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23719 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23720 | ;; |
| 23721 | |
| 23722 | sysv4*MP*) |
| 23723 | if test -d /usr/nec ;then |
| 23724 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23725 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23726 | fi |
| 23727 | ;; |
| 23728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23729 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23730 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23731 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23732 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23733 | ;; |
| 23734 | |
| 23735 | unicos*) |
| 23736 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23737 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23738 | ;; |
| 23739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23740 | uts4*) |
| 23741 | lt_prog_compiler_pic_GCJ='-pic' |
| 23742 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23743 | ;; |
| 23744 | |
| 23745 | *) |
| 23746 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23747 | ;; |
| 23748 | esac |
| 23749 | fi |
| 23750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23751 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23752 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23753 | |
| 23754 | # |
| 23755 | # Check to make sure the PIC flag actually works. |
| 23756 | # |
| 23757 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23759 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23760 | 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] | 23761 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23763 | else |
| 23764 | lt_prog_compiler_pic_works_GCJ=no |
| 23765 | ac_outfile=conftest.$ac_objext |
| 23766 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23767 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23768 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23769 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23770 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23771 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23772 | # The option is referenced via a variable to avoid confusing sed. |
| 23773 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23774 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23775 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23776 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23777 | (eval echo "\"\$as_me:23777: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23778 | (eval "$lt_compile" 2>conftest.err) |
| 23779 | ac_status=$? |
| 23780 | cat conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23781 | echo "$as_me:23781: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23782 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23783 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23784 | # So say no if there are warnings other than the usual output. |
| 23785 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23786 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23787 | 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] | 23788 | lt_prog_compiler_pic_works_GCJ=yes |
| 23789 | fi |
| 23790 | fi |
| 23791 | $rm conftest* |
| 23792 | |
| 23793 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23794 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 23795 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23796 | |
| 23797 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 23798 | case $lt_prog_compiler_pic_GCJ in |
| 23799 | "" | " "*) ;; |
| 23800 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 23801 | esac |
| 23802 | else |
| 23803 | lt_prog_compiler_pic_GCJ= |
| 23804 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23805 | fi |
| 23806 | |
| 23807 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23808 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23809 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 23810 | *djgpp*) |
| 23811 | lt_prog_compiler_pic_GCJ= |
| 23812 | ;; |
| 23813 | *) |
| 23814 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 23815 | ;; |
| 23816 | esac |
| 23817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23818 | # |
| 23819 | # Check to make sure the static flag actually works. |
| 23820 | # |
| 23821 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 23822 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 23823 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 23824 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 23825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23826 | else |
| 23827 | lt_prog_compiler_static_works_GCJ=no |
| 23828 | save_LDFLAGS="$LDFLAGS" |
| 23829 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 23830 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 23831 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 23832 | # The linker can only warn and ignore the option if not recognized |
| 23833 | # So say no if there are warnings |
| 23834 | if test -s conftest.err; then |
| 23835 | # Append any errors to the config.log. |
| 23836 | cat conftest.err 1>&5 |
| 23837 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 23838 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23839 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 23840 | lt_prog_compiler_static_works_GCJ=yes |
| 23841 | fi |
| 23842 | else |
| 23843 | lt_prog_compiler_static_works_GCJ=yes |
| 23844 | fi |
| 23845 | fi |
| 23846 | $rm conftest* |
| 23847 | LDFLAGS="$save_LDFLAGS" |
| 23848 | |
| 23849 | fi |
| 23850 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 23851 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 23852 | |
| 23853 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 23854 | : |
| 23855 | else |
| 23856 | lt_prog_compiler_static_GCJ= |
| 23857 | fi |
| 23858 | |
| 23859 | |
| 23860 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 23861 | 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] | 23862 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 23863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23864 | else |
| 23865 | lt_cv_prog_compiler_c_o_GCJ=no |
| 23866 | $rm -r conftest 2>/dev/null |
| 23867 | mkdir conftest |
| 23868 | cd conftest |
| 23869 | mkdir out |
| 23870 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23872 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 23873 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23874 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23875 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23876 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23877 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23878 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23879 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23880 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23881 | (eval echo "\"\$as_me:23881: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23882 | (eval "$lt_compile" 2>out/conftest.err) |
| 23883 | ac_status=$? |
| 23884 | cat out/conftest.err >&5 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 23885 | echo "$as_me:23885: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23886 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 23887 | then |
| 23888 | # The compiler can only warn and ignore the option if not recognized |
| 23889 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23890 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 23891 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 23892 | 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] | 23893 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 23894 | fi |
| 23895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23896 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23897 | $rm conftest* |
| 23898 | # SGI C++ compiler will create directory out/ii_files/ for |
| 23899 | # template instantiation |
| 23900 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 23901 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23902 | cd .. |
| 23903 | rmdir conftest |
| 23904 | $rm conftest* |
| 23905 | |
| 23906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23907 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 23908 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23909 | |
| 23910 | |
| 23911 | hard_links="nottested" |
| 23912 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 23913 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23914 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 23915 | 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] | 23916 | hard_links=yes |
| 23917 | $rm conftest* |
| 23918 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 23919 | touch conftest.a |
| 23920 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 23921 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23922 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 23923 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23924 | if test "$hard_links" = no; then |
| 23925 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 23926 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 23927 | need_locks=warn |
| 23928 | fi |
| 23929 | else |
| 23930 | need_locks=no |
| 23931 | fi |
| 23932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23933 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 23934 | 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] | 23935 | |
| 23936 | runpath_var= |
| 23937 | allow_undefined_flag_GCJ= |
| 23938 | enable_shared_with_static_runtimes_GCJ=no |
| 23939 | archive_cmds_GCJ= |
| 23940 | archive_expsym_cmds_GCJ= |
| 23941 | old_archive_From_new_cmds_GCJ= |
| 23942 | old_archive_from_expsyms_cmds_GCJ= |
| 23943 | export_dynamic_flag_spec_GCJ= |
| 23944 | whole_archive_flag_spec_GCJ= |
| 23945 | thread_safe_flag_spec_GCJ= |
| 23946 | hardcode_libdir_flag_spec_GCJ= |
| 23947 | hardcode_libdir_flag_spec_ld_GCJ= |
| 23948 | hardcode_libdir_separator_GCJ= |
| 23949 | hardcode_direct_GCJ=no |
| 23950 | hardcode_minus_L_GCJ=no |
| 23951 | hardcode_shlibpath_var_GCJ=unsupported |
| 23952 | link_all_deplibs_GCJ=unknown |
| 23953 | hardcode_automatic_GCJ=no |
| 23954 | module_cmds_GCJ= |
| 23955 | module_expsym_cmds_GCJ= |
| 23956 | always_export_symbols_GCJ=no |
| 23957 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 23958 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 23959 | # included in the symbol list |
| 23960 | include_expsyms_GCJ= |
| 23961 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23962 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23963 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23964 | # as well as any symbol that contains `d'. |
| 23965 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23966 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23967 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23968 | # the symbol is explicitly referenced. Since portable code cannot |
| 23969 | # rely on this symbol name, it's probably fine to never include it in |
| 23970 | # preloaded symbol tables. |
| 23971 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23972 | # Just being paranoid about ensuring that cc_basename is set. |
| 23973 | for cc_temp in $compiler""; do |
| 23974 | case $cc_temp in |
| 23975 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23976 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23977 | \-*) ;; |
| 23978 | *) break;; |
| 23979 | esac |
| 23980 | done |
| 23981 | 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] | 23982 | |
| 23983 | case $host_os in |
| 23984 | cygwin* | mingw* | pw32*) |
| 23985 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23986 | # When not using gcc, we currently assume that we are using |
| 23987 | # Microsoft Visual C++. |
| 23988 | if test "$GCC" != yes; then |
| 23989 | with_gnu_ld=no |
| 23990 | fi |
| 23991 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23992 | interix*) |
| 23993 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23994 | with_gnu_ld=yes |
| 23995 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23996 | openbsd*) |
| 23997 | with_gnu_ld=no |
| 23998 | ;; |
| 23999 | esac |
| 24000 | |
| 24001 | ld_shlibs_GCJ=yes |
| 24002 | if test "$with_gnu_ld" = yes; then |
| 24003 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 24004 | wlarc='${wl}' |
| 24005 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24006 | # Set some defaults for GNU ld with shared library support. These |
| 24007 | # are reset later if shared libraries are not supported. Putting them |
| 24008 | # here allows them to be overridden if necessary. |
| 24009 | runpath_var=LD_RUN_PATH |
| 24010 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24011 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24012 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24013 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24014 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24015 | else |
| 24016 | whole_archive_flag_spec_GCJ= |
| 24017 | fi |
| 24018 | supports_anon_versioning=no |
| 24019 | case `$LD -v 2>/dev/null` in |
| 24020 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24021 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24022 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24023 | *\ 2.11.*) ;; # other 2.11 versions |
| 24024 | *) supports_anon_versioning=yes ;; |
| 24025 | esac |
| 24026 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24027 | # See if GNU ld supports shared libraries. |
| 24028 | case $host_os in |
| 24029 | aix3* | aix4* | aix5*) |
| 24030 | # On AIX/PPC, the GNU linker is very broken |
| 24031 | if test "$host_cpu" != ia64; then |
| 24032 | ld_shlibs_GCJ=no |
| 24033 | cat <<EOF 1>&2 |
| 24034 | |
| 24035 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24036 | *** to be unable to reliably create shared libraries on AIX. |
| 24037 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24038 | *** really care for shared libraries, you may want to modify your PATH |
| 24039 | *** so that a non-GNU linker is found, and then restart. |
| 24040 | |
| 24041 | EOF |
| 24042 | fi |
| 24043 | ;; |
| 24044 | |
| 24045 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24046 | 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] | 24047 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24048 | hardcode_minus_L_GCJ=yes |
| 24049 | |
| 24050 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24051 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24052 | # to version 4, is to share data among multiple programs linked |
| 24053 | # with the same dynamic library. Since this doesn't match the |
| 24054 | # behavior of shared libraries on other platforms, we can't use |
| 24055 | # them. |
| 24056 | ld_shlibs_GCJ=no |
| 24057 | ;; |
| 24058 | |
| 24059 | beos*) |
| 24060 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24061 | allow_undefined_flag_GCJ=unsupported |
| 24062 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24063 | # support --undefined. This deserves some investigation. FIXME |
| 24064 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24065 | else |
| 24066 | ld_shlibs_GCJ=no |
| 24067 | fi |
| 24068 | ;; |
| 24069 | |
| 24070 | cygwin* | mingw* | pw32*) |
| 24071 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24072 | # as there is no search path for DLLs. |
| 24073 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24074 | allow_undefined_flag_GCJ=unsupported |
| 24075 | always_export_symbols_GCJ=no |
| 24076 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24077 | 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] | 24078 | |
| 24079 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24080 | 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] | 24081 | # If the export-symbols file already is a .def file (1st line |
| 24082 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24083 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24084 | cp $export_symbols $output_objdir/$soname.def; |
| 24085 | else |
| 24086 | echo EXPORTS > $output_objdir/$soname.def; |
| 24087 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24088 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24089 | $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] | 24090 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24091 | ld_shlibs_GCJ=no |
| 24092 | fi |
| 24093 | ;; |
| 24094 | |
| 24095 | interix3*) |
| 24096 | hardcode_direct_GCJ=no |
| 24097 | hardcode_shlibpath_var_GCJ=no |
| 24098 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24099 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24100 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24101 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24102 | # default) and relocated if they conflict, which is a slow very memory |
| 24103 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24104 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24105 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24106 | 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' |
| 24107 | 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' |
| 24108 | ;; |
| 24109 | |
| 24110 | linux*) |
| 24111 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24112 | tmp_addflag= |
| 24113 | case $cc_basename,$host_cpu in |
| 24114 | pgcc*) # Portland Group C compiler |
| 24115 | 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' |
| 24116 | tmp_addflag=' $pic_flag' |
| 24117 | ;; |
| 24118 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24119 | 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' |
| 24120 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24121 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24122 | tmp_addflag=' -i_dynamic' ;; |
| 24123 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24124 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24125 | ifc* | ifort*) # Intel Fortran compiler |
| 24126 | tmp_addflag=' -nofor_main' ;; |
| 24127 | esac |
| 24128 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24129 | |
| 24130 | if test $supports_anon_versioning = yes; then |
| 24131 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24132 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24133 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24134 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24135 | fi |
| 24136 | else |
| 24137 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24138 | fi |
| 24139 | ;; |
| 24140 | |
| 24141 | netbsd*) |
| 24142 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24143 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24144 | wlarc= |
| 24145 | else |
| 24146 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24147 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24148 | fi |
| 24149 | ;; |
| 24150 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24151 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24152 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24153 | ld_shlibs_GCJ=no |
| 24154 | cat <<EOF 1>&2 |
| 24155 | |
| 24156 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24157 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24158 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24159 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24160 | *** your PATH or compiler configuration so that the native linker is |
| 24161 | *** used, and then restart. |
| 24162 | |
| 24163 | EOF |
| 24164 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24165 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24166 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24167 | else |
| 24168 | ld_shlibs_GCJ=no |
| 24169 | fi |
| 24170 | ;; |
| 24171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24172 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24173 | case `$LD -v 2>&1` in |
| 24174 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24175 | ld_shlibs_GCJ=no |
| 24176 | cat <<_LT_EOF 1>&2 |
| 24177 | |
| 24178 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24179 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24180 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24181 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24182 | *** your PATH or compiler configuration so that the native linker is |
| 24183 | *** used, and then restart. |
| 24184 | |
| 24185 | _LT_EOF |
| 24186 | ;; |
| 24187 | *) |
| 24188 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24189 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24190 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24191 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24192 | else |
| 24193 | ld_shlibs_GCJ=no |
| 24194 | fi |
| 24195 | ;; |
| 24196 | esac |
| 24197 | ;; |
| 24198 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24199 | sunos4*) |
| 24200 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24201 | wlarc= |
| 24202 | hardcode_direct_GCJ=yes |
| 24203 | hardcode_shlibpath_var_GCJ=no |
| 24204 | ;; |
| 24205 | |
| 24206 | *) |
| 24207 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24208 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24209 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24210 | else |
| 24211 | ld_shlibs_GCJ=no |
| 24212 | fi |
| 24213 | ;; |
| 24214 | esac |
| 24215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24216 | if test "$ld_shlibs_GCJ" = no; then |
| 24217 | runpath_var= |
| 24218 | hardcode_libdir_flag_spec_GCJ= |
| 24219 | export_dynamic_flag_spec_GCJ= |
| 24220 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24221 | fi |
| 24222 | else |
| 24223 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24224 | case $host_os in |
| 24225 | aix3*) |
| 24226 | allow_undefined_flag_GCJ=unsupported |
| 24227 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24228 | 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] | 24229 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24230 | # are no directories specified by -L. |
| 24231 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24232 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24233 | # Neither direct hardcoding nor static linking is supported with a |
| 24234 | # broken collect2. |
| 24235 | hardcode_direct_GCJ=unsupported |
| 24236 | fi |
| 24237 | ;; |
| 24238 | |
| 24239 | aix4* | aix5*) |
| 24240 | if test "$host_cpu" = ia64; then |
| 24241 | # On IA64, the linker does run time linking by default, so we don't |
| 24242 | # have to do anything special. |
| 24243 | aix_use_runtimelinking=no |
| 24244 | exp_sym_flag='-Bexport' |
| 24245 | no_entry_flag="" |
| 24246 | else |
| 24247 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24248 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24249 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24250 | 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' |
| 24251 | else |
| 24252 | 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' |
| 24253 | fi |
| 24254 | aix_use_runtimelinking=no |
| 24255 | |
| 24256 | # Test if we are trying to use run time linking or normal |
| 24257 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24258 | # need to do runtime linking. |
| 24259 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24260 | for ld_flag in $LDFLAGS; do |
| 24261 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24262 | aix_use_runtimelinking=yes |
| 24263 | break |
| 24264 | fi |
| 24265 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24266 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24267 | esac |
| 24268 | |
| 24269 | exp_sym_flag='-bexport' |
| 24270 | no_entry_flag='-bnoentry' |
| 24271 | fi |
| 24272 | |
| 24273 | # When large executables or shared objects are built, AIX ld can |
| 24274 | # have problems creating the table of contents. If linking a library |
| 24275 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24276 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24277 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24278 | |
| 24279 | archive_cmds_GCJ='' |
| 24280 | hardcode_direct_GCJ=yes |
| 24281 | hardcode_libdir_separator_GCJ=':' |
| 24282 | link_all_deplibs_GCJ=yes |
| 24283 | |
| 24284 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24285 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24286 | # We only want to do this on AIX 4.2 and lower, the check |
| 24287 | # below for broken collect2 doesn't work under 4.3+ |
| 24288 | collect2name=`${CC} -print-prog-name=collect2` |
| 24289 | if test -f "$collect2name" && \ |
| 24290 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24291 | then |
| 24292 | # We have reworked collect2 |
| 24293 | hardcode_direct_GCJ=yes |
| 24294 | else |
| 24295 | # We have old collect2 |
| 24296 | hardcode_direct_GCJ=unsupported |
| 24297 | # It fails to find uninstalled libraries when the uninstalled |
| 24298 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24299 | # to unsupported forces relinking |
| 24300 | hardcode_minus_L_GCJ=yes |
| 24301 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24302 | hardcode_libdir_separator_GCJ= |
| 24303 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24304 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24305 | esac |
| 24306 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24307 | if test "$aix_use_runtimelinking" = yes; then |
| 24308 | shared_flag="$shared_flag "'${wl}-G' |
| 24309 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24310 | else |
| 24311 | # not using gcc |
| 24312 | if test "$host_cpu" = ia64; then |
| 24313 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24314 | # chokes on -Wl,-G. The following line is correct: |
| 24315 | shared_flag='-G' |
| 24316 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24317 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24318 | shared_flag='${wl}-G' |
| 24319 | else |
| 24320 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24321 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24322 | fi |
| 24323 | fi |
| 24324 | |
| 24325 | # It seems that -bexpall does not export symbols beginning with |
| 24326 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24327 | always_export_symbols_GCJ=yes |
| 24328 | if test "$aix_use_runtimelinking" = yes; then |
| 24329 | # Warning - without using the other runtime loading flags (-brtl), |
| 24330 | # -berok will link without error, but may produce a broken library. |
| 24331 | allow_undefined_flag_GCJ='-berok' |
| 24332 | # Determine the default libpath from the value encoded in an empty executable. |
| 24333 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24334 | /* confdefs.h. */ |
| 24335 | _ACEOF |
| 24336 | cat confdefs.h >>conftest.$ac_ext |
| 24337 | cat >>conftest.$ac_ext <<_ACEOF |
| 24338 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24339 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24340 | int |
| 24341 | main () |
| 24342 | { |
| 24343 | |
| 24344 | ; |
| 24345 | return 0; |
| 24346 | } |
| 24347 | _ACEOF |
| 24348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24349 | if { (ac_try="$ac_link" |
| 24350 | case "(($ac_try" in |
| 24351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24352 | *) ac_try_echo=$ac_try;; |
| 24353 | esac |
| 24354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24355 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24356 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24358 | rm -f conftest.er1 |
| 24359 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24361 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24363 | { (case "(($ac_try" in |
| 24364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24365 | *) ac_try_echo=$ac_try;; |
| 24366 | esac |
| 24367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24368 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24369 | ac_status=$? |
| 24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24371 | (exit $ac_status); }; } && |
| 24372 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24373 | { (case "(($ac_try" in |
| 24374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24375 | *) ac_try_echo=$ac_try;; |
| 24376 | esac |
| 24377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24378 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24379 | ac_status=$? |
| 24380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24381 | (exit $ac_status); }; }; then |
| 24382 | |
| 24383 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24384 | }'` |
| 24385 | # Check for a 64-bit object if we didn't find anything. |
| 24386 | 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; } |
| 24387 | }'`; fi |
| 24388 | else |
| 24389 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24392 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24394 | |
| 24395 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24396 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24397 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24398 | |
| 24399 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24400 | 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] | 24401 | else |
| 24402 | if test "$host_cpu" = ia64; then |
| 24403 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24404 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24405 | 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] | 24406 | else |
| 24407 | # Determine the default libpath from the value encoded in an empty executable. |
| 24408 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24409 | /* confdefs.h. */ |
| 24410 | _ACEOF |
| 24411 | cat confdefs.h >>conftest.$ac_ext |
| 24412 | cat >>conftest.$ac_ext <<_ACEOF |
| 24413 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24414 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24415 | int |
| 24416 | main () |
| 24417 | { |
| 24418 | |
| 24419 | ; |
| 24420 | return 0; |
| 24421 | } |
| 24422 | _ACEOF |
| 24423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24424 | if { (ac_try="$ac_link" |
| 24425 | case "(($ac_try" in |
| 24426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24427 | *) ac_try_echo=$ac_try;; |
| 24428 | esac |
| 24429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24430 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24431 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24432 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24433 | rm -f conftest.er1 |
| 24434 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24436 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24438 | { (case "(($ac_try" in |
| 24439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24440 | *) ac_try_echo=$ac_try;; |
| 24441 | esac |
| 24442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24443 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24444 | ac_status=$? |
| 24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24446 | (exit $ac_status); }; } && |
| 24447 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24448 | { (case "(($ac_try" in |
| 24449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24450 | *) ac_try_echo=$ac_try;; |
| 24451 | esac |
| 24452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24453 | (eval "$ac_try") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24454 | ac_status=$? |
| 24455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24456 | (exit $ac_status); }; }; then |
| 24457 | |
| 24458 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24459 | }'` |
| 24460 | # Check for a 64-bit object if we didn't find anything. |
| 24461 | 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; } |
| 24462 | }'`; fi |
| 24463 | else |
| 24464 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24465 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24468 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24469 | |
| 24470 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24471 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24472 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24473 | |
| 24474 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24475 | # Warning - without using the other run time loading flags, |
| 24476 | # -berok will link without error, but may produce a broken library. |
| 24477 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24478 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24479 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24480 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24481 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24482 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24483 | 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] | 24484 | fi |
| 24485 | fi |
| 24486 | ;; |
| 24487 | |
| 24488 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24489 | 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] | 24490 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24491 | hardcode_minus_L_GCJ=yes |
| 24492 | # see comment about different semantics on the GNU ld section |
| 24493 | ld_shlibs_GCJ=no |
| 24494 | ;; |
| 24495 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24496 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24497 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24498 | ;; |
| 24499 | |
| 24500 | cygwin* | mingw* | pw32*) |
| 24501 | # When not using gcc, we currently assume that we are using |
| 24502 | # Microsoft Visual C++. |
| 24503 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24504 | # no search path for DLLs. |
| 24505 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24506 | allow_undefined_flag_GCJ=unsupported |
| 24507 | # Tell ltmain to make .lib files, not .a files. |
| 24508 | libext=lib |
| 24509 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24510 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24511 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24512 | 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] | 24513 | # The linker will automatically build a .lib file if we build a DLL. |
| 24514 | old_archive_From_new_cmds_GCJ='true' |
| 24515 | # FIXME: Should let the user specify the lib program. |
| 24516 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24517 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24518 | enable_shared_with_static_runtimes_GCJ=yes |
| 24519 | ;; |
| 24520 | |
| 24521 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24522 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24523 | rhapsody* | darwin1.[012]) |
| 24524 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24525 | ;; |
| 24526 | *) # Darwin 1.3 on |
| 24527 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24528 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24529 | else |
| 24530 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24531 | 10.[012]) |
| 24532 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24533 | ;; |
| 24534 | 10.*) |
| 24535 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24536 | ;; |
| 24537 | esac |
| 24538 | fi |
| 24539 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24540 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24541 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24542 | hardcode_direct_GCJ=no |
| 24543 | hardcode_automatic_GCJ=yes |
| 24544 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24545 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24546 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24547 | if test "$GCC" = yes ; then |
| 24548 | output_verbose_link_cmd='echo' |
| 24549 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24550 | 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] | 24551 | # 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] | 24552 | 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}' |
| 24553 | 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] | 24554 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24555 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24556 | xlc*) |
| 24557 | output_verbose_link_cmd='echo' |
| 24558 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24559 | 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] | 24560 | # 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] | 24561 | 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}' |
| 24562 | 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] | 24563 | ;; |
| 24564 | *) |
| 24565 | ld_shlibs_GCJ=no |
| 24566 | ;; |
| 24567 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24568 | fi |
| 24569 | ;; |
| 24570 | |
| 24571 | dgux*) |
| 24572 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24573 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24574 | hardcode_shlibpath_var_GCJ=no |
| 24575 | ;; |
| 24576 | |
| 24577 | freebsd1*) |
| 24578 | ld_shlibs_GCJ=no |
| 24579 | ;; |
| 24580 | |
| 24581 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24582 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24583 | # does not break anything, and helps significantly (at the cost of a little |
| 24584 | # extra space). |
| 24585 | freebsd2.2*) |
| 24586 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24587 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24588 | hardcode_direct_GCJ=yes |
| 24589 | hardcode_shlibpath_var_GCJ=no |
| 24590 | ;; |
| 24591 | |
| 24592 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24593 | freebsd2*) |
| 24594 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24595 | hardcode_direct_GCJ=yes |
| 24596 | hardcode_minus_L_GCJ=yes |
| 24597 | hardcode_shlibpath_var_GCJ=no |
| 24598 | ;; |
| 24599 | |
| 24600 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24601 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24602 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24603 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24604 | hardcode_direct_GCJ=yes |
| 24605 | hardcode_shlibpath_var_GCJ=no |
| 24606 | ;; |
| 24607 | |
| 24608 | hpux9*) |
| 24609 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24610 | 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] | 24611 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24612 | 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] | 24613 | fi |
| 24614 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24615 | hardcode_libdir_separator_GCJ=: |
| 24616 | hardcode_direct_GCJ=yes |
| 24617 | |
| 24618 | # hardcode_minus_L: Not really in the search PATH, |
| 24619 | # but as the default location of the library. |
| 24620 | hardcode_minus_L_GCJ=yes |
| 24621 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24622 | ;; |
| 24623 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24624 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24625 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24626 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24627 | else |
| 24628 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24629 | fi |
| 24630 | if test "$with_gnu_ld" = no; then |
| 24631 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24632 | hardcode_libdir_separator_GCJ=: |
| 24633 | |
| 24634 | hardcode_direct_GCJ=yes |
| 24635 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24636 | |
| 24637 | # hardcode_minus_L: Not really in the search PATH, |
| 24638 | # but as the default location of the library. |
| 24639 | hardcode_minus_L_GCJ=yes |
| 24640 | fi |
| 24641 | ;; |
| 24642 | |
| 24643 | hpux11*) |
| 24644 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24645 | case $host_cpu in |
| 24646 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24647 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24648 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24649 | ia64*) |
| 24650 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24651 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24652 | *) |
| 24653 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24654 | ;; |
| 24655 | esac |
| 24656 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24657 | case $host_cpu in |
| 24658 | hppa*64*) |
| 24659 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24660 | ;; |
| 24661 | ia64*) |
| 24662 | 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] | 24663 | ;; |
| 24664 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24665 | 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] | 24666 | ;; |
| 24667 | esac |
| 24668 | fi |
| 24669 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24670 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24671 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24672 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24673 | case $host_cpu in |
| 24674 | hppa*64*|ia64*) |
| 24675 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24676 | hardcode_direct_GCJ=no |
| 24677 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24678 | ;; |
| 24679 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24680 | hardcode_direct_GCJ=yes |
| 24681 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24682 | |
| 24683 | # hardcode_minus_L: Not really in the search PATH, |
| 24684 | # but as the default location of the library. |
| 24685 | hardcode_minus_L_GCJ=yes |
| 24686 | ;; |
| 24687 | esac |
| 24688 | fi |
| 24689 | ;; |
| 24690 | |
| 24691 | irix5* | irix6* | nonstopux*) |
| 24692 | if test "$GCC" = yes; then |
| 24693 | 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' |
| 24694 | else |
| 24695 | 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' |
| 24696 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24697 | fi |
| 24698 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24699 | hardcode_libdir_separator_GCJ=: |
| 24700 | link_all_deplibs_GCJ=yes |
| 24701 | ;; |
| 24702 | |
| 24703 | netbsd*) |
| 24704 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24705 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24706 | else |
| 24707 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24708 | fi |
| 24709 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24710 | hardcode_direct_GCJ=yes |
| 24711 | hardcode_shlibpath_var_GCJ=no |
| 24712 | ;; |
| 24713 | |
| 24714 | newsos6) |
| 24715 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24716 | hardcode_direct_GCJ=yes |
| 24717 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24718 | hardcode_libdir_separator_GCJ=: |
| 24719 | hardcode_shlibpath_var_GCJ=no |
| 24720 | ;; |
| 24721 | |
| 24722 | openbsd*) |
| 24723 | hardcode_direct_GCJ=yes |
| 24724 | hardcode_shlibpath_var_GCJ=no |
| 24725 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24726 | 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] | 24727 | 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] | 24728 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24729 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24730 | else |
| 24731 | case $host_os in |
| 24732 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24733 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24734 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24735 | ;; |
| 24736 | *) |
| 24737 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24738 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24739 | ;; |
| 24740 | esac |
| 24741 | fi |
| 24742 | ;; |
| 24743 | |
| 24744 | os2*) |
| 24745 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24746 | hardcode_minus_L_GCJ=yes |
| 24747 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24748 | 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] | 24749 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24750 | ;; |
| 24751 | |
| 24752 | osf3*) |
| 24753 | if test "$GCC" = yes; then |
| 24754 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24755 | 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' |
| 24756 | else |
| 24757 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24758 | 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' |
| 24759 | fi |
| 24760 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24761 | hardcode_libdir_separator_GCJ=: |
| 24762 | ;; |
| 24763 | |
| 24764 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24765 | if test "$GCC" = yes; then |
| 24766 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24767 | 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' |
| 24768 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24769 | else |
| 24770 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24771 | 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] | 24772 | 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] | 24773 | $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] | 24774 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24775 | # Both c and cxx compiler support -rpath directly |
| 24776 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24777 | fi |
| 24778 | hardcode_libdir_separator_GCJ=: |
| 24779 | ;; |
| 24780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24781 | solaris*) |
| 24782 | no_undefined_flag_GCJ=' -z text' |
| 24783 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24784 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24785 | 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] | 24786 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24787 | $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] | 24788 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24789 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24790 | 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] | 24791 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24792 | $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] | 24793 | fi |
| 24794 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24795 | hardcode_shlibpath_var_GCJ=no |
| 24796 | case $host_os in |
| 24797 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24798 | *) |
| 24799 | # The compiler driver will combine linker options so we |
| 24800 | # cannot just pass the convience library names through |
| 24801 | # without $wl, iff we do not link with $LD. |
| 24802 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 24803 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 24804 | case $wlarc in |
| 24805 | '') |
| 24806 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 24807 | *) |
| 24808 | 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' ;; |
| 24809 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24810 | esac |
| 24811 | link_all_deplibs_GCJ=yes |
| 24812 | ;; |
| 24813 | |
| 24814 | sunos4*) |
| 24815 | if test "x$host_vendor" = xsequent; then |
| 24816 | # Use $CC to link under sequent, because it throws in some extra .o |
| 24817 | # files that make .init and .fini sections work. |
| 24818 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24819 | else |
| 24820 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 24821 | fi |
| 24822 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24823 | hardcode_direct_GCJ=yes |
| 24824 | hardcode_minus_L_GCJ=yes |
| 24825 | hardcode_shlibpath_var_GCJ=no |
| 24826 | ;; |
| 24827 | |
| 24828 | sysv4) |
| 24829 | case $host_vendor in |
| 24830 | sni) |
| 24831 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24832 | hardcode_direct_GCJ=yes # is this really true??? |
| 24833 | ;; |
| 24834 | siemens) |
| 24835 | ## LD is ld it makes a PLAMLIB |
| 24836 | ## CC just makes a GrossModule. |
| 24837 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 24838 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 24839 | hardcode_direct_GCJ=no |
| 24840 | ;; |
| 24841 | motorola) |
| 24842 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24843 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 24844 | ;; |
| 24845 | esac |
| 24846 | runpath_var='LD_RUN_PATH' |
| 24847 | hardcode_shlibpath_var_GCJ=no |
| 24848 | ;; |
| 24849 | |
| 24850 | sysv4.3*) |
| 24851 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24852 | hardcode_shlibpath_var_GCJ=no |
| 24853 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 24854 | ;; |
| 24855 | |
| 24856 | sysv4*MP*) |
| 24857 | if test -d /usr/nec; then |
| 24858 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24859 | hardcode_shlibpath_var_GCJ=no |
| 24860 | runpath_var=LD_RUN_PATH |
| 24861 | hardcode_runpath_var=yes |
| 24862 | ld_shlibs_GCJ=yes |
| 24863 | fi |
| 24864 | ;; |
| 24865 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24866 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 24867 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24868 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24869 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24870 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24871 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24872 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24873 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24874 | 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] | 24875 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24876 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24877 | 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] | 24878 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24879 | ;; |
| 24880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24881 | sysv5* | sco3.2v5* | sco5v6*) |
| 24882 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 24883 | # link with -lc, and that would cause any symbols used from libc to |
| 24884 | # always be unresolved, which means just about no library would |
| 24885 | # ever link correctly. If we're not using GNU ld we use -z text |
| 24886 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 24887 | # as -z defs. |
| 24888 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24889 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 24890 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24891 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24892 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 24893 | hardcode_libdir_separator_GCJ=':' |
| 24894 | link_all_deplibs_GCJ=yes |
| 24895 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24896 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24897 | |
| 24898 | if test "$GCC" = yes; then |
| 24899 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24900 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24901 | else |
| 24902 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24903 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24904 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24905 | ;; |
| 24906 | |
| 24907 | uts4*) |
| 24908 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24909 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24910 | hardcode_shlibpath_var_GCJ=no |
| 24911 | ;; |
| 24912 | |
| 24913 | *) |
| 24914 | ld_shlibs_GCJ=no |
| 24915 | ;; |
| 24916 | esac |
| 24917 | fi |
| 24918 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24919 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 24920 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24921 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 24922 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24923 | # |
| 24924 | # Do we need to explicitly link libc? |
| 24925 | # |
| 24926 | case "x$archive_cmds_need_lc_GCJ" in |
| 24927 | x|xyes) |
| 24928 | # Assume -lc should be added |
| 24929 | archive_cmds_need_lc_GCJ=yes |
| 24930 | |
| 24931 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 24932 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24933 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24934 | # FIXME: we may have to deal with multi-command sequences. |
| 24935 | ;; |
| 24936 | '$CC '*) |
| 24937 | # Test whether the compiler implicitly links with -lc since on some |
| 24938 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 24939 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24940 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 24941 | 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] | 24942 | $rm conftest* |
| 24943 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24944 | |
| 24945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24946 | (eval $ac_compile) 2>&5 |
| 24947 | ac_status=$? |
| 24948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24949 | (exit $ac_status); } 2>conftest.err; then |
| 24950 | soname=conftest |
| 24951 | lib=conftest |
| 24952 | libobjs=conftest.$ac_objext |
| 24953 | deplibs= |
| 24954 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24955 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24956 | compiler_flags=-v |
| 24957 | linker_flags=-v |
| 24958 | verstring= |
| 24959 | output_objdir=. |
| 24960 | libname=conftest |
| 24961 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 24962 | allow_undefined_flag_GCJ= |
| 24963 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 24964 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 24965 | ac_status=$? |
| 24966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24967 | (exit $ac_status); } |
| 24968 | then |
| 24969 | archive_cmds_need_lc_GCJ=no |
| 24970 | else |
| 24971 | archive_cmds_need_lc_GCJ=yes |
| 24972 | fi |
| 24973 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 24974 | else |
| 24975 | cat conftest.err 1>&5 |
| 24976 | fi |
| 24977 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24978 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 24979 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24980 | ;; |
| 24981 | esac |
| 24982 | fi |
| 24983 | ;; |
| 24984 | esac |
| 24985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24986 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 24987 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24988 | library_names_spec= |
| 24989 | libname_spec='lib$name' |
| 24990 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24991 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24992 | postinstall_cmds= |
| 24993 | postuninstall_cmds= |
| 24994 | finish_cmds= |
| 24995 | finish_eval= |
| 24996 | shlibpath_var= |
| 24997 | shlibpath_overrides_runpath=unknown |
| 24998 | version_type=none |
| 24999 | dynamic_linker="$host_os ld.so" |
| 25000 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 25001 | if test "$GCC" = yes; then |
| 25002 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25003 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 25004 | # if the path contains ";" then we assume it to be the separator |
| 25005 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 25006 | # assumed that no part of a normal pathname contains ";" but that should |
| 25007 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 25008 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25009 | else |
| 25010 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25011 | fi |
| 25012 | else |
| 25013 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25014 | fi |
| 25015 | need_lib_prefix=unknown |
| 25016 | hardcode_into_libs=no |
| 25017 | |
| 25018 | # when you set need_version to no, make sure it does not cause -set_version |
| 25019 | # flags to be left without arguments |
| 25020 | need_version=unknown |
| 25021 | |
| 25022 | case $host_os in |
| 25023 | aix3*) |
| 25024 | version_type=linux |
| 25025 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25026 | shlibpath_var=LIBPATH |
| 25027 | |
| 25028 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25030 | ;; |
| 25031 | |
| 25032 | aix4* | aix5*) |
| 25033 | version_type=linux |
| 25034 | need_lib_prefix=no |
| 25035 | need_version=no |
| 25036 | hardcode_into_libs=yes |
| 25037 | if test "$host_cpu" = ia64; then |
| 25038 | # AIX 5 supports IA64 |
| 25039 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25040 | shlibpath_var=LD_LIBRARY_PATH |
| 25041 | else |
| 25042 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25043 | # for dependence libraries. The import file would start with |
| 25044 | # the line `#! .'. This would cause the generated library to |
| 25045 | # depend on `.', always an invalid library. This was fixed in |
| 25046 | # development snapshots of GCC prior to 3.0. |
| 25047 | case $host_os in |
| 25048 | aix4 | aix4.[01] | aix4.[01].*) |
| 25049 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25050 | echo ' yes ' |
| 25051 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25052 | : |
| 25053 | else |
| 25054 | can_build_shared=no |
| 25055 | fi |
| 25056 | ;; |
| 25057 | esac |
| 25058 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25059 | # soname into executable. Probably we can add versioning support to |
| 25060 | # collect2, so additional links can be useful in future. |
| 25061 | if test "$aix_use_runtimelinking" = yes; then |
| 25062 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25063 | # instead of lib<name>.a to let people know that these are not |
| 25064 | # typical AIX shared libraries. |
| 25065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25066 | else |
| 25067 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25068 | # and later when we are not doing run time linking. |
| 25069 | library_names_spec='${libname}${release}.a $libname.a' |
| 25070 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25071 | fi |
| 25072 | shlibpath_var=LIBPATH |
| 25073 | fi |
| 25074 | ;; |
| 25075 | |
| 25076 | amigaos*) |
| 25077 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25078 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25079 | 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] | 25080 | ;; |
| 25081 | |
| 25082 | beos*) |
| 25083 | library_names_spec='${libname}${shared_ext}' |
| 25084 | dynamic_linker="$host_os ld.so" |
| 25085 | shlibpath_var=LIBRARY_PATH |
| 25086 | ;; |
| 25087 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25088 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25089 | version_type=linux |
| 25090 | need_version=no |
| 25091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25092 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25093 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25094 | shlibpath_var=LD_LIBRARY_PATH |
| 25095 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25096 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25097 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25098 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25099 | # libtool to hard-code these into programs |
| 25100 | ;; |
| 25101 | |
| 25102 | cygwin* | mingw* | pw32*) |
| 25103 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25104 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25105 | need_version=no |
| 25106 | need_lib_prefix=no |
| 25107 | |
| 25108 | case $GCC,$host_os in |
| 25109 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25110 | library_names_spec='$libname.dll.a' |
| 25111 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25112 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25113 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25114 | dldir=$destdir/`dirname \$dlpath`~ |
| 25115 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25116 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25117 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25118 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25119 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25120 | $rm \$dlpath' |
| 25121 | shlibpath_overrides_runpath=yes |
| 25122 | |
| 25123 | case $host_os in |
| 25124 | cygwin*) |
| 25125 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25126 | 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] | 25127 | 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] | 25128 | ;; |
| 25129 | mingw*) |
| 25130 | # MinGW DLLs use traditional 'lib' prefix |
| 25131 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25132 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25133 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25134 | # It is most probably a Windows format PATH printed by |
| 25135 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25136 | # path with ; separators, and with drive letters. We can handle the |
| 25137 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25138 | # especially as we might pass files found there to a mingw objdump, |
| 25139 | # which wouldn't understand a cygwinified path. Ahh. |
| 25140 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25141 | else |
| 25142 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25143 | fi |
| 25144 | ;; |
| 25145 | pw32*) |
| 25146 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25147 | 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] | 25148 | ;; |
| 25149 | esac |
| 25150 | ;; |
| 25151 | |
| 25152 | *) |
| 25153 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25154 | ;; |
| 25155 | esac |
| 25156 | dynamic_linker='Win32 ld.exe' |
| 25157 | # FIXME: first we should search . and the directory the executable is in |
| 25158 | shlibpath_var=PATH |
| 25159 | ;; |
| 25160 | |
| 25161 | darwin* | rhapsody*) |
| 25162 | dynamic_linker="$host_os dyld" |
| 25163 | version_type=darwin |
| 25164 | need_lib_prefix=no |
| 25165 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25166 | 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] | 25167 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25168 | shlibpath_overrides_runpath=yes |
| 25169 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25170 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25171 | # 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] | 25172 | if test "$GCC" = yes; then |
| 25173 | 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"` |
| 25174 | else |
| 25175 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25176 | fi |
| 25177 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25178 | ;; |
| 25179 | |
| 25180 | dgux*) |
| 25181 | version_type=linux |
| 25182 | need_lib_prefix=no |
| 25183 | need_version=no |
| 25184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25185 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25186 | shlibpath_var=LD_LIBRARY_PATH |
| 25187 | ;; |
| 25188 | |
| 25189 | freebsd1*) |
| 25190 | dynamic_linker=no |
| 25191 | ;; |
| 25192 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25193 | kfreebsd*-gnu) |
| 25194 | version_type=linux |
| 25195 | need_lib_prefix=no |
| 25196 | need_version=no |
| 25197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25199 | shlibpath_var=LD_LIBRARY_PATH |
| 25200 | shlibpath_overrides_runpath=no |
| 25201 | hardcode_into_libs=yes |
| 25202 | dynamic_linker='GNU ld.so' |
| 25203 | ;; |
| 25204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25205 | freebsd* | dragonfly*) |
| 25206 | # DragonFly does not have aout. When/if they implement a new |
| 25207 | # versioning mechanism, adjust this. |
| 25208 | if test -x /usr/bin/objformat; then |
| 25209 | objformat=`/usr/bin/objformat` |
| 25210 | else |
| 25211 | case $host_os in |
| 25212 | freebsd[123]*) objformat=aout ;; |
| 25213 | *) objformat=elf ;; |
| 25214 | esac |
| 25215 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25216 | version_type=freebsd-$objformat |
| 25217 | case $version_type in |
| 25218 | freebsd-elf*) |
| 25219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25220 | need_version=no |
| 25221 | need_lib_prefix=no |
| 25222 | ;; |
| 25223 | freebsd-*) |
| 25224 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25225 | need_version=yes |
| 25226 | ;; |
| 25227 | esac |
| 25228 | shlibpath_var=LD_LIBRARY_PATH |
| 25229 | case $host_os in |
| 25230 | freebsd2*) |
| 25231 | shlibpath_overrides_runpath=yes |
| 25232 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25233 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25234 | shlibpath_overrides_runpath=yes |
| 25235 | hardcode_into_libs=yes |
| 25236 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25237 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25238 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25239 | shlibpath_overrides_runpath=no |
| 25240 | hardcode_into_libs=yes |
| 25241 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25242 | freebsd*) # from 4.6 on |
| 25243 | shlibpath_overrides_runpath=yes |
| 25244 | hardcode_into_libs=yes |
| 25245 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25246 | esac |
| 25247 | ;; |
| 25248 | |
| 25249 | gnu*) |
| 25250 | version_type=linux |
| 25251 | need_lib_prefix=no |
| 25252 | need_version=no |
| 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 | shlibpath_var=LD_LIBRARY_PATH |
| 25256 | hardcode_into_libs=yes |
| 25257 | ;; |
| 25258 | |
| 25259 | hpux9* | hpux10* | hpux11*) |
| 25260 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25261 | # link against other versions. |
| 25262 | version_type=sunos |
| 25263 | need_lib_prefix=no |
| 25264 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25265 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25266 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25267 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25268 | hardcode_into_libs=yes |
| 25269 | dynamic_linker="$host_os dld.so" |
| 25270 | shlibpath_var=LD_LIBRARY_PATH |
| 25271 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25273 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25274 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25275 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25276 | else |
| 25277 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25278 | fi |
| 25279 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25280 | ;; |
| 25281 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25282 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25283 | hardcode_into_libs=yes |
| 25284 | dynamic_linker="$host_os dld.sl" |
| 25285 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25286 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25289 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25290 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25291 | ;; |
| 25292 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25293 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25294 | dynamic_linker="$host_os dld.sl" |
| 25295 | shlibpath_var=SHLIB_PATH |
| 25296 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 25297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25298 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25299 | ;; |
| 25300 | esac |
| 25301 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25302 | postinstall_cmds='chmod 555 $lib' |
| 25303 | ;; |
| 25304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25305 | interix3*) |
| 25306 | version_type=linux |
| 25307 | need_lib_prefix=no |
| 25308 | need_version=no |
| 25309 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25310 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25311 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25312 | shlibpath_var=LD_LIBRARY_PATH |
| 25313 | shlibpath_overrides_runpath=no |
| 25314 | hardcode_into_libs=yes |
| 25315 | ;; |
| 25316 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25317 | irix5* | irix6* | nonstopux*) |
| 25318 | case $host_os in |
| 25319 | nonstopux*) version_type=nonstopux ;; |
| 25320 | *) |
| 25321 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25322 | version_type=linux |
| 25323 | else |
| 25324 | version_type=irix |
| 25325 | fi ;; |
| 25326 | esac |
| 25327 | need_lib_prefix=no |
| 25328 | need_version=no |
| 25329 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25331 | case $host_os in |
| 25332 | irix5* | nonstopux*) |
| 25333 | libsuff= shlibsuff= |
| 25334 | ;; |
| 25335 | *) |
| 25336 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25337 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25338 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25339 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25340 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25341 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25342 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25343 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25344 | esac |
| 25345 | ;; |
| 25346 | esac |
| 25347 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25348 | shlibpath_overrides_runpath=no |
| 25349 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25350 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25351 | hardcode_into_libs=yes |
| 25352 | ;; |
| 25353 | |
| 25354 | # No shared lib support for Linux oldld, aout, or coff. |
| 25355 | linux*oldld* | linux*aout* | linux*coff*) |
| 25356 | dynamic_linker=no |
| 25357 | ;; |
| 25358 | |
| 25359 | # This must be Linux ELF. |
| 25360 | linux*) |
| 25361 | version_type=linux |
| 25362 | need_lib_prefix=no |
| 25363 | need_version=no |
| 25364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25365 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25366 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25367 | shlibpath_var=LD_LIBRARY_PATH |
| 25368 | shlibpath_overrides_runpath=no |
| 25369 | # This implies no fast_install, which is unacceptable. |
| 25370 | # Some rework will be needed to allow for fast_install |
| 25371 | # before this can be enabled. |
| 25372 | hardcode_into_libs=yes |
| 25373 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25374 | # Append ld.so.conf contents to the search path |
| 25375 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25376 | 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] | 25377 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25378 | fi |
| 25379 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25380 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25381 | # powerpc, because MkLinux only supported shared libraries with the |
| 25382 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25383 | # most powerpc-linux boxes support dynamic linking these days and |
| 25384 | # people can always --disable-shared, the test was removed, and we |
| 25385 | # assume the GNU/Linux dynamic linker is in use. |
| 25386 | dynamic_linker='GNU/Linux ld.so' |
| 25387 | ;; |
| 25388 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25389 | knetbsd*-gnu) |
| 25390 | version_type=linux |
| 25391 | need_lib_prefix=no |
| 25392 | need_version=no |
| 25393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25395 | shlibpath_var=LD_LIBRARY_PATH |
| 25396 | shlibpath_overrides_runpath=no |
| 25397 | hardcode_into_libs=yes |
| 25398 | dynamic_linker='GNU ld.so' |
| 25399 | ;; |
| 25400 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25401 | netbsd*) |
| 25402 | version_type=sunos |
| 25403 | need_lib_prefix=no |
| 25404 | need_version=no |
| 25405 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25407 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25408 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25409 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25410 | 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] | 25411 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25412 | dynamic_linker='NetBSD ld.elf_so' |
| 25413 | fi |
| 25414 | shlibpath_var=LD_LIBRARY_PATH |
| 25415 | shlibpath_overrides_runpath=yes |
| 25416 | hardcode_into_libs=yes |
| 25417 | ;; |
| 25418 | |
| 25419 | newsos6) |
| 25420 | version_type=linux |
| 25421 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25422 | shlibpath_var=LD_LIBRARY_PATH |
| 25423 | shlibpath_overrides_runpath=yes |
| 25424 | ;; |
| 25425 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25426 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25427 | version_type=linux |
| 25428 | need_lib_prefix=no |
| 25429 | need_version=no |
| 25430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25431 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25432 | shlibpath_var=LD_LIBRARY_PATH |
| 25433 | shlibpath_overrides_runpath=yes |
| 25434 | ;; |
| 25435 | |
| 25436 | openbsd*) |
| 25437 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25438 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25439 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25440 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25441 | case $host_os in |
| 25442 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25443 | *) need_version=no ;; |
| 25444 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25447 | shlibpath_var=LD_LIBRARY_PATH |
| 25448 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25449 | case $host_os in |
| 25450 | openbsd2.[89] | openbsd2.[89].*) |
| 25451 | shlibpath_overrides_runpath=no |
| 25452 | ;; |
| 25453 | *) |
| 25454 | shlibpath_overrides_runpath=yes |
| 25455 | ;; |
| 25456 | esac |
| 25457 | else |
| 25458 | shlibpath_overrides_runpath=yes |
| 25459 | fi |
| 25460 | ;; |
| 25461 | |
| 25462 | os2*) |
| 25463 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25464 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25465 | need_lib_prefix=no |
| 25466 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25467 | dynamic_linker='OS/2 ld.exe' |
| 25468 | shlibpath_var=LIBPATH |
| 25469 | ;; |
| 25470 | |
| 25471 | osf3* | osf4* | osf5*) |
| 25472 | version_type=osf |
| 25473 | need_lib_prefix=no |
| 25474 | need_version=no |
| 25475 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25477 | shlibpath_var=LD_LIBRARY_PATH |
| 25478 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25479 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25480 | ;; |
| 25481 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25482 | solaris*) |
| 25483 | version_type=linux |
| 25484 | need_lib_prefix=no |
| 25485 | need_version=no |
| 25486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25487 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25488 | shlibpath_var=LD_LIBRARY_PATH |
| 25489 | shlibpath_overrides_runpath=yes |
| 25490 | hardcode_into_libs=yes |
| 25491 | # ldd complains unless libraries are executable |
| 25492 | postinstall_cmds='chmod +x $lib' |
| 25493 | ;; |
| 25494 | |
| 25495 | sunos4*) |
| 25496 | version_type=sunos |
| 25497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25498 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25499 | shlibpath_var=LD_LIBRARY_PATH |
| 25500 | shlibpath_overrides_runpath=yes |
| 25501 | if test "$with_gnu_ld" = yes; then |
| 25502 | need_lib_prefix=no |
| 25503 | fi |
| 25504 | need_version=yes |
| 25505 | ;; |
| 25506 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25507 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25508 | version_type=linux |
| 25509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25510 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25511 | shlibpath_var=LD_LIBRARY_PATH |
| 25512 | case $host_vendor in |
| 25513 | sni) |
| 25514 | shlibpath_overrides_runpath=no |
| 25515 | need_lib_prefix=no |
| 25516 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25517 | runpath_var=LD_RUN_PATH |
| 25518 | ;; |
| 25519 | siemens) |
| 25520 | need_lib_prefix=no |
| 25521 | ;; |
| 25522 | motorola) |
| 25523 | need_lib_prefix=no |
| 25524 | need_version=no |
| 25525 | shlibpath_overrides_runpath=no |
| 25526 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25527 | ;; |
| 25528 | esac |
| 25529 | ;; |
| 25530 | |
| 25531 | sysv4*MP*) |
| 25532 | if test -d /usr/nec ;then |
| 25533 | version_type=linux |
| 25534 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25535 | soname_spec='$libname${shared_ext}.$major' |
| 25536 | shlibpath_var=LD_LIBRARY_PATH |
| 25537 | fi |
| 25538 | ;; |
| 25539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25540 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25541 | version_type=freebsd-elf |
| 25542 | need_lib_prefix=no |
| 25543 | need_version=no |
| 25544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25545 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25546 | shlibpath_var=LD_LIBRARY_PATH |
| 25547 | hardcode_into_libs=yes |
| 25548 | if test "$with_gnu_ld" = yes; then |
| 25549 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25550 | shlibpath_overrides_runpath=no |
| 25551 | else |
| 25552 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25553 | shlibpath_overrides_runpath=yes |
| 25554 | case $host_os in |
| 25555 | sco3.2v5*) |
| 25556 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25557 | ;; |
| 25558 | esac |
| 25559 | fi |
| 25560 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25561 | ;; |
| 25562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25563 | uts4*) |
| 25564 | version_type=linux |
| 25565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25567 | shlibpath_var=LD_LIBRARY_PATH |
| 25568 | ;; |
| 25569 | |
| 25570 | *) |
| 25571 | dynamic_linker=no |
| 25572 | ;; |
| 25573 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25574 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25575 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25576 | test "$dynamic_linker" = no && can_build_shared=no |
| 25577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25578 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25579 | if test "$GCC" = yes; then |
| 25580 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25581 | fi |
| 25582 | |
| 25583 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25584 | 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] | 25585 | hardcode_action_GCJ= |
| 25586 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25587 | test -n "$runpath_var_GCJ" || \ |
| 25588 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25589 | |
| 25590 | # We can hardcode non-existant directories. |
| 25591 | if test "$hardcode_direct_GCJ" != no && |
| 25592 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25593 | # have to relink, otherwise we might link with an installed library |
| 25594 | # when we should be linking with a yet-to-be-installed one |
| 25595 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25596 | test "$hardcode_minus_L_GCJ" != no; then |
| 25597 | # Linking always hardcodes the temporary library directory. |
| 25598 | hardcode_action_GCJ=relink |
| 25599 | else |
| 25600 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25601 | hardcode_action_GCJ=immediate |
| 25602 | fi |
| 25603 | else |
| 25604 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25605 | # directories. |
| 25606 | hardcode_action_GCJ=unsupported |
| 25607 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25608 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25609 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25610 | |
| 25611 | if test "$hardcode_action_GCJ" = relink; then |
| 25612 | # Fast installation is not supported |
| 25613 | enable_fast_install=no |
| 25614 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25615 | test "$enable_shared" = no; then |
| 25616 | # Fast installation is not necessary |
| 25617 | enable_fast_install=needless |
| 25618 | fi |
| 25619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25620 | |
| 25621 | # The else clause should only fire when bootstrapping the |
| 25622 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25623 | # with your package, and you will get complaints that there are |
| 25624 | # no rules to generate ltmain.sh. |
| 25625 | if test -f "$ltmain"; then |
| 25626 | # See if we are running on zsh, and set the options which allow our commands through |
| 25627 | # without removal of \ escapes. |
| 25628 | if test -n "${ZSH_VERSION+set}" ; then |
| 25629 | setopt NO_GLOB_SUBST |
| 25630 | fi |
| 25631 | # Now quote all the things that may contain metacharacters while being |
| 25632 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25633 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25634 | 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] | 25635 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25636 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25637 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25638 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25639 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25640 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25641 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25642 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25643 | compiler_GCJ \ |
| 25644 | CC_GCJ \ |
| 25645 | LD_GCJ \ |
| 25646 | lt_prog_compiler_wl_GCJ \ |
| 25647 | lt_prog_compiler_pic_GCJ \ |
| 25648 | lt_prog_compiler_static_GCJ \ |
| 25649 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25650 | export_dynamic_flag_spec_GCJ \ |
| 25651 | thread_safe_flag_spec_GCJ \ |
| 25652 | whole_archive_flag_spec_GCJ \ |
| 25653 | enable_shared_with_static_runtimes_GCJ \ |
| 25654 | old_archive_cmds_GCJ \ |
| 25655 | old_archive_from_new_cmds_GCJ \ |
| 25656 | predep_objects_GCJ \ |
| 25657 | postdep_objects_GCJ \ |
| 25658 | predeps_GCJ \ |
| 25659 | postdeps_GCJ \ |
| 25660 | compiler_lib_search_path_GCJ \ |
| 25661 | archive_cmds_GCJ \ |
| 25662 | archive_expsym_cmds_GCJ \ |
| 25663 | postinstall_cmds_GCJ \ |
| 25664 | postuninstall_cmds_GCJ \ |
| 25665 | old_archive_from_expsyms_cmds_GCJ \ |
| 25666 | allow_undefined_flag_GCJ \ |
| 25667 | no_undefined_flag_GCJ \ |
| 25668 | export_symbols_cmds_GCJ \ |
| 25669 | hardcode_libdir_flag_spec_GCJ \ |
| 25670 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25671 | hardcode_libdir_separator_GCJ \ |
| 25672 | hardcode_automatic_GCJ \ |
| 25673 | module_cmds_GCJ \ |
| 25674 | module_expsym_cmds_GCJ \ |
| 25675 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25676 | exclude_expsyms_GCJ \ |
| 25677 | include_expsyms_GCJ; do |
| 25678 | |
| 25679 | case $var in |
| 25680 | old_archive_cmds_GCJ | \ |
| 25681 | old_archive_from_new_cmds_GCJ | \ |
| 25682 | archive_cmds_GCJ | \ |
| 25683 | archive_expsym_cmds_GCJ | \ |
| 25684 | module_cmds_GCJ | \ |
| 25685 | module_expsym_cmds_GCJ | \ |
| 25686 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25687 | export_symbols_cmds_GCJ | \ |
| 25688 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25689 | postinstall_cmds | postuninstall_cmds | \ |
| 25690 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25691 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25692 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25693 | 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] | 25694 | ;; |
| 25695 | *) |
| 25696 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25697 | ;; |
| 25698 | esac |
| 25699 | done |
| 25700 | |
| 25701 | case $lt_echo in |
| 25702 | *'\$0 --fallback-echo"') |
| 25703 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25704 | ;; |
| 25705 | esac |
| 25706 | |
| 25707 | cfgfile="$ofile" |
| 25708 | |
| 25709 | cat <<__EOF__ >> "$cfgfile" |
| 25710 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25711 | |
| 25712 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25713 | |
| 25714 | # Shell to use when invoking shell scripts. |
| 25715 | SHELL=$lt_SHELL |
| 25716 | |
| 25717 | # Whether or not to build shared libraries. |
| 25718 | build_libtool_libs=$enable_shared |
| 25719 | |
| 25720 | # Whether or not to build static libraries. |
| 25721 | build_old_libs=$enable_static |
| 25722 | |
| 25723 | # Whether or not to add -lc for building shared libraries. |
| 25724 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25725 | |
| 25726 | # Whether or not to disallow shared libs when runtime libs are static |
| 25727 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25728 | |
| 25729 | # Whether or not to optimize for fast installation. |
| 25730 | fast_install=$enable_fast_install |
| 25731 | |
| 25732 | # The host system. |
| 25733 | host_alias=$host_alias |
| 25734 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25735 | host_os=$host_os |
| 25736 | |
| 25737 | # The build system. |
| 25738 | build_alias=$build_alias |
| 25739 | build=$build |
| 25740 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25741 | |
| 25742 | # An echo program that does not interpret backslashes. |
| 25743 | echo=$lt_echo |
| 25744 | |
| 25745 | # The archiver. |
| 25746 | AR=$lt_AR |
| 25747 | AR_FLAGS=$lt_AR_FLAGS |
| 25748 | |
| 25749 | # A C compiler. |
| 25750 | LTCC=$lt_LTCC |
| 25751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25752 | # LTCC compiler flags. |
| 25753 | LTCFLAGS=$lt_LTCFLAGS |
| 25754 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25755 | # A language-specific compiler. |
| 25756 | CC=$lt_compiler_GCJ |
| 25757 | |
| 25758 | # Is the compiler the GNU C compiler? |
| 25759 | with_gcc=$GCC_GCJ |
| 25760 | |
| 25761 | # An ERE matcher. |
| 25762 | EGREP=$lt_EGREP |
| 25763 | |
| 25764 | # The linker used to build libraries. |
| 25765 | LD=$lt_LD_GCJ |
| 25766 | |
| 25767 | # Whether we need hard or soft links. |
| 25768 | LN_S=$lt_LN_S |
| 25769 | |
| 25770 | # A BSD-compatible nm program. |
| 25771 | NM=$lt_NM |
| 25772 | |
| 25773 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25774 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25775 | |
| 25776 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25777 | MAGIC_CMD=$MAGIC_CMD |
| 25778 | |
| 25779 | # Used on cygwin: DLL creation program. |
| 25780 | DLLTOOL="$DLLTOOL" |
| 25781 | |
| 25782 | # Used on cygwin: object dumper. |
| 25783 | OBJDUMP="$OBJDUMP" |
| 25784 | |
| 25785 | # Used on cygwin: assembler. |
| 25786 | AS="$AS" |
| 25787 | |
| 25788 | # The name of the directory that contains temporary libtool files. |
| 25789 | objdir=$objdir |
| 25790 | |
| 25791 | # How to create reloadable object files. |
| 25792 | reload_flag=$lt_reload_flag |
| 25793 | reload_cmds=$lt_reload_cmds |
| 25794 | |
| 25795 | # How to pass a linker flag through the compiler. |
| 25796 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 25797 | |
| 25798 | # Object file suffix (normally "o"). |
| 25799 | objext="$ac_objext" |
| 25800 | |
| 25801 | # Old archive suffix (normally "a"). |
| 25802 | libext="$libext" |
| 25803 | |
| 25804 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25805 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25806 | |
| 25807 | # Executable file suffix (normally ""). |
| 25808 | exeext="$exeext" |
| 25809 | |
| 25810 | # Additional compiler flags for building library objects. |
| 25811 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 25812 | pic_mode=$pic_mode |
| 25813 | |
| 25814 | # What is the maximum length of a command? |
| 25815 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25816 | |
| 25817 | # Does compiler simultaneously support -c and -o options? |
| 25818 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 25819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25820 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25821 | need_locks=$lt_need_locks |
| 25822 | |
| 25823 | # Do we need the lib prefix for modules? |
| 25824 | need_lib_prefix=$need_lib_prefix |
| 25825 | |
| 25826 | # Do we need a version for libraries? |
| 25827 | need_version=$need_version |
| 25828 | |
| 25829 | # Whether dlopen is supported. |
| 25830 | dlopen_support=$enable_dlopen |
| 25831 | |
| 25832 | # Whether dlopen of programs is supported. |
| 25833 | dlopen_self=$enable_dlopen_self |
| 25834 | |
| 25835 | # Whether dlopen of statically linked programs is supported. |
| 25836 | dlopen_self_static=$enable_dlopen_self_static |
| 25837 | |
| 25838 | # Compiler flag to prevent dynamic linking. |
| 25839 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 25840 | |
| 25841 | # Compiler flag to turn off builtin functions. |
| 25842 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 25843 | |
| 25844 | # Compiler flag to allow reflexive dlopens. |
| 25845 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 25846 | |
| 25847 | # Compiler flag to generate shared objects directly from archives. |
| 25848 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 25849 | |
| 25850 | # Compiler flag to generate thread-safe objects. |
| 25851 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 25852 | |
| 25853 | # Library versioning type. |
| 25854 | version_type=$version_type |
| 25855 | |
| 25856 | # Format of library name prefix. |
| 25857 | libname_spec=$lt_libname_spec |
| 25858 | |
| 25859 | # List of archive names. First name is the real one, the rest are links. |
| 25860 | # The last name is the one that the linker finds with -lNAME. |
| 25861 | library_names_spec=$lt_library_names_spec |
| 25862 | |
| 25863 | # The coded name of the library, if different from the real name. |
| 25864 | soname_spec=$lt_soname_spec |
| 25865 | |
| 25866 | # Commands used to build and install an old-style archive. |
| 25867 | RANLIB=$lt_RANLIB |
| 25868 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 25869 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25870 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25871 | |
| 25872 | # Create an old-style archive from a shared archive. |
| 25873 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 25874 | |
| 25875 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25876 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 25877 | |
| 25878 | # Commands used to build and install a shared archive. |
| 25879 | archive_cmds=$lt_archive_cmds_GCJ |
| 25880 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 25881 | postinstall_cmds=$lt_postinstall_cmds |
| 25882 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25883 | |
| 25884 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25885 | module_cmds=$lt_module_cmds_GCJ |
| 25886 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 25887 | |
| 25888 | # Commands to strip libraries. |
| 25889 | old_striplib=$lt_old_striplib |
| 25890 | striplib=$lt_striplib |
| 25891 | |
| 25892 | # Dependencies to place before the objects being linked to create a |
| 25893 | # shared library. |
| 25894 | predep_objects=$lt_predep_objects_GCJ |
| 25895 | |
| 25896 | # Dependencies to place after the objects being linked to create a |
| 25897 | # shared library. |
| 25898 | postdep_objects=$lt_postdep_objects_GCJ |
| 25899 | |
| 25900 | # Dependencies to place before the objects being linked to create a |
| 25901 | # shared library. |
| 25902 | predeps=$lt_predeps_GCJ |
| 25903 | |
| 25904 | # Dependencies to place after the objects being linked to create a |
| 25905 | # shared library. |
| 25906 | postdeps=$lt_postdeps_GCJ |
| 25907 | |
| 25908 | # The library search path used internally by the compiler when linking |
| 25909 | # a shared library. |
| 25910 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 25911 | |
| 25912 | # Method to check whether dependent libraries are shared objects. |
| 25913 | deplibs_check_method=$lt_deplibs_check_method |
| 25914 | |
| 25915 | # Command to use when deplibs_check_method == file_magic. |
| 25916 | file_magic_cmd=$lt_file_magic_cmd |
| 25917 | |
| 25918 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25919 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 25920 | |
| 25921 | # Flag that forces no undefined symbols. |
| 25922 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 25923 | |
| 25924 | # Commands used to finish a libtool library installation in a directory. |
| 25925 | finish_cmds=$lt_finish_cmds |
| 25926 | |
| 25927 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25928 | finish_eval=$lt_finish_eval |
| 25929 | |
| 25930 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25931 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25932 | |
| 25933 | # Transform the output of nm in a proper C declaration |
| 25934 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25935 | |
| 25936 | # Transform the output of nm in a C name address pair |
| 25937 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25938 | |
| 25939 | # This is the shared library runtime path variable. |
| 25940 | runpath_var=$runpath_var |
| 25941 | |
| 25942 | # This is the shared library path variable. |
| 25943 | shlibpath_var=$shlibpath_var |
| 25944 | |
| 25945 | # Is shlibpath searched before the hard-coded library search path? |
| 25946 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25947 | |
| 25948 | # How to hardcode a shared library path into an executable. |
| 25949 | hardcode_action=$hardcode_action_GCJ |
| 25950 | |
| 25951 | # Whether we should hardcode library paths into libraries. |
| 25952 | hardcode_into_libs=$hardcode_into_libs |
| 25953 | |
| 25954 | # Flag to hardcode \$libdir into a binary during linking. |
| 25955 | # This must work even if \$libdir does not exist. |
| 25956 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 25957 | |
| 25958 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25959 | # a binary during linking. This must work even if \$libdir does |
| 25960 | # not exist. |
| 25961 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 25962 | |
| 25963 | # Whether we need a single -rpath flag with a separated argument. |
| 25964 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 25965 | |
| 25966 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25967 | # resulting binary. |
| 25968 | hardcode_direct=$hardcode_direct_GCJ |
| 25969 | |
| 25970 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25971 | # resulting binary. |
| 25972 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 25973 | |
| 25974 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25975 | # the resulting binary. |
| 25976 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 25977 | |
| 25978 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25979 | # and all subsequent libraries and executables linked against it. |
| 25980 | hardcode_automatic=$hardcode_automatic_GCJ |
| 25981 | |
| 25982 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25983 | # restored at relink time. |
| 25984 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25985 | |
| 25986 | # Whether libtool must link a program against all its dependency libraries. |
| 25987 | link_all_deplibs=$link_all_deplibs_GCJ |
| 25988 | |
| 25989 | # Compile-time system search path for libraries |
| 25990 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25991 | |
| 25992 | # Run-time system search path for libraries |
| 25993 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25994 | |
| 25995 | # Fix the shell variable \$srcfile for the compiler. |
| 25996 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25997 | |
| 25998 | # Set to yes if exported symbols are required. |
| 25999 | always_export_symbols=$always_export_symbols_GCJ |
| 26000 | |
| 26001 | # The commands to list exported symbols. |
| 26002 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 26003 | |
| 26004 | # The commands to extract the exported symbol list from a shared archive. |
| 26005 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26006 | |
| 26007 | # Symbols that should not be listed in the preloaded symbols. |
| 26008 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 26009 | |
| 26010 | # Symbols that must always be exported. |
| 26011 | include_expsyms=$lt_include_expsyms_GCJ |
| 26012 | |
| 26013 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26014 | |
| 26015 | __EOF__ |
| 26016 | |
| 26017 | |
| 26018 | else |
| 26019 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26020 | # `config.status --recheck' to rerun these tests and create the |
| 26021 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26022 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26023 | if test -f "$ltmain_in"; then |
| 26024 | test -f Makefile && make "$ltmain" |
| 26025 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26026 | fi |
| 26027 | |
| 26028 | |
| 26029 | ac_ext=c |
| 26030 | ac_cpp='$CPP $CPPFLAGS' |
| 26031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26034 | |
| 26035 | CC="$lt_save_CC" |
| 26036 | |
| 26037 | else |
| 26038 | tagname="" |
| 26039 | fi |
| 26040 | ;; |
| 26041 | |
| 26042 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26043 | ac_ext=c |
| 26044 | ac_cpp='$CPP $CPPFLAGS' |
| 26045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26048 | |
| 26049 | |
| 26050 | # Source file extension for RC test sources. |
| 26051 | ac_ext=rc |
| 26052 | |
| 26053 | # Object file extension for compiled RC test sources. |
| 26054 | objext=o |
| 26055 | objext_RC=$objext |
| 26056 | |
| 26057 | # Code to be used in simple compile tests |
| 26058 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26059 | |
| 26060 | # Code to be used in simple link tests |
| 26061 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26062 | |
| 26063 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26064 | |
| 26065 | # If no C compiler was specified, use CC. |
| 26066 | LTCC=${LTCC-"$CC"} |
| 26067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26068 | # If no C compiler flags were specified, use CFLAGS. |
| 26069 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26070 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26071 | # Allow CC to be a program name with arguments. |
| 26072 | compiler=$CC |
| 26073 | |
| 26074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26075 | # save warnings/boilerplate of simple test code |
| 26076 | ac_outfile=conftest.$ac_objext |
| 26077 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26078 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26079 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26080 | $rm conftest* |
| 26081 | |
| 26082 | ac_outfile=conftest.$ac_objext |
| 26083 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26084 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26085 | _lt_linker_boilerplate=`cat conftest.err` |
| 26086 | $rm conftest* |
| 26087 | |
| 26088 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26089 | # Allow CC to be a program name with arguments. |
| 26090 | lt_save_CC="$CC" |
| 26091 | CC=${RC-"windres"} |
| 26092 | compiler=$CC |
| 26093 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26094 | for cc_temp in $compiler""; do |
| 26095 | case $cc_temp in |
| 26096 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26097 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26098 | \-*) ;; |
| 26099 | *) break;; |
| 26100 | esac |
| 26101 | done |
| 26102 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26103 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26104 | lt_cv_prog_compiler_c_o_RC=yes |
| 26105 | |
| 26106 | # The else clause should only fire when bootstrapping the |
| 26107 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26108 | # with your package, and you will get complaints that there are |
| 26109 | # no rules to generate ltmain.sh. |
| 26110 | if test -f "$ltmain"; then |
| 26111 | # See if we are running on zsh, and set the options which allow our commands through |
| 26112 | # without removal of \ escapes. |
| 26113 | if test -n "${ZSH_VERSION+set}" ; then |
| 26114 | setopt NO_GLOB_SUBST |
| 26115 | fi |
| 26116 | # Now quote all the things that may contain metacharacters while being |
| 26117 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26118 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26119 | 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] | 26120 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26121 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26122 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26123 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26124 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26125 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26126 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26127 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26128 | compiler_RC \ |
| 26129 | CC_RC \ |
| 26130 | LD_RC \ |
| 26131 | lt_prog_compiler_wl_RC \ |
| 26132 | lt_prog_compiler_pic_RC \ |
| 26133 | lt_prog_compiler_static_RC \ |
| 26134 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26135 | export_dynamic_flag_spec_RC \ |
| 26136 | thread_safe_flag_spec_RC \ |
| 26137 | whole_archive_flag_spec_RC \ |
| 26138 | enable_shared_with_static_runtimes_RC \ |
| 26139 | old_archive_cmds_RC \ |
| 26140 | old_archive_from_new_cmds_RC \ |
| 26141 | predep_objects_RC \ |
| 26142 | postdep_objects_RC \ |
| 26143 | predeps_RC \ |
| 26144 | postdeps_RC \ |
| 26145 | compiler_lib_search_path_RC \ |
| 26146 | archive_cmds_RC \ |
| 26147 | archive_expsym_cmds_RC \ |
| 26148 | postinstall_cmds_RC \ |
| 26149 | postuninstall_cmds_RC \ |
| 26150 | old_archive_from_expsyms_cmds_RC \ |
| 26151 | allow_undefined_flag_RC \ |
| 26152 | no_undefined_flag_RC \ |
| 26153 | export_symbols_cmds_RC \ |
| 26154 | hardcode_libdir_flag_spec_RC \ |
| 26155 | hardcode_libdir_flag_spec_ld_RC \ |
| 26156 | hardcode_libdir_separator_RC \ |
| 26157 | hardcode_automatic_RC \ |
| 26158 | module_cmds_RC \ |
| 26159 | module_expsym_cmds_RC \ |
| 26160 | lt_cv_prog_compiler_c_o_RC \ |
| 26161 | exclude_expsyms_RC \ |
| 26162 | include_expsyms_RC; do |
| 26163 | |
| 26164 | case $var in |
| 26165 | old_archive_cmds_RC | \ |
| 26166 | old_archive_from_new_cmds_RC | \ |
| 26167 | archive_cmds_RC | \ |
| 26168 | archive_expsym_cmds_RC | \ |
| 26169 | module_cmds_RC | \ |
| 26170 | module_expsym_cmds_RC | \ |
| 26171 | old_archive_from_expsyms_cmds_RC | \ |
| 26172 | export_symbols_cmds_RC | \ |
| 26173 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26174 | postinstall_cmds | postuninstall_cmds | \ |
| 26175 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26176 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26177 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26178 | 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] | 26179 | ;; |
| 26180 | *) |
| 26181 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26182 | ;; |
| 26183 | esac |
| 26184 | done |
| 26185 | |
| 26186 | case $lt_echo in |
| 26187 | *'\$0 --fallback-echo"') |
| 26188 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26189 | ;; |
| 26190 | esac |
| 26191 | |
| 26192 | cfgfile="$ofile" |
| 26193 | |
| 26194 | cat <<__EOF__ >> "$cfgfile" |
| 26195 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26196 | |
| 26197 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26198 | |
| 26199 | # Shell to use when invoking shell scripts. |
| 26200 | SHELL=$lt_SHELL |
| 26201 | |
| 26202 | # Whether or not to build shared libraries. |
| 26203 | build_libtool_libs=$enable_shared |
| 26204 | |
| 26205 | # Whether or not to build static libraries. |
| 26206 | build_old_libs=$enable_static |
| 26207 | |
| 26208 | # Whether or not to add -lc for building shared libraries. |
| 26209 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26210 | |
| 26211 | # Whether or not to disallow shared libs when runtime libs are static |
| 26212 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26213 | |
| 26214 | # Whether or not to optimize for fast installation. |
| 26215 | fast_install=$enable_fast_install |
| 26216 | |
| 26217 | # The host system. |
| 26218 | host_alias=$host_alias |
| 26219 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26220 | host_os=$host_os |
| 26221 | |
| 26222 | # The build system. |
| 26223 | build_alias=$build_alias |
| 26224 | build=$build |
| 26225 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26226 | |
| 26227 | # An echo program that does not interpret backslashes. |
| 26228 | echo=$lt_echo |
| 26229 | |
| 26230 | # The archiver. |
| 26231 | AR=$lt_AR |
| 26232 | AR_FLAGS=$lt_AR_FLAGS |
| 26233 | |
| 26234 | # A C compiler. |
| 26235 | LTCC=$lt_LTCC |
| 26236 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26237 | # LTCC compiler flags. |
| 26238 | LTCFLAGS=$lt_LTCFLAGS |
| 26239 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26240 | # A language-specific compiler. |
| 26241 | CC=$lt_compiler_RC |
| 26242 | |
| 26243 | # Is the compiler the GNU C compiler? |
| 26244 | with_gcc=$GCC_RC |
| 26245 | |
| 26246 | # An ERE matcher. |
| 26247 | EGREP=$lt_EGREP |
| 26248 | |
| 26249 | # The linker used to build libraries. |
| 26250 | LD=$lt_LD_RC |
| 26251 | |
| 26252 | # Whether we need hard or soft links. |
| 26253 | LN_S=$lt_LN_S |
| 26254 | |
| 26255 | # A BSD-compatible nm program. |
| 26256 | NM=$lt_NM |
| 26257 | |
| 26258 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26259 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26260 | |
| 26261 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26262 | MAGIC_CMD=$MAGIC_CMD |
| 26263 | |
| 26264 | # Used on cygwin: DLL creation program. |
| 26265 | DLLTOOL="$DLLTOOL" |
| 26266 | |
| 26267 | # Used on cygwin: object dumper. |
| 26268 | OBJDUMP="$OBJDUMP" |
| 26269 | |
| 26270 | # Used on cygwin: assembler. |
| 26271 | AS="$AS" |
| 26272 | |
| 26273 | # The name of the directory that contains temporary libtool files. |
| 26274 | objdir=$objdir |
| 26275 | |
| 26276 | # How to create reloadable object files. |
| 26277 | reload_flag=$lt_reload_flag |
| 26278 | reload_cmds=$lt_reload_cmds |
| 26279 | |
| 26280 | # How to pass a linker flag through the compiler. |
| 26281 | wl=$lt_lt_prog_compiler_wl_RC |
| 26282 | |
| 26283 | # Object file suffix (normally "o"). |
| 26284 | objext="$ac_objext" |
| 26285 | |
| 26286 | # Old archive suffix (normally "a"). |
| 26287 | libext="$libext" |
| 26288 | |
| 26289 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26290 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26291 | |
| 26292 | # Executable file suffix (normally ""). |
| 26293 | exeext="$exeext" |
| 26294 | |
| 26295 | # Additional compiler flags for building library objects. |
| 26296 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26297 | pic_mode=$pic_mode |
| 26298 | |
| 26299 | # What is the maximum length of a command? |
| 26300 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26301 | |
| 26302 | # Does compiler simultaneously support -c and -o options? |
| 26303 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26305 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26306 | need_locks=$lt_need_locks |
| 26307 | |
| 26308 | # Do we need the lib prefix for modules? |
| 26309 | need_lib_prefix=$need_lib_prefix |
| 26310 | |
| 26311 | # Do we need a version for libraries? |
| 26312 | need_version=$need_version |
| 26313 | |
| 26314 | # Whether dlopen is supported. |
| 26315 | dlopen_support=$enable_dlopen |
| 26316 | |
| 26317 | # Whether dlopen of programs is supported. |
| 26318 | dlopen_self=$enable_dlopen_self |
| 26319 | |
| 26320 | # Whether dlopen of statically linked programs is supported. |
| 26321 | dlopen_self_static=$enable_dlopen_self_static |
| 26322 | |
| 26323 | # Compiler flag to prevent dynamic linking. |
| 26324 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26325 | |
| 26326 | # Compiler flag to turn off builtin functions. |
| 26327 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26328 | |
| 26329 | # Compiler flag to allow reflexive dlopens. |
| 26330 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26331 | |
| 26332 | # Compiler flag to generate shared objects directly from archives. |
| 26333 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26334 | |
| 26335 | # Compiler flag to generate thread-safe objects. |
| 26336 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26337 | |
| 26338 | # Library versioning type. |
| 26339 | version_type=$version_type |
| 26340 | |
| 26341 | # Format of library name prefix. |
| 26342 | libname_spec=$lt_libname_spec |
| 26343 | |
| 26344 | # List of archive names. First name is the real one, the rest are links. |
| 26345 | # The last name is the one that the linker finds with -lNAME. |
| 26346 | library_names_spec=$lt_library_names_spec |
| 26347 | |
| 26348 | # The coded name of the library, if different from the real name. |
| 26349 | soname_spec=$lt_soname_spec |
| 26350 | |
| 26351 | # Commands used to build and install an old-style archive. |
| 26352 | RANLIB=$lt_RANLIB |
| 26353 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26354 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26355 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26356 | |
| 26357 | # Create an old-style archive from a shared archive. |
| 26358 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26359 | |
| 26360 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26361 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26362 | |
| 26363 | # Commands used to build and install a shared archive. |
| 26364 | archive_cmds=$lt_archive_cmds_RC |
| 26365 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26366 | postinstall_cmds=$lt_postinstall_cmds |
| 26367 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26368 | |
| 26369 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26370 | module_cmds=$lt_module_cmds_RC |
| 26371 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26372 | |
| 26373 | # Commands to strip libraries. |
| 26374 | old_striplib=$lt_old_striplib |
| 26375 | striplib=$lt_striplib |
| 26376 | |
| 26377 | # Dependencies to place before the objects being linked to create a |
| 26378 | # shared library. |
| 26379 | predep_objects=$lt_predep_objects_RC |
| 26380 | |
| 26381 | # Dependencies to place after the objects being linked to create a |
| 26382 | # shared library. |
| 26383 | postdep_objects=$lt_postdep_objects_RC |
| 26384 | |
| 26385 | # Dependencies to place before the objects being linked to create a |
| 26386 | # shared library. |
| 26387 | predeps=$lt_predeps_RC |
| 26388 | |
| 26389 | # Dependencies to place after the objects being linked to create a |
| 26390 | # shared library. |
| 26391 | postdeps=$lt_postdeps_RC |
| 26392 | |
| 26393 | # The library search path used internally by the compiler when linking |
| 26394 | # a shared library. |
| 26395 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26396 | |
| 26397 | # Method to check whether dependent libraries are shared objects. |
| 26398 | deplibs_check_method=$lt_deplibs_check_method |
| 26399 | |
| 26400 | # Command to use when deplibs_check_method == file_magic. |
| 26401 | file_magic_cmd=$lt_file_magic_cmd |
| 26402 | |
| 26403 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26404 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26405 | |
| 26406 | # Flag that forces no undefined symbols. |
| 26407 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26408 | |
| 26409 | # Commands used to finish a libtool library installation in a directory. |
| 26410 | finish_cmds=$lt_finish_cmds |
| 26411 | |
| 26412 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26413 | finish_eval=$lt_finish_eval |
| 26414 | |
| 26415 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26416 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26417 | |
| 26418 | # Transform the output of nm in a proper C declaration |
| 26419 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26420 | |
| 26421 | # Transform the output of nm in a C name address pair |
| 26422 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26423 | |
| 26424 | # This is the shared library runtime path variable. |
| 26425 | runpath_var=$runpath_var |
| 26426 | |
| 26427 | # This is the shared library path variable. |
| 26428 | shlibpath_var=$shlibpath_var |
| 26429 | |
| 26430 | # Is shlibpath searched before the hard-coded library search path? |
| 26431 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26432 | |
| 26433 | # How to hardcode a shared library path into an executable. |
| 26434 | hardcode_action=$hardcode_action_RC |
| 26435 | |
| 26436 | # Whether we should hardcode library paths into libraries. |
| 26437 | hardcode_into_libs=$hardcode_into_libs |
| 26438 | |
| 26439 | # Flag to hardcode \$libdir into a binary during linking. |
| 26440 | # This must work even if \$libdir does not exist. |
| 26441 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26442 | |
| 26443 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26444 | # a binary during linking. This must work even if \$libdir does |
| 26445 | # not exist. |
| 26446 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26447 | |
| 26448 | # Whether we need a single -rpath flag with a separated argument. |
| 26449 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26450 | |
| 26451 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26452 | # resulting binary. |
| 26453 | hardcode_direct=$hardcode_direct_RC |
| 26454 | |
| 26455 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26456 | # resulting binary. |
| 26457 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26458 | |
| 26459 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26460 | # the resulting binary. |
| 26461 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26462 | |
| 26463 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26464 | # and all subsequent libraries and executables linked against it. |
| 26465 | hardcode_automatic=$hardcode_automatic_RC |
| 26466 | |
| 26467 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26468 | # restored at relink time. |
| 26469 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26470 | |
| 26471 | # Whether libtool must link a program against all its dependency libraries. |
| 26472 | link_all_deplibs=$link_all_deplibs_RC |
| 26473 | |
| 26474 | # Compile-time system search path for libraries |
| 26475 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26476 | |
| 26477 | # Run-time system search path for libraries |
| 26478 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26479 | |
| 26480 | # Fix the shell variable \$srcfile for the compiler. |
| 26481 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26482 | |
| 26483 | # Set to yes if exported symbols are required. |
| 26484 | always_export_symbols=$always_export_symbols_RC |
| 26485 | |
| 26486 | # The commands to list exported symbols. |
| 26487 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26488 | |
| 26489 | # The commands to extract the exported symbol list from a shared archive. |
| 26490 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26491 | |
| 26492 | # Symbols that should not be listed in the preloaded symbols. |
| 26493 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26494 | |
| 26495 | # Symbols that must always be exported. |
| 26496 | include_expsyms=$lt_include_expsyms_RC |
| 26497 | |
| 26498 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26499 | |
| 26500 | __EOF__ |
| 26501 | |
| 26502 | |
| 26503 | else |
| 26504 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26505 | # `config.status --recheck' to rerun these tests and create the |
| 26506 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26507 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26508 | if test -f "$ltmain_in"; then |
| 26509 | test -f Makefile && make "$ltmain" |
| 26510 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26511 | fi |
| 26512 | |
| 26513 | |
| 26514 | ac_ext=c |
| 26515 | ac_cpp='$CPP $CPPFLAGS' |
| 26516 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26517 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26518 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26519 | |
| 26520 | CC="$lt_save_CC" |
| 26521 | |
| 26522 | ;; |
| 26523 | |
| 26524 | *) |
| 26525 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26526 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26527 | { (exit 1); exit 1; }; } |
| 26528 | ;; |
| 26529 | esac |
| 26530 | |
| 26531 | # Append the new tag name to the list of available tags. |
| 26532 | if test -n "$tagname" ; then |
| 26533 | available_tags="$available_tags $tagname" |
| 26534 | fi |
| 26535 | fi |
| 26536 | done |
| 26537 | IFS="$lt_save_ifs" |
| 26538 | |
| 26539 | # Now substitute the updated list of available tags. |
| 26540 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26541 | mv "${ofile}T" "$ofile" |
| 26542 | chmod +x "$ofile" |
| 26543 | else |
| 26544 | rm -f "${ofile}T" |
| 26545 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26546 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26547 | { (exit 1); exit 1; }; } |
| 26548 | fi |
| 26549 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26550 | |
| 26551 | |
| 26552 | |
| 26553 | # This can be used to rebuild libtool when needed |
| 26554 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26555 | |
| 26556 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26557 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26558 | |
| 26559 | # Prevent multiple expansion |
| 26560 | |
| 26561 | |
| 26562 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26563 | |
| 26564 | |
| 26565 | |
| 26566 | |
| 26567 | |
| 26568 | |
| 26569 | |
| 26570 | |
| 26571 | |
| 26572 | |
| 26573 | |
| 26574 | |
| 26575 | |
| 26576 | |
| 26577 | |
| 26578 | |
| 26579 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26580 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26581 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26582 | |
| 26583 | cat >>confdefs.h <<\_ACEOF |
| 26584 | #define CAN_DLOPEN_SELF 1 |
| 26585 | _ACEOF |
| 26586 | |
| 26587 | fi |
| 26588 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26589 | etags_version=`$ETAGS --version 2>&1` |
| 26590 | case "$etags_version" in |
| 26591 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 26592 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 26593 | *) ETAGSFLAGS="" ;; |
| 26594 | esac |
| 26595 | ETAGSFLAGS=$ETAGSFLAGS |
| 26596 | |
| 26597 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26598 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26599 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26600 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26601 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26602 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26603 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26605 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26607 | else |
| 26608 | case $LLVMGCC in |
| 26609 | [\\/]* | ?:[\\/]*) |
| 26610 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26611 | ;; |
| 26612 | *) |
| 26613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26614 | for as_dir in $PATH |
| 26615 | do |
| 26616 | IFS=$as_save_IFS |
| 26617 | test -z "$as_dir" && as_dir=. |
| 26618 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26619 | 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] | 26620 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26622 | break 2 |
| 26623 | fi |
| 26624 | done |
| 26625 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26626 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26627 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26628 | ;; |
| 26629 | esac |
| 26630 | fi |
| 26631 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26632 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26633 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26634 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26635 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26636 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26637 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26638 | fi |
| 26639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26640 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26641 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26642 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26643 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26645 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26647 | else |
| 26648 | case $LLVMGXX in |
| 26649 | [\\/]* | ?:[\\/]*) |
| 26650 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26651 | ;; |
| 26652 | *) |
| 26653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26654 | for as_dir in $PATH |
| 26655 | do |
| 26656 | IFS=$as_save_IFS |
| 26657 | test -z "$as_dir" && as_dir=. |
| 26658 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26659 | 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] | 26660 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26662 | break 2 |
| 26663 | fi |
| 26664 | done |
| 26665 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26666 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26667 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26668 | ;; |
| 26669 | esac |
| 26670 | fi |
| 26671 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26672 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26673 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26674 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26675 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26676 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26677 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26678 | fi |
| 26679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26680 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26681 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26682 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26683 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26684 | LLVMGCC=$LLVMGCC |
| 26685 | |
| 26686 | LLVMGXX=$LLVMGXX |
| 26687 | |
| 26688 | fi |
| 26689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26690 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26691 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26692 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26693 | ICC=no |
| 26694 | IXX=no |
| 26695 | case $CC in |
| 26696 | icc*|icpc*) |
| 26697 | ICC=yes |
| 26698 | IXX=yes |
| 26699 | ;; |
| 26700 | *) |
| 26701 | ;; |
| 26702 | esac |
| 26703 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26704 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26705 | then |
| 26706 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26707 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26708 | { (exit 1); exit 1; }; } |
| 26709 | fi |
| 26710 | |
| 26711 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26712 | then |
| 26713 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26714 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26715 | { (exit 1); exit 1; }; } |
| 26716 | fi |
| 26717 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26718 | if test "$GCC" = "yes" |
| 26719 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 26720 | 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] | 26721 | if test "$gccmajor" -lt "3" |
| 26722 | then |
| 26723 | { { 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] | 26724 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26725 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26726 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26727 | fi |
| 26728 | |
| 26729 | if test -z "$llvm_cv_gnu_make_command" |
| 26730 | then |
| 26731 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26732 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26733 | { (exit 1); exit 1; }; } |
| 26734 | fi |
| 26735 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26736 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26737 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26738 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26739 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26741 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26742 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26743 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26745 | else |
| 26746 | ac_check_lib_save_LIBS=$LIBS |
| 26747 | LIBS="-lelf $LIBS" |
| 26748 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26749 | /* confdefs.h. */ |
| 26750 | _ACEOF |
| 26751 | cat confdefs.h >>conftest.$ac_ext |
| 26752 | cat >>conftest.$ac_ext <<_ACEOF |
| 26753 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26754 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26755 | /* Override any GCC internal prototype to avoid an error. |
| 26756 | Use char because int might match the return type of a GCC |
| 26757 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26758 | #ifdef __cplusplus |
| 26759 | extern "C" |
| 26760 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26761 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26762 | int |
| 26763 | main () |
| 26764 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26765 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26766 | ; |
| 26767 | return 0; |
| 26768 | } |
| 26769 | _ACEOF |
| 26770 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26771 | if { (ac_try="$ac_link" |
| 26772 | case "(($ac_try" in |
| 26773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26774 | *) ac_try_echo=$ac_try;; |
| 26775 | esac |
| 26776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26777 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26778 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26780 | rm -f conftest.er1 |
| 26781 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26783 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26785 | { (case "(($ac_try" in |
| 26786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26787 | *) ac_try_echo=$ac_try;; |
| 26788 | esac |
| 26789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26790 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26791 | ac_status=$? |
| 26792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26793 | (exit $ac_status); }; } && |
| 26794 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26795 | { (case "(($ac_try" in |
| 26796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26797 | *) ac_try_echo=$ac_try;; |
| 26798 | esac |
| 26799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26800 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26801 | ac_status=$? |
| 26802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26803 | (exit $ac_status); }; }; then |
| 26804 | ac_cv_lib_elf_elf_begin=yes |
| 26805 | else |
| 26806 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26809 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26810 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26811 | |
| 26812 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26813 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26814 | LIBS=$ac_check_lib_save_LIBS |
| 26815 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26816 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 26817 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26818 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 26819 | cat >>confdefs.h <<_ACEOF |
| 26820 | #define HAVE_LIBELF 1 |
| 26821 | _ACEOF |
| 26822 | |
| 26823 | LIBS="-lelf $LIBS" |
| 26824 | |
| 26825 | fi |
| 26826 | |
| 26827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26828 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 26829 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26830 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 26831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26832 | else |
| 26833 | ac_check_lib_save_LIBS=$LIBS |
| 26834 | LIBS="-lm $LIBS" |
| 26835 | cat >conftest.$ac_ext <<_ACEOF |
| 26836 | /* confdefs.h. */ |
| 26837 | _ACEOF |
| 26838 | cat confdefs.h >>conftest.$ac_ext |
| 26839 | cat >>conftest.$ac_ext <<_ACEOF |
| 26840 | /* end confdefs.h. */ |
| 26841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26842 | /* Override any GCC internal prototype to avoid an error. |
| 26843 | Use char because int might match the return type of a GCC |
| 26844 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26845 | #ifdef __cplusplus |
| 26846 | extern "C" |
| 26847 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26848 | char sin (); |
| 26849 | int |
| 26850 | main () |
| 26851 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26852 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26853 | ; |
| 26854 | return 0; |
| 26855 | } |
| 26856 | _ACEOF |
| 26857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26858 | if { (ac_try="$ac_link" |
| 26859 | case "(($ac_try" in |
| 26860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26861 | *) ac_try_echo=$ac_try;; |
| 26862 | esac |
| 26863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26864 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26865 | ac_status=$? |
| 26866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26867 | rm -f conftest.er1 |
| 26868 | cat conftest.err >&5 |
| 26869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26870 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26872 | { (case "(($ac_try" in |
| 26873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26874 | *) ac_try_echo=$ac_try;; |
| 26875 | esac |
| 26876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26877 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26878 | ac_status=$? |
| 26879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26880 | (exit $ac_status); }; } && |
| 26881 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26882 | { (case "(($ac_try" in |
| 26883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26884 | *) ac_try_echo=$ac_try;; |
| 26885 | esac |
| 26886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26887 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26888 | ac_status=$? |
| 26889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26890 | (exit $ac_status); }; }; then |
| 26891 | ac_cv_lib_m_sin=yes |
| 26892 | else |
| 26893 | echo "$as_me: failed program was:" >&5 |
| 26894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26895 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26896 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26897 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26898 | |
| 26899 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26900 | conftest$ac_exeext conftest.$ac_ext |
| 26901 | LIBS=$ac_check_lib_save_LIBS |
| 26902 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26903 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 26904 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26905 | if test $ac_cv_lib_m_sin = yes; then |
| 26906 | cat >>confdefs.h <<_ACEOF |
| 26907 | #define HAVE_LIBM 1 |
| 26908 | _ACEOF |
| 26909 | |
| 26910 | LIBS="-lm $LIBS" |
| 26911 | |
| 26912 | fi |
| 26913 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 26914 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26916 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 26917 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26918 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26920 | else |
| 26921 | ac_check_lib_save_LIBS=$LIBS |
| 26922 | LIBS="-limagehlp $LIBS" |
| 26923 | cat >conftest.$ac_ext <<_ACEOF |
| 26924 | /* confdefs.h. */ |
| 26925 | _ACEOF |
| 26926 | cat confdefs.h >>conftest.$ac_ext |
| 26927 | cat >>conftest.$ac_ext <<_ACEOF |
| 26928 | /* end confdefs.h. */ |
| 26929 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26930 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26931 | int |
| 26932 | main () |
| 26933 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26934 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26935 | ; |
| 26936 | return 0; |
| 26937 | } |
| 26938 | _ACEOF |
| 26939 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26940 | if { (ac_try="$ac_link" |
| 26941 | case "(($ac_try" in |
| 26942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26943 | *) ac_try_echo=$ac_try;; |
| 26944 | esac |
| 26945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26946 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26947 | ac_status=$? |
| 26948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26949 | rm -f conftest.er1 |
| 26950 | cat conftest.err >&5 |
| 26951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26952 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26954 | { (case "(($ac_try" in |
| 26955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26956 | *) ac_try_echo=$ac_try;; |
| 26957 | esac |
| 26958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26959 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26960 | ac_status=$? |
| 26961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26962 | (exit $ac_status); }; } && |
| 26963 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26964 | { (case "(($ac_try" in |
| 26965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26966 | *) ac_try_echo=$ac_try;; |
| 26967 | esac |
| 26968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26969 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26970 | ac_status=$? |
| 26971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26972 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26973 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26974 | else |
| 26975 | echo "$as_me: failed program was:" >&5 |
| 26976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26978 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26979 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26980 | |
| 26981 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26982 | conftest$ac_exeext conftest.$ac_ext |
| 26983 | LIBS=$ac_check_lib_save_LIBS |
| 26984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26985 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 26986 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26987 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26988 | cat >>confdefs.h <<_ACEOF |
| 26989 | #define HAVE_LIBIMAGEHLP 1 |
| 26990 | _ACEOF |
| 26991 | |
| 26992 | LIBS="-limagehlp $LIBS" |
| 26993 | |
| 26994 | fi |
| 26995 | |
| 26996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26997 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 26998 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26999 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27001 | else |
| 27002 | ac_check_lib_save_LIBS=$LIBS |
| 27003 | LIBS="-lpsapi $LIBS" |
| 27004 | cat >conftest.$ac_ext <<_ACEOF |
| 27005 | /* confdefs.h. */ |
| 27006 | _ACEOF |
| 27007 | cat confdefs.h >>conftest.$ac_ext |
| 27008 | cat >>conftest.$ac_ext <<_ACEOF |
| 27009 | /* end confdefs.h. */ |
| 27010 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27011 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27012 | int |
| 27013 | main () |
| 27014 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27015 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27016 | ; |
| 27017 | return 0; |
| 27018 | } |
| 27019 | _ACEOF |
| 27020 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27021 | if { (ac_try="$ac_link" |
| 27022 | case "(($ac_try" in |
| 27023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27024 | *) ac_try_echo=$ac_try;; |
| 27025 | esac |
| 27026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27027 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27028 | ac_status=$? |
| 27029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27030 | rm -f conftest.er1 |
| 27031 | cat conftest.err >&5 |
| 27032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27033 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27034 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27035 | { (case "(($ac_try" in |
| 27036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27037 | *) ac_try_echo=$ac_try;; |
| 27038 | esac |
| 27039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27040 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27041 | ac_status=$? |
| 27042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27043 | (exit $ac_status); }; } && |
| 27044 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27045 | { (case "(($ac_try" in |
| 27046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27047 | *) ac_try_echo=$ac_try;; |
| 27048 | esac |
| 27049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27050 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27051 | ac_status=$? |
| 27052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27053 | (exit $ac_status); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27054 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27055 | else |
| 27056 | echo "$as_me: failed program was:" >&5 |
| 27057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27059 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27061 | |
| 27062 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27063 | conftest$ac_exeext conftest.$ac_ext |
| 27064 | LIBS=$ac_check_lib_save_LIBS |
| 27065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27066 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27067 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27068 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27069 | cat >>confdefs.h <<_ACEOF |
| 27070 | #define HAVE_LIBPSAPI 1 |
| 27071 | _ACEOF |
| 27072 | |
| 27073 | LIBS="-lpsapi $LIBS" |
| 27074 | |
| 27075 | fi |
| 27076 | |
| 27077 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27078 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27079 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27080 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27081 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27083 | else |
| 27084 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27085 | cat >conftest.$ac_ext <<_ACEOF |
| 27086 | /* confdefs.h. */ |
| 27087 | _ACEOF |
| 27088 | cat confdefs.h >>conftest.$ac_ext |
| 27089 | cat >>conftest.$ac_ext <<_ACEOF |
| 27090 | /* end confdefs.h. */ |
| 27091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27092 | /* Override any GCC internal prototype to avoid an error. |
| 27093 | Use char because int might match the return type of a GCC |
| 27094 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27095 | #ifdef __cplusplus |
| 27096 | extern "C" |
| 27097 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27098 | char lt_dlopen (); |
| 27099 | int |
| 27100 | main () |
| 27101 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27102 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27103 | ; |
| 27104 | return 0; |
| 27105 | } |
| 27106 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27107 | for ac_lib in '' ltdl; do |
| 27108 | if test -z "$ac_lib"; then |
| 27109 | ac_res="none required" |
| 27110 | else |
| 27111 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27112 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27113 | fi |
| 27114 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27115 | if { (ac_try="$ac_link" |
| 27116 | case "(($ac_try" in |
| 27117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27118 | *) ac_try_echo=$ac_try;; |
| 27119 | esac |
| 27120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27121 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27122 | ac_status=$? |
| 27123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27124 | rm -f conftest.er1 |
| 27125 | cat conftest.err >&5 |
| 27126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27127 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27129 | { (case "(($ac_try" in |
| 27130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27131 | *) ac_try_echo=$ac_try;; |
| 27132 | esac |
| 27133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27134 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27135 | ac_status=$? |
| 27136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27137 | (exit $ac_status); }; } && |
| 27138 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27139 | { (case "(($ac_try" in |
| 27140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27141 | *) ac_try_echo=$ac_try;; |
| 27142 | esac |
| 27143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27144 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27145 | ac_status=$? |
| 27146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27147 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27148 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27149 | else |
| 27150 | echo "$as_me: failed program was:" >&5 |
| 27151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27153 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27154 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27155 | |
| 27156 | rm -f core conftest.err conftest.$ac_objext \ |
| 27157 | conftest$ac_exeext |
| 27158 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27159 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27160 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27161 | done |
| 27162 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27163 | : |
| 27164 | else |
| 27165 | ac_cv_search_lt_dlopen=no |
| 27166 | fi |
| 27167 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27168 | LIBS=$ac_func_search_save_LIBS |
| 27169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27170 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27171 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27172 | ac_res=$ac_cv_search_lt_dlopen |
| 27173 | if test "$ac_res" != no; then |
| 27174 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27175 | |
| 27176 | cat >>confdefs.h <<\_ACEOF |
| 27177 | #define HAVE_LT_DLOPEN 1 |
| 27178 | _ACEOF |
| 27179 | |
| 27180 | else |
| 27181 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27182 | not be available" >&5 |
| 27183 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27184 | not be available" >&2;} |
| 27185 | fi |
| 27186 | |
| 27187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27188 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27189 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27190 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27192 | else |
| 27193 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27194 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27195 | /* confdefs.h. */ |
| 27196 | _ACEOF |
| 27197 | cat confdefs.h >>conftest.$ac_ext |
| 27198 | cat >>conftest.$ac_ext <<_ACEOF |
| 27199 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27200 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27201 | /* Override any GCC internal prototype to avoid an error. |
| 27202 | Use char because int might match the return type of a GCC |
| 27203 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27204 | #ifdef __cplusplus |
| 27205 | extern "C" |
| 27206 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27207 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27208 | int |
| 27209 | main () |
| 27210 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27211 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27212 | ; |
| 27213 | return 0; |
| 27214 | } |
| 27215 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27216 | for ac_lib in '' dl; do |
| 27217 | if test -z "$ac_lib"; then |
| 27218 | ac_res="none required" |
| 27219 | else |
| 27220 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27221 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27222 | fi |
| 27223 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27224 | if { (ac_try="$ac_link" |
| 27225 | case "(($ac_try" in |
| 27226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27227 | *) ac_try_echo=$ac_try;; |
| 27228 | esac |
| 27229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27230 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27231 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27233 | rm -f conftest.er1 |
| 27234 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27236 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27237 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27238 | { (case "(($ac_try" in |
| 27239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27240 | *) ac_try_echo=$ac_try;; |
| 27241 | esac |
| 27242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27243 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27244 | ac_status=$? |
| 27245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27246 | (exit $ac_status); }; } && |
| 27247 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27248 | { (case "(($ac_try" in |
| 27249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27250 | *) ac_try_echo=$ac_try;; |
| 27251 | esac |
| 27252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27253 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27254 | ac_status=$? |
| 27255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27256 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27257 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27258 | else |
| 27259 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27262 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27263 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27264 | |
| 27265 | rm -f core conftest.err conftest.$ac_objext \ |
| 27266 | conftest$ac_exeext |
| 27267 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27268 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27269 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27270 | done |
| 27271 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27272 | : |
| 27273 | else |
| 27274 | ac_cv_search_dlopen=no |
| 27275 | fi |
| 27276 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27277 | LIBS=$ac_func_search_save_LIBS |
| 27278 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27279 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27280 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27281 | ac_res=$ac_cv_search_dlopen |
| 27282 | if test "$ac_res" != no; then |
| 27283 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27284 | |
| 27285 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27286 | #define HAVE_DLOPEN 1 |
| 27287 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27288 | |
| 27289 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27290 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27291 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27292 | fi |
| 27293 | |
| 27294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27295 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27296 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27297 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27299 | else |
| 27300 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27301 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27302 | /* confdefs.h. */ |
| 27303 | _ACEOF |
| 27304 | cat confdefs.h >>conftest.$ac_ext |
| 27305 | cat >>conftest.$ac_ext <<_ACEOF |
| 27306 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27307 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27308 | /* Override any GCC internal prototype to avoid an error. |
| 27309 | Use char because int might match the return type of a GCC |
| 27310 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27311 | #ifdef __cplusplus |
| 27312 | extern "C" |
| 27313 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27314 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27315 | int |
| 27316 | main () |
| 27317 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27318 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27319 | ; |
| 27320 | return 0; |
| 27321 | } |
| 27322 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27323 | for ac_lib in '' malloc; do |
| 27324 | if test -z "$ac_lib"; then |
| 27325 | ac_res="none required" |
| 27326 | else |
| 27327 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27328 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27329 | fi |
| 27330 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27331 | if { (ac_try="$ac_link" |
| 27332 | case "(($ac_try" in |
| 27333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27334 | *) ac_try_echo=$ac_try;; |
| 27335 | esac |
| 27336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27337 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27338 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27339 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27340 | rm -f conftest.er1 |
| 27341 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27343 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27345 | { (case "(($ac_try" in |
| 27346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27347 | *) ac_try_echo=$ac_try;; |
| 27348 | esac |
| 27349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27350 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27351 | ac_status=$? |
| 27352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27353 | (exit $ac_status); }; } && |
| 27354 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27355 | { (case "(($ac_try" in |
| 27356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27357 | *) ac_try_echo=$ac_try;; |
| 27358 | esac |
| 27359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27360 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27361 | ac_status=$? |
| 27362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27363 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27364 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27365 | else |
| 27366 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27368 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27369 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27370 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27371 | |
| 27372 | rm -f core conftest.err conftest.$ac_objext \ |
| 27373 | conftest$ac_exeext |
| 27374 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27375 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27376 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27377 | done |
| 27378 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27379 | : |
| 27380 | else |
| 27381 | ac_cv_search_mallinfo=no |
| 27382 | fi |
| 27383 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27384 | LIBS=$ac_func_search_save_LIBS |
| 27385 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27386 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27387 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27388 | ac_res=$ac_cv_search_mallinfo |
| 27389 | if test "$ac_res" != no; then |
| 27390 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27391 | |
| 27392 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27393 | #define HAVE_MALLINFO 1 |
| 27394 | _ACEOF |
| 27395 | |
| 27396 | fi |
| 27397 | |
| 27398 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27399 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27401 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27402 | 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] | 27403 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27405 | else |
| 27406 | ac_check_lib_save_LIBS=$LIBS |
| 27407 | LIBS="-lpthread $LIBS" |
| 27408 | cat >conftest.$ac_ext <<_ACEOF |
| 27409 | /* confdefs.h. */ |
| 27410 | _ACEOF |
| 27411 | cat confdefs.h >>conftest.$ac_ext |
| 27412 | cat >>conftest.$ac_ext <<_ACEOF |
| 27413 | /* end confdefs.h. */ |
| 27414 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27415 | /* Override any GCC internal prototype to avoid an error. |
| 27416 | Use char because int might match the return type of a GCC |
| 27417 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27418 | #ifdef __cplusplus |
| 27419 | extern "C" |
| 27420 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27421 | char pthread_mutex_init (); |
| 27422 | int |
| 27423 | main () |
| 27424 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27425 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27426 | ; |
| 27427 | return 0; |
| 27428 | } |
| 27429 | _ACEOF |
| 27430 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27431 | if { (ac_try="$ac_link" |
| 27432 | case "(($ac_try" in |
| 27433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27434 | *) ac_try_echo=$ac_try;; |
| 27435 | esac |
| 27436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27437 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27438 | ac_status=$? |
| 27439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27440 | rm -f conftest.er1 |
| 27441 | cat conftest.err >&5 |
| 27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27443 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27445 | { (case "(($ac_try" in |
| 27446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27447 | *) ac_try_echo=$ac_try;; |
| 27448 | esac |
| 27449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27450 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27451 | ac_status=$? |
| 27452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27453 | (exit $ac_status); }; } && |
| 27454 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27455 | { (case "(($ac_try" in |
| 27456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27457 | *) ac_try_echo=$ac_try;; |
| 27458 | esac |
| 27459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27460 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27461 | ac_status=$? |
| 27462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27463 | (exit $ac_status); }; }; then |
| 27464 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27465 | else |
| 27466 | echo "$as_me: failed program was:" >&5 |
| 27467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27469 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27470 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27471 | |
| 27472 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27473 | conftest$ac_exeext conftest.$ac_ext |
| 27474 | LIBS=$ac_check_lib_save_LIBS |
| 27475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27476 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27477 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27478 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27479 | cat >>confdefs.h <<_ACEOF |
| 27480 | #define HAVE_LIBPTHREAD 1 |
| 27481 | _ACEOF |
| 27482 | |
| 27483 | LIBS="-lpthread $LIBS" |
| 27484 | |
| 27485 | fi |
| 27486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27487 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27488 | 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] | 27489 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27491 | else |
| 27492 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27493 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27494 | /* confdefs.h. */ |
| 27495 | _ACEOF |
| 27496 | cat confdefs.h >>conftest.$ac_ext |
| 27497 | cat >>conftest.$ac_ext <<_ACEOF |
| 27498 | /* end confdefs.h. */ |
| 27499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27500 | /* Override any GCC internal prototype to avoid an error. |
| 27501 | Use char because int might match the return type of a GCC |
| 27502 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27503 | #ifdef __cplusplus |
| 27504 | extern "C" |
| 27505 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27506 | char pthread_mutex_lock (); |
| 27507 | int |
| 27508 | main () |
| 27509 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27510 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27511 | ; |
| 27512 | return 0; |
| 27513 | } |
| 27514 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27515 | for ac_lib in '' pthread; do |
| 27516 | if test -z "$ac_lib"; then |
| 27517 | ac_res="none required" |
| 27518 | else |
| 27519 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27520 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27521 | fi |
| 27522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27523 | if { (ac_try="$ac_link" |
| 27524 | case "(($ac_try" in |
| 27525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27526 | *) ac_try_echo=$ac_try;; |
| 27527 | esac |
| 27528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27529 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27530 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27532 | rm -f conftest.er1 |
| 27533 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27535 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27537 | { (case "(($ac_try" in |
| 27538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27539 | *) ac_try_echo=$ac_try;; |
| 27540 | esac |
| 27541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27542 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27543 | ac_status=$? |
| 27544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27545 | (exit $ac_status); }; } && |
| 27546 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27547 | { (case "(($ac_try" in |
| 27548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27549 | *) ac_try_echo=$ac_try;; |
| 27550 | esac |
| 27551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27552 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27553 | ac_status=$? |
| 27554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27555 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27556 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27557 | else |
| 27558 | echo "$as_me: failed program was:" >&5 |
| 27559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27561 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27562 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27563 | |
| 27564 | rm -f core conftest.err conftest.$ac_objext \ |
| 27565 | conftest$ac_exeext |
| 27566 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27567 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27568 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27569 | done |
| 27570 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27571 | : |
| 27572 | else |
| 27573 | ac_cv_search_pthread_mutex_lock=no |
| 27574 | fi |
| 27575 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27576 | LIBS=$ac_func_search_save_LIBS |
| 27577 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27578 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27579 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27580 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27581 | if test "$ac_res" != no; then |
| 27582 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27583 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27584 | cat >>confdefs.h <<\_ACEOF |
| 27585 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27586 | _ACEOF |
| 27587 | |
| 27588 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27589 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27590 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27591 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27592 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27593 | # Check whether --with-udis86 was given. |
| 27594 | if test "${with_udis86+set}" = set; then |
| 27595 | withval=$with_udis86; |
| 27596 | USE_UDIS86=1 |
| 27597 | |
| 27598 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 27599 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 27600 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27601 | esac |
| 27602 | |
| 27603 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27604 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27605 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27607 | else |
| 27608 | ac_check_lib_save_LIBS=$LIBS |
| 27609 | LIBS="-ludis86 $LIBS" |
| 27610 | cat >conftest.$ac_ext <<_ACEOF |
| 27611 | /* confdefs.h. */ |
| 27612 | _ACEOF |
| 27613 | cat confdefs.h >>conftest.$ac_ext |
| 27614 | cat >>conftest.$ac_ext <<_ACEOF |
| 27615 | /* end confdefs.h. */ |
| 27616 | |
| 27617 | /* Override any GCC internal prototype to avoid an error. |
| 27618 | Use char because int might match the return type of a GCC |
| 27619 | builtin and then its argument prototype would still apply. */ |
| 27620 | #ifdef __cplusplus |
| 27621 | extern "C" |
| 27622 | #endif |
| 27623 | char ud_init (); |
| 27624 | int |
| 27625 | main () |
| 27626 | { |
| 27627 | return ud_init (); |
| 27628 | ; |
| 27629 | return 0; |
| 27630 | } |
| 27631 | _ACEOF |
| 27632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27633 | if { (ac_try="$ac_link" |
| 27634 | case "(($ac_try" in |
| 27635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27636 | *) ac_try_echo=$ac_try;; |
| 27637 | esac |
| 27638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27639 | (eval "$ac_link") 2>conftest.er1 |
| 27640 | ac_status=$? |
| 27641 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27642 | rm -f conftest.er1 |
| 27643 | cat conftest.err >&5 |
| 27644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27645 | (exit $ac_status); } && |
| 27646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27647 | { (case "(($ac_try" in |
| 27648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27649 | *) ac_try_echo=$ac_try;; |
| 27650 | esac |
| 27651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27652 | (eval "$ac_try") 2>&5 |
| 27653 | ac_status=$? |
| 27654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27655 | (exit $ac_status); }; } && |
| 27656 | { ac_try='test -s conftest$ac_exeext' |
| 27657 | { (case "(($ac_try" in |
| 27658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27659 | *) ac_try_echo=$ac_try;; |
| 27660 | esac |
| 27661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27662 | (eval "$ac_try") 2>&5 |
| 27663 | ac_status=$? |
| 27664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27665 | (exit $ac_status); }; }; then |
| 27666 | ac_cv_lib_udis86_ud_init=yes |
| 27667 | else |
| 27668 | echo "$as_me: failed program was:" >&5 |
| 27669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27670 | |
| 27671 | ac_cv_lib_udis86_ud_init=no |
| 27672 | fi |
| 27673 | |
| 27674 | rm -f core conftest.err conftest.$ac_objext \ |
| 27675 | conftest$ac_exeext conftest.$ac_ext |
| 27676 | LIBS=$ac_check_lib_save_LIBS |
| 27677 | fi |
| 27678 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27679 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27680 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27681 | cat >>confdefs.h <<_ACEOF |
| 27682 | #define HAVE_LIBUDIS86 1 |
| 27683 | _ACEOF |
| 27684 | |
| 27685 | LIBS="-ludis86 $LIBS" |
| 27686 | |
| 27687 | else |
| 27688 | |
| 27689 | echo "Error! You need to have libudis86 around." |
| 27690 | exit -1 |
| 27691 | |
| 27692 | fi |
| 27693 | |
| 27694 | |
| 27695 | else |
| 27696 | USE_UDIS86=0 |
| 27697 | |
| 27698 | fi |
| 27699 | |
| 27700 | |
| 27701 | cat >>confdefs.h <<_ACEOF |
| 27702 | #define USE_UDIS86 $USE_UDIS86 |
| 27703 | _ACEOF |
| 27704 | |
| 27705 | |
| 27706 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27707 | |
| 27708 | |
| 27709 | |
| 27710 | |
| 27711 | |
| 27712 | ac_header_dirent=no |
| 27713 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27714 | 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] | 27715 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27716 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27717 | 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] | 27718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27719 | else |
| 27720 | cat >conftest.$ac_ext <<_ACEOF |
| 27721 | /* confdefs.h. */ |
| 27722 | _ACEOF |
| 27723 | cat confdefs.h >>conftest.$ac_ext |
| 27724 | cat >>conftest.$ac_ext <<_ACEOF |
| 27725 | /* end confdefs.h. */ |
| 27726 | #include <sys/types.h> |
| 27727 | #include <$ac_hdr> |
| 27728 | |
| 27729 | int |
| 27730 | main () |
| 27731 | { |
| 27732 | if ((DIR *) 0) |
| 27733 | return 0; |
| 27734 | ; |
| 27735 | return 0; |
| 27736 | } |
| 27737 | _ACEOF |
| 27738 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27739 | if { (ac_try="$ac_compile" |
| 27740 | case "(($ac_try" in |
| 27741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27742 | *) ac_try_echo=$ac_try;; |
| 27743 | esac |
| 27744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27745 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27746 | ac_status=$? |
| 27747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27748 | rm -f conftest.er1 |
| 27749 | cat conftest.err >&5 |
| 27750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27751 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27753 | { (case "(($ac_try" in |
| 27754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27755 | *) ac_try_echo=$ac_try;; |
| 27756 | esac |
| 27757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27758 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27759 | ac_status=$? |
| 27760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27761 | (exit $ac_status); }; } && |
| 27762 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27763 | { (case "(($ac_try" in |
| 27764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27765 | *) ac_try_echo=$ac_try;; |
| 27766 | esac |
| 27767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27768 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27769 | ac_status=$? |
| 27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27771 | (exit $ac_status); }; }; then |
| 27772 | eval "$as_ac_Header=yes" |
| 27773 | else |
| 27774 | echo "$as_me: failed program was:" >&5 |
| 27775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27776 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27777 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27779 | |
| 27780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27781 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27782 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27783 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27784 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27785 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27786 | cat >>confdefs.h <<_ACEOF |
| 27787 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 27788 | _ACEOF |
| 27789 | |
| 27790 | ac_header_dirent=$ac_hdr; break |
| 27791 | fi |
| 27792 | |
| 27793 | done |
| 27794 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 27795 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27796 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27797 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27798 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27800 | else |
| 27801 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27802 | cat >conftest.$ac_ext <<_ACEOF |
| 27803 | /* confdefs.h. */ |
| 27804 | _ACEOF |
| 27805 | cat confdefs.h >>conftest.$ac_ext |
| 27806 | cat >>conftest.$ac_ext <<_ACEOF |
| 27807 | /* end confdefs.h. */ |
| 27808 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27809 | /* Override any GCC internal prototype to avoid an error. |
| 27810 | Use char because int might match the return type of a GCC |
| 27811 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27812 | #ifdef __cplusplus |
| 27813 | extern "C" |
| 27814 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27815 | char opendir (); |
| 27816 | int |
| 27817 | main () |
| 27818 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27819 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27820 | ; |
| 27821 | return 0; |
| 27822 | } |
| 27823 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27824 | for ac_lib in '' dir; do |
| 27825 | if test -z "$ac_lib"; then |
| 27826 | ac_res="none required" |
| 27827 | else |
| 27828 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27829 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27830 | fi |
| 27831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27832 | if { (ac_try="$ac_link" |
| 27833 | case "(($ac_try" in |
| 27834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27835 | *) ac_try_echo=$ac_try;; |
| 27836 | esac |
| 27837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27838 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27839 | ac_status=$? |
| 27840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27841 | rm -f conftest.er1 |
| 27842 | cat conftest.err >&5 |
| 27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27844 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27846 | { (case "(($ac_try" in |
| 27847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27848 | *) ac_try_echo=$ac_try;; |
| 27849 | esac |
| 27850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27851 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27852 | ac_status=$? |
| 27853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27854 | (exit $ac_status); }; } && |
| 27855 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27856 | { (case "(($ac_try" in |
| 27857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27858 | *) ac_try_echo=$ac_try;; |
| 27859 | esac |
| 27860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27861 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27862 | ac_status=$? |
| 27863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27864 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27865 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27866 | else |
| 27867 | echo "$as_me: failed program was:" >&5 |
| 27868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27870 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27872 | |
| 27873 | rm -f core conftest.err conftest.$ac_objext \ |
| 27874 | conftest$ac_exeext |
| 27875 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27876 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27877 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27878 | done |
| 27879 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27880 | : |
| 27881 | else |
| 27882 | ac_cv_search_opendir=no |
| 27883 | fi |
| 27884 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27885 | LIBS=$ac_func_search_save_LIBS |
| 27886 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27887 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27888 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27889 | ac_res=$ac_cv_search_opendir |
| 27890 | if test "$ac_res" != no; then |
| 27891 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27892 | |
| 27893 | fi |
| 27894 | |
| 27895 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27896 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27897 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27898 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27900 | else |
| 27901 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27902 | cat >conftest.$ac_ext <<_ACEOF |
| 27903 | /* confdefs.h. */ |
| 27904 | _ACEOF |
| 27905 | cat confdefs.h >>conftest.$ac_ext |
| 27906 | cat >>conftest.$ac_ext <<_ACEOF |
| 27907 | /* end confdefs.h. */ |
| 27908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27909 | /* Override any GCC internal prototype to avoid an error. |
| 27910 | Use char because int might match the return type of a GCC |
| 27911 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27912 | #ifdef __cplusplus |
| 27913 | extern "C" |
| 27914 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27915 | char opendir (); |
| 27916 | int |
| 27917 | main () |
| 27918 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27919 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27920 | ; |
| 27921 | return 0; |
| 27922 | } |
| 27923 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27924 | for ac_lib in '' x; do |
| 27925 | if test -z "$ac_lib"; then |
| 27926 | ac_res="none required" |
| 27927 | else |
| 27928 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27929 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27930 | fi |
| 27931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27932 | if { (ac_try="$ac_link" |
| 27933 | case "(($ac_try" in |
| 27934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27935 | *) ac_try_echo=$ac_try;; |
| 27936 | esac |
| 27937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27938 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27939 | ac_status=$? |
| 27940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27941 | rm -f conftest.er1 |
| 27942 | cat conftest.err >&5 |
| 27943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27944 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27946 | { (case "(($ac_try" in |
| 27947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27948 | *) ac_try_echo=$ac_try;; |
| 27949 | esac |
| 27950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27951 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27952 | ac_status=$? |
| 27953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27954 | (exit $ac_status); }; } && |
| 27955 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27956 | { (case "(($ac_try" in |
| 27957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27958 | *) ac_try_echo=$ac_try;; |
| 27959 | esac |
| 27960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27961 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27962 | ac_status=$? |
| 27963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27964 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27965 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27966 | else |
| 27967 | echo "$as_me: failed program was:" >&5 |
| 27968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27969 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27970 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27971 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27972 | |
| 27973 | rm -f core conftest.err conftest.$ac_objext \ |
| 27974 | conftest$ac_exeext |
| 27975 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27976 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27977 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27978 | done |
| 27979 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27980 | : |
| 27981 | else |
| 27982 | ac_cv_search_opendir=no |
| 27983 | fi |
| 27984 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27985 | LIBS=$ac_func_search_save_LIBS |
| 27986 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27987 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27988 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27989 | ac_res=$ac_cv_search_opendir |
| 27990 | if test "$ac_res" != no; then |
| 27991 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27992 | |
| 27993 | fi |
| 27994 | |
| 27995 | fi |
| 27996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27997 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 27998 | 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] | 27999 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 28000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28001 | else |
| 28002 | ac_ext=c |
| 28003 | ac_cpp='$CPP $CPPFLAGS' |
| 28004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28007 | |
| 28008 | cat >conftest.$ac_ext <<_ACEOF |
| 28009 | /* confdefs.h. */ |
| 28010 | _ACEOF |
| 28011 | cat confdefs.h >>conftest.$ac_ext |
| 28012 | cat >>conftest.$ac_ext <<_ACEOF |
| 28013 | /* end confdefs.h. */ |
| 28014 | #include <sys/mman.h> |
| 28015 | #include <unistd.h> |
| 28016 | #include <fcntl.h> |
| 28017 | int |
| 28018 | main () |
| 28019 | { |
| 28020 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28021 | ; |
| 28022 | return 0; |
| 28023 | } |
| 28024 | _ACEOF |
| 28025 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28026 | if { (ac_try="$ac_compile" |
| 28027 | case "(($ac_try" in |
| 28028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28029 | *) ac_try_echo=$ac_try;; |
| 28030 | esac |
| 28031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28032 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28033 | ac_status=$? |
| 28034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28035 | rm -f conftest.er1 |
| 28036 | cat conftest.err >&5 |
| 28037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28038 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28040 | { (case "(($ac_try" in |
| 28041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28042 | *) ac_try_echo=$ac_try;; |
| 28043 | esac |
| 28044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28045 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28046 | ac_status=$? |
| 28047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28048 | (exit $ac_status); }; } && |
| 28049 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28050 | { (case "(($ac_try" in |
| 28051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28052 | *) ac_try_echo=$ac_try;; |
| 28053 | esac |
| 28054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28055 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28056 | ac_status=$? |
| 28057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28058 | (exit $ac_status); }; }; then |
| 28059 | ac_cv_header_mmap_anon=yes |
| 28060 | else |
| 28061 | echo "$as_me: failed program was:" >&5 |
| 28062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28063 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28064 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28066 | |
| 28067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28068 | ac_ext=c |
| 28069 | ac_cpp='$CPP $CPPFLAGS' |
| 28070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28073 | |
| 28074 | |
| 28075 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28076 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28077 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28078 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28079 | |
| 28080 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28081 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28082 | _ACEOF |
| 28083 | |
| 28084 | fi |
| 28085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28086 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28087 | 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] | 28088 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28090 | else |
| 28091 | cat >conftest.$ac_ext <<_ACEOF |
| 28092 | /* confdefs.h. */ |
| 28093 | _ACEOF |
| 28094 | cat confdefs.h >>conftest.$ac_ext |
| 28095 | cat >>conftest.$ac_ext <<_ACEOF |
| 28096 | /* end confdefs.h. */ |
| 28097 | #include <sys/types.h> |
| 28098 | #include <sys/stat.h> |
| 28099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28100 | #if defined S_ISBLK && defined S_IFDIR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28101 | # if S_ISBLK (S_IFDIR) |
| 28102 | You lose. |
| 28103 | # endif |
| 28104 | #endif |
| 28105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28106 | #if defined S_ISBLK && defined S_IFCHR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28107 | # if S_ISBLK (S_IFCHR) |
| 28108 | You lose. |
| 28109 | # endif |
| 28110 | #endif |
| 28111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28112 | #if defined S_ISLNK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28113 | # if S_ISLNK (S_IFREG) |
| 28114 | You lose. |
| 28115 | # endif |
| 28116 | #endif |
| 28117 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28118 | #if defined S_ISSOCK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28119 | # if S_ISSOCK (S_IFREG) |
| 28120 | You lose. |
| 28121 | # endif |
| 28122 | #endif |
| 28123 | |
| 28124 | _ACEOF |
| 28125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28126 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28127 | ac_cv_header_stat_broken=yes |
| 28128 | else |
| 28129 | ac_cv_header_stat_broken=no |
| 28130 | fi |
| 28131 | rm -f conftest* |
| 28132 | |
| 28133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28134 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28135 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28136 | if test $ac_cv_header_stat_broken = yes; then |
| 28137 | |
| 28138 | cat >>confdefs.h <<\_ACEOF |
| 28139 | #define STAT_MACROS_BROKEN 1 |
| 28140 | _ACEOF |
| 28141 | |
| 28142 | fi |
| 28143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28144 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28145 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28146 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28148 | else |
| 28149 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28150 | /* confdefs.h. */ |
| 28151 | _ACEOF |
| 28152 | cat confdefs.h >>conftest.$ac_ext |
| 28153 | cat >>conftest.$ac_ext <<_ACEOF |
| 28154 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28155 | #include <stdlib.h> |
| 28156 | #include <stdarg.h> |
| 28157 | #include <string.h> |
| 28158 | #include <float.h> |
| 28159 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28160 | int |
| 28161 | main () |
| 28162 | { |
| 28163 | |
| 28164 | ; |
| 28165 | return 0; |
| 28166 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28167 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28168 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28169 | if { (ac_try="$ac_compile" |
| 28170 | case "(($ac_try" in |
| 28171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28172 | *) ac_try_echo=$ac_try;; |
| 28173 | esac |
| 28174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28175 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28176 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28178 | rm -f conftest.er1 |
| 28179 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28181 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28182 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28183 | { (case "(($ac_try" in |
| 28184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28185 | *) ac_try_echo=$ac_try;; |
| 28186 | esac |
| 28187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28188 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28189 | ac_status=$? |
| 28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28191 | (exit $ac_status); }; } && |
| 28192 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28193 | { (case "(($ac_try" in |
| 28194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28195 | *) ac_try_echo=$ac_try;; |
| 28196 | esac |
| 28197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28198 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28199 | ac_status=$? |
| 28200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28201 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28202 | ac_cv_header_stdc=yes |
| 28203 | else |
| 28204 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28206 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28207 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28208 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28209 | |
| 28210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28211 | |
| 28212 | if test $ac_cv_header_stdc = yes; then |
| 28213 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28214 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28215 | /* confdefs.h. */ |
| 28216 | _ACEOF |
| 28217 | cat confdefs.h >>conftest.$ac_ext |
| 28218 | cat >>conftest.$ac_ext <<_ACEOF |
| 28219 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28220 | #include <string.h> |
| 28221 | |
| 28222 | _ACEOF |
| 28223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28224 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28225 | : |
| 28226 | else |
| 28227 | ac_cv_header_stdc=no |
| 28228 | fi |
| 28229 | rm -f conftest* |
| 28230 | |
| 28231 | fi |
| 28232 | |
| 28233 | if test $ac_cv_header_stdc = yes; then |
| 28234 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28235 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28236 | /* confdefs.h. */ |
| 28237 | _ACEOF |
| 28238 | cat confdefs.h >>conftest.$ac_ext |
| 28239 | cat >>conftest.$ac_ext <<_ACEOF |
| 28240 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28241 | #include <stdlib.h> |
| 28242 | |
| 28243 | _ACEOF |
| 28244 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28245 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28246 | : |
| 28247 | else |
| 28248 | ac_cv_header_stdc=no |
| 28249 | fi |
| 28250 | rm -f conftest* |
| 28251 | |
| 28252 | fi |
| 28253 | |
| 28254 | if test $ac_cv_header_stdc = yes; then |
| 28255 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28256 | if test "$cross_compiling" = yes; then |
| 28257 | : |
| 28258 | else |
| 28259 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28260 | /* confdefs.h. */ |
| 28261 | _ACEOF |
| 28262 | cat confdefs.h >>conftest.$ac_ext |
| 28263 | cat >>conftest.$ac_ext <<_ACEOF |
| 28264 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28265 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28266 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28267 | #if ((' ' & 0x0FF) == 0x020) |
| 28268 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28269 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28270 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28271 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28272 | (('a' <= (c) && (c) <= 'i') \ |
| 28273 | || ('j' <= (c) && (c) <= 'r') \ |
| 28274 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28275 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28276 | #endif |
| 28277 | |
| 28278 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28279 | int |
| 28280 | main () |
| 28281 | { |
| 28282 | int i; |
| 28283 | for (i = 0; i < 256; i++) |
| 28284 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28285 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28286 | return 2; |
| 28287 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28288 | } |
| 28289 | _ACEOF |
| 28290 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28291 | if { (ac_try="$ac_link" |
| 28292 | case "(($ac_try" in |
| 28293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28294 | *) ac_try_echo=$ac_try;; |
| 28295 | esac |
| 28296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28297 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28298 | ac_status=$? |
| 28299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28301 | { (case "(($ac_try" in |
| 28302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28303 | *) ac_try_echo=$ac_try;; |
| 28304 | esac |
| 28305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28306 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28307 | ac_status=$? |
| 28308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28309 | (exit $ac_status); }; }; then |
| 28310 | : |
| 28311 | else |
| 28312 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28313 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28315 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28316 | ( exit $ac_status ) |
| 28317 | ac_cv_header_stdc=no |
| 28318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28319 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28320 | fi |
| 28321 | |
| 28322 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28323 | fi |
| 28324 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28325 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28326 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28327 | if test $ac_cv_header_stdc = yes; then |
| 28328 | |
| 28329 | cat >>confdefs.h <<\_ACEOF |
| 28330 | #define STDC_HEADERS 1 |
| 28331 | _ACEOF |
| 28332 | |
| 28333 | fi |
| 28334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28335 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28336 | 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] | 28337 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28339 | else |
| 28340 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28341 | /* confdefs.h. */ |
| 28342 | _ACEOF |
| 28343 | cat confdefs.h >>conftest.$ac_ext |
| 28344 | cat >>conftest.$ac_ext <<_ACEOF |
| 28345 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28346 | #include <sys/types.h> |
| 28347 | #include <sys/wait.h> |
| 28348 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28349 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28350 | #endif |
| 28351 | #ifndef WIFEXITED |
| 28352 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28353 | #endif |
| 28354 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28355 | int |
| 28356 | main () |
| 28357 | { |
| 28358 | int s; |
| 28359 | wait (&s); |
| 28360 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28361 | ; |
| 28362 | return 0; |
| 28363 | } |
| 28364 | _ACEOF |
| 28365 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28366 | if { (ac_try="$ac_compile" |
| 28367 | case "(($ac_try" in |
| 28368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28369 | *) ac_try_echo=$ac_try;; |
| 28370 | esac |
| 28371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28372 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28373 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28375 | rm -f conftest.er1 |
| 28376 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28378 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28380 | { (case "(($ac_try" in |
| 28381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28382 | *) ac_try_echo=$ac_try;; |
| 28383 | esac |
| 28384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28385 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28386 | ac_status=$? |
| 28387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28388 | (exit $ac_status); }; } && |
| 28389 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28390 | { (case "(($ac_try" in |
| 28391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28392 | *) ac_try_echo=$ac_try;; |
| 28393 | esac |
| 28394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28395 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28396 | ac_status=$? |
| 28397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28398 | (exit $ac_status); }; }; then |
| 28399 | ac_cv_header_sys_wait_h=yes |
| 28400 | else |
| 28401 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28404 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28405 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28406 | |
| 28407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28408 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28409 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28410 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28411 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28412 | |
| 28413 | cat >>confdefs.h <<\_ACEOF |
| 28414 | #define HAVE_SYS_WAIT_H 1 |
| 28415 | _ACEOF |
| 28416 | |
| 28417 | fi |
| 28418 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28419 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28420 | 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] | 28421 | if test "${ac_cv_header_time+set}" = set; then |
| 28422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28423 | else |
| 28424 | cat >conftest.$ac_ext <<_ACEOF |
| 28425 | /* confdefs.h. */ |
| 28426 | _ACEOF |
| 28427 | cat confdefs.h >>conftest.$ac_ext |
| 28428 | cat >>conftest.$ac_ext <<_ACEOF |
| 28429 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28430 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28431 | #include <sys/time.h> |
| 28432 | #include <time.h> |
| 28433 | |
| 28434 | int |
| 28435 | main () |
| 28436 | { |
| 28437 | if ((struct tm *) 0) |
| 28438 | return 0; |
| 28439 | ; |
| 28440 | return 0; |
| 28441 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28442 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28443 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28444 | if { (ac_try="$ac_compile" |
| 28445 | case "(($ac_try" in |
| 28446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28447 | *) ac_try_echo=$ac_try;; |
| 28448 | esac |
| 28449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28450 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28451 | ac_status=$? |
| 28452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28453 | rm -f conftest.er1 |
| 28454 | cat conftest.err >&5 |
| 28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28456 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28458 | { (case "(($ac_try" in |
| 28459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28460 | *) ac_try_echo=$ac_try;; |
| 28461 | esac |
| 28462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28463 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28464 | ac_status=$? |
| 28465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28466 | (exit $ac_status); }; } && |
| 28467 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28468 | { (case "(($ac_try" in |
| 28469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28470 | *) ac_try_echo=$ac_try;; |
| 28471 | esac |
| 28472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28473 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28474 | ac_status=$? |
| 28475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28476 | (exit $ac_status); }; }; then |
| 28477 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28478 | else |
| 28479 | echo "$as_me: failed program was:" >&5 |
| 28480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28482 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28483 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28484 | |
| 28485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28486 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28487 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28488 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28489 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28490 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28491 | cat >>confdefs.h <<\_ACEOF |
| 28492 | #define TIME_WITH_SYS_TIME 1 |
| 28493 | _ACEOF |
| 28494 | |
| 28495 | fi |
| 28496 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28497 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28498 | |
| 28499 | |
| 28500 | |
| 28501 | |
| 28502 | |
| 28503 | |
| 28504 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28505 | do |
| 28506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28507 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28508 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28510 | 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] | 28511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28512 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28513 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28514 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28515 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28516 | else |
| 28517 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28518 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28519 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28520 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28521 | /* confdefs.h. */ |
| 28522 | _ACEOF |
| 28523 | cat confdefs.h >>conftest.$ac_ext |
| 28524 | cat >>conftest.$ac_ext <<_ACEOF |
| 28525 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28526 | $ac_includes_default |
| 28527 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28528 | _ACEOF |
| 28529 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28530 | if { (ac_try="$ac_compile" |
| 28531 | case "(($ac_try" in |
| 28532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28533 | *) ac_try_echo=$ac_try;; |
| 28534 | esac |
| 28535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28536 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28537 | ac_status=$? |
| 28538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28539 | rm -f conftest.er1 |
| 28540 | cat conftest.err >&5 |
| 28541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28542 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28543 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28544 | { (case "(($ac_try" in |
| 28545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28546 | *) ac_try_echo=$ac_try;; |
| 28547 | esac |
| 28548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28549 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28550 | ac_status=$? |
| 28551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28552 | (exit $ac_status); }; } && |
| 28553 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28554 | { (case "(($ac_try" in |
| 28555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28556 | *) ac_try_echo=$ac_try;; |
| 28557 | esac |
| 28558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28559 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28560 | ac_status=$? |
| 28561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28562 | (exit $ac_status); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28563 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28564 | else |
| 28565 | echo "$as_me: failed program was:" >&5 |
| 28566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28568 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28569 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28570 | |
| 28571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28572 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28573 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28574 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28575 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28576 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28577 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28578 | cat >conftest.$ac_ext <<_ACEOF |
| 28579 | /* confdefs.h. */ |
| 28580 | _ACEOF |
| 28581 | cat confdefs.h >>conftest.$ac_ext |
| 28582 | cat >>conftest.$ac_ext <<_ACEOF |
| 28583 | /* end confdefs.h. */ |
| 28584 | #include <$ac_header> |
| 28585 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28586 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28587 | case "(($ac_try" in |
| 28588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28589 | *) ac_try_echo=$ac_try;; |
| 28590 | esac |
| 28591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28592 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28593 | ac_status=$? |
| 28594 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28595 | rm -f conftest.er1 |
| 28596 | cat conftest.err >&5 |
| 28597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28598 | (exit $ac_status); } >/dev/null; then |
| 28599 | if test -s conftest.err; then |
| 28600 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28601 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28602 | else |
| 28603 | ac_cpp_err= |
| 28604 | fi |
| 28605 | else |
| 28606 | ac_cpp_err=yes |
| 28607 | fi |
| 28608 | if test -z "$ac_cpp_err"; then |
| 28609 | ac_header_preproc=yes |
| 28610 | else |
| 28611 | echo "$as_me: failed program was:" >&5 |
| 28612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28613 | |
| 28614 | ac_header_preproc=no |
| 28615 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28616 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28617 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28618 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28619 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28620 | |
| 28621 | # So? What about this header? |
| 28622 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28623 | yes:no: ) |
| 28624 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28625 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28626 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28627 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28628 | ac_header_preproc=yes |
| 28629 | ;; |
| 28630 | no:yes:* ) |
| 28631 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28632 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28633 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28634 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28635 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28636 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28637 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28638 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28641 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28642 | 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] | 28643 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28644 | ## ----------------------------------- ## |
| 28645 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28646 | ## ----------------------------------- ## |
| 28647 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28648 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28649 | ;; |
| 28650 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28651 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28653 | 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] | 28654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28655 | else |
| 28656 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28657 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28658 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28660 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28661 | |
| 28662 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28663 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28664 | cat >>confdefs.h <<_ACEOF |
| 28665 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28666 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28667 | |
| 28668 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28669 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28670 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28671 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28672 | |
| 28673 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28674 | |
| 28675 | |
| 28676 | |
| 28677 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28678 | 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] | 28679 | do |
| 28680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28681 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28682 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28683 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28684 | 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] | 28685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28687 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28688 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28689 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28690 | else |
| 28691 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28692 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28693 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28694 | cat >conftest.$ac_ext <<_ACEOF |
| 28695 | /* confdefs.h. */ |
| 28696 | _ACEOF |
| 28697 | cat confdefs.h >>conftest.$ac_ext |
| 28698 | cat >>conftest.$ac_ext <<_ACEOF |
| 28699 | /* end confdefs.h. */ |
| 28700 | $ac_includes_default |
| 28701 | #include <$ac_header> |
| 28702 | _ACEOF |
| 28703 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28704 | if { (ac_try="$ac_compile" |
| 28705 | case "(($ac_try" in |
| 28706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28707 | *) ac_try_echo=$ac_try;; |
| 28708 | esac |
| 28709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28710 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28711 | ac_status=$? |
| 28712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28713 | rm -f conftest.er1 |
| 28714 | cat conftest.err >&5 |
| 28715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28716 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28718 | { (case "(($ac_try" in |
| 28719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28720 | *) ac_try_echo=$ac_try;; |
| 28721 | esac |
| 28722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28723 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28724 | ac_status=$? |
| 28725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28726 | (exit $ac_status); }; } && |
| 28727 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28728 | { (case "(($ac_try" in |
| 28729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28730 | *) ac_try_echo=$ac_try;; |
| 28731 | esac |
| 28732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28733 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28734 | ac_status=$? |
| 28735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28736 | (exit $ac_status); }; }; then |
| 28737 | ac_header_compiler=yes |
| 28738 | else |
| 28739 | echo "$as_me: failed program was:" >&5 |
| 28740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28742 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28743 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28744 | |
| 28745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28746 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28747 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28748 | |
| 28749 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28750 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28752 | cat >conftest.$ac_ext <<_ACEOF |
| 28753 | /* confdefs.h. */ |
| 28754 | _ACEOF |
| 28755 | cat confdefs.h >>conftest.$ac_ext |
| 28756 | cat >>conftest.$ac_ext <<_ACEOF |
| 28757 | /* end confdefs.h. */ |
| 28758 | #include <$ac_header> |
| 28759 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28760 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28761 | case "(($ac_try" in |
| 28762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28763 | *) ac_try_echo=$ac_try;; |
| 28764 | esac |
| 28765 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28766 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28767 | ac_status=$? |
| 28768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28769 | rm -f conftest.er1 |
| 28770 | cat conftest.err >&5 |
| 28771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28772 | (exit $ac_status); } >/dev/null; then |
| 28773 | if test -s conftest.err; then |
| 28774 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28775 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28776 | else |
| 28777 | ac_cpp_err= |
| 28778 | fi |
| 28779 | else |
| 28780 | ac_cpp_err=yes |
| 28781 | fi |
| 28782 | if test -z "$ac_cpp_err"; then |
| 28783 | ac_header_preproc=yes |
| 28784 | else |
| 28785 | echo "$as_me: failed program was:" >&5 |
| 28786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28787 | |
| 28788 | ac_header_preproc=no |
| 28789 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28790 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28791 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28792 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28793 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28794 | |
| 28795 | # So? What about this header? |
| 28796 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28797 | yes:no: ) |
| 28798 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28799 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28800 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28801 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28802 | ac_header_preproc=yes |
| 28803 | ;; |
| 28804 | no:yes:* ) |
| 28805 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28806 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28807 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28808 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28809 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28810 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28811 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28812 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28813 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28814 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28815 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28816 | 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] | 28817 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28818 | ## ----------------------------------- ## |
| 28819 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28820 | ## ----------------------------------- ## |
| 28821 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28822 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28823 | ;; |
| 28824 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28825 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28827 | 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] | 28828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28829 | else |
| 28830 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28832 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28833 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28834 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28835 | |
| 28836 | fi |
| 28837 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28838 | cat >>confdefs.h <<_ACEOF |
| 28839 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28840 | _ACEOF |
| 28841 | |
| 28842 | fi |
| 28843 | |
| 28844 | done |
| 28845 | |
| 28846 | |
| 28847 | |
| 28848 | |
| 28849 | |
| 28850 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28851 | 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] | 28852 | do |
| 28853 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28854 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28855 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28856 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28857 | 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] | 28858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28860 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28861 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28862 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28863 | else |
| 28864 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28865 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28866 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28867 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28868 | /* confdefs.h. */ |
| 28869 | _ACEOF |
| 28870 | cat confdefs.h >>conftest.$ac_ext |
| 28871 | cat >>conftest.$ac_ext <<_ACEOF |
| 28872 | /* end confdefs.h. */ |
| 28873 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28874 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28875 | _ACEOF |
| 28876 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28877 | if { (ac_try="$ac_compile" |
| 28878 | case "(($ac_try" in |
| 28879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28880 | *) ac_try_echo=$ac_try;; |
| 28881 | esac |
| 28882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28883 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28884 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28886 | rm -f conftest.er1 |
| 28887 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28889 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28891 | { (case "(($ac_try" in |
| 28892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28893 | *) ac_try_echo=$ac_try;; |
| 28894 | esac |
| 28895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28896 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28897 | ac_status=$? |
| 28898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28899 | (exit $ac_status); }; } && |
| 28900 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28901 | { (case "(($ac_try" in |
| 28902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28903 | *) ac_try_echo=$ac_try;; |
| 28904 | esac |
| 28905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28906 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28907 | ac_status=$? |
| 28908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28909 | (exit $ac_status); }; }; then |
| 28910 | ac_header_compiler=yes |
| 28911 | else |
| 28912 | echo "$as_me: failed program was:" >&5 |
| 28913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28914 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28915 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28916 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28917 | |
| 28918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28919 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28920 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28921 | |
| 28922 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28923 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28925 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28926 | /* confdefs.h. */ |
| 28927 | _ACEOF |
| 28928 | cat confdefs.h >>conftest.$ac_ext |
| 28929 | cat >>conftest.$ac_ext <<_ACEOF |
| 28930 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28931 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28932 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28933 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28934 | case "(($ac_try" in |
| 28935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28936 | *) ac_try_echo=$ac_try;; |
| 28937 | esac |
| 28938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28940 | ac_status=$? |
| 28941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28942 | rm -f conftest.er1 |
| 28943 | cat conftest.err >&5 |
| 28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28945 | (exit $ac_status); } >/dev/null; then |
| 28946 | if test -s conftest.err; then |
| 28947 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28949 | else |
| 28950 | ac_cpp_err= |
| 28951 | fi |
| 28952 | else |
| 28953 | ac_cpp_err=yes |
| 28954 | fi |
| 28955 | if test -z "$ac_cpp_err"; then |
| 28956 | ac_header_preproc=yes |
| 28957 | else |
| 28958 | echo "$as_me: failed program was:" >&5 |
| 28959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28960 | |
| 28961 | ac_header_preproc=no |
| 28962 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28963 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28964 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28965 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28966 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28967 | |
| 28968 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28969 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28970 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28971 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28972 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28973 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28974 | 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] | 28975 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 28976 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28977 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28978 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28979 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28980 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28981 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28982 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28983 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28984 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28985 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28986 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28987 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28988 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28989 | 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] | 28990 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28991 | ## ----------------------------------- ## |
| 28992 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28993 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28994 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28995 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28996 | ;; |
| 28997 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28998 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29000 | 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] | 29001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29002 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29003 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29004 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29005 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29006 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29007 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 29008 | |
| 29009 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29011 | cat >>confdefs.h <<_ACEOF |
| 29012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29013 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29014 | |
| 29015 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29016 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29017 | done |
| 29018 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29019 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29020 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29021 | |
| 29022 | for ac_header in sys/types.h malloc/malloc.h mach/mach.h |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29023 | do |
| 29024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29025 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29026 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29028 | 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] | 29029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29030 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29033 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29034 | else |
| 29035 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29036 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29037 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29038 | cat >conftest.$ac_ext <<_ACEOF |
| 29039 | /* confdefs.h. */ |
| 29040 | _ACEOF |
| 29041 | cat confdefs.h >>conftest.$ac_ext |
| 29042 | cat >>conftest.$ac_ext <<_ACEOF |
| 29043 | /* end confdefs.h. */ |
| 29044 | $ac_includes_default |
| 29045 | #include <$ac_header> |
| 29046 | _ACEOF |
| 29047 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29048 | if { (ac_try="$ac_compile" |
| 29049 | case "(($ac_try" in |
| 29050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29051 | *) ac_try_echo=$ac_try;; |
| 29052 | esac |
| 29053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29054 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29055 | ac_status=$? |
| 29056 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29057 | rm -f conftest.er1 |
| 29058 | cat conftest.err >&5 |
| 29059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29060 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29062 | { (case "(($ac_try" in |
| 29063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29064 | *) ac_try_echo=$ac_try;; |
| 29065 | esac |
| 29066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29067 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29068 | ac_status=$? |
| 29069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29070 | (exit $ac_status); }; } && |
| 29071 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29072 | { (case "(($ac_try" in |
| 29073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29074 | *) ac_try_echo=$ac_try;; |
| 29075 | esac |
| 29076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29077 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29078 | ac_status=$? |
| 29079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29080 | (exit $ac_status); }; }; then |
| 29081 | ac_header_compiler=yes |
| 29082 | else |
| 29083 | echo "$as_me: failed program was:" >&5 |
| 29084 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29085 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29086 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29087 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29088 | |
| 29089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29090 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29091 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29092 | |
| 29093 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29094 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29095 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29096 | cat >conftest.$ac_ext <<_ACEOF |
| 29097 | /* confdefs.h. */ |
| 29098 | _ACEOF |
| 29099 | cat confdefs.h >>conftest.$ac_ext |
| 29100 | cat >>conftest.$ac_ext <<_ACEOF |
| 29101 | /* end confdefs.h. */ |
| 29102 | #include <$ac_header> |
| 29103 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29104 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29105 | case "(($ac_try" in |
| 29106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29107 | *) ac_try_echo=$ac_try;; |
| 29108 | esac |
| 29109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29110 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29111 | ac_status=$? |
| 29112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29113 | rm -f conftest.er1 |
| 29114 | cat conftest.err >&5 |
| 29115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29116 | (exit $ac_status); } >/dev/null; then |
| 29117 | if test -s conftest.err; then |
| 29118 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29119 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29120 | else |
| 29121 | ac_cpp_err= |
| 29122 | fi |
| 29123 | else |
| 29124 | ac_cpp_err=yes |
| 29125 | fi |
| 29126 | if test -z "$ac_cpp_err"; then |
| 29127 | ac_header_preproc=yes |
| 29128 | else |
| 29129 | echo "$as_me: failed program was:" >&5 |
| 29130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29131 | |
| 29132 | ac_header_preproc=no |
| 29133 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29134 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29135 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29136 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29137 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29138 | |
| 29139 | # So? What about this header? |
| 29140 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29141 | yes:no: ) |
| 29142 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29143 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29145 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29146 | ac_header_preproc=yes |
| 29147 | ;; |
| 29148 | no:yes:* ) |
| 29149 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29150 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29151 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29152 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29153 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29154 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29155 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29156 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29157 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29158 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29159 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29160 | 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] | 29161 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29162 | ## ----------------------------------- ## |
| 29163 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29164 | ## ----------------------------------- ## |
| 29165 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29166 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29167 | ;; |
| 29168 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29169 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29171 | 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] | 29172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29173 | else |
| 29174 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29175 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29176 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29177 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29178 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29179 | |
| 29180 | fi |
| 29181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29182 | cat >>confdefs.h <<_ACEOF |
| 29183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29184 | _ACEOF |
| 29185 | |
| 29186 | fi |
| 29187 | |
| 29188 | done |
| 29189 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29190 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29191 | if test "${ac_cv_header_pthread_h+set}" = set; then |
| 29192 | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 29193 | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 29194 | if test "${ac_cv_header_pthread_h+set}" = set; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29196 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29197 | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 29198 | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29199 | else |
| 29200 | # Is the header compilable? |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29201 | { echo "$as_me:$LINENO: checking pthread.h usability" >&5 |
| 29202 | echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29203 | cat >conftest.$ac_ext <<_ACEOF |
| 29204 | /* confdefs.h. */ |
| 29205 | _ACEOF |
| 29206 | cat confdefs.h >>conftest.$ac_ext |
| 29207 | cat >>conftest.$ac_ext <<_ACEOF |
| 29208 | /* end confdefs.h. */ |
| 29209 | $ac_includes_default |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29210 | #include <pthread.h> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29211 | _ACEOF |
| 29212 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29213 | if { (ac_try="$ac_compile" |
| 29214 | case "(($ac_try" in |
| 29215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29216 | *) ac_try_echo=$ac_try;; |
| 29217 | esac |
| 29218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29219 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29220 | ac_status=$? |
| 29221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29222 | rm -f conftest.er1 |
| 29223 | cat conftest.err >&5 |
| 29224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29225 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29227 | { (case "(($ac_try" in |
| 29228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29229 | *) ac_try_echo=$ac_try;; |
| 29230 | esac |
| 29231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29232 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29233 | ac_status=$? |
| 29234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29235 | (exit $ac_status); }; } && |
| 29236 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29237 | { (case "(($ac_try" in |
| 29238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29239 | *) ac_try_echo=$ac_try;; |
| 29240 | esac |
| 29241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29242 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29243 | ac_status=$? |
| 29244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29245 | (exit $ac_status); }; }; then |
| 29246 | ac_header_compiler=yes |
| 29247 | else |
| 29248 | echo "$as_me: failed program was:" >&5 |
| 29249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29251 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29252 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29253 | |
| 29254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29255 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29256 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29257 | |
| 29258 | # Is the header present? |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29259 | { echo "$as_me:$LINENO: checking pthread.h presence" >&5 |
| 29260 | echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29261 | cat >conftest.$ac_ext <<_ACEOF |
| 29262 | /* confdefs.h. */ |
| 29263 | _ACEOF |
| 29264 | cat confdefs.h >>conftest.$ac_ext |
| 29265 | cat >>conftest.$ac_ext <<_ACEOF |
| 29266 | /* end confdefs.h. */ |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29267 | #include <pthread.h> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29268 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29269 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29270 | case "(($ac_try" in |
| 29271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29272 | *) ac_try_echo=$ac_try;; |
| 29273 | esac |
| 29274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29275 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29276 | ac_status=$? |
| 29277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29278 | rm -f conftest.er1 |
| 29279 | cat conftest.err >&5 |
| 29280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29281 | (exit $ac_status); } >/dev/null; then |
| 29282 | if test -s conftest.err; then |
| 29283 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29285 | else |
| 29286 | ac_cpp_err= |
| 29287 | fi |
| 29288 | else |
| 29289 | ac_cpp_err=yes |
| 29290 | fi |
| 29291 | if test -z "$ac_cpp_err"; then |
| 29292 | ac_header_preproc=yes |
| 29293 | else |
| 29294 | echo "$as_me: failed program was:" >&5 |
| 29295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29296 | |
| 29297 | ac_header_preproc=no |
| 29298 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29299 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29300 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29301 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29302 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29303 | |
| 29304 | # So? What about this header? |
| 29305 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29306 | yes:no: ) |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29307 | { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29308 | echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29309 | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 |
| 29310 | echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;} |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29311 | ac_header_preproc=yes |
| 29312 | ;; |
| 29313 | no:yes:* ) |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29314 | { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 |
| 29315 | echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} |
| 29316 | { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 |
| 29317 | echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} |
| 29318 | { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 |
| 29319 | echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} |
| 29320 | { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 29321 | echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29322 | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 |
| 29323 | echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} |
| 29324 | { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 |
| 29325 | echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29326 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29327 | ## ----------------------------------- ## |
| 29328 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29329 | ## ----------------------------------- ## |
| 29330 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29331 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29332 | ;; |
| 29333 | esac |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29334 | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 29335 | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 29336 | if test "${ac_cv_header_pthread_h+set}" = set; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29338 | else |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29339 | ac_cv_header_pthread_h=$ac_header_preproc |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29340 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29341 | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 29342 | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29343 | |
| 29344 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29345 | if test $ac_cv_header_pthread_h = yes; then |
| 29346 | HAVE_PTHREAD=1 |
| 29347 | |
| 29348 | else |
| 29349 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29350 | |
| 29351 | fi |
| 29352 | |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29353 | |
| 29354 | else |
| 29355 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29356 | |
| 29357 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29358 | |
| 29359 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29360 | |
| 29361 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29362 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29363 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29365 | else |
| 29366 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29367 | ac_ext=cpp |
| 29368 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29372 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29373 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29374 | if test "$cross_compiling" = yes; then |
| 29375 | ac_cv_huge_val_sanity=yes |
| 29376 | else |
| 29377 | cat >conftest.$ac_ext <<_ACEOF |
| 29378 | /* confdefs.h. */ |
| 29379 | _ACEOF |
| 29380 | cat confdefs.h >>conftest.$ac_ext |
| 29381 | cat >>conftest.$ac_ext <<_ACEOF |
| 29382 | /* end confdefs.h. */ |
| 29383 | #include <math.h> |
| 29384 | int |
| 29385 | main () |
| 29386 | { |
| 29387 | double x = HUGE_VAL; return x != x; |
| 29388 | ; |
| 29389 | return 0; |
| 29390 | } |
| 29391 | _ACEOF |
| 29392 | rm -f conftest$ac_exeext |
| 29393 | if { (ac_try="$ac_link" |
| 29394 | case "(($ac_try" in |
| 29395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29396 | *) ac_try_echo=$ac_try;; |
| 29397 | esac |
| 29398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29399 | (eval "$ac_link") 2>&5 |
| 29400 | ac_status=$? |
| 29401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29403 | { (case "(($ac_try" in |
| 29404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29405 | *) ac_try_echo=$ac_try;; |
| 29406 | esac |
| 29407 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29408 | (eval "$ac_try") 2>&5 |
| 29409 | ac_status=$? |
| 29410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29411 | (exit $ac_status); }; }; then |
| 29412 | ac_cv_huge_val_sanity=yes |
| 29413 | else |
| 29414 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29415 | echo "$as_me: failed program was:" >&5 |
| 29416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29417 | |
| 29418 | ( exit $ac_status ) |
| 29419 | ac_cv_huge_val_sanity=no |
| 29420 | fi |
| 29421 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29422 | fi |
| 29423 | |
| 29424 | |
| 29425 | ac_ext=c |
| 29426 | ac_cpp='$CPP $CPPFLAGS' |
| 29427 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29428 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29429 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29430 | |
| 29431 | |
| 29432 | fi |
| 29433 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29434 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29435 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29436 | |
| 29437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29438 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29439 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29440 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29442 | else |
| 29443 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29444 | /* confdefs.h. */ |
| 29445 | _ACEOF |
| 29446 | cat confdefs.h >>conftest.$ac_ext |
| 29447 | cat >>conftest.$ac_ext <<_ACEOF |
| 29448 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29449 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29450 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29451 | int |
| 29452 | main () |
| 29453 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29454 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29455 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29456 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29457 | return 0; |
| 29458 | ; |
| 29459 | return 0; |
| 29460 | } |
| 29461 | _ACEOF |
| 29462 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29463 | if { (ac_try="$ac_compile" |
| 29464 | case "(($ac_try" in |
| 29465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29466 | *) ac_try_echo=$ac_try;; |
| 29467 | esac |
| 29468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29469 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29470 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29472 | rm -f conftest.er1 |
| 29473 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29475 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29477 | { (case "(($ac_try" in |
| 29478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29479 | *) ac_try_echo=$ac_try;; |
| 29480 | esac |
| 29481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29482 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29483 | ac_status=$? |
| 29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29485 | (exit $ac_status); }; } && |
| 29486 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29487 | { (case "(($ac_try" in |
| 29488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29489 | *) ac_try_echo=$ac_try;; |
| 29490 | esac |
| 29491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29492 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29493 | ac_status=$? |
| 29494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29495 | (exit $ac_status); }; }; then |
| 29496 | ac_cv_type_pid_t=yes |
| 29497 | else |
| 29498 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29500 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29501 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29503 | |
| 29504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29505 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29506 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29507 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29508 | if test $ac_cv_type_pid_t = yes; then |
| 29509 | : |
| 29510 | else |
| 29511 | |
| 29512 | cat >>confdefs.h <<_ACEOF |
| 29513 | #define pid_t int |
| 29514 | _ACEOF |
| 29515 | |
| 29516 | fi |
| 29517 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29518 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29519 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29520 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29522 | else |
| 29523 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29524 | /* confdefs.h. */ |
| 29525 | _ACEOF |
| 29526 | cat confdefs.h >>conftest.$ac_ext |
| 29527 | cat >>conftest.$ac_ext <<_ACEOF |
| 29528 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29529 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29530 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29531 | int |
| 29532 | main () |
| 29533 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29534 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29535 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29536 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29537 | return 0; |
| 29538 | ; |
| 29539 | return 0; |
| 29540 | } |
| 29541 | _ACEOF |
| 29542 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29543 | if { (ac_try="$ac_compile" |
| 29544 | case "(($ac_try" in |
| 29545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29546 | *) ac_try_echo=$ac_try;; |
| 29547 | esac |
| 29548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29549 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29550 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29552 | rm -f conftest.er1 |
| 29553 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29555 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29557 | { (case "(($ac_try" in |
| 29558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29559 | *) ac_try_echo=$ac_try;; |
| 29560 | esac |
| 29561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29562 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29563 | ac_status=$? |
| 29564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29565 | (exit $ac_status); }; } && |
| 29566 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29567 | { (case "(($ac_try" in |
| 29568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29569 | *) ac_try_echo=$ac_try;; |
| 29570 | esac |
| 29571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29572 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29573 | ac_status=$? |
| 29574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29575 | (exit $ac_status); }; }; then |
| 29576 | ac_cv_type_size_t=yes |
| 29577 | else |
| 29578 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29581 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29582 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29583 | |
| 29584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29585 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29586 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29587 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29588 | if test $ac_cv_type_size_t = yes; then |
| 29589 | : |
| 29590 | else |
| 29591 | |
| 29592 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29593 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29594 | _ACEOF |
| 29595 | |
| 29596 | fi |
| 29597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29598 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29599 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29600 | if test "${ac_cv_type_signal+set}" = set; then |
| 29601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29602 | else |
| 29603 | cat >conftest.$ac_ext <<_ACEOF |
| 29604 | /* confdefs.h. */ |
| 29605 | _ACEOF |
| 29606 | cat confdefs.h >>conftest.$ac_ext |
| 29607 | cat >>conftest.$ac_ext <<_ACEOF |
| 29608 | /* end confdefs.h. */ |
| 29609 | #include <sys/types.h> |
| 29610 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29611 | |
| 29612 | int |
| 29613 | main () |
| 29614 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29615 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29616 | ; |
| 29617 | return 0; |
| 29618 | } |
| 29619 | _ACEOF |
| 29620 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29621 | if { (ac_try="$ac_compile" |
| 29622 | case "(($ac_try" in |
| 29623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29624 | *) ac_try_echo=$ac_try;; |
| 29625 | esac |
| 29626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29627 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29628 | ac_status=$? |
| 29629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29630 | rm -f conftest.er1 |
| 29631 | cat conftest.err >&5 |
| 29632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29633 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29635 | { (case "(($ac_try" in |
| 29636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29637 | *) ac_try_echo=$ac_try;; |
| 29638 | esac |
| 29639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29640 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29641 | ac_status=$? |
| 29642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29643 | (exit $ac_status); }; } && |
| 29644 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29645 | { (case "(($ac_try" in |
| 29646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29647 | *) ac_try_echo=$ac_try;; |
| 29648 | esac |
| 29649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29650 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29651 | ac_status=$? |
| 29652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29653 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29654 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29655 | else |
| 29656 | echo "$as_me: failed program was:" >&5 |
| 29657 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29659 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29660 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29661 | |
| 29662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29663 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29664 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29665 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29666 | |
| 29667 | cat >>confdefs.h <<_ACEOF |
| 29668 | #define RETSIGTYPE $ac_cv_type_signal |
| 29669 | _ACEOF |
| 29670 | |
| 29671 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29672 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 29673 | 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] | 29674 | if test "${ac_cv_struct_tm+set}" = set; then |
| 29675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29676 | else |
| 29677 | cat >conftest.$ac_ext <<_ACEOF |
| 29678 | /* confdefs.h. */ |
| 29679 | _ACEOF |
| 29680 | cat confdefs.h >>conftest.$ac_ext |
| 29681 | cat >>conftest.$ac_ext <<_ACEOF |
| 29682 | /* end confdefs.h. */ |
| 29683 | #include <sys/types.h> |
| 29684 | #include <time.h> |
| 29685 | |
| 29686 | int |
| 29687 | main () |
| 29688 | { |
| 29689 | struct tm *tp; tp->tm_sec; |
| 29690 | ; |
| 29691 | return 0; |
| 29692 | } |
| 29693 | _ACEOF |
| 29694 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29695 | if { (ac_try="$ac_compile" |
| 29696 | case "(($ac_try" in |
| 29697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29698 | *) ac_try_echo=$ac_try;; |
| 29699 | esac |
| 29700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29701 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29702 | ac_status=$? |
| 29703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29704 | rm -f conftest.er1 |
| 29705 | cat conftest.err >&5 |
| 29706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29707 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29708 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29709 | { (case "(($ac_try" in |
| 29710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29711 | *) ac_try_echo=$ac_try;; |
| 29712 | esac |
| 29713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29714 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29715 | ac_status=$? |
| 29716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29717 | (exit $ac_status); }; } && |
| 29718 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29719 | { (case "(($ac_try" in |
| 29720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29721 | *) ac_try_echo=$ac_try;; |
| 29722 | esac |
| 29723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29724 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29725 | ac_status=$? |
| 29726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29727 | (exit $ac_status); }; }; then |
| 29728 | ac_cv_struct_tm=time.h |
| 29729 | else |
| 29730 | echo "$as_me: failed program was:" >&5 |
| 29731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29732 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29733 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29735 | |
| 29736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29738 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 29739 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29740 | if test $ac_cv_struct_tm = sys/time.h; then |
| 29741 | |
| 29742 | cat >>confdefs.h <<\_ACEOF |
| 29743 | #define TM_IN_SYS_TIME 1 |
| 29744 | _ACEOF |
| 29745 | |
| 29746 | fi |
| 29747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29748 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 29749 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29750 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 29751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29752 | else |
| 29753 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29754 | /* confdefs.h. */ |
| 29755 | _ACEOF |
| 29756 | cat confdefs.h >>conftest.$ac_ext |
| 29757 | cat >>conftest.$ac_ext <<_ACEOF |
| 29758 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29759 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29760 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29761 | int |
| 29762 | main () |
| 29763 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29764 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29765 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29766 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29767 | return 0; |
| 29768 | ; |
| 29769 | return 0; |
| 29770 | } |
| 29771 | _ACEOF |
| 29772 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29773 | if { (ac_try="$ac_compile" |
| 29774 | case "(($ac_try" in |
| 29775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29776 | *) ac_try_echo=$ac_try;; |
| 29777 | esac |
| 29778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29779 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29780 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29782 | rm -f conftest.er1 |
| 29783 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29785 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29787 | { (case "(($ac_try" in |
| 29788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29789 | *) ac_try_echo=$ac_try;; |
| 29790 | esac |
| 29791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29792 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29793 | ac_status=$? |
| 29794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29795 | (exit $ac_status); }; } && |
| 29796 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29797 | { (case "(($ac_try" in |
| 29798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29799 | *) ac_try_echo=$ac_try;; |
| 29800 | esac |
| 29801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29802 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29803 | ac_status=$? |
| 29804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29805 | (exit $ac_status); }; }; then |
| 29806 | ac_cv_type_int64_t=yes |
| 29807 | else |
| 29808 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29811 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29813 | |
| 29814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29815 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29816 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 29817 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29818 | if test $ac_cv_type_int64_t = yes; then |
| 29819 | |
| 29820 | cat >>confdefs.h <<_ACEOF |
| 29821 | #define HAVE_INT64_T 1 |
| 29822 | _ACEOF |
| 29823 | |
| 29824 | |
| 29825 | else |
| 29826 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 29827 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 29828 | { (exit 1); exit 1; }; } |
| 29829 | fi |
| 29830 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29831 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 29832 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29833 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 29834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29835 | else |
| 29836 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29837 | /* confdefs.h. */ |
| 29838 | _ACEOF |
| 29839 | cat confdefs.h >>conftest.$ac_ext |
| 29840 | cat >>conftest.$ac_ext <<_ACEOF |
| 29841 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29842 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29843 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29844 | int |
| 29845 | main () |
| 29846 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29847 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29848 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29849 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29850 | return 0; |
| 29851 | ; |
| 29852 | return 0; |
| 29853 | } |
| 29854 | _ACEOF |
| 29855 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29856 | if { (ac_try="$ac_compile" |
| 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_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29863 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29865 | rm -f conftest.er1 |
| 29866 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29868 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29870 | { (case "(($ac_try" in |
| 29871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29872 | *) ac_try_echo=$ac_try;; |
| 29873 | esac |
| 29874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29875 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29876 | ac_status=$? |
| 29877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29878 | (exit $ac_status); }; } && |
| 29879 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29880 | { (case "(($ac_try" in |
| 29881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29882 | *) ac_try_echo=$ac_try;; |
| 29883 | esac |
| 29884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29885 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29886 | ac_status=$? |
| 29887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29888 | (exit $ac_status); }; }; then |
| 29889 | ac_cv_type_uint64_t=yes |
| 29890 | else |
| 29891 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29893 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29894 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29895 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29896 | |
| 29897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29898 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29899 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 29900 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29901 | if test $ac_cv_type_uint64_t = yes; then |
| 29902 | |
| 29903 | cat >>confdefs.h <<_ACEOF |
| 29904 | #define HAVE_UINT64_T 1 |
| 29905 | _ACEOF |
| 29906 | |
| 29907 | |
| 29908 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29909 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 29910 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29911 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 29912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29913 | else |
| 29914 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29915 | /* confdefs.h. */ |
| 29916 | _ACEOF |
| 29917 | cat confdefs.h >>conftest.$ac_ext |
| 29918 | cat >>conftest.$ac_ext <<_ACEOF |
| 29919 | /* end confdefs.h. */ |
| 29920 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29921 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29922 | int |
| 29923 | main () |
| 29924 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29925 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29926 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29927 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29928 | return 0; |
| 29929 | ; |
| 29930 | return 0; |
| 29931 | } |
| 29932 | _ACEOF |
| 29933 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29934 | if { (ac_try="$ac_compile" |
| 29935 | case "(($ac_try" in |
| 29936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29937 | *) ac_try_echo=$ac_try;; |
| 29938 | esac |
| 29939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29940 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29941 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29943 | rm -f conftest.er1 |
| 29944 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29946 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29948 | { (case "(($ac_try" in |
| 29949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29950 | *) ac_try_echo=$ac_try;; |
| 29951 | esac |
| 29952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29953 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29954 | ac_status=$? |
| 29955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29956 | (exit $ac_status); }; } && |
| 29957 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29958 | { (case "(($ac_try" in |
| 29959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29960 | *) ac_try_echo=$ac_try;; |
| 29961 | esac |
| 29962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29963 | (eval "$ac_try") 2>&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29964 | ac_status=$? |
| 29965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29966 | (exit $ac_status); }; }; then |
| 29967 | ac_cv_type_u_int64_t=yes |
| 29968 | else |
| 29969 | echo "$as_me: failed program was:" >&5 |
| 29970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29971 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29972 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29973 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29974 | |
| 29975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29977 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 29978 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29979 | if test $ac_cv_type_u_int64_t = yes; then |
| 29980 | |
| 29981 | cat >>confdefs.h <<_ACEOF |
| 29982 | #define HAVE_U_INT64_T 1 |
| 29983 | _ACEOF |
| 29984 | |
| 29985 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 29986 | else |
| 29987 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 29988 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 29989 | { (exit 1); exit 1; }; } |
| 29990 | fi |
| 29991 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29992 | fi |
| 29993 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29994 | |
| 29995 | |
| 29996 | |
| 29997 | |
| 29998 | |
| 29999 | |
| 30000 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 30001 | |
| 30002 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30003 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30004 | do |
| 30005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30006 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30008 | 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] | 30009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30010 | else |
| 30011 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30012 | /* confdefs.h. */ |
| 30013 | _ACEOF |
| 30014 | cat confdefs.h >>conftest.$ac_ext |
| 30015 | cat >>conftest.$ac_ext <<_ACEOF |
| 30016 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30017 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30019 | #define $ac_func innocuous_$ac_func |
| 30020 | |
| 30021 | /* System header to define __stub macros and hopefully few prototypes, |
| 30022 | which can conflict with char $ac_func (); below. |
| 30023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30024 | <limits.h> exists even on freestanding compilers. */ |
| 30025 | |
| 30026 | #ifdef __STDC__ |
| 30027 | # include <limits.h> |
| 30028 | #else |
| 30029 | # include <assert.h> |
| 30030 | #endif |
| 30031 | |
| 30032 | #undef $ac_func |
| 30033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30034 | /* Override any GCC internal prototype to avoid an error. |
| 30035 | Use char because int might match the return type of a GCC |
| 30036 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30037 | #ifdef __cplusplus |
| 30038 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30039 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30040 | char $ac_func (); |
| 30041 | /* The GNU C library defines this for functions which it implements |
| 30042 | to always fail with ENOSYS. Some functions are actually named |
| 30043 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30044 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30045 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30046 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30047 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30048 | int |
| 30049 | main () |
| 30050 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30051 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30052 | ; |
| 30053 | return 0; |
| 30054 | } |
| 30055 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30056 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30057 | if { (ac_try="$ac_link" |
| 30058 | case "(($ac_try" in |
| 30059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30060 | *) ac_try_echo=$ac_try;; |
| 30061 | esac |
| 30062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30063 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30064 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30066 | rm -f conftest.er1 |
| 30067 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30069 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30071 | { (case "(($ac_try" in |
| 30072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30073 | *) ac_try_echo=$ac_try;; |
| 30074 | esac |
| 30075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30076 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30077 | ac_status=$? |
| 30078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30079 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30080 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30081 | { (case "(($ac_try" in |
| 30082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30083 | *) ac_try_echo=$ac_try;; |
| 30084 | esac |
| 30085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30086 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30087 | ac_status=$? |
| 30088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30089 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30090 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30091 | else |
| 30092 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30095 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30096 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30097 | |
| 30098 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30099 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30100 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30101 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30102 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30103 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30104 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30105 | cat >>confdefs.h <<_ACEOF |
| 30106 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30107 | _ACEOF |
| 30108 | |
| 30109 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30110 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30111 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30112 | |
| 30113 | |
| 30114 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30115 | |
| 30116 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30117 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 30118 | do |
| 30119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 30120 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30121 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30122 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 30123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30124 | else |
| 30125 | cat >conftest.$ac_ext <<_ACEOF |
| 30126 | /* confdefs.h. */ |
| 30127 | _ACEOF |
| 30128 | cat confdefs.h >>conftest.$ac_ext |
| 30129 | cat >>conftest.$ac_ext <<_ACEOF |
| 30130 | /* end confdefs.h. */ |
| 30131 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30133 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30134 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 30135 | /* System header to define __stub macros and hopefully few prototypes, |
| 30136 | which can conflict with char $ac_func (); below. |
| 30137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30138 | <limits.h> exists even on freestanding compilers. */ |
| 30139 | |
| 30140 | #ifdef __STDC__ |
| 30141 | # include <limits.h> |
| 30142 | #else |
| 30143 | # include <assert.h> |
| 30144 | #endif |
| 30145 | |
| 30146 | #undef $ac_func |
| 30147 | |
| 30148 | /* Override any GCC internal prototype to avoid an error. |
| 30149 | Use char because int might match the return type of a GCC |
| 30150 | builtin and then its argument prototype would still apply. */ |
| 30151 | #ifdef __cplusplus |
| 30152 | extern "C" |
| 30153 | #endif |
| 30154 | char $ac_func (); |
| 30155 | /* The GNU C library defines this for functions which it implements |
| 30156 | to always fail with ENOSYS. Some functions are actually named |
| 30157 | something starting with __ and the normal name is an alias. */ |
| 30158 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 30159 | choke me |
| 30160 | #endif |
| 30161 | |
| 30162 | int |
| 30163 | main () |
| 30164 | { |
| 30165 | return $ac_func (); |
| 30166 | ; |
| 30167 | return 0; |
| 30168 | } |
| 30169 | _ACEOF |
| 30170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 30171 | if { (ac_try="$ac_link" |
| 30172 | case "(($ac_try" in |
| 30173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30174 | *) ac_try_echo=$ac_try;; |
| 30175 | esac |
| 30176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30177 | (eval "$ac_link") 2>conftest.er1 |
| 30178 | ac_status=$? |
| 30179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30180 | rm -f conftest.er1 |
| 30181 | cat conftest.err >&5 |
| 30182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30183 | (exit $ac_status); } && |
| 30184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30185 | { (case "(($ac_try" in |
| 30186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30187 | *) ac_try_echo=$ac_try;; |
| 30188 | esac |
| 30189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30190 | (eval "$ac_try") 2>&5 |
| 30191 | ac_status=$? |
| 30192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30193 | (exit $ac_status); }; } && |
| 30194 | { ac_try='test -s conftest$ac_exeext' |
| 30195 | { (case "(($ac_try" in |
| 30196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30197 | *) ac_try_echo=$ac_try;; |
| 30198 | esac |
| 30199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30200 | (eval "$ac_try") 2>&5 |
| 30201 | ac_status=$? |
| 30202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30203 | (exit $ac_status); }; }; then |
| 30204 | eval "$as_ac_var=yes" |
| 30205 | else |
| 30206 | echo "$as_me: failed program was:" >&5 |
| 30207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30208 | |
| 30209 | eval "$as_ac_var=no" |
| 30210 | fi |
| 30211 | |
| 30212 | rm -f core conftest.err conftest.$ac_objext \ |
| 30213 | conftest$ac_exeext conftest.$ac_ext |
| 30214 | fi |
| 30215 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30216 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30217 | echo "${ECHO_T}$ac_res" >&6; } |
| 30218 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30219 | cat >>confdefs.h <<_ACEOF |
| 30220 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30221 | _ACEOF |
| 30222 | |
| 30223 | fi |
| 30224 | done |
| 30225 | |
| 30226 | |
| 30227 | |
| 30228 | |
| 30229 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30230 | do |
| 30231 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30232 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30233 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30234 | 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] | 30235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30236 | else |
| 30237 | cat >conftest.$ac_ext <<_ACEOF |
| 30238 | /* confdefs.h. */ |
| 30239 | _ACEOF |
| 30240 | cat confdefs.h >>conftest.$ac_ext |
| 30241 | cat >>conftest.$ac_ext <<_ACEOF |
| 30242 | /* end confdefs.h. */ |
| 30243 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30244 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30245 | #define $ac_func innocuous_$ac_func |
| 30246 | |
| 30247 | /* System header to define __stub macros and hopefully few prototypes, |
| 30248 | which can conflict with char $ac_func (); below. |
| 30249 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30250 | <limits.h> exists even on freestanding compilers. */ |
| 30251 | |
| 30252 | #ifdef __STDC__ |
| 30253 | # include <limits.h> |
| 30254 | #else |
| 30255 | # include <assert.h> |
| 30256 | #endif |
| 30257 | |
| 30258 | #undef $ac_func |
| 30259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30260 | /* Override any GCC internal prototype to avoid an error. |
| 30261 | Use char because int might match the return type of a GCC |
| 30262 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30263 | #ifdef __cplusplus |
| 30264 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30265 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30266 | char $ac_func (); |
| 30267 | /* The GNU C library defines this for functions which it implements |
| 30268 | to always fail with ENOSYS. Some functions are actually named |
| 30269 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30270 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30271 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30272 | #endif |
| 30273 | |
| 30274 | int |
| 30275 | main () |
| 30276 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30277 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30278 | ; |
| 30279 | return 0; |
| 30280 | } |
| 30281 | _ACEOF |
| 30282 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30283 | if { (ac_try="$ac_link" |
| 30284 | case "(($ac_try" in |
| 30285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30286 | *) ac_try_echo=$ac_try;; |
| 30287 | esac |
| 30288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30289 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30290 | ac_status=$? |
| 30291 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30292 | rm -f conftest.er1 |
| 30293 | cat conftest.err >&5 |
| 30294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30295 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30297 | { (case "(($ac_try" in |
| 30298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30299 | *) ac_try_echo=$ac_try;; |
| 30300 | esac |
| 30301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30302 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30303 | ac_status=$? |
| 30304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30305 | (exit $ac_status); }; } && |
| 30306 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30307 | { (case "(($ac_try" in |
| 30308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30309 | *) ac_try_echo=$ac_try;; |
| 30310 | esac |
| 30311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30312 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30313 | ac_status=$? |
| 30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30315 | (exit $ac_status); }; }; then |
| 30316 | eval "$as_ac_var=yes" |
| 30317 | else |
| 30318 | echo "$as_me: failed program was:" >&5 |
| 30319 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30320 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30321 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30322 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30323 | |
| 30324 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30325 | conftest$ac_exeext conftest.$ac_ext |
| 30326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30327 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30328 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30329 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30330 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30331 | cat >>confdefs.h <<_ACEOF |
| 30332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30333 | _ACEOF |
| 30334 | |
| 30335 | fi |
| 30336 | done |
| 30337 | |
| 30338 | |
| 30339 | |
| 30340 | |
| 30341 | |
| 30342 | |
| 30343 | |
| 30344 | |
| 30345 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30346 | do |
| 30347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30348 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30350 | 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] | 30351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30352 | else |
| 30353 | cat >conftest.$ac_ext <<_ACEOF |
| 30354 | /* confdefs.h. */ |
| 30355 | _ACEOF |
| 30356 | cat confdefs.h >>conftest.$ac_ext |
| 30357 | cat >>conftest.$ac_ext <<_ACEOF |
| 30358 | /* end confdefs.h. */ |
| 30359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30361 | #define $ac_func innocuous_$ac_func |
| 30362 | |
| 30363 | /* System header to define __stub macros and hopefully few prototypes, |
| 30364 | which can conflict with char $ac_func (); below. |
| 30365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30366 | <limits.h> exists even on freestanding compilers. */ |
| 30367 | |
| 30368 | #ifdef __STDC__ |
| 30369 | # include <limits.h> |
| 30370 | #else |
| 30371 | # include <assert.h> |
| 30372 | #endif |
| 30373 | |
| 30374 | #undef $ac_func |
| 30375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30376 | /* Override any GCC internal prototype to avoid an error. |
| 30377 | Use char because int might match the return type of a GCC |
| 30378 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30379 | #ifdef __cplusplus |
| 30380 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30381 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30382 | char $ac_func (); |
| 30383 | /* The GNU C library defines this for functions which it implements |
| 30384 | to always fail with ENOSYS. Some functions are actually named |
| 30385 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30386 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30387 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30388 | #endif |
| 30389 | |
| 30390 | int |
| 30391 | main () |
| 30392 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30393 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30394 | ; |
| 30395 | return 0; |
| 30396 | } |
| 30397 | _ACEOF |
| 30398 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30399 | if { (ac_try="$ac_link" |
| 30400 | case "(($ac_try" in |
| 30401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30402 | *) ac_try_echo=$ac_try;; |
| 30403 | esac |
| 30404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30405 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30406 | ac_status=$? |
| 30407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30408 | rm -f conftest.er1 |
| 30409 | cat conftest.err >&5 |
| 30410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30411 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30413 | { (case "(($ac_try" in |
| 30414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30415 | *) ac_try_echo=$ac_try;; |
| 30416 | esac |
| 30417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30418 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30419 | ac_status=$? |
| 30420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30421 | (exit $ac_status); }; } && |
| 30422 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30423 | { (case "(($ac_try" in |
| 30424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30425 | *) ac_try_echo=$ac_try;; |
| 30426 | esac |
| 30427 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30428 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30429 | ac_status=$? |
| 30430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30431 | (exit $ac_status); }; }; then |
| 30432 | eval "$as_ac_var=yes" |
| 30433 | else |
| 30434 | echo "$as_me: failed program was:" >&5 |
| 30435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30436 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30437 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30438 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30439 | |
| 30440 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30441 | conftest$ac_exeext conftest.$ac_ext |
| 30442 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30443 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30444 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30445 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30446 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30447 | cat >>confdefs.h <<_ACEOF |
| 30448 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30449 | _ACEOF |
| 30450 | |
| 30451 | fi |
| 30452 | done |
| 30453 | |
| 30454 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30455 | |
| 30456 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30457 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30458 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30459 | do |
| 30460 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30461 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30462 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30463 | 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] | 30464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30465 | else |
| 30466 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30467 | /* confdefs.h. */ |
| 30468 | _ACEOF |
| 30469 | cat confdefs.h >>conftest.$ac_ext |
| 30470 | cat >>conftest.$ac_ext <<_ACEOF |
| 30471 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30472 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30474 | #define $ac_func innocuous_$ac_func |
| 30475 | |
| 30476 | /* System header to define __stub macros and hopefully few prototypes, |
| 30477 | which can conflict with char $ac_func (); below. |
| 30478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30479 | <limits.h> exists even on freestanding compilers. */ |
| 30480 | |
| 30481 | #ifdef __STDC__ |
| 30482 | # include <limits.h> |
| 30483 | #else |
| 30484 | # include <assert.h> |
| 30485 | #endif |
| 30486 | |
| 30487 | #undef $ac_func |
| 30488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30489 | /* Override any GCC internal prototype to avoid an error. |
| 30490 | Use char because int might match the return type of a GCC |
| 30491 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30492 | #ifdef __cplusplus |
| 30493 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30494 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30495 | char $ac_func (); |
| 30496 | /* The GNU C library defines this for functions which it implements |
| 30497 | to always fail with ENOSYS. Some functions are actually named |
| 30498 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30499 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30500 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30501 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30502 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30503 | int |
| 30504 | main () |
| 30505 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30506 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30507 | ; |
| 30508 | return 0; |
| 30509 | } |
| 30510 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30511 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30512 | if { (ac_try="$ac_link" |
| 30513 | case "(($ac_try" in |
| 30514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30515 | *) ac_try_echo=$ac_try;; |
| 30516 | esac |
| 30517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30518 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30519 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30521 | rm -f conftest.er1 |
| 30522 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30524 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30525 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30526 | { (case "(($ac_try" in |
| 30527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30528 | *) ac_try_echo=$ac_try;; |
| 30529 | esac |
| 30530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30531 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30532 | ac_status=$? |
| 30533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30534 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30535 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30536 | { (case "(($ac_try" in |
| 30537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30538 | *) ac_try_echo=$ac_try;; |
| 30539 | esac |
| 30540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30541 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30542 | ac_status=$? |
| 30543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30544 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30545 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30546 | else |
| 30547 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30549 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30550 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30552 | |
| 30553 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30554 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30556 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30557 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30558 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30559 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30560 | cat >>confdefs.h <<_ACEOF |
| 30561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30562 | _ACEOF |
| 30563 | |
| 30564 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30565 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30566 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30567 | |
| 30568 | |
| 30569 | |
| 30570 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 30571 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30572 | do |
| 30573 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30574 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30575 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30576 | 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] | 30577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30578 | else |
| 30579 | cat >conftest.$ac_ext <<_ACEOF |
| 30580 | /* confdefs.h. */ |
| 30581 | _ACEOF |
| 30582 | cat confdefs.h >>conftest.$ac_ext |
| 30583 | cat >>conftest.$ac_ext <<_ACEOF |
| 30584 | /* end confdefs.h. */ |
| 30585 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30586 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30587 | #define $ac_func innocuous_$ac_func |
| 30588 | |
| 30589 | /* System header to define __stub macros and hopefully few prototypes, |
| 30590 | which can conflict with char $ac_func (); below. |
| 30591 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30592 | <limits.h> exists even on freestanding compilers. */ |
| 30593 | |
| 30594 | #ifdef __STDC__ |
| 30595 | # include <limits.h> |
| 30596 | #else |
| 30597 | # include <assert.h> |
| 30598 | #endif |
| 30599 | |
| 30600 | #undef $ac_func |
| 30601 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30602 | /* Override any GCC internal prototype to avoid an error. |
| 30603 | Use char because int might match the return type of a GCC |
| 30604 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30605 | #ifdef __cplusplus |
| 30606 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30607 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30608 | char $ac_func (); |
| 30609 | /* The GNU C library defines this for functions which it implements |
| 30610 | to always fail with ENOSYS. Some functions are actually named |
| 30611 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30612 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30613 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30614 | #endif |
| 30615 | |
| 30616 | int |
| 30617 | main () |
| 30618 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30619 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30620 | ; |
| 30621 | return 0; |
| 30622 | } |
| 30623 | _ACEOF |
| 30624 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30625 | if { (ac_try="$ac_link" |
| 30626 | case "(($ac_try" in |
| 30627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30628 | *) ac_try_echo=$ac_try;; |
| 30629 | esac |
| 30630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30631 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30632 | ac_status=$? |
| 30633 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30634 | rm -f conftest.er1 |
| 30635 | cat conftest.err >&5 |
| 30636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30637 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30639 | { (case "(($ac_try" in |
| 30640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30641 | *) ac_try_echo=$ac_try;; |
| 30642 | esac |
| 30643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30644 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30645 | ac_status=$? |
| 30646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30647 | (exit $ac_status); }; } && |
| 30648 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30649 | { (case "(($ac_try" in |
| 30650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30651 | *) ac_try_echo=$ac_try;; |
| 30652 | esac |
| 30653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30654 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30655 | ac_status=$? |
| 30656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30657 | (exit $ac_status); }; }; then |
| 30658 | eval "$as_ac_var=yes" |
| 30659 | else |
| 30660 | echo "$as_me: failed program was:" >&5 |
| 30661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30663 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30664 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30665 | |
| 30666 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30667 | conftest$ac_exeext conftest.$ac_ext |
| 30668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30669 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30671 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30672 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30673 | cat >>confdefs.h <<_ACEOF |
| 30674 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30675 | _ACEOF |
| 30676 | |
| 30677 | fi |
| 30678 | done |
| 30679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30680 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 30681 | 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] | 30682 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30684 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30685 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30686 | ac_cpp='$CPP $CPPFLAGS' |
| 30687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30690 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30691 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30692 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30693 | else |
| 30694 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30695 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30696 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30697 | _ACEOF |
| 30698 | cat confdefs.h >>conftest.$ac_ext |
| 30699 | cat >>conftest.$ac_ext <<_ACEOF |
| 30700 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30701 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30702 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30703 | #include <stdlib.h> |
| 30704 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30705 | int |
| 30706 | main () |
| 30707 | { |
| 30708 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30709 | volatile double A, B; |
| 30710 | char Buffer[100]; |
| 30711 | A = 1; |
| 30712 | A /= 10.0; |
| 30713 | sprintf(Buffer, "%a", A); |
| 30714 | B = atof(Buffer); |
| 30715 | if (A != B) |
| 30716 | return (1); |
| 30717 | if (A != 0x1.999999999999ap-4) |
| 30718 | return (1); |
| 30719 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30720 | ; |
| 30721 | return 0; |
| 30722 | } |
| 30723 | _ACEOF |
| 30724 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30725 | if { (ac_try="$ac_link" |
| 30726 | case "(($ac_try" in |
| 30727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30728 | *) ac_try_echo=$ac_try;; |
| 30729 | esac |
| 30730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30731 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30732 | ac_status=$? |
| 30733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30735 | { (case "(($ac_try" in |
| 30736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30737 | *) ac_try_echo=$ac_try;; |
| 30738 | esac |
| 30739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30740 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30741 | ac_status=$? |
| 30742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30743 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30744 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30745 | else |
| 30746 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30747 | echo "$as_me: failed program was:" >&5 |
| 30748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30749 | |
| 30750 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30751 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30752 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30753 | 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] | 30754 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30755 | |
| 30756 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30757 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30758 | ac_cpp='$CPP $CPPFLAGS' |
| 30759 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30760 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30761 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30762 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30764 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 30765 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30766 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30767 | |
| 30768 | cat >>confdefs.h <<\_ACEOF |
| 30769 | #define HAVE_PRINTF_A 1 |
| 30770 | _ACEOF |
| 30771 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30772 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30773 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30774 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 30775 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30776 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 30777 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30778 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30780 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30781 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30782 | /* confdefs.h. */ |
| 30783 | _ACEOF |
| 30784 | cat confdefs.h >>conftest.$ac_ext |
| 30785 | cat >>conftest.$ac_ext <<_ACEOF |
| 30786 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30787 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30788 | int |
| 30789 | main () |
| 30790 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30791 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30792 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30793 | ; |
| 30794 | return 0; |
| 30795 | } |
| 30796 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30797 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30798 | if { (ac_try="$ac_link" |
| 30799 | case "(($ac_try" in |
| 30800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30801 | *) ac_try_echo=$ac_try;; |
| 30802 | esac |
| 30803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30804 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30805 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30807 | rm -f conftest.er1 |
| 30808 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30810 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30812 | { (case "(($ac_try" in |
| 30813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30814 | *) ac_try_echo=$ac_try;; |
| 30815 | esac |
| 30816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30817 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30818 | ac_status=$? |
| 30819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30820 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30821 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30822 | { (case "(($ac_try" in |
| 30823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30824 | *) ac_try_echo=$ac_try;; |
| 30825 | esac |
| 30826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30827 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30828 | ac_status=$? |
| 30829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30830 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30831 | ac_cv_working_alloca_h=yes |
| 30832 | else |
| 30833 | echo "$as_me: failed program was:" >&5 |
| 30834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30836 | ac_cv_working_alloca_h=no |
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 | |
| 30839 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30840 | conftest$ac_exeext conftest.$ac_ext |
| 30841 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30842 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 30843 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30844 | if test $ac_cv_working_alloca_h = yes; then |
| 30845 | |
| 30846 | cat >>confdefs.h <<\_ACEOF |
| 30847 | #define HAVE_ALLOCA_H 1 |
| 30848 | _ACEOF |
| 30849 | |
| 30850 | fi |
| 30851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30852 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 30853 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30854 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 30855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30856 | else |
| 30857 | cat >conftest.$ac_ext <<_ACEOF |
| 30858 | /* confdefs.h. */ |
| 30859 | _ACEOF |
| 30860 | cat confdefs.h >>conftest.$ac_ext |
| 30861 | cat >>conftest.$ac_ext <<_ACEOF |
| 30862 | /* end confdefs.h. */ |
| 30863 | #ifdef __GNUC__ |
| 30864 | # define alloca __builtin_alloca |
| 30865 | #else |
| 30866 | # ifdef _MSC_VER |
| 30867 | # include <malloc.h> |
| 30868 | # define alloca _alloca |
| 30869 | # else |
| 30870 | # if HAVE_ALLOCA_H |
| 30871 | # include <alloca.h> |
| 30872 | # else |
| 30873 | # ifdef _AIX |
| 30874 | #pragma alloca |
| 30875 | # else |
| 30876 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 30877 | char *alloca (); |
| 30878 | # endif |
| 30879 | # endif |
| 30880 | # endif |
| 30881 | # endif |
| 30882 | #endif |
| 30883 | |
| 30884 | int |
| 30885 | main () |
| 30886 | { |
| 30887 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30888 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30889 | ; |
| 30890 | return 0; |
| 30891 | } |
| 30892 | _ACEOF |
| 30893 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30894 | if { (ac_try="$ac_link" |
| 30895 | case "(($ac_try" in |
| 30896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30897 | *) ac_try_echo=$ac_try;; |
| 30898 | esac |
| 30899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30900 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30901 | ac_status=$? |
| 30902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30903 | rm -f conftest.er1 |
| 30904 | cat conftest.err >&5 |
| 30905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30906 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30908 | { (case "(($ac_try" in |
| 30909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30910 | *) ac_try_echo=$ac_try;; |
| 30911 | esac |
| 30912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30913 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30914 | ac_status=$? |
| 30915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30916 | (exit $ac_status); }; } && |
| 30917 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30918 | { (case "(($ac_try" in |
| 30919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30920 | *) ac_try_echo=$ac_try;; |
| 30921 | esac |
| 30922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30923 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30924 | ac_status=$? |
| 30925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30926 | (exit $ac_status); }; }; then |
| 30927 | ac_cv_func_alloca_works=yes |
| 30928 | else |
| 30929 | echo "$as_me: failed program was:" >&5 |
| 30930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30932 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30934 | |
| 30935 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30936 | conftest$ac_exeext conftest.$ac_ext |
| 30937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30938 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 30939 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30940 | |
| 30941 | if test $ac_cv_func_alloca_works = yes; then |
| 30942 | |
| 30943 | cat >>confdefs.h <<\_ACEOF |
| 30944 | #define HAVE_ALLOCA 1 |
| 30945 | _ACEOF |
| 30946 | |
| 30947 | else |
| 30948 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 30949 | # that cause trouble. Some versions do not even contain alloca or |
| 30950 | # contain a buggy version. If you still want to use their alloca, |
| 30951 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 30952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30953 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30954 | |
| 30955 | cat >>confdefs.h <<\_ACEOF |
| 30956 | #define C_ALLOCA 1 |
| 30957 | _ACEOF |
| 30958 | |
| 30959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30960 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 30961 | 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] | 30962 | if test "${ac_cv_os_cray+set}" = set; then |
| 30963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30964 | else |
| 30965 | cat >conftest.$ac_ext <<_ACEOF |
| 30966 | /* confdefs.h. */ |
| 30967 | _ACEOF |
| 30968 | cat confdefs.h >>conftest.$ac_ext |
| 30969 | cat >>conftest.$ac_ext <<_ACEOF |
| 30970 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30971 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30972 | webecray |
| 30973 | #else |
| 30974 | wenotbecray |
| 30975 | #endif |
| 30976 | |
| 30977 | _ACEOF |
| 30978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30979 | $EGREP "webecray" >/dev/null 2>&1; then |
| 30980 | ac_cv_os_cray=yes |
| 30981 | else |
| 30982 | ac_cv_os_cray=no |
| 30983 | fi |
| 30984 | rm -f conftest* |
| 30985 | |
| 30986 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30987 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 30988 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30989 | if test $ac_cv_os_cray = yes; then |
| 30990 | for ac_func in _getb67 GETB67 getb67; do |
| 30991 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30992 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30993 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30994 | 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] | 30995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30996 | else |
| 30997 | cat >conftest.$ac_ext <<_ACEOF |
| 30998 | /* confdefs.h. */ |
| 30999 | _ACEOF |
| 31000 | cat confdefs.h >>conftest.$ac_ext |
| 31001 | cat >>conftest.$ac_ext <<_ACEOF |
| 31002 | /* end confdefs.h. */ |
| 31003 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31005 | #define $ac_func innocuous_$ac_func |
| 31006 | |
| 31007 | /* System header to define __stub macros and hopefully few prototypes, |
| 31008 | which can conflict with char $ac_func (); below. |
| 31009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31010 | <limits.h> exists even on freestanding compilers. */ |
| 31011 | |
| 31012 | #ifdef __STDC__ |
| 31013 | # include <limits.h> |
| 31014 | #else |
| 31015 | # include <assert.h> |
| 31016 | #endif |
| 31017 | |
| 31018 | #undef $ac_func |
| 31019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31020 | /* Override any GCC internal prototype to avoid an error. |
| 31021 | Use char because int might match the return type of a GCC |
| 31022 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31023 | #ifdef __cplusplus |
| 31024 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31025 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31026 | char $ac_func (); |
| 31027 | /* The GNU C library defines this for functions which it implements |
| 31028 | to always fail with ENOSYS. Some functions are actually named |
| 31029 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31030 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31031 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31032 | #endif |
| 31033 | |
| 31034 | int |
| 31035 | main () |
| 31036 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31037 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31038 | ; |
| 31039 | return 0; |
| 31040 | } |
| 31041 | _ACEOF |
| 31042 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31043 | if { (ac_try="$ac_link" |
| 31044 | case "(($ac_try" in |
| 31045 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31046 | *) ac_try_echo=$ac_try;; |
| 31047 | esac |
| 31048 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31049 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31050 | ac_status=$? |
| 31051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31052 | rm -f conftest.er1 |
| 31053 | cat conftest.err >&5 |
| 31054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31055 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 31057 | { (case "(($ac_try" in |
| 31058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31059 | *) ac_try_echo=$ac_try;; |
| 31060 | esac |
| 31061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31062 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31063 | ac_status=$? |
| 31064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31065 | (exit $ac_status); }; } && |
| 31066 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31067 | { (case "(($ac_try" in |
| 31068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31069 | *) ac_try_echo=$ac_try;; |
| 31070 | esac |
| 31071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31072 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31073 | ac_status=$? |
| 31074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31075 | (exit $ac_status); }; }; then |
| 31076 | eval "$as_ac_var=yes" |
| 31077 | else |
| 31078 | echo "$as_me: failed program was:" >&5 |
| 31079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31081 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31082 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31083 | |
| 31084 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31085 | conftest$ac_exeext conftest.$ac_ext |
| 31086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31087 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31088 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31089 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31090 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31091 | |
| 31092 | cat >>confdefs.h <<_ACEOF |
| 31093 | #define CRAY_STACKSEG_END $ac_func |
| 31094 | _ACEOF |
| 31095 | |
| 31096 | break |
| 31097 | fi |
| 31098 | |
| 31099 | done |
| 31100 | fi |
| 31101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31102 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 31103 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31104 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 31105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31106 | else |
| 31107 | if test "$cross_compiling" = yes; then |
| 31108 | ac_cv_c_stack_direction=0 |
| 31109 | else |
| 31110 | cat >conftest.$ac_ext <<_ACEOF |
| 31111 | /* confdefs.h. */ |
| 31112 | _ACEOF |
| 31113 | cat confdefs.h >>conftest.$ac_ext |
| 31114 | cat >>conftest.$ac_ext <<_ACEOF |
| 31115 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31116 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31117 | int |
| 31118 | find_stack_direction () |
| 31119 | { |
| 31120 | static char *addr = 0; |
| 31121 | auto char dummy; |
| 31122 | if (addr == 0) |
| 31123 | { |
| 31124 | addr = &dummy; |
| 31125 | return find_stack_direction (); |
| 31126 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31127 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31128 | return (&dummy > addr) ? 1 : -1; |
| 31129 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31130 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31131 | int |
| 31132 | main () |
| 31133 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31134 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31135 | } |
| 31136 | _ACEOF |
| 31137 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31138 | if { (ac_try="$ac_link" |
| 31139 | case "(($ac_try" in |
| 31140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31141 | *) ac_try_echo=$ac_try;; |
| 31142 | esac |
| 31143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31144 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31145 | ac_status=$? |
| 31146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31147 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31148 | { (case "(($ac_try" in |
| 31149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31150 | *) ac_try_echo=$ac_try;; |
| 31151 | esac |
| 31152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31153 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31154 | ac_status=$? |
| 31155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31156 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31157 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31158 | else |
| 31159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31160 | echo "$as_me: failed program was:" >&5 |
| 31161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31162 | |
| 31163 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31164 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31166 | 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] | 31167 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31168 | |
| 31169 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31170 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31171 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31172 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31173 | |
| 31174 | cat >>confdefs.h <<_ACEOF |
| 31175 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31176 | _ACEOF |
| 31177 | |
| 31178 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31179 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31180 | |
| 31181 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31182 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31183 | 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] | 31184 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31186 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31187 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31188 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31189 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31190 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31191 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31192 | |
| 31193 | cat >conftest.$ac_ext <<_ACEOF |
| 31194 | /* confdefs.h. */ |
| 31195 | _ACEOF |
| 31196 | cat confdefs.h >>conftest.$ac_ext |
| 31197 | cat >>conftest.$ac_ext <<_ACEOF |
| 31198 | /* end confdefs.h. */ |
| 31199 | #include <stdlib.h> |
| 31200 | int |
| 31201 | main () |
| 31202 | { |
| 31203 | srand48(0);lrand48();drand48(); |
| 31204 | ; |
| 31205 | return 0; |
| 31206 | } |
| 31207 | _ACEOF |
| 31208 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31209 | if { (ac_try="$ac_compile" |
| 31210 | case "(($ac_try" in |
| 31211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31212 | *) ac_try_echo=$ac_try;; |
| 31213 | esac |
| 31214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31215 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31216 | ac_status=$? |
| 31217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31218 | rm -f conftest.er1 |
| 31219 | cat conftest.err >&5 |
| 31220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31221 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31222 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31223 | { (case "(($ac_try" in |
| 31224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31225 | *) ac_try_echo=$ac_try;; |
| 31226 | esac |
| 31227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31228 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31229 | ac_status=$? |
| 31230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31231 | (exit $ac_status); }; } && |
| 31232 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31233 | { (case "(($ac_try" in |
| 31234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31235 | *) ac_try_echo=$ac_try;; |
| 31236 | esac |
| 31237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31238 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31239 | ac_status=$? |
| 31240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31241 | (exit $ac_status); }; }; then |
| 31242 | ac_cv_func_rand48=yes |
| 31243 | else |
| 31244 | echo "$as_me: failed program was:" >&5 |
| 31245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31246 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31247 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31249 | |
| 31250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31251 | ac_ext=c |
| 31252 | ac_cpp='$CPP $CPPFLAGS' |
| 31253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31256 | |
| 31257 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31258 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31259 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31260 | |
| 31261 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31262 | |
| 31263 | cat >>confdefs.h <<\_ACEOF |
| 31264 | #define HAVE_RAND48 1 |
| 31265 | _ACEOF |
| 31266 | |
| 31267 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31268 | |
| 31269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31270 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31271 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31272 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31274 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31275 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31276 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31280 | |
| 31281 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31282 | /* confdefs.h. */ |
| 31283 | _ACEOF |
| 31284 | cat confdefs.h >>conftest.$ac_ext |
| 31285 | cat >>conftest.$ac_ext <<_ACEOF |
| 31286 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31287 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31288 | int |
| 31289 | main () |
| 31290 | { |
| 31291 | using namespace Outer::Inner; return i; |
| 31292 | ; |
| 31293 | return 0; |
| 31294 | } |
| 31295 | _ACEOF |
| 31296 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31297 | if { (ac_try="$ac_compile" |
| 31298 | case "(($ac_try" in |
| 31299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31300 | *) ac_try_echo=$ac_try;; |
| 31301 | esac |
| 31302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31303 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31304 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31306 | rm -f conftest.er1 |
| 31307 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31309 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31310 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31311 | { (case "(($ac_try" in |
| 31312 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31313 | *) ac_try_echo=$ac_try;; |
| 31314 | esac |
| 31315 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31316 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31317 | ac_status=$? |
| 31318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31319 | (exit $ac_status); }; } && |
| 31320 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31321 | { (case "(($ac_try" in |
| 31322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31323 | *) ac_try_echo=$ac_try;; |
| 31324 | esac |
| 31325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31326 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31327 | ac_status=$? |
| 31328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31329 | (exit $ac_status); }; }; then |
| 31330 | ac_cv_cxx_namespaces=yes |
| 31331 | else |
| 31332 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31335 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31336 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31337 | |
| 31338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31339 | ac_ext=c |
| 31340 | ac_cpp='$CPP $CPPFLAGS' |
| 31341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31344 | |
| 31345 | |
| 31346 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31347 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31348 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31349 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31350 | |
| 31351 | cat >>confdefs.h <<\_ACEOF |
| 31352 | #define HAVE_NAMESPACES |
| 31353 | _ACEOF |
| 31354 | |
| 31355 | fi |
| 31356 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31357 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31358 | 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] | 31359 | 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] | 31360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31361 | else |
| 31362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31363 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31364 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31368 | |
| 31369 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31370 | /* confdefs.h. */ |
| 31371 | _ACEOF |
| 31372 | cat confdefs.h >>conftest.$ac_ext |
| 31373 | cat >>conftest.$ac_ext <<_ACEOF |
| 31374 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31375 | #include <ext/hash_map> |
| 31376 | #ifdef HAVE_NAMESPACES |
| 31377 | using namespace std; |
| 31378 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31379 | int |
| 31380 | main () |
| 31381 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31382 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31383 | ; |
| 31384 | return 0; |
| 31385 | } |
| 31386 | _ACEOF |
| 31387 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31388 | if { (ac_try="$ac_compile" |
| 31389 | case "(($ac_try" in |
| 31390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31391 | *) ac_try_echo=$ac_try;; |
| 31392 | esac |
| 31393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31394 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31395 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31397 | rm -f conftest.er1 |
| 31398 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31400 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31401 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31402 | { (case "(($ac_try" in |
| 31403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31404 | *) ac_try_echo=$ac_try;; |
| 31405 | esac |
| 31406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31407 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31408 | ac_status=$? |
| 31409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31410 | (exit $ac_status); }; } && |
| 31411 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31412 | { (case "(($ac_try" in |
| 31413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31414 | *) ac_try_echo=$ac_try;; |
| 31415 | esac |
| 31416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31417 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31418 | ac_status=$? |
| 31419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31420 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31421 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31422 | else |
| 31423 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31425 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31426 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31427 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31428 | |
| 31429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31430 | ac_ext=c |
| 31431 | ac_cpp='$CPP $CPPFLAGS' |
| 31432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31435 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31437 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31438 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31439 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31440 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31441 | |
| 31442 | cat >>confdefs.h <<\_ACEOF |
| 31443 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31444 | _ACEOF |
| 31445 | |
| 31446 | else |
| 31447 | |
| 31448 | cat >>confdefs.h <<\_ACEOF |
| 31449 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31450 | _ACEOF |
| 31451 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31452 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31453 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31454 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31455 | 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] | 31456 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31458 | else |
| 31459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31460 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31461 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31462 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31463 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31464 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31465 | |
| 31466 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31467 | /* confdefs.h. */ |
| 31468 | _ACEOF |
| 31469 | cat confdefs.h >>conftest.$ac_ext |
| 31470 | cat >>conftest.$ac_ext <<_ACEOF |
| 31471 | /* end confdefs.h. */ |
| 31472 | #include <ext/hash_map> |
| 31473 | #ifdef HAVE_NAMESPACES |
| 31474 | using namespace __gnu_cxx; |
| 31475 | #endif |
| 31476 | int |
| 31477 | main () |
| 31478 | { |
| 31479 | hash_map<int,int> t; |
| 31480 | ; |
| 31481 | return 0; |
| 31482 | } |
| 31483 | _ACEOF |
| 31484 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31485 | if { (ac_try="$ac_compile" |
| 31486 | case "(($ac_try" in |
| 31487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31488 | *) ac_try_echo=$ac_try;; |
| 31489 | esac |
| 31490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31491 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31492 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31494 | rm -f conftest.er1 |
| 31495 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31497 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31499 | { (case "(($ac_try" in |
| 31500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31501 | *) ac_try_echo=$ac_try;; |
| 31502 | esac |
| 31503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31504 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31505 | ac_status=$? |
| 31506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31507 | (exit $ac_status); }; } && |
| 31508 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31509 | { (case "(($ac_try" in |
| 31510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31511 | *) ac_try_echo=$ac_try;; |
| 31512 | esac |
| 31513 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31514 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31515 | ac_status=$? |
| 31516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31517 | (exit $ac_status); }; }; then |
| 31518 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 31519 | else |
| 31520 | echo "$as_me: failed program was:" >&5 |
| 31521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31523 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31524 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31525 | |
| 31526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31527 | ac_ext=c |
| 31528 | ac_cpp='$CPP $CPPFLAGS' |
| 31529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31532 | |
| 31533 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31534 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 31535 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31536 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 31537 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31538 | |
| 31539 | cat >>confdefs.h <<\_ACEOF |
| 31540 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 31541 | _ACEOF |
| 31542 | |
| 31543 | else |
| 31544 | |
| 31545 | cat >>confdefs.h <<\_ACEOF |
| 31546 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 31547 | _ACEOF |
| 31548 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31549 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31551 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 31552 | 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] | 31553 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 31554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31555 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31557 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31558 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31562 | |
| 31563 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31564 | /* confdefs.h. */ |
| 31565 | _ACEOF |
| 31566 | cat confdefs.h >>conftest.$ac_ext |
| 31567 | cat >>conftest.$ac_ext <<_ACEOF |
| 31568 | /* end confdefs.h. */ |
| 31569 | #include <hash_map> |
| 31570 | int |
| 31571 | main () |
| 31572 | { |
| 31573 | hash_map<int,int> t; |
| 31574 | ; |
| 31575 | return 0; |
| 31576 | } |
| 31577 | _ACEOF |
| 31578 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31579 | if { (ac_try="$ac_compile" |
| 31580 | case "(($ac_try" in |
| 31581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31582 | *) ac_try_echo=$ac_try;; |
| 31583 | esac |
| 31584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31585 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31586 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31588 | rm -f conftest.er1 |
| 31589 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31591 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31592 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31593 | { (case "(($ac_try" in |
| 31594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31595 | *) ac_try_echo=$ac_try;; |
| 31596 | esac |
| 31597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31598 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31599 | ac_status=$? |
| 31600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31601 | (exit $ac_status); }; } && |
| 31602 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31603 | { (case "(($ac_try" in |
| 31604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31605 | *) ac_try_echo=$ac_try;; |
| 31606 | esac |
| 31607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31608 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31609 | ac_status=$? |
| 31610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31611 | (exit $ac_status); }; }; then |
| 31612 | ac_cv_cxx_have_global_hash_map=yes |
| 31613 | else |
| 31614 | echo "$as_me: failed program was:" >&5 |
| 31615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31616 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31617 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31619 | |
| 31620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31621 | ac_ext=c |
| 31622 | ac_cpp='$CPP $CPPFLAGS' |
| 31623 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31624 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31625 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31626 | |
| 31627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31628 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 31629 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31630 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 31631 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31632 | |
| 31633 | cat >>confdefs.h <<\_ACEOF |
| 31634 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 31635 | _ACEOF |
| 31636 | |
| 31637 | else |
| 31638 | |
| 31639 | cat >>confdefs.h <<\_ACEOF |
| 31640 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 31641 | _ACEOF |
| 31642 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31643 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31645 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 31646 | 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] | 31647 | 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] | 31648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31649 | else |
| 31650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31651 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31652 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31656 | |
| 31657 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31658 | /* confdefs.h. */ |
| 31659 | _ACEOF |
| 31660 | cat confdefs.h >>conftest.$ac_ext |
| 31661 | cat >>conftest.$ac_ext <<_ACEOF |
| 31662 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31663 | #include <ext/hash_set> |
| 31664 | #ifdef HAVE_NAMESPACES |
| 31665 | using namespace std; |
| 31666 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31667 | int |
| 31668 | main () |
| 31669 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31670 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31671 | ; |
| 31672 | return 0; |
| 31673 | } |
| 31674 | _ACEOF |
| 31675 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31676 | if { (ac_try="$ac_compile" |
| 31677 | case "(($ac_try" in |
| 31678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31679 | *) ac_try_echo=$ac_try;; |
| 31680 | esac |
| 31681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31682 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31683 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31684 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31685 | rm -f conftest.er1 |
| 31686 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31688 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31689 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31690 | { (case "(($ac_try" in |
| 31691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31692 | *) ac_try_echo=$ac_try;; |
| 31693 | esac |
| 31694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31695 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31696 | ac_status=$? |
| 31697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31698 | (exit $ac_status); }; } && |
| 31699 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31700 | { (case "(($ac_try" in |
| 31701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31702 | *) ac_try_echo=$ac_try;; |
| 31703 | esac |
| 31704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31705 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31706 | ac_status=$? |
| 31707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31708 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31709 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31710 | else |
| 31711 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31713 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31714 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31715 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31716 | |
| 31717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31718 | ac_ext=c |
| 31719 | ac_cpp='$CPP $CPPFLAGS' |
| 31720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31723 | |
| 31724 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31725 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 31726 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31727 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 31728 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31729 | |
| 31730 | cat >>confdefs.h <<\_ACEOF |
| 31731 | #define HAVE_STD_EXT_HASH_SET 1 |
| 31732 | _ACEOF |
| 31733 | |
| 31734 | else |
| 31735 | |
| 31736 | cat >>confdefs.h <<\_ACEOF |
| 31737 | #define HAVE_STD_EXT_HASH_SET 0 |
| 31738 | _ACEOF |
| 31739 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31740 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31742 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 31743 | 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] | 31744 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 31745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31746 | else |
| 31747 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31748 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31749 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31750 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31751 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31752 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31753 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31754 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31755 | /* confdefs.h. */ |
| 31756 | _ACEOF |
| 31757 | cat confdefs.h >>conftest.$ac_ext |
| 31758 | cat >>conftest.$ac_ext <<_ACEOF |
| 31759 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31760 | #include <ext/hash_set> |
| 31761 | #ifdef HAVE_NAMESPACES |
| 31762 | using namespace __gnu_cxx; |
| 31763 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31764 | int |
| 31765 | main () |
| 31766 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31767 | hash_set<int> t; |
| 31768 | ; |
| 31769 | return 0; |
| 31770 | } |
| 31771 | _ACEOF |
| 31772 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31773 | if { (ac_try="$ac_compile" |
| 31774 | case "(($ac_try" in |
| 31775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31776 | *) ac_try_echo=$ac_try;; |
| 31777 | esac |
| 31778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31779 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31780 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31782 | rm -f conftest.er1 |
| 31783 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31785 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31787 | { (case "(($ac_try" in |
| 31788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31789 | *) ac_try_echo=$ac_try;; |
| 31790 | esac |
| 31791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31792 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31793 | ac_status=$? |
| 31794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31795 | (exit $ac_status); }; } && |
| 31796 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31797 | { (case "(($ac_try" in |
| 31798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31799 | *) ac_try_echo=$ac_try;; |
| 31800 | esac |
| 31801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31802 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31803 | ac_status=$? |
| 31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31805 | (exit $ac_status); }; }; then |
| 31806 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 31807 | else |
| 31808 | echo "$as_me: failed program was:" >&5 |
| 31809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31811 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31813 | |
| 31814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31815 | ac_ext=c |
| 31816 | ac_cpp='$CPP $CPPFLAGS' |
| 31817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31820 | |
| 31821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31822 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 31823 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31824 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 31825 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31826 | |
| 31827 | cat >>confdefs.h <<\_ACEOF |
| 31828 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 31829 | _ACEOF |
| 31830 | |
| 31831 | else |
| 31832 | |
| 31833 | cat >>confdefs.h <<\_ACEOF |
| 31834 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 31835 | _ACEOF |
| 31836 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31837 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31839 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 31840 | 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] | 31841 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 31842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31843 | else |
| 31844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31845 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31846 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31847 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31848 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31849 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31850 | |
| 31851 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31852 | /* confdefs.h. */ |
| 31853 | _ACEOF |
| 31854 | cat confdefs.h >>conftest.$ac_ext |
| 31855 | cat >>conftest.$ac_ext <<_ACEOF |
| 31856 | /* end confdefs.h. */ |
| 31857 | #include <hash_set> |
| 31858 | int |
| 31859 | main () |
| 31860 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31861 | hash_set<int> t; return 0; |
| 31862 | ; |
| 31863 | return 0; |
| 31864 | } |
| 31865 | _ACEOF |
| 31866 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31867 | if { (ac_try="$ac_compile" |
| 31868 | case "(($ac_try" in |
| 31869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31870 | *) ac_try_echo=$ac_try;; |
| 31871 | esac |
| 31872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31873 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31874 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31876 | rm -f conftest.er1 |
| 31877 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31879 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31880 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31881 | { (case "(($ac_try" in |
| 31882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31883 | *) ac_try_echo=$ac_try;; |
| 31884 | esac |
| 31885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31886 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31887 | ac_status=$? |
| 31888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31889 | (exit $ac_status); }; } && |
| 31890 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31891 | { (case "(($ac_try" in |
| 31892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31893 | *) ac_try_echo=$ac_try;; |
| 31894 | esac |
| 31895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31896 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31897 | ac_status=$? |
| 31898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31899 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31900 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31901 | else |
| 31902 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31905 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31907 | |
| 31908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31909 | ac_ext=c |
| 31910 | ac_cpp='$CPP $CPPFLAGS' |
| 31911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31914 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31916 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 31917 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31918 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 31919 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31920 | |
| 31921 | cat >>confdefs.h <<\_ACEOF |
| 31922 | #define HAVE_GLOBAL_HASH_SET 1 |
| 31923 | _ACEOF |
| 31924 | |
| 31925 | else |
| 31926 | |
| 31927 | cat >>confdefs.h <<\_ACEOF |
| 31928 | #define HAVE_GLOBAL_HASH_SET 0 |
| 31929 | _ACEOF |
| 31930 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31931 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31933 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 31934 | 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] | 31935 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 31936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31937 | else |
| 31938 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31939 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31940 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31944 | |
| 31945 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31946 | /* confdefs.h. */ |
| 31947 | _ACEOF |
| 31948 | cat confdefs.h >>conftest.$ac_ext |
| 31949 | cat >>conftest.$ac_ext <<_ACEOF |
| 31950 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31951 | #include <iterator> |
| 31952 | #ifdef HAVE_NAMESPACES |
| 31953 | using namespace std; |
| 31954 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31955 | int |
| 31956 | main () |
| 31957 | { |
| 31958 | iterator<int,int,int> t; return 0; |
| 31959 | ; |
| 31960 | return 0; |
| 31961 | } |
| 31962 | _ACEOF |
| 31963 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31964 | if { (ac_try="$ac_compile" |
| 31965 | case "(($ac_try" in |
| 31966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31967 | *) ac_try_echo=$ac_try;; |
| 31968 | esac |
| 31969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31970 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31971 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31973 | rm -f conftest.er1 |
| 31974 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31976 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31977 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31978 | { (case "(($ac_try" in |
| 31979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31980 | *) ac_try_echo=$ac_try;; |
| 31981 | esac |
| 31982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31983 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31984 | ac_status=$? |
| 31985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31986 | (exit $ac_status); }; } && |
| 31987 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31988 | { (case "(($ac_try" in |
| 31989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31990 | *) ac_try_echo=$ac_try;; |
| 31991 | esac |
| 31992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31993 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31994 | ac_status=$? |
| 31995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31996 | (exit $ac_status); }; }; then |
| 31997 | ac_cv_cxx_have_std_iterator=yes |
| 31998 | else |
| 31999 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32002 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32004 | |
| 32005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32006 | ac_ext=c |
| 32007 | ac_cpp='$CPP $CPPFLAGS' |
| 32008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32011 | |
| 32012 | |
| 32013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32014 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 32015 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32016 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 32017 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32018 | |
| 32019 | cat >>confdefs.h <<\_ACEOF |
| 32020 | #define HAVE_STD_ITERATOR 1 |
| 32021 | _ACEOF |
| 32022 | |
| 32023 | else |
| 32024 | |
| 32025 | cat >>confdefs.h <<\_ACEOF |
| 32026 | #define HAVE_STD_ITERATOR 0 |
| 32027 | _ACEOF |
| 32028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32029 | fi |
| 32030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32031 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 32032 | 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] | 32033 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 32034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32035 | else |
| 32036 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32037 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32038 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32039 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32040 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32041 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32042 | |
| 32043 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32044 | /* confdefs.h. */ |
| 32045 | _ACEOF |
| 32046 | cat confdefs.h >>conftest.$ac_ext |
| 32047 | cat >>conftest.$ac_ext <<_ACEOF |
| 32048 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32049 | #include <iterator> |
| 32050 | #ifdef HAVE_NAMESPACES |
| 32051 | using namespace std; |
| 32052 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32053 | int |
| 32054 | main () |
| 32055 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32056 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32057 | ; |
| 32058 | return 0; |
| 32059 | } |
| 32060 | _ACEOF |
| 32061 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32062 | if { (ac_try="$ac_compile" |
| 32063 | case "(($ac_try" in |
| 32064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32065 | *) ac_try_echo=$ac_try;; |
| 32066 | esac |
| 32067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32068 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32069 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32071 | rm -f conftest.er1 |
| 32072 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32074 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32075 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32076 | { (case "(($ac_try" in |
| 32077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32078 | *) ac_try_echo=$ac_try;; |
| 32079 | esac |
| 32080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32081 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32082 | ac_status=$? |
| 32083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32084 | (exit $ac_status); }; } && |
| 32085 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32086 | { (case "(($ac_try" in |
| 32087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32088 | *) ac_try_echo=$ac_try;; |
| 32089 | esac |
| 32090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32091 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32092 | ac_status=$? |
| 32093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32094 | (exit $ac_status); }; }; then |
| 32095 | ac_cv_cxx_have_bi_iterator=yes |
| 32096 | else |
| 32097 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32100 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32102 | |
| 32103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32104 | ac_ext=c |
| 32105 | ac_cpp='$CPP $CPPFLAGS' |
| 32106 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32107 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32108 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32109 | |
| 32110 | |
| 32111 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32112 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 32113 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32114 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 32115 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32116 | |
| 32117 | cat >>confdefs.h <<\_ACEOF |
| 32118 | #define HAVE_BI_ITERATOR 1 |
| 32119 | _ACEOF |
| 32120 | |
| 32121 | else |
| 32122 | |
| 32123 | cat >>confdefs.h <<\_ACEOF |
| 32124 | #define HAVE_BI_ITERATOR 0 |
| 32125 | _ACEOF |
| 32126 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32127 | fi |
| 32128 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32129 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32130 | 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] | 32131 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32133 | else |
| 32134 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32135 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32136 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32140 | |
| 32141 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32142 | /* confdefs.h. */ |
| 32143 | _ACEOF |
| 32144 | cat confdefs.h >>conftest.$ac_ext |
| 32145 | cat >>conftest.$ac_ext <<_ACEOF |
| 32146 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32147 | #include <iterator> |
| 32148 | #ifdef HAVE_NAMESPACES |
| 32149 | using namespace std; |
| 32150 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32151 | int |
| 32152 | main () |
| 32153 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32154 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32155 | ; |
| 32156 | return 0; |
| 32157 | } |
| 32158 | _ACEOF |
| 32159 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32160 | if { (ac_try="$ac_compile" |
| 32161 | case "(($ac_try" in |
| 32162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32163 | *) ac_try_echo=$ac_try;; |
| 32164 | esac |
| 32165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32166 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32167 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32169 | rm -f conftest.er1 |
| 32170 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32172 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32173 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32174 | { (case "(($ac_try" in |
| 32175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32176 | *) ac_try_echo=$ac_try;; |
| 32177 | esac |
| 32178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32179 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32180 | ac_status=$? |
| 32181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32182 | (exit $ac_status); }; } && |
| 32183 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32184 | { (case "(($ac_try" in |
| 32185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32186 | *) ac_try_echo=$ac_try;; |
| 32187 | esac |
| 32188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32189 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32190 | ac_status=$? |
| 32191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32192 | (exit $ac_status); }; }; then |
| 32193 | ac_cv_cxx_have_fwd_iterator=yes |
| 32194 | else |
| 32195 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32197 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32198 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32199 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32200 | |
| 32201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32202 | ac_ext=c |
| 32203 | ac_cpp='$CPP $CPPFLAGS' |
| 32204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32207 | |
| 32208 | |
| 32209 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32210 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32211 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32212 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32213 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32214 | |
| 32215 | cat >>confdefs.h <<\_ACEOF |
| 32216 | #define HAVE_FWD_ITERATOR 1 |
| 32217 | _ACEOF |
| 32218 | |
| 32219 | else |
| 32220 | |
| 32221 | cat >>confdefs.h <<\_ACEOF |
| 32222 | #define HAVE_FWD_ITERATOR 0 |
| 32223 | _ACEOF |
| 32224 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32225 | fi |
| 32226 | |
| 32227 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32228 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32229 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32230 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32232 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32233 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32234 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32235 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32236 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32237 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32238 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32239 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32240 | /* confdefs.h. */ |
| 32241 | _ACEOF |
| 32242 | cat confdefs.h >>conftest.$ac_ext |
| 32243 | cat >>conftest.$ac_ext <<_ACEOF |
| 32244 | /* end confdefs.h. */ |
| 32245 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32246 | int |
| 32247 | main () |
| 32248 | { |
| 32249 | float f; isnan(f); |
| 32250 | ; |
| 32251 | return 0; |
| 32252 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32253 | _ACEOF |
| 32254 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32255 | if { (ac_try="$ac_compile" |
| 32256 | case "(($ac_try" in |
| 32257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32258 | *) ac_try_echo=$ac_try;; |
| 32259 | esac |
| 32260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32261 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32262 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32264 | rm -f conftest.er1 |
| 32265 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32267 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32269 | { (case "(($ac_try" in |
| 32270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32271 | *) ac_try_echo=$ac_try;; |
| 32272 | esac |
| 32273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32274 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32275 | ac_status=$? |
| 32276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32277 | (exit $ac_status); }; } && |
| 32278 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32279 | { (case "(($ac_try" in |
| 32280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32281 | *) ac_try_echo=$ac_try;; |
| 32282 | esac |
| 32283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32284 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32285 | ac_status=$? |
| 32286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32287 | (exit $ac_status); }; }; then |
| 32288 | ac_cv_func_isnan_in_math_h=yes |
| 32289 | else |
| 32290 | echo "$as_me: failed program was:" >&5 |
| 32291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32292 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32293 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32295 | |
| 32296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32297 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32298 | ac_cpp='$CPP $CPPFLAGS' |
| 32299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32302 | |
| 32303 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32304 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32305 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32306 | |
| 32307 | |
| 32308 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32309 | |
| 32310 | cat >>confdefs.h <<\_ACEOF |
| 32311 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32312 | _ACEOF |
| 32313 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32314 | fi |
| 32315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32316 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32317 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32318 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32320 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32321 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32322 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32323 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32324 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32325 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32326 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32327 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32328 | /* confdefs.h. */ |
| 32329 | _ACEOF |
| 32330 | cat confdefs.h >>conftest.$ac_ext |
| 32331 | cat >>conftest.$ac_ext <<_ACEOF |
| 32332 | /* end confdefs.h. */ |
| 32333 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32334 | int |
| 32335 | main () |
| 32336 | { |
| 32337 | float f; isnan(f); |
| 32338 | ; |
| 32339 | return 0; |
| 32340 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32341 | _ACEOF |
| 32342 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32343 | if { (ac_try="$ac_compile" |
| 32344 | case "(($ac_try" in |
| 32345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32346 | *) ac_try_echo=$ac_try;; |
| 32347 | esac |
| 32348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32349 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32350 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32352 | rm -f conftest.er1 |
| 32353 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32355 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32356 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32357 | { (case "(($ac_try" in |
| 32358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32359 | *) ac_try_echo=$ac_try;; |
| 32360 | esac |
| 32361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32362 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32363 | ac_status=$? |
| 32364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32365 | (exit $ac_status); }; } && |
| 32366 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32367 | { (case "(($ac_try" in |
| 32368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32369 | *) ac_try_echo=$ac_try;; |
| 32370 | esac |
| 32371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32372 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32373 | ac_status=$? |
| 32374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32375 | (exit $ac_status); }; }; then |
| 32376 | ac_cv_func_isnan_in_cmath=yes |
| 32377 | else |
| 32378 | echo "$as_me: failed program was:" >&5 |
| 32379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32380 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32381 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32382 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32383 | |
| 32384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32385 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32386 | ac_cpp='$CPP $CPPFLAGS' |
| 32387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32390 | |
| 32391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32392 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32393 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32394 | |
| 32395 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32396 | |
| 32397 | cat >>confdefs.h <<\_ACEOF |
| 32398 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32399 | _ACEOF |
| 32400 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32401 | fi |
| 32402 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32403 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32404 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32405 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32407 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32408 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32409 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32410 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32411 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32412 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32413 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32414 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32415 | /* confdefs.h. */ |
| 32416 | _ACEOF |
| 32417 | cat confdefs.h >>conftest.$ac_ext |
| 32418 | cat >>conftest.$ac_ext <<_ACEOF |
| 32419 | /* end confdefs.h. */ |
| 32420 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32421 | int |
| 32422 | main () |
| 32423 | { |
| 32424 | float f; std::isnan(f); |
| 32425 | ; |
| 32426 | return 0; |
| 32427 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32428 | _ACEOF |
| 32429 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32430 | if { (ac_try="$ac_compile" |
| 32431 | case "(($ac_try" in |
| 32432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32433 | *) ac_try_echo=$ac_try;; |
| 32434 | esac |
| 32435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32436 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32437 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32439 | rm -f conftest.er1 |
| 32440 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32442 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32443 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32444 | { (case "(($ac_try" in |
| 32445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32446 | *) ac_try_echo=$ac_try;; |
| 32447 | esac |
| 32448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32449 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32450 | ac_status=$? |
| 32451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32452 | (exit $ac_status); }; } && |
| 32453 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32454 | { (case "(($ac_try" in |
| 32455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32456 | *) ac_try_echo=$ac_try;; |
| 32457 | esac |
| 32458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32459 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32460 | ac_status=$? |
| 32461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32462 | (exit $ac_status); }; }; then |
| 32463 | ac_cv_func_std_isnan_in_cmath=yes |
| 32464 | else |
| 32465 | echo "$as_me: failed program was:" >&5 |
| 32466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32468 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32469 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32470 | |
| 32471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32472 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32473 | ac_cpp='$CPP $CPPFLAGS' |
| 32474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32477 | |
| 32478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32479 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32480 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32481 | |
| 32482 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32483 | |
| 32484 | cat >>confdefs.h <<\_ACEOF |
| 32485 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32486 | _ACEOF |
| 32487 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32488 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32489 | |
| 32490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32491 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32492 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32493 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32495 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32496 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32497 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32498 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32499 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32500 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32501 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32502 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32503 | /* confdefs.h. */ |
| 32504 | _ACEOF |
| 32505 | cat confdefs.h >>conftest.$ac_ext |
| 32506 | cat >>conftest.$ac_ext <<_ACEOF |
| 32507 | /* end confdefs.h. */ |
| 32508 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32509 | int |
| 32510 | main () |
| 32511 | { |
| 32512 | float f; isinf(f); |
| 32513 | ; |
| 32514 | return 0; |
| 32515 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32516 | _ACEOF |
| 32517 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32518 | if { (ac_try="$ac_compile" |
| 32519 | case "(($ac_try" in |
| 32520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32521 | *) ac_try_echo=$ac_try;; |
| 32522 | esac |
| 32523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32524 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32525 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32527 | rm -f conftest.er1 |
| 32528 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32530 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32531 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32532 | { (case "(($ac_try" in |
| 32533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32534 | *) ac_try_echo=$ac_try;; |
| 32535 | esac |
| 32536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32537 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32538 | ac_status=$? |
| 32539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32540 | (exit $ac_status); }; } && |
| 32541 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32542 | { (case "(($ac_try" in |
| 32543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32544 | *) ac_try_echo=$ac_try;; |
| 32545 | esac |
| 32546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32547 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32548 | ac_status=$? |
| 32549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32550 | (exit $ac_status); }; }; then |
| 32551 | ac_cv_func_isinf_in_math_h=yes |
| 32552 | else |
| 32553 | echo "$as_me: failed program was:" >&5 |
| 32554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32555 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32556 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32558 | |
| 32559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32560 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32561 | ac_cpp='$CPP $CPPFLAGS' |
| 32562 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32563 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32564 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32565 | |
| 32566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32567 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32568 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32569 | |
| 32570 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32571 | |
| 32572 | cat >>confdefs.h <<\_ACEOF |
| 32573 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32574 | _ACEOF |
| 32575 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32576 | fi |
| 32577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32578 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32579 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32580 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32582 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32583 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32584 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32588 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32589 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32590 | /* confdefs.h. */ |
| 32591 | _ACEOF |
| 32592 | cat confdefs.h >>conftest.$ac_ext |
| 32593 | cat >>conftest.$ac_ext <<_ACEOF |
| 32594 | /* end confdefs.h. */ |
| 32595 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32596 | int |
| 32597 | main () |
| 32598 | { |
| 32599 | float f; isinf(f); |
| 32600 | ; |
| 32601 | return 0; |
| 32602 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32603 | _ACEOF |
| 32604 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32605 | if { (ac_try="$ac_compile" |
| 32606 | case "(($ac_try" in |
| 32607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32608 | *) ac_try_echo=$ac_try;; |
| 32609 | esac |
| 32610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32611 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32612 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32614 | rm -f conftest.er1 |
| 32615 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32617 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32619 | { (case "(($ac_try" in |
| 32620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32621 | *) ac_try_echo=$ac_try;; |
| 32622 | esac |
| 32623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32624 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32625 | ac_status=$? |
| 32626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32627 | (exit $ac_status); }; } && |
| 32628 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32629 | { (case "(($ac_try" in |
| 32630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32631 | *) ac_try_echo=$ac_try;; |
| 32632 | esac |
| 32633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32634 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32635 | ac_status=$? |
| 32636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32637 | (exit $ac_status); }; }; then |
| 32638 | ac_cv_func_isinf_in_cmath=yes |
| 32639 | else |
| 32640 | echo "$as_me: failed program was:" >&5 |
| 32641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32642 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32643 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32645 | |
| 32646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32647 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32648 | ac_cpp='$CPP $CPPFLAGS' |
| 32649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32652 | |
| 32653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32654 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32655 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32656 | |
| 32657 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32658 | |
| 32659 | cat >>confdefs.h <<\_ACEOF |
| 32660 | #define HAVE_ISINF_IN_CMATH 1 |
| 32661 | _ACEOF |
| 32662 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32663 | fi |
| 32664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32665 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32666 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32667 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32669 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32670 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32671 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32672 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32673 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32674 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32675 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32676 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32677 | /* confdefs.h. */ |
| 32678 | _ACEOF |
| 32679 | cat confdefs.h >>conftest.$ac_ext |
| 32680 | cat >>conftest.$ac_ext <<_ACEOF |
| 32681 | /* end confdefs.h. */ |
| 32682 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32683 | int |
| 32684 | main () |
| 32685 | { |
| 32686 | float f; std::isinf(f)} |
| 32687 | ; |
| 32688 | return 0; |
| 32689 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32690 | _ACEOF |
| 32691 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32692 | if { (ac_try="$ac_compile" |
| 32693 | case "(($ac_try" in |
| 32694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32695 | *) ac_try_echo=$ac_try;; |
| 32696 | esac |
| 32697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32698 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32699 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32701 | rm -f conftest.er1 |
| 32702 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32704 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32705 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32706 | { (case "(($ac_try" in |
| 32707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32708 | *) ac_try_echo=$ac_try;; |
| 32709 | esac |
| 32710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32711 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32712 | ac_status=$? |
| 32713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32714 | (exit $ac_status); }; } && |
| 32715 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32716 | { (case "(($ac_try" in |
| 32717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32718 | *) ac_try_echo=$ac_try;; |
| 32719 | esac |
| 32720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32721 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32722 | ac_status=$? |
| 32723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32724 | (exit $ac_status); }; }; then |
| 32725 | ac_cv_func_std_isinf_in_cmath=yes |
| 32726 | else |
| 32727 | echo "$as_me: failed program was:" >&5 |
| 32728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32730 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32732 | |
| 32733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32734 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32735 | ac_cpp='$CPP $CPPFLAGS' |
| 32736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32739 | |
| 32740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32741 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32742 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32743 | |
| 32744 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32745 | |
| 32746 | cat >>confdefs.h <<\_ACEOF |
| 32747 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32748 | _ACEOF |
| 32749 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32750 | fi |
| 32751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32752 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32753 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32754 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32756 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32757 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32758 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32759 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32760 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32761 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32762 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32763 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32764 | /* confdefs.h. */ |
| 32765 | _ACEOF |
| 32766 | cat confdefs.h >>conftest.$ac_ext |
| 32767 | cat >>conftest.$ac_ext <<_ACEOF |
| 32768 | /* end confdefs.h. */ |
| 32769 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32770 | int |
| 32771 | main () |
| 32772 | { |
| 32773 | float f; finite(f); |
| 32774 | ; |
| 32775 | return 0; |
| 32776 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32777 | _ACEOF |
| 32778 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32779 | if { (ac_try="$ac_compile" |
| 32780 | case "(($ac_try" in |
| 32781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32782 | *) ac_try_echo=$ac_try;; |
| 32783 | esac |
| 32784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32785 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32786 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32788 | rm -f conftest.er1 |
| 32789 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32791 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32792 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32793 | { (case "(($ac_try" in |
| 32794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32795 | *) ac_try_echo=$ac_try;; |
| 32796 | esac |
| 32797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32798 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32799 | ac_status=$? |
| 32800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32801 | (exit $ac_status); }; } && |
| 32802 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32803 | { (case "(($ac_try" in |
| 32804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32805 | *) ac_try_echo=$ac_try;; |
| 32806 | esac |
| 32807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32808 | (eval "$ac_try") 2>&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32809 | ac_status=$? |
| 32810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32811 | (exit $ac_status); }; }; then |
| 32812 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32813 | else |
| 32814 | echo "$as_me: failed program was:" >&5 |
| 32815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32817 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32818 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32819 | |
| 32820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32821 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32822 | ac_cpp='$CPP $CPPFLAGS' |
| 32823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32826 | |
| 32827 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32828 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32829 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32830 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32831 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32832 | |
| 32833 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32834 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32835 | _ACEOF |
| 32836 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32837 | fi |
| 32838 | |
| 32839 | |
| 32840 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 32841 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32842 | |
| 32843 | |
| 32844 | for ac_header in stdlib.h unistd.h |
| 32845 | do |
| 32846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32848 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32850 | 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] | 32851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32853 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32854 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32855 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32856 | else |
| 32857 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32858 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32859 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32860 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32861 | /* confdefs.h. */ |
| 32862 | _ACEOF |
| 32863 | cat confdefs.h >>conftest.$ac_ext |
| 32864 | cat >>conftest.$ac_ext <<_ACEOF |
| 32865 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32866 | $ac_includes_default |
| 32867 | #include <$ac_header> |
| 32868 | _ACEOF |
| 32869 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32870 | if { (ac_try="$ac_compile" |
| 32871 | case "(($ac_try" in |
| 32872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32873 | *) ac_try_echo=$ac_try;; |
| 32874 | esac |
| 32875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32876 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32877 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32879 | rm -f conftest.er1 |
| 32880 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32882 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32884 | { (case "(($ac_try" in |
| 32885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32886 | *) ac_try_echo=$ac_try;; |
| 32887 | esac |
| 32888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32889 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32890 | ac_status=$? |
| 32891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32892 | (exit $ac_status); }; } && |
| 32893 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32894 | { (case "(($ac_try" in |
| 32895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32896 | *) ac_try_echo=$ac_try;; |
| 32897 | esac |
| 32898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32899 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32900 | ac_status=$? |
| 32901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32902 | (exit $ac_status); }; }; then |
| 32903 | ac_header_compiler=yes |
| 32904 | else |
| 32905 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32907 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32908 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32909 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32910 | |
| 32911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32912 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32913 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32914 | |
| 32915 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32916 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 32917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32918 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32919 | /* confdefs.h. */ |
| 32920 | _ACEOF |
| 32921 | cat confdefs.h >>conftest.$ac_ext |
| 32922 | cat >>conftest.$ac_ext <<_ACEOF |
| 32923 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32924 | #include <$ac_header> |
| 32925 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32927 | case "(($ac_try" in |
| 32928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32929 | *) ac_try_echo=$ac_try;; |
| 32930 | esac |
| 32931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32933 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32934 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32935 | rm -f conftest.er1 |
| 32936 | cat conftest.err >&5 |
| 32937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32938 | (exit $ac_status); } >/dev/null; then |
| 32939 | if test -s conftest.err; then |
| 32940 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32941 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32942 | else |
| 32943 | ac_cpp_err= |
| 32944 | fi |
| 32945 | else |
| 32946 | ac_cpp_err=yes |
| 32947 | fi |
| 32948 | if test -z "$ac_cpp_err"; then |
| 32949 | ac_header_preproc=yes |
| 32950 | else |
| 32951 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32953 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32954 | ac_header_preproc=no |
| 32955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32957 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32958 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32959 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32960 | |
| 32961 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32963 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32965 | 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] | 32966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 32967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 32968 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32969 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32970 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 32972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 32974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 32975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 32976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 32977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 32978 | 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] | 32979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 32980 | 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] | 32981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 32982 | 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] | 32983 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32984 | ## ----------------------------------- ## |
| 32985 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 32986 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32987 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32988 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32989 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32990 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32991 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32992 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32993 | 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] | 32994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32995 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32996 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32998 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32999 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33000 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33001 | |
| 33002 | fi |
| 33003 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 33004 | cat >>confdefs.h <<_ACEOF |
| 33005 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 33006 | _ACEOF |
| 33007 | |
| 33008 | fi |
| 33009 | |
| 33010 | done |
| 33011 | |
| 33012 | |
| 33013 | for ac_func in getpagesize |
| 33014 | do |
| 33015 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33016 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 33017 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 33018 | 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] | 33019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33020 | else |
| 33021 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33022 | /* confdefs.h. */ |
| 33023 | _ACEOF |
| 33024 | cat confdefs.h >>conftest.$ac_ext |
| 33025 | cat >>conftest.$ac_ext <<_ACEOF |
| 33026 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33027 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 33028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33029 | #define $ac_func innocuous_$ac_func |
| 33030 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33031 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33032 | which can conflict with char $ac_func (); below. |
| 33033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33034 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33035 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33036 | #ifdef __STDC__ |
| 33037 | # include <limits.h> |
| 33038 | #else |
| 33039 | # include <assert.h> |
| 33040 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33041 | |
| 33042 | #undef $ac_func |
| 33043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33044 | /* Override any GCC internal prototype to avoid an error. |
| 33045 | Use char because int might match the return type of a GCC |
| 33046 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33047 | #ifdef __cplusplus |
| 33048 | extern "C" |
| 33049 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33050 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33051 | /* The GNU C library defines this for functions which it implements |
| 33052 | to always fail with ENOSYS. Some functions are actually named |
| 33053 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33054 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33055 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33056 | #endif |
| 33057 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33058 | int |
| 33059 | main () |
| 33060 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33061 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33062 | ; |
| 33063 | return 0; |
| 33064 | } |
| 33065 | _ACEOF |
| 33066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33067 | if { (ac_try="$ac_link" |
| 33068 | case "(($ac_try" in |
| 33069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33070 | *) ac_try_echo=$ac_try;; |
| 33071 | esac |
| 33072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33073 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33074 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33076 | rm -f conftest.er1 |
| 33077 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33079 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33081 | { (case "(($ac_try" in |
| 33082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33083 | *) ac_try_echo=$ac_try;; |
| 33084 | esac |
| 33085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33086 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33087 | ac_status=$? |
| 33088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33089 | (exit $ac_status); }; } && |
| 33090 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33091 | { (case "(($ac_try" in |
| 33092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33093 | *) ac_try_echo=$ac_try;; |
| 33094 | esac |
| 33095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33096 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33097 | ac_status=$? |
| 33098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33099 | (exit $ac_status); }; }; then |
| 33100 | eval "$as_ac_var=yes" |
| 33101 | else |
| 33102 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33104 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33105 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33106 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33107 | |
| 33108 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33109 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33110 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33111 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 33112 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 33113 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33114 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 33115 | cat >>confdefs.h <<_ACEOF |
| 33116 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 33117 | _ACEOF |
| 33118 | |
| 33119 | fi |
| 33120 | done |
| 33121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33122 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33123 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33124 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33126 | else |
| 33127 | if test "$cross_compiling" = yes; then |
| 33128 | ac_cv_func_mmap_fixed_mapped=no |
| 33129 | else |
| 33130 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33131 | /* confdefs.h. */ |
| 33132 | _ACEOF |
| 33133 | cat confdefs.h >>conftest.$ac_ext |
| 33134 | cat >>conftest.$ac_ext <<_ACEOF |
| 33135 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33136 | $ac_includes_default |
| 33137 | /* malloc might have been renamed as rpl_malloc. */ |
| 33138 | #undef malloc |
| 33139 | |
| 33140 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33141 | Here is a matrix of mmap possibilities: |
| 33142 | mmap private not fixed |
| 33143 | mmap private fixed at somewhere currently unmapped |
| 33144 | mmap private fixed at somewhere already mapped |
| 33145 | mmap shared not fixed |
| 33146 | mmap shared fixed at somewhere currently unmapped |
| 33147 | mmap shared fixed at somewhere already mapped |
| 33148 | For private mappings, we should verify that changes cannot be read() |
| 33149 | back from the file, nor mmap's back from the file at a different |
| 33150 | address. (There have been systems where private was not correctly |
| 33151 | implemented like the infamous i386 svr4.0, and systems where the |
| 33152 | VM page cache was not coherent with the file system buffer cache |
| 33153 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33154 | For shared mappings, we should conversely verify that changes get |
| 33155 | propagated back to all the places they're supposed to be. |
| 33156 | |
| 33157 | Grep wants private fixed already mapped. |
| 33158 | The main things grep needs to know about mmap are: |
| 33159 | * does it exist and is it safe to write into the mmap'd area |
| 33160 | * how to use it (BSD variants) */ |
| 33161 | |
| 33162 | #include <fcntl.h> |
| 33163 | #include <sys/mman.h> |
| 33164 | |
| 33165 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 33166 | char *malloc (); |
| 33167 | #endif |
| 33168 | |
| 33169 | /* This mess was copied from the GNU getpagesize.h. */ |
| 33170 | #if !HAVE_GETPAGESIZE |
| 33171 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 33172 | # if !HAVE_SYS_PARAM_H |
| 33173 | # define HAVE_SYS_PARAM_H 1 |
| 33174 | # endif |
| 33175 | |
| 33176 | # ifdef _SC_PAGESIZE |
| 33177 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33178 | # else /* no _SC_PAGESIZE */ |
| 33179 | # if HAVE_SYS_PARAM_H |
| 33180 | # include <sys/param.h> |
| 33181 | # ifdef EXEC_PAGESIZE |
| 33182 | # define getpagesize() EXEC_PAGESIZE |
| 33183 | # else /* no EXEC_PAGESIZE */ |
| 33184 | # ifdef NBPG |
| 33185 | # define getpagesize() NBPG * CLSIZE |
| 33186 | # ifndef CLSIZE |
| 33187 | # define CLSIZE 1 |
| 33188 | # endif /* no CLSIZE */ |
| 33189 | # else /* no NBPG */ |
| 33190 | # ifdef NBPC |
| 33191 | # define getpagesize() NBPC |
| 33192 | # else /* no NBPC */ |
| 33193 | # ifdef PAGESIZE |
| 33194 | # define getpagesize() PAGESIZE |
| 33195 | # endif /* PAGESIZE */ |
| 33196 | # endif /* no NBPC */ |
| 33197 | # endif /* no NBPG */ |
| 33198 | # endif /* no EXEC_PAGESIZE */ |
| 33199 | # else /* no HAVE_SYS_PARAM_H */ |
| 33200 | # define getpagesize() 8192 /* punt totally */ |
| 33201 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33202 | # endif /* no _SC_PAGESIZE */ |
| 33203 | |
| 33204 | #endif /* no HAVE_GETPAGESIZE */ |
| 33205 | |
| 33206 | int |
| 33207 | main () |
| 33208 | { |
| 33209 | char *data, *data2, *data3; |
| 33210 | int i, pagesize; |
| 33211 | int fd; |
| 33212 | |
| 33213 | pagesize = getpagesize (); |
| 33214 | |
| 33215 | /* First, make a file with some known garbage in it. */ |
| 33216 | data = (char *) malloc (pagesize); |
| 33217 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33218 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33219 | for (i = 0; i < pagesize; ++i) |
| 33220 | *(data + i) = rand (); |
| 33221 | umask (0); |
| 33222 | fd = creat ("conftest.mmap", 0600); |
| 33223 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33224 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33225 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33226 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33227 | close (fd); |
| 33228 | |
| 33229 | /* Next, try to mmap the file at a fixed address which already has |
| 33230 | something else allocated at it. If we can, also make sure that |
| 33231 | we see the same garbage. */ |
| 33232 | fd = open ("conftest.mmap", O_RDWR); |
| 33233 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33234 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33235 | data2 = (char *) malloc (2 * pagesize); |
| 33236 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33237 | return 1; |
| 33238 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33239 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33240 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33241 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33242 | for (i = 0; i < pagesize; ++i) |
| 33243 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33244 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33245 | |
| 33246 | /* Finally, make sure that changes to the mapped area do not |
| 33247 | percolate back to the file as seen by read(). (This is a bug on |
| 33248 | some variants of i386 svr4.0.) */ |
| 33249 | for (i = 0; i < pagesize; ++i) |
| 33250 | *(data2 + i) = *(data2 + i) + 1; |
| 33251 | data3 = (char *) malloc (pagesize); |
| 33252 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33253 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33254 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33255 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33256 | for (i = 0; i < pagesize; ++i) |
| 33257 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33258 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33259 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33260 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33261 | } |
| 33262 | _ACEOF |
| 33263 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33264 | if { (ac_try="$ac_link" |
| 33265 | case "(($ac_try" in |
| 33266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33267 | *) ac_try_echo=$ac_try;; |
| 33268 | esac |
| 33269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33270 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33271 | ac_status=$? |
| 33272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33274 | { (case "(($ac_try" in |
| 33275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33276 | *) ac_try_echo=$ac_try;; |
| 33277 | esac |
| 33278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33279 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33280 | ac_status=$? |
| 33281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33282 | (exit $ac_status); }; }; then |
| 33283 | ac_cv_func_mmap_fixed_mapped=yes |
| 33284 | else |
| 33285 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33286 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33289 | ( exit $ac_status ) |
| 33290 | ac_cv_func_mmap_fixed_mapped=no |
| 33291 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33292 | 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] | 33293 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33294 | |
| 33295 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33296 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33298 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33299 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33300 | |
| 33301 | cat >>confdefs.h <<\_ACEOF |
| 33302 | #define HAVE_MMAP 1 |
| 33303 | _ACEOF |
| 33304 | |
| 33305 | fi |
| 33306 | rm -f conftest.mmap |
| 33307 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33308 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33309 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33310 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33312 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33313 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33314 | ac_cpp='$CPP $CPPFLAGS' |
| 33315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33318 | |
| 33319 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33320 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33321 | else |
| 33322 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33323 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33324 | /* confdefs.h. */ |
| 33325 | _ACEOF |
| 33326 | cat confdefs.h >>conftest.$ac_ext |
| 33327 | cat >>conftest.$ac_ext <<_ACEOF |
| 33328 | /* end confdefs.h. */ |
| 33329 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33330 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33331 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33332 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33333 | |
| 33334 | int |
| 33335 | main () |
| 33336 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33337 | |
| 33338 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33339 | fd = creat ("foo",0777); |
| 33340 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33341 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33342 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33343 | ; |
| 33344 | return 0; |
| 33345 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33346 | _ACEOF |
| 33347 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33348 | if { (ac_try="$ac_link" |
| 33349 | case "(($ac_try" in |
| 33350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33351 | *) ac_try_echo=$ac_try;; |
| 33352 | esac |
| 33353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33354 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33355 | ac_status=$? |
| 33356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33358 | { (case "(($ac_try" in |
| 33359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33360 | *) ac_try_echo=$ac_try;; |
| 33361 | esac |
| 33362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33363 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33364 | ac_status=$? |
| 33365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33366 | (exit $ac_status); }; }; then |
| 33367 | ac_cv_func_mmap_file=yes |
| 33368 | else |
| 33369 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33370 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33372 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33373 | ( exit $ac_status ) |
| 33374 | ac_cv_func_mmap_file=no |
| 33375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33376 | 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] | 33377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33378 | |
| 33379 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33380 | ac_ext=c |
| 33381 | ac_cpp='$CPP $CPPFLAGS' |
| 33382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33385 | |
| 33386 | |
| 33387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33389 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33390 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33391 | |
| 33392 | cat >>confdefs.h <<\_ACEOF |
| 33393 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33394 | _ACEOF |
| 33395 | |
| 33396 | MMAP_FILE=yes |
| 33397 | |
| 33398 | fi |
| 33399 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33400 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33401 | 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] | 33402 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33404 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33405 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33406 | ac_cv_need_dev_zero_for_mmap=yes |
| 33407 | else |
| 33408 | ac_cv_need_dev_zero_for_mmap=no |
| 33409 | fi |
| 33410 | |
| 33411 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33412 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33413 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33414 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33415 | |
| 33416 | cat >>confdefs.h <<\_ACEOF |
| 33417 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33418 | _ACEOF |
| 33419 | |
| 33420 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33421 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33422 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 33423 | then |
| 33424 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33425 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33426 | fi |
| 33427 | if test "$ac_cv_func_mmap_file" = "no" |
| 33428 | then |
| 33429 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33430 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 33431 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33432 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33433 | |
| 33434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33435 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33436 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33437 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33439 | else |
| 33440 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33441 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33442 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 33443 | "$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] | 33444 | if test $? -eq 0 ; then |
| 33445 | llvm_cv_llvmgcc_sanity="yes" |
| 33446 | fi |
| 33447 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33448 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33449 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33450 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33451 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33452 | |
| 33453 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33454 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33455 | LLVMCC1=$llvmcc1path |
| 33456 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33457 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33458 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33459 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33460 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33461 | LLVMGCCDIR=$llvmgccdir |
| 33462 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 33463 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 33464 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 33465 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33466 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33467 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33468 | LLVMGCC_VERSION=$llvmgccversion |
| 33469 | |
| 33470 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33471 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33472 | fi |
| 33473 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33474 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33475 | |
| 33476 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33477 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33478 | # information into substitutions that will end up in Makefile.config.in |
| 33479 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 33480 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33481 | prefix="/usr/local" |
| 33482 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33483 | eval LLVM_PREFIX="${prefix}"; |
| 33484 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33485 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33486 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33487 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33488 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33489 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33490 | eval LLVM_INFODIR="${prefix}/info"; |
| 33491 | eval LLVM_MANDIR="${prefix}/man"; |
| 33492 | LLVM_CONFIGTIME=`date` |
| 33493 | |
| 33494 | |
| 33495 | |
| 33496 | |
| 33497 | |
| 33498 | |
| 33499 | |
| 33500 | |
| 33501 | |
| 33502 | |
| 33503 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33504 | # Place the various directores into the config.h file as #defines so that we |
| 33505 | # can know about the installation paths within LLVM. |
| 33506 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33507 | cat >>confdefs.h <<_ACEOF |
| 33508 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33509 | _ACEOF |
| 33510 | |
| 33511 | |
| 33512 | cat >>confdefs.h <<_ACEOF |
| 33513 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33514 | _ACEOF |
| 33515 | |
| 33516 | |
| 33517 | cat >>confdefs.h <<_ACEOF |
| 33518 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33519 | _ACEOF |
| 33520 | |
| 33521 | |
| 33522 | cat >>confdefs.h <<_ACEOF |
| 33523 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33524 | _ACEOF |
| 33525 | |
| 33526 | |
| 33527 | cat >>confdefs.h <<_ACEOF |
| 33528 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 33529 | _ACEOF |
| 33530 | |
| 33531 | |
| 33532 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33533 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33534 | _ACEOF |
| 33535 | |
| 33536 | |
| 33537 | cat >>confdefs.h <<_ACEOF |
| 33538 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33539 | _ACEOF |
| 33540 | |
| 33541 | |
| 33542 | cat >>confdefs.h <<_ACEOF |
| 33543 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33544 | _ACEOF |
| 33545 | |
| 33546 | |
| 33547 | cat >>confdefs.h <<_ACEOF |
| 33548 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33549 | _ACEOF |
| 33550 | |
| 33551 | |
| 33552 | cat >>confdefs.h <<_ACEOF |
| 33553 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33554 | _ACEOF |
| 33555 | |
| 33556 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33558 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33560 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33562 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33564 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33566 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33567 | |
| 33568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33569 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33570 | |
| 33571 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33572 | ac_config_files="$ac_config_files llvm.spec" |
| 33573 | |
| 33574 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33575 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33576 | |
| 33577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33578 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33579 | |
| 33580 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33581 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33582 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33583 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33584 | |
| 33585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33586 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33587 | |
| 33588 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33589 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33590 | |
| 33591 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33592 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33593 | |
| 33594 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 33595 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 33596 | |
| 33597 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33598 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33599 | |
| 33600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33601 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33602 | |
| 33603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33604 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33605 | |
| 33606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33607 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33608 | |
| 33609 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33610 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33611 | |
| 33612 | |
| 33613 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33614 | cat >confcache <<\_ACEOF |
| 33615 | # This file is a shell script that caches the results of configure |
| 33616 | # tests run on this system so they can be shared between configure |
| 33617 | # scripts and configure runs, see configure's option --config-cache. |
| 33618 | # It is not useful on other systems. If it contains results you don't |
| 33619 | # want to keep, you may remove or edit it. |
| 33620 | # |
| 33621 | # config.status only pays attention to the cache file if you give it |
| 33622 | # the --recheck option to rerun configure. |
| 33623 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33624 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33625 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 33626 | # following values. |
| 33627 | |
| 33628 | _ACEOF |
| 33629 | |
| 33630 | # The following way of writing the cache mishandles newlines in values, |
| 33631 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33632 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33633 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 33634 | # 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] | 33635 | ( |
| 33636 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 33637 | eval ac_val=\$$ac_var |
| 33638 | case $ac_val in #( |
| 33639 | *${as_nl}*) |
| 33640 | case $ac_var in #( |
| 33641 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 33642 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 33643 | esac |
| 33644 | case $ac_var in #( |
| 33645 | _ | IFS | as_nl) ;; #( |
| 33646 | *) $as_unset $ac_var ;; |
| 33647 | esac ;; |
| 33648 | esac |
| 33649 | done |
| 33650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33651 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33652 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 33653 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33654 | # `set' does not quote correctly, so add quotes (double-quote |
| 33655 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 33656 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33657 | "s/'/'\\\\''/g; |
| 33658 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33659 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33660 | *) |
| 33661 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33662 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33663 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33664 | esac | |
| 33665 | sort |
| 33666 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33667 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33668 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33669 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33670 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33671 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 33672 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33673 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 33674 | :end' >>confcache |
| 33675 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 33676 | if test -w "$cache_file"; then |
| 33677 | test "x$cache_file" != "x/dev/null" && |
| 33678 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 33679 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33680 | cat confcache >$cache_file |
| 33681 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33682 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 33683 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33684 | fi |
| 33685 | fi |
| 33686 | rm -f confcache |
| 33687 | |
| 33688 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 33689 | # Let make expand exec_prefix. |
| 33690 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 33691 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33692 | DEFS=-DHAVE_CONFIG_H |
| 33693 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33694 | ac_libobjs= |
| 33695 | ac_ltlibobjs= |
| 33696 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 33697 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33698 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 33699 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 33700 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 33701 | # will be set to the directory where LIBOBJS objects are built. |
| 33702 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 33703 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33704 | done |
| 33705 | LIBOBJS=$ac_libobjs |
| 33706 | |
| 33707 | LTLIBOBJS=$ac_ltlibobjs |
| 33708 | |
| 33709 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33710 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 33711 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33712 | Usually this means the macro was only invoked conditionally." >&5 |
| 33713 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33714 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33715 | { (exit 1); exit 1; }; } |
| 33716 | fi |
| 33717 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 33718 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33719 | Usually this means the macro was only invoked conditionally." >&5 |
| 33720 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33721 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33722 | { (exit 1); exit 1; }; } |
| 33723 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33724 | |
| 33725 | : ${CONFIG_STATUS=./config.status} |
| 33726 | ac_clean_files_save=$ac_clean_files |
| 33727 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 33728 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 33729 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 33730 | cat >$CONFIG_STATUS <<_ACEOF |
| 33731 | #! $SHELL |
| 33732 | # Generated by $as_me. |
| 33733 | # Run this file to recreate the current configuration. |
| 33734 | # Compiler output produced by configure, useful for debugging |
| 33735 | # configure, is in config.log if it exists. |
| 33736 | |
| 33737 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33738 | ac_cs_recheck=false |
| 33739 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33740 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 33741 | _ACEOF |
| 33742 | |
| 33743 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33744 | ## --------------------- ## |
| 33745 | ## M4sh Initialization. ## |
| 33746 | ## --------------------- ## |
| 33747 | |
| 33748 | # Be Bourne compatible |
| 33749 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 33750 | emulate sh |
| 33751 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33752 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 33753 | # is contrary to our usage. Disable this feature. |
| 33754 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33755 | setopt NO_GLOB_SUBST |
| 33756 | else |
| 33757 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33758 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33759 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33760 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33762 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33763 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33764 | # Avoid depending upon Character Ranges. |
| 33765 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33766 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 33767 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33768 | as_cr_digits='0123456789' |
| 33769 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 33770 | |
| 33771 | # The user is always right. |
| 33772 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33773 | echo "#! /bin/sh" >conf$$.sh |
| 33774 | echo "exit 0" >>conf$$.sh |
| 33775 | chmod +x conf$$.sh |
| 33776 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33777 | PATH_SEPARATOR=';' |
| 33778 | else |
| 33779 | PATH_SEPARATOR=: |
| 33780 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33781 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33782 | fi |
| 33783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33784 | # Support unset when possible. |
| 33785 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 33786 | as_unset=unset |
| 33787 | else |
| 33788 | as_unset=false |
| 33789 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33790 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33791 | |
| 33792 | # IFS |
| 33793 | # We need space, tab and new line, in precisely that order. Quoting is |
| 33794 | # there to prevent editors from complaining about space-tab. |
| 33795 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 33796 | # splitting by setting IFS to empty value.) |
| 33797 | as_nl=' |
| 33798 | ' |
| 33799 | IFS=" "" $as_nl" |
| 33800 | |
| 33801 | # Find who we are. Look in the path if we contain no directory separator. |
| 33802 | case $0 in |
| 33803 | *[\\/]* ) as_myself=$0 ;; |
| 33804 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33805 | for as_dir in $PATH |
| 33806 | do |
| 33807 | IFS=$as_save_IFS |
| 33808 | test -z "$as_dir" && as_dir=. |
| 33809 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 33810 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33811 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33813 | ;; |
| 33814 | esac |
| 33815 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 33816 | # in which case we are not to be found in the path. |
| 33817 | if test "x$as_myself" = x; then |
| 33818 | as_myself=$0 |
| 33819 | fi |
| 33820 | if test ! -f "$as_myself"; then |
| 33821 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 33822 | { (exit 1); exit 1; } |
| 33823 | fi |
| 33824 | |
| 33825 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33826 | for as_var in ENV MAIL MAILPATH |
| 33827 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33828 | done |
| 33829 | PS1='$ ' |
| 33830 | PS2='> ' |
| 33831 | PS4='+ ' |
| 33832 | |
| 33833 | # NLS nuisances. |
| 33834 | for as_var in \ |
| 33835 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 33836 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 33837 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33838 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33839 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 33840 | eval $as_var=C; export $as_var |
| 33841 | else |
| 33842 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33843 | fi |
| 33844 | done |
| 33845 | |
| 33846 | # Required to use basename. |
| 33847 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33848 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 33849 | as_expr=expr |
| 33850 | else |
| 33851 | as_expr=false |
| 33852 | fi |
| 33853 | |
| 33854 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 33855 | as_basename=basename |
| 33856 | else |
| 33857 | as_basename=false |
| 33858 | fi |
| 33859 | |
| 33860 | |
| 33861 | # Name of the executable. |
| 33862 | as_me=`$as_basename -- "$0" || |
| 33863 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 33864 | X"$0" : 'X\(//\)$' \| \ |
| 33865 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 33866 | echo X/"$0" | |
| 33867 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 33868 | s//\1/ |
| 33869 | q |
| 33870 | } |
| 33871 | /^X\/\(\/\/\)$/{ |
| 33872 | s//\1/ |
| 33873 | q |
| 33874 | } |
| 33875 | /^X\/\(\/\).*/{ |
| 33876 | s//\1/ |
| 33877 | q |
| 33878 | } |
| 33879 | s/.*/./; q'` |
| 33880 | |
| 33881 | # CDPATH. |
| 33882 | $as_unset CDPATH |
| 33883 | |
| 33884 | |
| 33885 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33886 | as_lineno_1=$LINENO |
| 33887 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33888 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33889 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33890 | |
| 33891 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 33892 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33893 | # line-number line after each line using $LINENO; the second 'sed' |
| 33894 | # does the real work. The second script uses 'N' to pair each |
| 33895 | # line-number line with the line containing $LINENO, and appends |
| 33896 | # trailing '-' during substitution so that $LINENO is not a special |
| 33897 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33898 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33899 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 33900 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 33901 | sed -n ' |
| 33902 | p |
| 33903 | /[$]LINENO/= |
| 33904 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33905 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33906 | s/[$]LINENO.*/&-/ |
| 33907 | t lineno |
| 33908 | b |
| 33909 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33910 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33911 | :loop |
| 33912 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33913 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33914 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33915 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33916 | chmod +x "$as_me.lineno" || |
| 33917 | { 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] | 33918 | { (exit 1); exit 1; }; } |
| 33919 | |
| 33920 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 33921 | # (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] | 33922 | # original and so on. Autoconf is especially sensitive to this). |
| 33923 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33924 | # Exit status is that of the last command. |
| 33925 | exit |
| 33926 | } |
| 33927 | |
| 33928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33929 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 33930 | as_dirname=dirname |
| 33931 | else |
| 33932 | as_dirname=false |
| 33933 | fi |
| 33934 | |
| 33935 | ECHO_C= ECHO_N= ECHO_T= |
| 33936 | case `echo -n x` in |
| 33937 | -n*) |
| 33938 | case `echo 'x\c'` in |
| 33939 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 33940 | *) ECHO_C='\c';; |
| 33941 | esac;; |
| 33942 | *) |
| 33943 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33944 | esac |
| 33945 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33946 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33947 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33948 | as_expr=expr |
| 33949 | else |
| 33950 | as_expr=false |
| 33951 | fi |
| 33952 | |
| 33953 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33954 | if test -d conf$$.dir; then |
| 33955 | rm -f conf$$.dir/conf$$.file |
| 33956 | else |
| 33957 | rm -f conf$$.dir |
| 33958 | mkdir conf$$.dir |
| 33959 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33960 | echo >conf$$.file |
| 33961 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33962 | as_ln_s='ln -s' |
| 33963 | # ... but there are two gotchas: |
| 33964 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 33965 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 33966 | # In both cases, we have to default to `cp -p'. |
| 33967 | 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] | 33968 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33969 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 33970 | as_ln_s=ln |
| 33971 | else |
| 33972 | as_ln_s='cp -p' |
| 33973 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33974 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 33975 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33976 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33977 | if mkdir -p . 2>/dev/null; then |
| 33978 | as_mkdir_p=: |
| 33979 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33980 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33981 | as_mkdir_p=false |
| 33982 | fi |
| 33983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33984 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 33985 | # systems may use methods other than mode bits to determine executability. |
| 33986 | cat >conf$$.file <<_ASEOF |
| 33987 | #! /bin/sh |
| 33988 | exit 0 |
| 33989 | _ASEOF |
| 33990 | chmod +x conf$$.file |
| 33991 | if test -x conf$$.file >/dev/null 2>&1; then |
| 33992 | as_executable_p="test -x" |
| 33993 | else |
| 33994 | as_executable_p=: |
| 33995 | fi |
| 33996 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33997 | |
| 33998 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33999 | 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] | 34000 | |
| 34001 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34002 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34003 | |
| 34004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34005 | exec 6>&1 |
| 34006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34007 | # 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] | 34008 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34009 | # values after options handling. |
| 34010 | ac_log=" |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 34011 | This file was extended by llvm $as_me 2.0cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34012 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34013 | |
| 34014 | CONFIG_FILES = $CONFIG_FILES |
| 34015 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 34016 | CONFIG_LINKS = $CONFIG_LINKS |
| 34017 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34018 | $ $0 $@ |
| 34019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34020 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34021 | " |
| 34022 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34023 | _ACEOF |
| 34024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34025 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34026 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34027 | config_files="$ac_config_files" |
| 34028 | config_headers="$ac_config_headers" |
| 34029 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34030 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34031 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34032 | |
| 34033 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34034 | ac_cs_usage="\ |
| 34035 | \`$as_me' instantiates files from templates according to the |
| 34036 | current configuration. |
| 34037 | |
| 34038 | Usage: $0 [OPTIONS] [FILE]... |
| 34039 | |
| 34040 | -h, --help print this help, then exit |
| 34041 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34042 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34043 | -d, --debug don't remove temporary files |
| 34044 | --recheck update $as_me by reconfiguring in the same conditions |
| 34045 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34046 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34047 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34048 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34049 | |
| 34050 | Configuration files: |
| 34051 | $config_files |
| 34052 | |
| 34053 | Configuration headers: |
| 34054 | $config_headers |
| 34055 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34056 | Configuration commands: |
| 34057 | $config_commands |
| 34058 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34059 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34061 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34062 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34063 | ac_cs_version="\\ |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 34064 | llvm config.status 2.0cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34065 | configured by $0, generated by GNU Autoconf 2.60, |
| 34066 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34067 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34068 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34069 | This config.status script is free software; the Free Software Foundation |
| 34070 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34071 | |
| 34072 | ac_pwd='$ac_pwd' |
| 34073 | srcdir='$srcdir' |
| 34074 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34075 | _ACEOF |
| 34076 | |
| 34077 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34078 | # If no file are specified by the user, then we need to provide default |
| 34079 | # value. By we need to know if files were specified by the user. |
| 34080 | ac_need_defaults=: |
| 34081 | while test $# != 0 |
| 34082 | do |
| 34083 | case $1 in |
| 34084 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34085 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34086 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34087 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34088 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34089 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34090 | ac_option=$1 |
| 34091 | ac_optarg=$2 |
| 34092 | ac_shift=shift |
| 34093 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34094 | esac |
| 34095 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34096 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34097 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34098 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34099 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34100 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34101 | echo "$ac_cs_version"; exit ;; |
| 34102 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34103 | debug=: ;; |
| 34104 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34105 | $ac_shift |
| 34106 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34107 | ac_need_defaults=false;; |
| 34108 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34109 | $ac_shift |
| 34110 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34111 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34112 | --he | --h) |
| 34113 | # Conflict between --help and --header |
| 34114 | { echo "$as_me: error: ambiguous option: $1 |
| 34115 | Try \`$0 --help' for more information." >&2 |
| 34116 | { (exit 1); exit 1; }; };; |
| 34117 | --help | --hel | -h ) |
| 34118 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34119 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34120 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34121 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34122 | |
| 34123 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34124 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34125 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34126 | { (exit 1); exit 1; }; } ;; |
| 34127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34128 | *) ac_config_targets="$ac_config_targets $1" |
| 34129 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34130 | |
| 34131 | esac |
| 34132 | shift |
| 34133 | done |
| 34134 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34135 | ac_configure_extra_args= |
| 34136 | |
| 34137 | if $ac_cs_silent; then |
| 34138 | exec 6>/dev/null |
| 34139 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34140 | fi |
| 34141 | |
| 34142 | _ACEOF |
| 34143 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34144 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34145 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34146 | CONFIG_SHELL=$SHELL |
| 34147 | export CONFIG_SHELL |
| 34148 | 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] | 34149 | fi |
| 34150 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34151 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34152 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34153 | exec 5>>config.log |
| 34154 | { |
| 34155 | echo |
| 34156 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34157 | ## Running $as_me. ## |
| 34158 | _ASBOX |
| 34159 | echo "$ac_log" |
| 34160 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34162 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34163 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34164 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34165 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34166 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34167 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34168 | |
| 34169 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34170 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34171 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34172 | |
| 34173 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34174 | for ac_config_target in $ac_config_targets |
| 34175 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34176 | case $ac_config_target in |
| 34177 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34178 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 34179 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 34180 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 34181 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 34182 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34183 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34184 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34185 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34186 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34187 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34188 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34189 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34190 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34191 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34192 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34193 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34194 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34195 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34196 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 34197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34198 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34199 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34200 | { (exit 1); exit 1; }; };; |
| 34201 | esac |
| 34202 | done |
| 34203 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34204 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34205 | # If the user did not use the arguments to specify the items to instantiate, |
| 34206 | # then the envvar interface is used. Set only those that are not. |
| 34207 | # We use the long form for the default assignment because of an extremely |
| 34208 | # bizarre bug on SunOS 4.1.3. |
| 34209 | if $ac_need_defaults; then |
| 34210 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34211 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34212 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34213 | fi |
| 34214 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34215 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34216 | # 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] | 34217 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34218 | # Hook for its removal unless debugging. |
| 34219 | # Note that there is a small window in which the directory will not be cleaned: |
| 34220 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34221 | $debug || |
| 34222 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34223 | tmp= |
| 34224 | trap 'exit_status=$? |
| 34225 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34226 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34227 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34228 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34229 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34230 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34231 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34232 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34233 | test -n "$tmp" && test -d "$tmp" |
| 34234 | } || |
| 34235 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34236 | tmp=./conf$$-$RANDOM |
| 34237 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34238 | } || |
| 34239 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34240 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34241 | { (exit 1); exit 1; } |
| 34242 | } |
| 34243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34244 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34245 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34246 | # |
| 34247 | |
| 34248 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34249 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34250 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34251 | |
| 34252 | _ACEOF |
| 34253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34254 | |
| 34255 | |
| 34256 | ac_delim='%!_!# ' |
| 34257 | for ac_last_try in false false false false false :; do |
| 34258 | cat >conf$$subs.sed <<_ACEOF |
| 34259 | SHELL!$SHELL$ac_delim |
| 34260 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34261 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34262 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34263 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34264 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34265 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34266 | exec_prefix!$exec_prefix$ac_delim |
| 34267 | prefix!$prefix$ac_delim |
| 34268 | program_transform_name!$program_transform_name$ac_delim |
| 34269 | bindir!$bindir$ac_delim |
| 34270 | sbindir!$sbindir$ac_delim |
| 34271 | libexecdir!$libexecdir$ac_delim |
| 34272 | datarootdir!$datarootdir$ac_delim |
| 34273 | datadir!$datadir$ac_delim |
| 34274 | sysconfdir!$sysconfdir$ac_delim |
| 34275 | sharedstatedir!$sharedstatedir$ac_delim |
| 34276 | localstatedir!$localstatedir$ac_delim |
| 34277 | includedir!$includedir$ac_delim |
| 34278 | oldincludedir!$oldincludedir$ac_delim |
| 34279 | docdir!$docdir$ac_delim |
| 34280 | infodir!$infodir$ac_delim |
| 34281 | htmldir!$htmldir$ac_delim |
| 34282 | dvidir!$dvidir$ac_delim |
| 34283 | pdfdir!$pdfdir$ac_delim |
| 34284 | psdir!$psdir$ac_delim |
| 34285 | libdir!$libdir$ac_delim |
| 34286 | localedir!$localedir$ac_delim |
| 34287 | mandir!$mandir$ac_delim |
| 34288 | DEFS!$DEFS$ac_delim |
| 34289 | ECHO_C!$ECHO_C$ac_delim |
| 34290 | ECHO_N!$ECHO_N$ac_delim |
| 34291 | ECHO_T!$ECHO_T$ac_delim |
| 34292 | LIBS!$LIBS$ac_delim |
| 34293 | build_alias!$build_alias$ac_delim |
| 34294 | host_alias!$host_alias$ac_delim |
| 34295 | target_alias!$target_alias$ac_delim |
| 34296 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34297 | subdirs!$subdirs$ac_delim |
| 34298 | build!$build$ac_delim |
| 34299 | build_cpu!$build_cpu$ac_delim |
| 34300 | build_vendor!$build_vendor$ac_delim |
| 34301 | build_os!$build_os$ac_delim |
| 34302 | host!$host$ac_delim |
| 34303 | host_cpu!$host_cpu$ac_delim |
| 34304 | host_vendor!$host_vendor$ac_delim |
| 34305 | host_os!$host_os$ac_delim |
| 34306 | target!$target$ac_delim |
| 34307 | target_cpu!$target_cpu$ac_delim |
| 34308 | target_vendor!$target_vendor$ac_delim |
| 34309 | target_os!$target_os$ac_delim |
| 34310 | OS!$OS$ac_delim |
| 34311 | LINKALL!$LINKALL$ac_delim |
| 34312 | NOLINKALL!$NOLINKALL$ac_delim |
| 34313 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34314 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 34315 | ARCH!$ARCH$ac_delim |
| 34316 | ENDIAN!$ENDIAN$ac_delim |
| 34317 | CC!$CC$ac_delim |
| 34318 | CFLAGS!$CFLAGS$ac_delim |
| 34319 | LDFLAGS!$LDFLAGS$ac_delim |
| 34320 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34321 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34322 | EXEEXT!$EXEEXT$ac_delim |
| 34323 | OBJEXT!$OBJEXT$ac_delim |
| 34324 | CPP!$CPP$ac_delim |
| 34325 | GREP!$GREP$ac_delim |
| 34326 | EGREP!$EGREP$ac_delim |
| 34327 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34328 | BUILD_CC!$BUILD_CC$ac_delim |
| 34329 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 34330 | CVSBUILD!$CVSBUILD$ac_delim |
| 34331 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34332 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34333 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34334 | JIT!$JIT$ac_delim |
| 34335 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34336 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34337 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 34338 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34339 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 34340 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34341 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 34342 | CXX!$CXX$ac_delim |
| 34343 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34344 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 34345 | LEX!$LEX$ac_delim |
| 34346 | LEXLIB!$LEXLIB$ac_delim |
| 34347 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 34348 | FLEX!$FLEX$ac_delim |
| 34349 | YACC!$YACC$ac_delim |
| 34350 | YFLAGS!$YFLAGS$ac_delim |
| 34351 | BISON!$BISON$ac_delim |
| 34352 | NM!$NM$ac_delim |
| 34353 | ifGNUmake!$ifGNUmake$ac_delim |
| 34354 | LN_S!$LN_S$ac_delim |
| 34355 | CMP!$CMP$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34356 | _ACEOF |
| 34357 | |
| 34358 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34359 | break |
| 34360 | elif $ac_last_try; then |
| 34361 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34362 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34363 | { (exit 1); exit 1; }; } |
| 34364 | else |
| 34365 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34366 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34367 | done |
| 34368 | |
| 34369 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34370 | if test -n "$ac_eof"; then |
| 34371 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34372 | ac_eof=`expr $ac_eof + 1` |
| 34373 | fi |
| 34374 | |
| 34375 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34376 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34377 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34378 | _ACEOF |
| 34379 | sed ' |
| 34380 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34381 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34382 | :n |
| 34383 | t n |
| 34384 | s/'"$ac_delim"'$/,g/; t |
| 34385 | s/$/\\/; p |
| 34386 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34387 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34388 | rm -f conf$$subs.sed |
| 34389 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34390 | CEOF$ac_eof |
| 34391 | _ACEOF |
| 34392 | |
| 34393 | |
| 34394 | ac_delim='%!_!# ' |
| 34395 | for ac_last_try in false false false false false :; do |
| 34396 | cat >conf$$subs.sed <<_ACEOF |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 34397 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34398 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34399 | FIND!$FIND$ac_delim |
| 34400 | MKDIR!$MKDIR$ac_delim |
| 34401 | MV!$MV$ac_delim |
| 34402 | RANLIB!$RANLIB$ac_delim |
| 34403 | RM!$RM$ac_delim |
| 34404 | SED!$SED$ac_delim |
| 34405 | TAR!$TAR$ac_delim |
| 34406 | BINPWD!$BINPWD$ac_delim |
| 34407 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34408 | DOT!$DOT$ac_delim |
| 34409 | GV!$GV$ac_delim |
| 34410 | DOTTY!$DOTTY$ac_delim |
| 34411 | PERL!$PERL$ac_delim |
| 34412 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34413 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34414 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34415 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34416 | BZIP2!$BZIP2$ac_delim |
| 34417 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34418 | GROFF!$GROFF$ac_delim |
| 34419 | GZIP!$GZIP$ac_delim |
| 34420 | POD2HTML!$POD2HTML$ac_delim |
| 34421 | POD2MAN!$POD2MAN$ac_delim |
| 34422 | RUNTEST!$RUNTEST$ac_delim |
| 34423 | TCLSH!$TCLSH$ac_delim |
| 34424 | ZIP!$ZIP$ac_delim |
| 34425 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34426 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34427 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34428 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34429 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34430 | ECHO!$ECHO$ac_delim |
| 34431 | AR!$AR$ac_delim |
| 34432 | STRIP!$STRIP$ac_delim |
| 34433 | CXXCPP!$CXXCPP$ac_delim |
| 34434 | F77!$F77$ac_delim |
| 34435 | FFLAGS!$FFLAGS$ac_delim |
| 34436 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34437 | LIBTOOL!$LIBTOOL$ac_delim |
| 34438 | ETAGSFLAGS!$ETAGSFLAGS$ac_delim |
| 34439 | LLVMGCC!$LLVMGCC$ac_delim |
| 34440 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 34441 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 34442 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 34443 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34444 | ALLOCA!$ALLOCA$ac_delim |
| 34445 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34446 | LLVMCC1!$LLVMCC1$ac_delim |
| 34447 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34448 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34449 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34450 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34451 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 34452 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34453 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34454 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34455 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34456 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34457 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34458 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34459 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34460 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34461 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34462 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 34463 | LIBOBJS!$LIBOBJS$ac_delim |
| 34464 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34465 | _ACEOF |
| 34466 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 34467 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34468 | break |
| 34469 | elif $ac_last_try; then |
| 34470 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34471 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34472 | { (exit 1); exit 1; }; } |
| 34473 | else |
| 34474 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34475 | fi |
| 34476 | done |
| 34477 | |
| 34478 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34479 | if test -n "$ac_eof"; then |
| 34480 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34481 | ac_eof=`expr $ac_eof + 1` |
| 34482 | fi |
| 34483 | |
| 34484 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34485 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34486 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34487 | _ACEOF |
| 34488 | sed ' |
| 34489 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34490 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34491 | :n |
| 34492 | t n |
| 34493 | s/'"$ac_delim"'$/,g/; t |
| 34494 | s/$/\\/; p |
| 34495 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34496 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34497 | rm -f conf$$subs.sed |
| 34498 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34499 | :end |
| 34500 | s/|#_!!_#|//g |
| 34501 | CEOF$ac_eof |
| 34502 | _ACEOF |
| 34503 | |
| 34504 | |
| 34505 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34506 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34507 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34508 | # (actually we leave an empty line to preserve line numbers). |
| 34509 | if test "x$srcdir" = x.; then |
| 34510 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34511 | s/:*\$(srcdir):*/:/ |
| 34512 | s/:*\${srcdir}:*/:/ |
| 34513 | s/:*@srcdir@:*/:/ |
| 34514 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34515 | s/:*$// |
| 34516 | s/^[^=]*=[ ]*$// |
| 34517 | }' |
| 34518 | fi |
| 34519 | |
| 34520 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34521 | fi # test -n "$CONFIG_FILES" |
| 34522 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34523 | |
| 34524 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34525 | do |
| 34526 | case $ac_tag in |
| 34527 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34528 | esac |
| 34529 | case $ac_mode$ac_tag in |
| 34530 | :[FHL]*:*);; |
| 34531 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34532 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34533 | { (exit 1); exit 1; }; };; |
| 34534 | :[FH]-) ac_tag=-:-;; |
| 34535 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34536 | esac |
| 34537 | ac_save_IFS=$IFS |
| 34538 | IFS=: |
| 34539 | set x $ac_tag |
| 34540 | IFS=$ac_save_IFS |
| 34541 | shift |
| 34542 | ac_file=$1 |
| 34543 | shift |
| 34544 | |
| 34545 | case $ac_mode in |
| 34546 | :L) ac_source=$1;; |
| 34547 | :[FH]) |
| 34548 | ac_file_inputs= |
| 34549 | for ac_f |
| 34550 | do |
| 34551 | case $ac_f in |
| 34552 | -) ac_f="$tmp/stdin";; |
| 34553 | *) # Look for the file first in the build tree, then in the source tree |
| 34554 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34555 | # because $ac_f cannot contain `:'. |
| 34556 | test -f "$ac_f" || |
| 34557 | case $ac_f in |
| 34558 | [\\/$]*) false;; |
| 34559 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34560 | esac || |
| 34561 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34562 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34563 | { (exit 1); exit 1; }; };; |
| 34564 | esac |
| 34565 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34566 | done |
| 34567 | |
| 34568 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34569 | # use $as_me), people would be surprised to read: |
| 34570 | # /* config.h. Generated by config.status. */ |
| 34571 | configure_input="Generated from "`IFS=: |
| 34572 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34573 | if test x"$ac_file" != x-; then |
| 34574 | configure_input="$ac_file. $configure_input" |
| 34575 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34576 | echo "$as_me: creating $ac_file" >&6;} |
| 34577 | fi |
| 34578 | |
| 34579 | case $ac_tag in |
| 34580 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34581 | esac |
| 34582 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34583 | esac |
| 34584 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34585 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34586 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34587 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 34588 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34589 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34590 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34591 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34592 | s//\1/ |
| 34593 | q |
| 34594 | } |
| 34595 | /^X\(\/\/\)[^/].*/{ |
| 34596 | s//\1/ |
| 34597 | q |
| 34598 | } |
| 34599 | /^X\(\/\/\)$/{ |
| 34600 | s//\1/ |
| 34601 | q |
| 34602 | } |
| 34603 | /^X\(\/\).*/{ |
| 34604 | s//\1/ |
| 34605 | q |
| 34606 | } |
| 34607 | s/.*/./; q'` |
| 34608 | { as_dir="$ac_dir" |
| 34609 | case $as_dir in #( |
| 34610 | -*) as_dir=./$as_dir;; |
| 34611 | esac |
| 34612 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34613 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34614 | while :; do |
| 34615 | case $as_dir in #( |
| 34616 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34617 | *) as_qdir=$as_dir;; |
| 34618 | esac |
| 34619 | as_dirs="'$as_qdir' $as_dirs" |
| 34620 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34621 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34622 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34623 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34624 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34625 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34627 | s//\1/ |
| 34628 | q |
| 34629 | } |
| 34630 | /^X\(\/\/\)[^/].*/{ |
| 34631 | s//\1/ |
| 34632 | q |
| 34633 | } |
| 34634 | /^X\(\/\/\)$/{ |
| 34635 | s//\1/ |
| 34636 | q |
| 34637 | } |
| 34638 | /^X\(\/\).*/{ |
| 34639 | s//\1/ |
| 34640 | q |
| 34641 | } |
| 34642 | s/.*/./; q'` |
| 34643 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34644 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34645 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34646 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34647 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34648 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34649 | ac_builddir=. |
| 34650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34651 | case "$ac_dir" in |
| 34652 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34653 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34654 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34655 | # A ".." for each directory in $ac_dir_suffix. |
| 34656 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34657 | case $ac_top_builddir_sub in |
| 34658 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34659 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34660 | esac ;; |
| 34661 | esac |
| 34662 | ac_abs_top_builddir=$ac_pwd |
| 34663 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34664 | # for backward compatibility: |
| 34665 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34666 | |
| 34667 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34668 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34669 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34670 | ac_top_srcdir=$ac_top_builddir_sub |
| 34671 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34672 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34673 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34674 | ac_top_srcdir=$srcdir |
| 34675 | ac_abs_top_srcdir=$srcdir ;; |
| 34676 | *) # Relative name. |
| 34677 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34678 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34679 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34680 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34681 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34682 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34683 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34684 | case $ac_mode in |
| 34685 | :F) |
| 34686 | # |
| 34687 | # CONFIG_FILE |
| 34688 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34689 | |
| 34690 | case $INSTALL in |
| 34691 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34692 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34693 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34694 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34695 | |
| 34696 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34697 | # If the template does not know about datarootdir, expand it. |
| 34698 | # FIXME: This hack should be removed a few years after 2.60. |
| 34699 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 34700 | |
| 34701 | case `sed -n '/datarootdir/ { |
| 34702 | p |
| 34703 | q |
| 34704 | } |
| 34705 | /@datadir@/p |
| 34706 | /@docdir@/p |
| 34707 | /@infodir@/p |
| 34708 | /@localedir@/p |
| 34709 | /@mandir@/p |
| 34710 | ' $ac_file_inputs` in |
| 34711 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 34712 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 34713 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 34714 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 34715 | _ACEOF |
| 34716 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34717 | ac_datarootdir_hack=' |
| 34718 | s&@datadir@&$datadir&g |
| 34719 | s&@docdir@&$docdir&g |
| 34720 | s&@infodir@&$infodir&g |
| 34721 | s&@localedir@&$localedir&g |
| 34722 | s&@mandir@&$mandir&g |
| 34723 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 34724 | esac |
| 34725 | _ACEOF |
| 34726 | |
| 34727 | # Neutralize VPATH when `$srcdir' = `.'. |
| 34728 | # Shell code in configure.ac might set extrasub. |
| 34729 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34730 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34731 | sed "$ac_vpsub |
| 34732 | $extrasub |
| 34733 | _ACEOF |
| 34734 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34735 | :t |
| 34736 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34737 | s&@configure_input@&$configure_input&;t t |
| 34738 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 34739 | s&@srcdir@&$ac_srcdir&;t t |
| 34740 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 34741 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 34742 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 34743 | s&@builddir@&$ac_builddir&;t t |
| 34744 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 34745 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 34746 | s&@INSTALL@&$ac_INSTALL&;t t |
| 34747 | $ac_datarootdir_hack |
| 34748 | " $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] | 34749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34750 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 34751 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 34752 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 34753 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34754 | which seems to be undefined. Please make sure it is defined." >&5 |
| 34755 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34756 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34758 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34759 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34760 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 34761 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34762 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34763 | ;; |
| 34764 | :H) |
| 34765 | # |
| 34766 | # CONFIG_HEADER |
| 34767 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34768 | _ACEOF |
| 34769 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34770 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 34771 | # substitutes the proper values into config.h.in to produce config.h. |
| 34772 | rm -f conftest.defines conftest.tail |
| 34773 | # First, append a space to every undef/define line, to ease matching. |
| 34774 | echo 's/$/ /' >conftest.defines |
| 34775 | # Then, protect against being on the right side of a sed subst, or in |
| 34776 | # an unquoted here document, in config.status. If some macros were |
| 34777 | # called several times there might be several #defines for the same |
| 34778 | # symbol, which is useless. But do not sort them, since the last |
| 34779 | # AC_DEFINE must be honored. |
| 34780 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 34781 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 34782 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 34783 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 34784 | # just an empty string. |
| 34785 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 34786 | ac_dB='\\)[ (].*,\\1define\\2' |
| 34787 | ac_dC=' ' |
| 34788 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34790 | uniq confdefs.h | |
| 34791 | sed -n ' |
| 34792 | t rset |
| 34793 | :rset |
| 34794 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 34795 | t ok |
| 34796 | d |
| 34797 | :ok |
| 34798 | s/[\\&,]/\\&/g |
| 34799 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 34800 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 34801 | ' >>conftest.defines |
| 34802 | |
| 34803 | # Remove the space that was appended to ease matching. |
| 34804 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34805 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 34806 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34807 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 34808 | echo 's/ $// |
| 34809 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34811 | # Break up conftest.defines: |
| 34812 | ac_max_sed_lines=50 |
| 34813 | |
| 34814 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 34815 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 34816 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 34817 | # et cetera. |
| 34818 | ac_in='$ac_file_inputs' |
| 34819 | ac_out='"$tmp/out1"' |
| 34820 | ac_nxt='"$tmp/out2"' |
| 34821 | |
| 34822 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34823 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34824 | # Write a here document: |
| 34825 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34826 | # First, check the format of the line: |
| 34827 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 34828 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 34829 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 34830 | b |
| 34831 | :def |
| 34832 | _ACEOF |
| 34833 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34834 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34835 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 34836 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 34837 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 34838 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34839 | rm -f conftest.defines |
| 34840 | mv conftest.tail conftest.defines |
| 34841 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34842 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34843 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34844 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34845 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34846 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34847 | echo "/* $configure_input */" >"$tmp/config.h" |
| 34848 | cat "$ac_result" >>"$tmp/config.h" |
| 34849 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34850 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 34851 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 34852 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34853 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34854 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34855 | fi |
| 34856 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34857 | echo "/* $configure_input */" |
| 34858 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34859 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34860 | rm -f "$tmp/out12" |
| 34861 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34863 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 34864 | echo "$as_me: executing $ac_file commands" >&6;} |
| 34865 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34866 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34867 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34868 | |
| 34869 | case $ac_file$ac_mode in |
| 34870 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 34871 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 34872 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 34873 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 34874 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 34875 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 34876 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 34877 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34878 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 34879 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34880 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 34881 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 34882 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 34883 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 34884 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 34885 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 34886 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 34887 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 34888 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 34889 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 34890 | |
| 34891 | esac |
| 34892 | done # for ac_tag |
| 34893 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34894 | |
| 34895 | { (exit 0); exit 0; } |
| 34896 | _ACEOF |
| 34897 | chmod +x $CONFIG_STATUS |
| 34898 | ac_clean_files=$ac_clean_files_save |
| 34899 | |
| 34900 | |
| 34901 | # configure is writing to config.log, and then calls config.status. |
| 34902 | # config.status does its own redirection, appending to config.log. |
| 34903 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 34904 | # by configure, so config.status won't be able to write to it; its |
| 34905 | # output is simply discarded. So we exec the FD to /dev/null, |
| 34906 | # effectively closing config.log, so it can be properly (re)opened and |
| 34907 | # appended to by config.status. When coming back to configure, we |
| 34908 | # need to make the FD available again. |
| 34909 | if test "$no_create" != yes; then |
| 34910 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34911 | ac_config_status_args= |
| 34912 | test "$silent" = yes && |
| 34913 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34914 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34915 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34916 | exec 5>>config.log |
| 34917 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 34918 | # would make configure fail if this is the last instruction. |
| 34919 | $ac_cs_success || { (exit 1); exit 1; } |
| 34920 | fi |
| 34921 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34922 | # |
| 34923 | # CONFIG_SUBDIRS section. |
| 34924 | # |
| 34925 | if test "$no_recursion" != yes; then |
| 34926 | |
| 34927 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 34928 | ac_sub_configure_args= |
| 34929 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34930 | eval "set x $ac_configure_args" |
| 34931 | shift |
| 34932 | for ac_arg |
| 34933 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34934 | if test -n "$ac_prev"; then |
| 34935 | ac_prev= |
| 34936 | continue |
| 34937 | fi |
| 34938 | case $ac_arg in |
| 34939 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 34940 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 34941 | ac_prev=cache_file ;; |
| 34942 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 34943 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 34944 | | --c=*) |
| 34945 | ;; |
| 34946 | --config-cache | -C) |
| 34947 | ;; |
| 34948 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 34949 | ac_prev=srcdir ;; |
| 34950 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 34951 | ;; |
| 34952 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 34953 | ac_prev=prefix ;; |
| 34954 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 34955 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34956 | *) |
| 34957 | case $ac_arg in |
| 34958 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34959 | esac |
| 34960 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34961 | esac |
| 34962 | done |
| 34963 | |
| 34964 | # Always prepend --prefix to ensure using the same prefix |
| 34965 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34966 | ac_arg="--prefix=$prefix" |
| 34967 | case $ac_arg in |
| 34968 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34969 | esac |
| 34970 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34971 | |
| 34972 | ac_popdir=`pwd` |
| 34973 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 34974 | |
| 34975 | # Do not complain, so a configure script can configure whichever |
| 34976 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34977 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34979 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 34980 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 34981 | echo "$ac_msg" >&6 |
| 34982 | { as_dir="$ac_dir" |
| 34983 | case $as_dir in #( |
| 34984 | -*) as_dir=./$as_dir;; |
| 34985 | esac |
| 34986 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34987 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34988 | while :; do |
| 34989 | case $as_dir in #( |
| 34990 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34991 | *) as_qdir=$as_dir;; |
| 34992 | esac |
| 34993 | as_dirs="'$as_qdir' $as_dirs" |
| 34994 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34995 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34996 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34997 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34998 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34999 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35001 | s//\1/ |
| 35002 | q |
| 35003 | } |
| 35004 | /^X\(\/\/\)[^/].*/{ |
| 35005 | s//\1/ |
| 35006 | q |
| 35007 | } |
| 35008 | /^X\(\/\/\)$/{ |
| 35009 | s//\1/ |
| 35010 | q |
| 35011 | } |
| 35012 | /^X\(\/\).*/{ |
| 35013 | s//\1/ |
| 35014 | q |
| 35015 | } |
| 35016 | s/.*/./; q'` |
| 35017 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35018 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35019 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35020 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35021 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35022 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35023 | ac_builddir=. |
| 35024 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35025 | case "$ac_dir" in |
| 35026 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35027 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35028 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35029 | # A ".." for each directory in $ac_dir_suffix. |
| 35030 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35031 | case $ac_top_builddir_sub in |
| 35032 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35033 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35034 | esac ;; |
| 35035 | esac |
| 35036 | ac_abs_top_builddir=$ac_pwd |
| 35037 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35038 | # for backward compatibility: |
| 35039 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35040 | |
| 35041 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35042 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35043 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35044 | ac_top_srcdir=$ac_top_builddir_sub |
| 35045 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35046 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35047 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35048 | ac_top_srcdir=$srcdir |
| 35049 | ac_abs_top_srcdir=$srcdir ;; |
| 35050 | *) # Relative name. |
| 35051 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35052 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35053 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35054 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35055 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35056 | |
| 35057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35058 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35059 | |
| 35060 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35061 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35062 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35063 | elif test -f "$ac_srcdir/configure"; then |
| 35064 | ac_sub_configure=$ac_srcdir/configure |
| 35065 | elif test -f "$ac_srcdir/configure.in"; then |
| 35066 | # This should be Cygnus configure. |
| 35067 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35068 | else |
| 35069 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35070 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35071 | ac_sub_configure= |
| 35072 | fi |
| 35073 | |
| 35074 | # The recursion is here. |
| 35075 | if test -n "$ac_sub_configure"; then |
| 35076 | # Make the cache file name correct relative to the subdirectory. |
| 35077 | case $cache_file in |
| 35078 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35079 | *) # Relative name. |
| 35080 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35081 | esac |
| 35082 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35083 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35084 | 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] | 35085 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35086 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35087 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35088 | { { 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] | 35089 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35090 | { (exit 1); exit 1; }; } |
| 35091 | fi |
| 35092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35093 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35094 | done |
| 35095 | fi |
| 35096 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35097 | |