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" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2258 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2259 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2260 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2261 | llvm_cv_os_type="HP-UX" |
| 2262 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2263 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2264 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2265 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | llvm_cv_os_type="Interix" |
| 2267 | llvm_cv_platform_type="Unix" ;; |
| 2268 | *-*-linux*) |
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="Linux" |
| 2272 | llvm_cv_platform_type="Unix" ;; |
| 2273 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2274 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2275 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | llvm_cv_os_type="SunOS" |
| 2277 | llvm_cv_platform_type="Unix" ;; |
| 2278 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2279 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2280 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2281 | llvm_cv_os_type="Win32" |
| 2282 | llvm_cv_platform_type="Win32" ;; |
| 2283 | *-*-mingw*) |
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="MingW" |
| 2287 | llvm_cv_platform_type="Win32" ;; |
| 2288 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2289 | llvm_cv_link_all_option="" |
| 2290 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2291 | llvm_cv_os_type="Unknown" |
| 2292 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2293 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2294 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2295 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2296 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2297 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2298 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2299 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2300 | 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] | 2301 | { (exit 1); exit 1; }; } |
| 2302 | fi |
| 2303 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2304 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2305 | |
| 2306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2307 | LINKALL=$llvm_cv_link_all_option |
| 2308 | |
| 2309 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2310 | |
| 2311 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2312 | case $llvm_cv_platform_type in |
| 2313 | Unix) |
| 2314 | |
| 2315 | cat >>confdefs.h <<\_ACEOF |
| 2316 | #define LLVM_ON_UNIX 1 |
| 2317 | _ACEOF |
| 2318 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2319 | LLVM_ON_UNIX=1 |
| 2320 | |
| 2321 | LLVM_ON_WIN32=0 |
| 2322 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2323 | ;; |
| 2324 | Win32) |
| 2325 | |
| 2326 | cat >>confdefs.h <<\_ACEOF |
| 2327 | #define LLVM_ON_WIN32 1 |
| 2328 | _ACEOF |
| 2329 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2330 | LLVM_ON_UNIX=0 |
| 2331 | |
| 2332 | LLVM_ON_WIN32=1 |
| 2333 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2334 | ;; |
| 2335 | esac |
| 2336 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2337 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2338 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2339 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2341 | else |
| 2342 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2343 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2344 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2345 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2346 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2347 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2348 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2349 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2350 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2351 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2352 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2353 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2354 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2355 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2356 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2357 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2358 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2359 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2360 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2361 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2362 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2363 | ac_ext=c |
| 2364 | ac_cpp='$CPP $CPPFLAGS' |
| 2365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2368 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2369 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2370 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2373 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2375 | else |
| 2376 | if test -n "$CC"; then |
| 2377 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2378 | else |
| 2379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2380 | for as_dir in $PATH |
| 2381 | do |
| 2382 | IFS=$as_save_IFS |
| 2383 | test -z "$as_dir" && as_dir=. |
| 2384 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2385 | 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] | 2386 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2388 | break 2 |
| 2389 | fi |
| 2390 | done |
| 2391 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2392 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2393 | |
| 2394 | fi |
| 2395 | fi |
| 2396 | CC=$ac_cv_prog_CC |
| 2397 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2398 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2399 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2401 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2402 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2403 | fi |
| 2404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2405 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2406 | fi |
| 2407 | if test -z "$ac_cv_prog_CC"; then |
| 2408 | ac_ct_CC=$CC |
| 2409 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2410 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2411 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2413 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2415 | else |
| 2416 | if test -n "$ac_ct_CC"; then |
| 2417 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2418 | else |
| 2419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2420 | for as_dir in $PATH |
| 2421 | do |
| 2422 | IFS=$as_save_IFS |
| 2423 | test -z "$as_dir" && as_dir=. |
| 2424 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2425 | 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] | 2426 | ac_cv_prog_ac_ct_CC="gcc" |
| 2427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2428 | break 2 |
| 2429 | fi |
| 2430 | done |
| 2431 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2432 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2433 | |
| 2434 | fi |
| 2435 | fi |
| 2436 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2437 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2438 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2439 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2440 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2441 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2442 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2445 | if test "x$ac_ct_CC" = x; then |
| 2446 | CC="" |
| 2447 | else |
| 2448 | case $cross_compiling:$ac_tool_warned in |
| 2449 | yes:) |
| 2450 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2451 | whose name does not start with the host triplet. If you think this |
| 2452 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2453 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2454 | whose name does not start with the host triplet. If you think this |
| 2455 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2456 | ac_tool_warned=yes ;; |
| 2457 | esac |
| 2458 | CC=$ac_ct_CC |
| 2459 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2460 | else |
| 2461 | CC="$ac_cv_prog_CC" |
| 2462 | fi |
| 2463 | |
| 2464 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2465 | if test -n "$ac_tool_prefix"; then |
| 2466 | # 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] | 2467 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2468 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2470 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2472 | else |
| 2473 | if test -n "$CC"; then |
| 2474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2475 | else |
| 2476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2477 | for as_dir in $PATH |
| 2478 | do |
| 2479 | IFS=$as_save_IFS |
| 2480 | test -z "$as_dir" && as_dir=. |
| 2481 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2482 | 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] | 2483 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2485 | break 2 |
| 2486 | fi |
| 2487 | done |
| 2488 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2489 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2490 | |
| 2491 | fi |
| 2492 | fi |
| 2493 | CC=$ac_cv_prog_CC |
| 2494 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2495 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2496 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2497 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2498 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2499 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2500 | fi |
| 2501 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2502 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2503 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2504 | fi |
| 2505 | if test -z "$CC"; then |
| 2506 | # Extract the first word of "cc", so it can be a program name with args. |
| 2507 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2508 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2510 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2512 | else |
| 2513 | if test -n "$CC"; then |
| 2514 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2515 | else |
| 2516 | ac_prog_rejected=no |
| 2517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2518 | for as_dir in $PATH |
| 2519 | do |
| 2520 | IFS=$as_save_IFS |
| 2521 | test -z "$as_dir" && as_dir=. |
| 2522 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2523 | 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] | 2524 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2525 | ac_prog_rejected=yes |
| 2526 | continue |
| 2527 | fi |
| 2528 | ac_cv_prog_CC="cc" |
| 2529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2530 | break 2 |
| 2531 | fi |
| 2532 | done |
| 2533 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2534 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2535 | |
| 2536 | if test $ac_prog_rejected = yes; then |
| 2537 | # We found a bogon in the path, so make sure we never use it. |
| 2538 | set dummy $ac_cv_prog_CC |
| 2539 | shift |
| 2540 | if test $# != 0; then |
| 2541 | # We chose a different compiler from the bogus one. |
| 2542 | # However, it has the same basename, so the bogon will be chosen |
| 2543 | # first if we set CC to just the basename; use the full file name. |
| 2544 | shift |
| 2545 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2546 | fi |
| 2547 | fi |
| 2548 | fi |
| 2549 | fi |
| 2550 | CC=$ac_cv_prog_CC |
| 2551 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2552 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2553 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2554 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2555 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2556 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2557 | fi |
| 2558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2559 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2560 | fi |
| 2561 | if test -z "$CC"; then |
| 2562 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2563 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2564 | do |
| 2565 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2566 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2567 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2569 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2571 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2572 | if test -n "$CC"; then |
| 2573 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2574 | else |
| 2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2576 | for as_dir in $PATH |
| 2577 | do |
| 2578 | IFS=$as_save_IFS |
| 2579 | test -z "$as_dir" && as_dir=. |
| 2580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2581 | 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] | 2582 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2584 | break 2 |
| 2585 | fi |
| 2586 | done |
| 2587 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2588 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2589 | |
| 2590 | fi |
| 2591 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2592 | CC=$ac_cv_prog_CC |
| 2593 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2594 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2595 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2596 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2598 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2599 | fi |
| 2600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2601 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2603 | done |
| 2604 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | if test -z "$CC"; then |
| 2606 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2607 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2608 | do |
| 2609 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2610 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2613 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2615 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2616 | if test -n "$ac_ct_CC"; then |
| 2617 | 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] | 2618 | else |
| 2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2620 | for as_dir in $PATH |
| 2621 | do |
| 2622 | IFS=$as_save_IFS |
| 2623 | test -z "$as_dir" && as_dir=. |
| 2624 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2625 | 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] | 2626 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2628 | break 2 |
| 2629 | fi |
| 2630 | done |
| 2631 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2632 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2633 | |
| 2634 | fi |
| 2635 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2636 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2637 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2638 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2639 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2640 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2642 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2643 | fi |
| 2644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2645 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2646 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2647 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2649 | if test "x$ac_ct_CC" = x; then |
| 2650 | CC="" |
| 2651 | else |
| 2652 | case $cross_compiling:$ac_tool_warned in |
| 2653 | yes:) |
| 2654 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2655 | whose name does not start with the host triplet. If you think this |
| 2656 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2657 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2658 | whose name does not start with the host triplet. If you think this |
| 2659 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2660 | ac_tool_warned=yes ;; |
| 2661 | esac |
| 2662 | CC=$ac_ct_CC |
| 2663 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2664 | fi |
| 2665 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2666 | fi |
| 2667 | |
| 2668 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2669 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2670 | See \`config.log' for more details." >&5 |
| 2671 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2672 | See \`config.log' for more details." >&2;} |
| 2673 | { (exit 1); exit 1; }; } |
| 2674 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2675 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2676 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2677 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2678 | { (ac_try="$ac_compiler --version >&5" |
| 2679 | case "(($ac_try" in |
| 2680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2681 | *) ac_try_echo=$ac_try;; |
| 2682 | esac |
| 2683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2684 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2685 | ac_status=$? |
| 2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2687 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2688 | { (ac_try="$ac_compiler -v >&5" |
| 2689 | case "(($ac_try" in |
| 2690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2691 | *) ac_try_echo=$ac_try;; |
| 2692 | esac |
| 2693 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2694 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2698 | { (ac_try="$ac_compiler -V >&5" |
| 2699 | case "(($ac_try" in |
| 2700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2701 | *) ac_try_echo=$ac_try;; |
| 2702 | esac |
| 2703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2704 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2705 | ac_status=$? |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } |
| 2708 | |
| 2709 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2710 | /* confdefs.h. */ |
| 2711 | _ACEOF |
| 2712 | cat confdefs.h >>conftest.$ac_ext |
| 2713 | cat >>conftest.$ac_ext <<_ACEOF |
| 2714 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2715 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2716 | int |
| 2717 | main () |
| 2718 | { |
| 2719 | |
| 2720 | ; |
| 2721 | return 0; |
| 2722 | } |
| 2723 | _ACEOF |
| 2724 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2725 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2726 | # Try to create an executable without -o first, disregard a.out. |
| 2727 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2728 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2729 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2730 | 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] | 2731 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2732 | # |
| 2733 | # List of possible output files, starting from the most likely. |
| 2734 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2735 | # only as a last resort. b.out is created by i960 compilers. |
| 2736 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2737 | # |
| 2738 | # The IRIX 6 linker writes into existing files which may not be |
| 2739 | # executable, retaining their permissions. Remove them first so a |
| 2740 | # subsequent execution test works. |
| 2741 | ac_rmfiles= |
| 2742 | for ac_file in $ac_files |
| 2743 | do |
| 2744 | case $ac_file in |
| 2745 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2746 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2747 | esac |
| 2748 | done |
| 2749 | rm -f $ac_rmfiles |
| 2750 | |
| 2751 | if { (ac_try="$ac_link_default" |
| 2752 | case "(($ac_try" in |
| 2753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2754 | *) ac_try_echo=$ac_try;; |
| 2755 | esac |
| 2756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2757 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2758 | ac_status=$? |
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2760 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2761 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2762 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2763 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2764 | # so that the user can short-circuit this test for compilers unknown to |
| 2765 | # Autoconf. |
| 2766 | for ac_file in $ac_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2767 | do |
| 2768 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2769 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2770 | *.$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] | 2771 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2772 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2773 | # We found the default executable, but exeext='' is most |
| 2774 | # certainly right. |
| 2775 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2776 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2777 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2778 | then :; else |
| 2779 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2780 | fi |
| 2781 | # We set ac_cv_exeext here because the later test for it is not |
| 2782 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2783 | # argument, so we may need to know it at that point already. |
| 2784 | # Even if this section looks crufty: it has the advantage of |
| 2785 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2786 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2787 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2788 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2789 | esac |
| 2790 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2791 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2792 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2793 | else |
| 2794 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2796 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2797 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2798 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2799 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2800 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2801 | { (exit 77); exit 77; }; } |
| 2802 | fi |
| 2803 | |
| 2804 | ac_exeext=$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2805 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2806 | echo "${ECHO_T}$ac_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2808 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2809 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2810 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2811 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2812 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2813 | # If not cross compiling, check that we can run a simple program. |
| 2814 | if test "$cross_compiling" != yes; then |
| 2815 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2816 | { (case "(($ac_try" in |
| 2817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2818 | *) ac_try_echo=$ac_try;; |
| 2819 | esac |
| 2820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2821 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2822 | ac_status=$? |
| 2823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2824 | (exit $ac_status); }; }; then |
| 2825 | cross_compiling=no |
| 2826 | else |
| 2827 | if test "$cross_compiling" = maybe; then |
| 2828 | cross_compiling=yes |
| 2829 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2830 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2831 | If you meant to cross compile, use \`--host'. |
| 2832 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2833 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2834 | If you meant to cross compile, use \`--host'. |
| 2835 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2836 | { (exit 1); exit 1; }; } |
| 2837 | fi |
| 2838 | fi |
| 2839 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2840 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2841 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2842 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2843 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2844 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2845 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2846 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2847 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2848 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2849 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2850 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2852 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2853 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2854 | if { (ac_try="$ac_link" |
| 2855 | case "(($ac_try" in |
| 2856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2857 | *) ac_try_echo=$ac_try;; |
| 2858 | esac |
| 2859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2860 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2861 | ac_status=$? |
| 2862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2863 | (exit $ac_status); }; then |
| 2864 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2865 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2866 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2867 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2868 | for ac_file in conftest.exe conftest conftest.*; do |
| 2869 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2870 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2871 | *.$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] | 2872 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2873 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2874 | * ) break;; |
| 2875 | esac |
| 2876 | done |
| 2877 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2878 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2879 | See \`config.log' for more details." >&5 |
| 2880 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2881 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2882 | { (exit 1); exit 1; }; } |
| 2883 | fi |
| 2884 | |
| 2885 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2886 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2887 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2888 | |
| 2889 | rm -f conftest.$ac_ext |
| 2890 | EXEEXT=$ac_cv_exeext |
| 2891 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2892 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2893 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2894 | if test "${ac_cv_objext+set}" = set; then |
| 2895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2896 | else |
| 2897 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2898 | /* confdefs.h. */ |
| 2899 | _ACEOF |
| 2900 | cat confdefs.h >>conftest.$ac_ext |
| 2901 | cat >>conftest.$ac_ext <<_ACEOF |
| 2902 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2903 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2904 | int |
| 2905 | main () |
| 2906 | { |
| 2907 | |
| 2908 | ; |
| 2909 | return 0; |
| 2910 | } |
| 2911 | _ACEOF |
| 2912 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2913 | if { (ac_try="$ac_compile" |
| 2914 | case "(($ac_try" in |
| 2915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2916 | *) ac_try_echo=$ac_try;; |
| 2917 | esac |
| 2918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2919 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2920 | ac_status=$? |
| 2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2922 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2923 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2924 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2925 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2926 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2927 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2928 | break;; |
| 2929 | esac |
| 2930 | done |
| 2931 | else |
| 2932 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2934 | |
| 2935 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2936 | See \`config.log' for more details." >&5 |
| 2937 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2938 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2939 | { (exit 1); exit 1; }; } |
| 2940 | fi |
| 2941 | |
| 2942 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2943 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2944 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2945 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2946 | OBJEXT=$ac_cv_objext |
| 2947 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2948 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2949 | 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] | 2950 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2952 | else |
| 2953 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2954 | /* confdefs.h. */ |
| 2955 | _ACEOF |
| 2956 | cat confdefs.h >>conftest.$ac_ext |
| 2957 | cat >>conftest.$ac_ext <<_ACEOF |
| 2958 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2959 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2960 | int |
| 2961 | main () |
| 2962 | { |
| 2963 | #ifndef __GNUC__ |
| 2964 | choke me |
| 2965 | #endif |
| 2966 | |
| 2967 | ; |
| 2968 | return 0; |
| 2969 | } |
| 2970 | _ACEOF |
| 2971 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2972 | if { (ac_try="$ac_compile" |
| 2973 | case "(($ac_try" in |
| 2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2975 | *) ac_try_echo=$ac_try;; |
| 2976 | esac |
| 2977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2978 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2979 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2981 | rm -f conftest.er1 |
| 2982 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2984 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2986 | { (case "(($ac_try" in |
| 2987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2988 | *) ac_try_echo=$ac_try;; |
| 2989 | esac |
| 2990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2991 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2992 | ac_status=$? |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2994 | (exit $ac_status); }; } && |
| 2995 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2996 | { (case "(($ac_try" in |
| 2997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2998 | *) ac_try_echo=$ac_try;; |
| 2999 | esac |
| 3000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3001 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3002 | ac_status=$? |
| 3003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3004 | (exit $ac_status); }; }; then |
| 3005 | ac_compiler_gnu=yes |
| 3006 | else |
| 3007 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3009 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3010 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3011 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3012 | |
| 3013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3014 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3015 | |
| 3016 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3017 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3018 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3019 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3020 | ac_test_CFLAGS=${CFLAGS+set} |
| 3021 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3022 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3023 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3024 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3026 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3027 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3028 | ac_c_werror_flag=yes |
| 3029 | ac_cv_prog_cc_g=no |
| 3030 | CFLAGS="-g" |
| 3031 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3032 | /* confdefs.h. */ |
| 3033 | _ACEOF |
| 3034 | cat confdefs.h >>conftest.$ac_ext |
| 3035 | cat >>conftest.$ac_ext <<_ACEOF |
| 3036 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3038 | int |
| 3039 | main () |
| 3040 | { |
| 3041 | |
| 3042 | ; |
| 3043 | return 0; |
| 3044 | } |
| 3045 | _ACEOF |
| 3046 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3047 | if { (ac_try="$ac_compile" |
| 3048 | case "(($ac_try" in |
| 3049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3050 | *) ac_try_echo=$ac_try;; |
| 3051 | esac |
| 3052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3053 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3054 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3056 | rm -f conftest.er1 |
| 3057 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3059 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3061 | { (case "(($ac_try" in |
| 3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3063 | *) ac_try_echo=$ac_try;; |
| 3064 | esac |
| 3065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3066 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3067 | ac_status=$? |
| 3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3069 | (exit $ac_status); }; } && |
| 3070 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3071 | { (case "(($ac_try" in |
| 3072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3073 | *) ac_try_echo=$ac_try;; |
| 3074 | esac |
| 3075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3076 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3077 | ac_status=$? |
| 3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3079 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3080 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3081 | else |
| 3082 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3085 | CFLAGS="" |
| 3086 | cat >conftest.$ac_ext <<_ACEOF |
| 3087 | /* confdefs.h. */ |
| 3088 | _ACEOF |
| 3089 | cat confdefs.h >>conftest.$ac_ext |
| 3090 | cat >>conftest.$ac_ext <<_ACEOF |
| 3091 | /* end confdefs.h. */ |
| 3092 | |
| 3093 | int |
| 3094 | main () |
| 3095 | { |
| 3096 | |
| 3097 | ; |
| 3098 | return 0; |
| 3099 | } |
| 3100 | _ACEOF |
| 3101 | rm -f conftest.$ac_objext |
| 3102 | if { (ac_try="$ac_compile" |
| 3103 | case "(($ac_try" in |
| 3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3105 | *) ac_try_echo=$ac_try;; |
| 3106 | esac |
| 3107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3108 | (eval "$ac_compile") 2>conftest.er1 |
| 3109 | ac_status=$? |
| 3110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3111 | rm -f conftest.er1 |
| 3112 | cat conftest.err >&5 |
| 3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3114 | (exit $ac_status); } && |
| 3115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3116 | { (case "(($ac_try" in |
| 3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3118 | *) ac_try_echo=$ac_try;; |
| 3119 | esac |
| 3120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3121 | (eval "$ac_try") 2>&5 |
| 3122 | ac_status=$? |
| 3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3124 | (exit $ac_status); }; } && |
| 3125 | { ac_try='test -s conftest.$ac_objext' |
| 3126 | { (case "(($ac_try" in |
| 3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3128 | *) ac_try_echo=$ac_try;; |
| 3129 | esac |
| 3130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3131 | (eval "$ac_try") 2>&5 |
| 3132 | ac_status=$? |
| 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3134 | (exit $ac_status); }; }; then |
| 3135 | : |
| 3136 | else |
| 3137 | echo "$as_me: failed program was:" >&5 |
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
| 3140 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3141 | CFLAGS="-g" |
| 3142 | cat >conftest.$ac_ext <<_ACEOF |
| 3143 | /* confdefs.h. */ |
| 3144 | _ACEOF |
| 3145 | cat confdefs.h >>conftest.$ac_ext |
| 3146 | cat >>conftest.$ac_ext <<_ACEOF |
| 3147 | /* end confdefs.h. */ |
| 3148 | |
| 3149 | int |
| 3150 | main () |
| 3151 | { |
| 3152 | |
| 3153 | ; |
| 3154 | return 0; |
| 3155 | } |
| 3156 | _ACEOF |
| 3157 | rm -f conftest.$ac_objext |
| 3158 | if { (ac_try="$ac_compile" |
| 3159 | case "(($ac_try" in |
| 3160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3161 | *) ac_try_echo=$ac_try;; |
| 3162 | esac |
| 3163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3164 | (eval "$ac_compile") 2>conftest.er1 |
| 3165 | ac_status=$? |
| 3166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3167 | rm -f conftest.er1 |
| 3168 | cat conftest.err >&5 |
| 3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3170 | (exit $ac_status); } && |
| 3171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3172 | { (case "(($ac_try" in |
| 3173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3174 | *) ac_try_echo=$ac_try;; |
| 3175 | esac |
| 3176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3177 | (eval "$ac_try") 2>&5 |
| 3178 | ac_status=$? |
| 3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3180 | (exit $ac_status); }; } && |
| 3181 | { ac_try='test -s conftest.$ac_objext' |
| 3182 | { (case "(($ac_try" in |
| 3183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3184 | *) ac_try_echo=$ac_try;; |
| 3185 | esac |
| 3186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3187 | (eval "$ac_try") 2>&5 |
| 3188 | ac_status=$? |
| 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3190 | (exit $ac_status); }; }; then |
| 3191 | ac_cv_prog_cc_g=yes |
| 3192 | else |
| 3193 | echo "$as_me: failed program was:" >&5 |
| 3194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3195 | |
| 3196 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3198 | |
| 3199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3200 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3201 | |
| 3202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3203 | fi |
| 3204 | |
| 3205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3206 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3207 | fi |
| 3208 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3209 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3210 | if test "$ac_test_CFLAGS" = set; then |
| 3211 | CFLAGS=$ac_save_CFLAGS |
| 3212 | elif test $ac_cv_prog_cc_g = yes; then |
| 3213 | if test "$GCC" = yes; then |
| 3214 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3215 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3216 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3217 | fi |
| 3218 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3219 | if test "$GCC" = yes; then |
| 3220 | CFLAGS="-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= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3223 | fi |
| 3224 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3225 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3226 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3227 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3229 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3230 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3231 | ac_save_CC=$CC |
| 3232 | cat >conftest.$ac_ext <<_ACEOF |
| 3233 | /* confdefs.h. */ |
| 3234 | _ACEOF |
| 3235 | cat confdefs.h >>conftest.$ac_ext |
| 3236 | cat >>conftest.$ac_ext <<_ACEOF |
| 3237 | /* end confdefs.h. */ |
| 3238 | #include <stdarg.h> |
| 3239 | #include <stdio.h> |
| 3240 | #include <sys/types.h> |
| 3241 | #include <sys/stat.h> |
| 3242 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3243 | struct buf { int x; }; |
| 3244 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3245 | static char *e (p, i) |
| 3246 | char **p; |
| 3247 | int i; |
| 3248 | { |
| 3249 | return p[i]; |
| 3250 | } |
| 3251 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3252 | { |
| 3253 | char *s; |
| 3254 | va_list v; |
| 3255 | va_start (v,p); |
| 3256 | s = g (p, va_arg (v,int)); |
| 3257 | va_end (v); |
| 3258 | return s; |
| 3259 | } |
| 3260 | |
| 3261 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3262 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3263 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3264 | 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] | 3265 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3266 | 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] | 3267 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3268 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3270 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3271 | inside strings and character constants. */ |
| 3272 | #define FOO(x) 'x' |
| 3273 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3274 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3275 | int test (int i, double x); |
| 3276 | struct s1 {int (*f) (int a);}; |
| 3277 | struct s2 {int (*f) (double a);}; |
| 3278 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3279 | int argc; |
| 3280 | char **argv; |
| 3281 | int |
| 3282 | main () |
| 3283 | { |
| 3284 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3285 | ; |
| 3286 | return 0; |
| 3287 | } |
| 3288 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3289 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3290 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3291 | do |
| 3292 | CC="$ac_save_CC $ac_arg" |
| 3293 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3294 | if { (ac_try="$ac_compile" |
| 3295 | case "(($ac_try" in |
| 3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3297 | *) ac_try_echo=$ac_try;; |
| 3298 | esac |
| 3299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3300 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3301 | ac_status=$? |
| 3302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3303 | rm -f conftest.er1 |
| 3304 | cat conftest.err >&5 |
| 3305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3306 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3308 | { (case "(($ac_try" in |
| 3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3310 | *) ac_try_echo=$ac_try;; |
| 3311 | esac |
| 3312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3313 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | ac_status=$? |
| 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3316 | (exit $ac_status); }; } && |
| 3317 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3318 | { (case "(($ac_try" in |
| 3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3320 | *) ac_try_echo=$ac_try;; |
| 3321 | esac |
| 3322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3323 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3324 | ac_status=$? |
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3326 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3327 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | else |
| 3329 | echo "$as_me: failed program was:" >&5 |
| 3330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3332 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3333 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3334 | |
| 3335 | rm -f core conftest.err conftest.$ac_objext |
| 3336 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3337 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3338 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3339 | CC=$ac_save_CC |
| 3340 | |
| 3341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3342 | # AC_CACHE_VAL |
| 3343 | case "x$ac_cv_prog_cc_c89" in |
| 3344 | x) |
| 3345 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3346 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3347 | xno) |
| 3348 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3349 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3350 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3351 | CC="$CC $ac_cv_prog_cc_c89" |
| 3352 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3353 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3354 | esac |
| 3355 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3356 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3357 | ac_ext=c |
| 3358 | ac_cpp='$CPP $CPPFLAGS' |
| 3359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3362 | |
| 3363 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3364 | ac_ext=c |
| 3365 | ac_cpp='$CPP $CPPFLAGS' |
| 3366 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3367 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3368 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3369 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3370 | 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] | 3371 | # On Suns, sometimes $CPP names a directory. |
| 3372 | if test -n "$CPP" && test -d "$CPP"; then |
| 3373 | CPP= |
| 3374 | fi |
| 3375 | if test -z "$CPP"; then |
| 3376 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3378 | else |
| 3379 | # Double quotes because CPP needs to be expanded |
| 3380 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3381 | do |
| 3382 | ac_preproc_ok=false |
| 3383 | for ac_c_preproc_warn_flag in '' yes |
| 3384 | do |
| 3385 | # Use a header file that comes with gcc, so configuring glibc |
| 3386 | # with a fresh cross-compiler works. |
| 3387 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3388 | # <limits.h> exists even on freestanding compilers. |
| 3389 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3390 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3391 | cat >conftest.$ac_ext <<_ACEOF |
| 3392 | /* confdefs.h. */ |
| 3393 | _ACEOF |
| 3394 | cat confdefs.h >>conftest.$ac_ext |
| 3395 | cat >>conftest.$ac_ext <<_ACEOF |
| 3396 | /* end confdefs.h. */ |
| 3397 | #ifdef __STDC__ |
| 3398 | # include <limits.h> |
| 3399 | #else |
| 3400 | # include <assert.h> |
| 3401 | #endif |
| 3402 | Syntax error |
| 3403 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3404 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3405 | case "(($ac_try" in |
| 3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3407 | *) ac_try_echo=$ac_try;; |
| 3408 | esac |
| 3409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3410 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3411 | ac_status=$? |
| 3412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3413 | rm -f conftest.er1 |
| 3414 | cat conftest.err >&5 |
| 3415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3416 | (exit $ac_status); } >/dev/null; then |
| 3417 | if test -s conftest.err; then |
| 3418 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3420 | else |
| 3421 | ac_cpp_err= |
| 3422 | fi |
| 3423 | else |
| 3424 | ac_cpp_err=yes |
| 3425 | fi |
| 3426 | if test -z "$ac_cpp_err"; then |
| 3427 | : |
| 3428 | else |
| 3429 | echo "$as_me: failed program was:" >&5 |
| 3430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3431 | |
| 3432 | # Broken: fails on valid input. |
| 3433 | continue |
| 3434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3435 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3436 | rm -f conftest.err conftest.$ac_ext |
| 3437 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3438 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3439 | # can be detected and how. |
| 3440 | cat >conftest.$ac_ext <<_ACEOF |
| 3441 | /* confdefs.h. */ |
| 3442 | _ACEOF |
| 3443 | cat confdefs.h >>conftest.$ac_ext |
| 3444 | cat >>conftest.$ac_ext <<_ACEOF |
| 3445 | /* end confdefs.h. */ |
| 3446 | #include <ac_nonexistent.h> |
| 3447 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3449 | case "(($ac_try" in |
| 3450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3451 | *) ac_try_echo=$ac_try;; |
| 3452 | esac |
| 3453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3455 | ac_status=$? |
| 3456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3457 | rm -f conftest.er1 |
| 3458 | cat conftest.err >&5 |
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3460 | (exit $ac_status); } >/dev/null; then |
| 3461 | if test -s conftest.err; then |
| 3462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3464 | else |
| 3465 | ac_cpp_err= |
| 3466 | fi |
| 3467 | else |
| 3468 | ac_cpp_err=yes |
| 3469 | fi |
| 3470 | if test -z "$ac_cpp_err"; then |
| 3471 | # Broken: success on invalid input. |
| 3472 | continue |
| 3473 | else |
| 3474 | echo "$as_me: failed program was:" >&5 |
| 3475 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3476 | |
| 3477 | # Passes both tests. |
| 3478 | ac_preproc_ok=: |
| 3479 | break |
| 3480 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3481 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3482 | rm -f conftest.err conftest.$ac_ext |
| 3483 | |
| 3484 | done |
| 3485 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3486 | rm -f conftest.err conftest.$ac_ext |
| 3487 | if $ac_preproc_ok; then |
| 3488 | break |
| 3489 | fi |
| 3490 | |
| 3491 | done |
| 3492 | ac_cv_prog_CPP=$CPP |
| 3493 | |
| 3494 | fi |
| 3495 | CPP=$ac_cv_prog_CPP |
| 3496 | else |
| 3497 | ac_cv_prog_CPP=$CPP |
| 3498 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3499 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3500 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3501 | ac_preproc_ok=false |
| 3502 | for ac_c_preproc_warn_flag in '' yes |
| 3503 | do |
| 3504 | # Use a header file that comes with gcc, so configuring glibc |
| 3505 | # with a fresh cross-compiler works. |
| 3506 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3507 | # <limits.h> exists even on freestanding compilers. |
| 3508 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3509 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3510 | cat >conftest.$ac_ext <<_ACEOF |
| 3511 | /* confdefs.h. */ |
| 3512 | _ACEOF |
| 3513 | cat confdefs.h >>conftest.$ac_ext |
| 3514 | cat >>conftest.$ac_ext <<_ACEOF |
| 3515 | /* end confdefs.h. */ |
| 3516 | #ifdef __STDC__ |
| 3517 | # include <limits.h> |
| 3518 | #else |
| 3519 | # include <assert.h> |
| 3520 | #endif |
| 3521 | Syntax error |
| 3522 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3523 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3524 | case "(($ac_try" in |
| 3525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3526 | *) ac_try_echo=$ac_try;; |
| 3527 | esac |
| 3528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3529 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3530 | ac_status=$? |
| 3531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3532 | rm -f conftest.er1 |
| 3533 | cat conftest.err >&5 |
| 3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3535 | (exit $ac_status); } >/dev/null; then |
| 3536 | if test -s conftest.err; then |
| 3537 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3538 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3539 | else |
| 3540 | ac_cpp_err= |
| 3541 | fi |
| 3542 | else |
| 3543 | ac_cpp_err=yes |
| 3544 | fi |
| 3545 | if test -z "$ac_cpp_err"; then |
| 3546 | : |
| 3547 | else |
| 3548 | echo "$as_me: failed program was:" >&5 |
| 3549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3550 | |
| 3551 | # Broken: fails on valid input. |
| 3552 | continue |
| 3553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3554 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3555 | rm -f conftest.err conftest.$ac_ext |
| 3556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3557 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3558 | # can be detected and how. |
| 3559 | cat >conftest.$ac_ext <<_ACEOF |
| 3560 | /* confdefs.h. */ |
| 3561 | _ACEOF |
| 3562 | cat confdefs.h >>conftest.$ac_ext |
| 3563 | cat >>conftest.$ac_ext <<_ACEOF |
| 3564 | /* end confdefs.h. */ |
| 3565 | #include <ac_nonexistent.h> |
| 3566 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3567 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3568 | case "(($ac_try" in |
| 3569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3570 | *) ac_try_echo=$ac_try;; |
| 3571 | esac |
| 3572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3573 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3574 | ac_status=$? |
| 3575 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3576 | rm -f conftest.er1 |
| 3577 | cat conftest.err >&5 |
| 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3579 | (exit $ac_status); } >/dev/null; then |
| 3580 | if test -s conftest.err; then |
| 3581 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3583 | else |
| 3584 | ac_cpp_err= |
| 3585 | fi |
| 3586 | else |
| 3587 | ac_cpp_err=yes |
| 3588 | fi |
| 3589 | if test -z "$ac_cpp_err"; then |
| 3590 | # Broken: success on invalid input. |
| 3591 | continue |
| 3592 | else |
| 3593 | echo "$as_me: failed program was:" >&5 |
| 3594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3595 | |
| 3596 | # Passes both tests. |
| 3597 | ac_preproc_ok=: |
| 3598 | break |
| 3599 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3600 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3601 | rm -f conftest.err conftest.$ac_ext |
| 3602 | |
| 3603 | done |
| 3604 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3605 | rm -f conftest.err conftest.$ac_ext |
| 3606 | if $ac_preproc_ok; then |
| 3607 | : |
| 3608 | else |
| 3609 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3610 | See \`config.log' for more details." >&5 |
| 3611 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3612 | See \`config.log' for more details." >&2;} |
| 3613 | { (exit 1); exit 1; }; } |
| 3614 | fi |
| 3615 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3616 | ac_ext=c |
| 3617 | ac_cpp='$CPP $CPPFLAGS' |
| 3618 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3619 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3620 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3621 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3623 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3624 | 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] | 3625 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3627 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3628 | # Extract the first word of "grep ggrep" to use in msg output |
| 3629 | if test -z "$GREP"; then |
| 3630 | set dummy grep ggrep; ac_prog_name=$2 |
| 3631 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3633 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3634 | ac_path_GREP_found=false |
| 3635 | # 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] | 3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3637 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3638 | do |
| 3639 | IFS=$as_save_IFS |
| 3640 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3641 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3642 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3643 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3644 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 3645 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3646 | # Check for GNU $ac_path_GREP |
| 3647 | case `"$ac_path_GREP" --version 2>&1` in |
| 3648 | *GNU*) |
| 3649 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3650 | *) |
| 3651 | ac_count=0 |
| 3652 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3653 | while : |
| 3654 | do |
| 3655 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3656 | mv "conftest.tmp" "conftest.in" |
| 3657 | cp "conftest.in" "conftest.nl" |
| 3658 | echo 'GREP' >> "conftest.nl" |
| 3659 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3660 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3661 | ac_count=`expr $ac_count + 1` |
| 3662 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3663 | # Best one so far, save it but keep looking for a better one |
| 3664 | ac_cv_path_GREP="$ac_path_GREP" |
| 3665 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3666 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3667 | # 10*(2^10) chars as input seems more than enough |
| 3668 | test $ac_count -gt 10 && break |
| 3669 | done |
| 3670 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3671 | esac |
| 3672 | |
| 3673 | |
| 3674 | $ac_path_GREP_found && break 3 |
| 3675 | done |
| 3676 | done |
| 3677 | |
| 3678 | done |
| 3679 | IFS=$as_save_IFS |
| 3680 | |
| 3681 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3682 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3683 | |
| 3684 | GREP="$ac_cv_path_GREP" |
| 3685 | if test -z "$GREP"; then |
| 3686 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3687 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3688 | { (exit 1); exit 1; }; } |
| 3689 | fi |
| 3690 | |
| 3691 | else |
| 3692 | ac_cv_path_GREP=$GREP |
| 3693 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3694 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3696 | fi |
| 3697 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3698 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3699 | GREP="$ac_cv_path_GREP" |
| 3700 | |
| 3701 | |
| 3702 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3703 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3704 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3706 | else |
| 3707 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3708 | then ac_cv_path_EGREP="$GREP -E" |
| 3709 | else |
| 3710 | # Extract the first word of "egrep" to use in msg output |
| 3711 | if test -z "$EGREP"; then |
| 3712 | set dummy egrep; ac_prog_name=$2 |
| 3713 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3715 | else |
| 3716 | ac_path_EGREP_found=false |
| 3717 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3719 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3720 | do |
| 3721 | IFS=$as_save_IFS |
| 3722 | test -z "$as_dir" && as_dir=. |
| 3723 | for ac_prog in egrep; do |
| 3724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3725 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3726 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 3727 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3728 | # Check for GNU $ac_path_EGREP |
| 3729 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3730 | *GNU*) |
| 3731 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3732 | *) |
| 3733 | ac_count=0 |
| 3734 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3735 | while : |
| 3736 | do |
| 3737 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3738 | mv "conftest.tmp" "conftest.in" |
| 3739 | cp "conftest.in" "conftest.nl" |
| 3740 | echo 'EGREP' >> "conftest.nl" |
| 3741 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3742 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3743 | ac_count=`expr $ac_count + 1` |
| 3744 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3745 | # Best one so far, save it but keep looking for a better one |
| 3746 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3747 | ac_path_EGREP_max=$ac_count |
| 3748 | fi |
| 3749 | # 10*(2^10) chars as input seems more than enough |
| 3750 | test $ac_count -gt 10 && break |
| 3751 | done |
| 3752 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3753 | esac |
| 3754 | |
| 3755 | |
| 3756 | $ac_path_EGREP_found && break 3 |
| 3757 | done |
| 3758 | done |
| 3759 | |
| 3760 | done |
| 3761 | IFS=$as_save_IFS |
| 3762 | |
| 3763 | |
| 3764 | fi |
| 3765 | |
| 3766 | EGREP="$ac_cv_path_EGREP" |
| 3767 | if test -z "$EGREP"; then |
| 3768 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3769 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3770 | { (exit 1); exit 1; }; } |
| 3771 | fi |
| 3772 | |
| 3773 | else |
| 3774 | ac_cv_path_EGREP=$EGREP |
| 3775 | fi |
| 3776 | |
| 3777 | |
| 3778 | fi |
| 3779 | fi |
| 3780 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3781 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3782 | EGREP="$ac_cv_path_EGREP" |
| 3783 | |
| 3784 | |
| 3785 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3786 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3787 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3789 | else |
| 3790 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3791 | /* confdefs.h. */ |
| 3792 | _ACEOF |
| 3793 | cat confdefs.h >>conftest.$ac_ext |
| 3794 | cat >>conftest.$ac_ext <<_ACEOF |
| 3795 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3796 | #include <stdlib.h> |
| 3797 | #include <stdarg.h> |
| 3798 | #include <string.h> |
| 3799 | #include <float.h> |
| 3800 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3801 | int |
| 3802 | main () |
| 3803 | { |
| 3804 | |
| 3805 | ; |
| 3806 | return 0; |
| 3807 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3808 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3809 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3810 | if { (ac_try="$ac_compile" |
| 3811 | case "(($ac_try" in |
| 3812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3813 | *) ac_try_echo=$ac_try;; |
| 3814 | esac |
| 3815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3816 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3817 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3819 | rm -f conftest.er1 |
| 3820 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3822 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3824 | { (case "(($ac_try" in |
| 3825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3826 | *) ac_try_echo=$ac_try;; |
| 3827 | esac |
| 3828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3829 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3830 | ac_status=$? |
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3832 | (exit $ac_status); }; } && |
| 3833 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3834 | { (case "(($ac_try" in |
| 3835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3836 | *) ac_try_echo=$ac_try;; |
| 3837 | esac |
| 3838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3839 | (eval "$ac_try") 2>&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3840 | ac_status=$? |
| 3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3842 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3843 | ac_cv_header_stdc=yes |
| 3844 | else |
| 3845 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3847 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3848 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3850 | |
| 3851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3852 | |
| 3853 | if test $ac_cv_header_stdc = yes; then |
| 3854 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3855 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3856 | /* confdefs.h. */ |
| 3857 | _ACEOF |
| 3858 | cat confdefs.h >>conftest.$ac_ext |
| 3859 | cat >>conftest.$ac_ext <<_ACEOF |
| 3860 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3861 | #include <string.h> |
| 3862 | |
| 3863 | _ACEOF |
| 3864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3865 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3866 | : |
| 3867 | else |
| 3868 | ac_cv_header_stdc=no |
| 3869 | fi |
| 3870 | rm -f conftest* |
| 3871 | |
| 3872 | fi |
| 3873 | |
| 3874 | if test $ac_cv_header_stdc = yes; then |
| 3875 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3876 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3877 | /* confdefs.h. */ |
| 3878 | _ACEOF |
| 3879 | cat confdefs.h >>conftest.$ac_ext |
| 3880 | cat >>conftest.$ac_ext <<_ACEOF |
| 3881 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3882 | #include <stdlib.h> |
| 3883 | |
| 3884 | _ACEOF |
| 3885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3886 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | : |
| 3888 | else |
| 3889 | ac_cv_header_stdc=no |
| 3890 | fi |
| 3891 | rm -f conftest* |
| 3892 | |
| 3893 | fi |
| 3894 | |
| 3895 | if test $ac_cv_header_stdc = yes; then |
| 3896 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3897 | if test "$cross_compiling" = yes; then |
| 3898 | : |
| 3899 | else |
| 3900 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3901 | /* confdefs.h. */ |
| 3902 | _ACEOF |
| 3903 | cat confdefs.h >>conftest.$ac_ext |
| 3904 | cat >>conftest.$ac_ext <<_ACEOF |
| 3905 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3906 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3907 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3908 | #if ((' ' & 0x0FF) == 0x020) |
| 3909 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3910 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3911 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3912 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3913 | (('a' <= (c) && (c) <= 'i') \ |
| 3914 | || ('j' <= (c) && (c) <= 'r') \ |
| 3915 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3916 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3917 | #endif |
| 3918 | |
| 3919 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3920 | int |
| 3921 | main () |
| 3922 | { |
| 3923 | int i; |
| 3924 | for (i = 0; i < 256; i++) |
| 3925 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3926 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3927 | return 2; |
| 3928 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3929 | } |
| 3930 | _ACEOF |
| 3931 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3932 | if { (ac_try="$ac_link" |
| 3933 | case "(($ac_try" in |
| 3934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3935 | *) ac_try_echo=$ac_try;; |
| 3936 | esac |
| 3937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3938 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3939 | ac_status=$? |
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3942 | { (case "(($ac_try" in |
| 3943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3944 | *) ac_try_echo=$ac_try;; |
| 3945 | esac |
| 3946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3947 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3948 | ac_status=$? |
| 3949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3950 | (exit $ac_status); }; }; then |
| 3951 | : |
| 3952 | else |
| 3953 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3954 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3956 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3957 | ( exit $ac_status ) |
| 3958 | ac_cv_header_stdc=no |
| 3959 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3960 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3961 | fi |
| 3962 | |
| 3963 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3964 | fi |
| 3965 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3966 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3967 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3968 | if test $ac_cv_header_stdc = yes; then |
| 3969 | |
| 3970 | cat >>confdefs.h <<\_ACEOF |
| 3971 | #define STDC_HEADERS 1 |
| 3972 | _ACEOF |
| 3973 | |
| 3974 | fi |
| 3975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3976 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
| 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3987 | inttypes.h stdint.h unistd.h |
| 3988 | do |
| 3989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3990 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3994 | else |
| 3995 | cat >conftest.$ac_ext <<_ACEOF |
| 3996 | /* confdefs.h. */ |
| 3997 | _ACEOF |
| 3998 | cat confdefs.h >>conftest.$ac_ext |
| 3999 | cat >>conftest.$ac_ext <<_ACEOF |
| 4000 | /* end confdefs.h. */ |
| 4001 | $ac_includes_default |
| 4002 | |
| 4003 | #include <$ac_header> |
| 4004 | _ACEOF |
| 4005 | rm -f conftest.$ac_objext |
| 4006 | if { (ac_try="$ac_compile" |
| 4007 | case "(($ac_try" in |
| 4008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4009 | *) ac_try_echo=$ac_try;; |
| 4010 | esac |
| 4011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4012 | (eval "$ac_compile") 2>conftest.er1 |
| 4013 | ac_status=$? |
| 4014 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4015 | rm -f conftest.er1 |
| 4016 | cat conftest.err >&5 |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); } && |
| 4019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4020 | { (case "(($ac_try" in |
| 4021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4022 | *) ac_try_echo=$ac_try;; |
| 4023 | esac |
| 4024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4025 | (eval "$ac_try") 2>&5 |
| 4026 | ac_status=$? |
| 4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4028 | (exit $ac_status); }; } && |
| 4029 | { ac_try='test -s conftest.$ac_objext' |
| 4030 | { (case "(($ac_try" in |
| 4031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4032 | *) ac_try_echo=$ac_try;; |
| 4033 | esac |
| 4034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4035 | (eval "$ac_try") 2>&5 |
| 4036 | ac_status=$? |
| 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4038 | (exit $ac_status); }; }; then |
| 4039 | eval "$as_ac_Header=yes" |
| 4040 | else |
| 4041 | echo "$as_me: failed program was:" >&5 |
| 4042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4043 | |
| 4044 | eval "$as_ac_Header=no" |
| 4045 | fi |
| 4046 | |
| 4047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4048 | fi |
| 4049 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 4050 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 4051 | echo "${ECHO_T}$ac_res" >&6; } |
| 4052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4053 | cat >>confdefs.h <<_ACEOF |
| 4054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4055 | _ACEOF |
| 4056 | |
| 4057 | fi |
| 4058 | |
| 4059 | done |
| 4060 | |
| 4061 | |
| 4062 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 4063 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 4064 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4066 | else |
| 4067 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 4068 | cat >conftest.$ac_ext <<_ACEOF |
| 4069 | /* confdefs.h. */ |
| 4070 | _ACEOF |
| 4071 | cat confdefs.h >>conftest.$ac_ext |
| 4072 | cat >>conftest.$ac_ext <<_ACEOF |
| 4073 | /* end confdefs.h. */ |
| 4074 | #include <sys/types.h> |
| 4075 | #include <sys/param.h> |
| 4076 | |
| 4077 | int |
| 4078 | main () |
| 4079 | { |
| 4080 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 4081 | bogus endian macros |
| 4082 | #endif |
| 4083 | |
| 4084 | ; |
| 4085 | return 0; |
| 4086 | } |
| 4087 | _ACEOF |
| 4088 | rm -f conftest.$ac_objext |
| 4089 | if { (ac_try="$ac_compile" |
| 4090 | case "(($ac_try" in |
| 4091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4092 | *) ac_try_echo=$ac_try;; |
| 4093 | esac |
| 4094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4095 | (eval "$ac_compile") 2>conftest.er1 |
| 4096 | ac_status=$? |
| 4097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4098 | rm -f conftest.er1 |
| 4099 | cat conftest.err >&5 |
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4101 | (exit $ac_status); } && |
| 4102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4103 | { (case "(($ac_try" in |
| 4104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4105 | *) ac_try_echo=$ac_try;; |
| 4106 | esac |
| 4107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4108 | (eval "$ac_try") 2>&5 |
| 4109 | ac_status=$? |
| 4110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4111 | (exit $ac_status); }; } && |
| 4112 | { ac_try='test -s conftest.$ac_objext' |
| 4113 | { (case "(($ac_try" in |
| 4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4115 | *) ac_try_echo=$ac_try;; |
| 4116 | esac |
| 4117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4118 | (eval "$ac_try") 2>&5 |
| 4119 | ac_status=$? |
| 4120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4121 | (exit $ac_status); }; }; then |
| 4122 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4123 | cat >conftest.$ac_ext <<_ACEOF |
| 4124 | /* confdefs.h. */ |
| 4125 | _ACEOF |
| 4126 | cat confdefs.h >>conftest.$ac_ext |
| 4127 | cat >>conftest.$ac_ext <<_ACEOF |
| 4128 | /* end confdefs.h. */ |
| 4129 | #include <sys/types.h> |
| 4130 | #include <sys/param.h> |
| 4131 | |
| 4132 | int |
| 4133 | main () |
| 4134 | { |
| 4135 | #if BYTE_ORDER != BIG_ENDIAN |
| 4136 | not big endian |
| 4137 | #endif |
| 4138 | |
| 4139 | ; |
| 4140 | return 0; |
| 4141 | } |
| 4142 | _ACEOF |
| 4143 | rm -f conftest.$ac_objext |
| 4144 | if { (ac_try="$ac_compile" |
| 4145 | case "(($ac_try" in |
| 4146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4147 | *) ac_try_echo=$ac_try;; |
| 4148 | esac |
| 4149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4150 | (eval "$ac_compile") 2>conftest.er1 |
| 4151 | ac_status=$? |
| 4152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4153 | rm -f conftest.er1 |
| 4154 | cat conftest.err >&5 |
| 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4156 | (exit $ac_status); } && |
| 4157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4158 | { (case "(($ac_try" in |
| 4159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4160 | *) ac_try_echo=$ac_try;; |
| 4161 | esac |
| 4162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4163 | (eval "$ac_try") 2>&5 |
| 4164 | ac_status=$? |
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4166 | (exit $ac_status); }; } && |
| 4167 | { ac_try='test -s conftest.$ac_objext' |
| 4168 | { (case "(($ac_try" in |
| 4169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4170 | *) ac_try_echo=$ac_try;; |
| 4171 | esac |
| 4172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4173 | (eval "$ac_try") 2>&5 |
| 4174 | ac_status=$? |
| 4175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4176 | (exit $ac_status); }; }; then |
| 4177 | ac_cv_c_bigendian=yes |
| 4178 | else |
| 4179 | echo "$as_me: failed program was:" >&5 |
| 4180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4181 | |
| 4182 | ac_cv_c_bigendian=no |
| 4183 | fi |
| 4184 | |
| 4185 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4186 | else |
| 4187 | echo "$as_me: failed program was:" >&5 |
| 4188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4189 | |
| 4190 | # It does not; compile a test program. |
| 4191 | if test "$cross_compiling" = yes; then |
| 4192 | # try to guess the endianness by grepping values into an object file |
| 4193 | ac_cv_c_bigendian=unknown |
| 4194 | cat >conftest.$ac_ext <<_ACEOF |
| 4195 | /* confdefs.h. */ |
| 4196 | _ACEOF |
| 4197 | cat confdefs.h >>conftest.$ac_ext |
| 4198 | cat >>conftest.$ac_ext <<_ACEOF |
| 4199 | /* end confdefs.h. */ |
| 4200 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4201 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4202 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4203 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4204 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4205 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4206 | int |
| 4207 | main () |
| 4208 | { |
| 4209 | _ascii (); _ebcdic (); |
| 4210 | ; |
| 4211 | return 0; |
| 4212 | } |
| 4213 | _ACEOF |
| 4214 | rm -f conftest.$ac_objext |
| 4215 | if { (ac_try="$ac_compile" |
| 4216 | case "(($ac_try" in |
| 4217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4218 | *) ac_try_echo=$ac_try;; |
| 4219 | esac |
| 4220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4221 | (eval "$ac_compile") 2>conftest.er1 |
| 4222 | ac_status=$? |
| 4223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4224 | rm -f conftest.er1 |
| 4225 | cat conftest.err >&5 |
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4227 | (exit $ac_status); } && |
| 4228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4229 | { (case "(($ac_try" in |
| 4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4231 | *) ac_try_echo=$ac_try;; |
| 4232 | esac |
| 4233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4234 | (eval "$ac_try") 2>&5 |
| 4235 | ac_status=$? |
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4237 | (exit $ac_status); }; } && |
| 4238 | { ac_try='test -s conftest.$ac_objext' |
| 4239 | { (case "(($ac_try" in |
| 4240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4241 | *) ac_try_echo=$ac_try;; |
| 4242 | esac |
| 4243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4244 | (eval "$ac_try") 2>&5 |
| 4245 | ac_status=$? |
| 4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4247 | (exit $ac_status); }; }; then |
| 4248 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4249 | ac_cv_c_bigendian=yes |
| 4250 | fi |
| 4251 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4252 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4253 | ac_cv_c_bigendian=no |
| 4254 | else |
| 4255 | # finding both strings is unlikely to happen, but who knows? |
| 4256 | ac_cv_c_bigendian=unknown |
| 4257 | fi |
| 4258 | fi |
| 4259 | else |
| 4260 | echo "$as_me: failed program was:" >&5 |
| 4261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4262 | |
| 4263 | |
| 4264 | fi |
| 4265 | |
| 4266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4267 | else |
| 4268 | cat >conftest.$ac_ext <<_ACEOF |
| 4269 | /* confdefs.h. */ |
| 4270 | _ACEOF |
| 4271 | cat confdefs.h >>conftest.$ac_ext |
| 4272 | cat >>conftest.$ac_ext <<_ACEOF |
| 4273 | /* end confdefs.h. */ |
| 4274 | $ac_includes_default |
| 4275 | int |
| 4276 | main () |
| 4277 | { |
| 4278 | |
| 4279 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4280 | union |
| 4281 | { |
| 4282 | long int l; |
| 4283 | char c[sizeof (long int)]; |
| 4284 | } u; |
| 4285 | u.l = 1; |
| 4286 | return u.c[sizeof (long int) - 1] == 1; |
| 4287 | |
| 4288 | ; |
| 4289 | return 0; |
| 4290 | } |
| 4291 | _ACEOF |
| 4292 | rm -f conftest$ac_exeext |
| 4293 | if { (ac_try="$ac_link" |
| 4294 | case "(($ac_try" in |
| 4295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4296 | *) ac_try_echo=$ac_try;; |
| 4297 | esac |
| 4298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4299 | (eval "$ac_link") 2>&5 |
| 4300 | ac_status=$? |
| 4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4303 | { (case "(($ac_try" in |
| 4304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4305 | *) ac_try_echo=$ac_try;; |
| 4306 | esac |
| 4307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4308 | (eval "$ac_try") 2>&5 |
| 4309 | ac_status=$? |
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4311 | (exit $ac_status); }; }; then |
| 4312 | ac_cv_c_bigendian=no |
| 4313 | else |
| 4314 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4315 | echo "$as_me: failed program was:" >&5 |
| 4316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4317 | |
| 4318 | ( exit $ac_status ) |
| 4319 | ac_cv_c_bigendian=yes |
| 4320 | fi |
| 4321 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4322 | fi |
| 4323 | |
| 4324 | |
| 4325 | fi |
| 4326 | |
| 4327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4328 | fi |
| 4329 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4330 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4331 | case $ac_cv_c_bigendian in |
| 4332 | yes) |
| 4333 | ENDIAN=big |
| 4334 | ;; |
| 4335 | no) |
| 4336 | ENDIAN=little |
| 4337 | ;; |
| 4338 | *) |
| 4339 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4340 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4341 | echo "$as_me: error: unknown endianness |
| 4342 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4343 | { (exit 1); exit 1; }; } ;; |
| 4344 | esac |
| 4345 | |
| 4346 | |
| 4347 | if test "$cross_compiling" = yes; then |
| 4348 | LLVM_CROSS_COMPILING=1 |
| 4349 | |
| 4350 | |
| 4351 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4352 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4353 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4355 | else |
| 4356 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4357 | ac_cv_build_exeext=.exe |
| 4358 | else |
| 4359 | ac_build_prefix=${build_alias}- |
| 4360 | |
| 4361 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4362 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4363 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4365 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4367 | else |
| 4368 | if test -n "$BUILD_CC"; then |
| 4369 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4370 | else |
| 4371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4372 | for as_dir in $PATH |
| 4373 | do |
| 4374 | IFS=$as_save_IFS |
| 4375 | test -z "$as_dir" && as_dir=. |
| 4376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4377 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4378 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4380 | break 2 |
| 4381 | fi |
| 4382 | done |
| 4383 | done |
| 4384 | IFS=$as_save_IFS |
| 4385 | |
| 4386 | fi |
| 4387 | fi |
| 4388 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4389 | if test -n "$BUILD_CC"; then |
| 4390 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4391 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4392 | else |
| 4393 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4394 | echo "${ECHO_T}no" >&6; } |
| 4395 | fi |
| 4396 | |
| 4397 | |
| 4398 | if test -z "$BUILD_CC"; then |
| 4399 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4400 | set dummy gcc; ac_word=$2 |
| 4401 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4403 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4405 | else |
| 4406 | if test -n "$BUILD_CC"; then |
| 4407 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4408 | else |
| 4409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4410 | for as_dir in $PATH |
| 4411 | do |
| 4412 | IFS=$as_save_IFS |
| 4413 | test -z "$as_dir" && as_dir=. |
| 4414 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4416 | ac_cv_prog_BUILD_CC="gcc" |
| 4417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4418 | break 2 |
| 4419 | fi |
| 4420 | done |
| 4421 | done |
| 4422 | IFS=$as_save_IFS |
| 4423 | |
| 4424 | fi |
| 4425 | fi |
| 4426 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4427 | if test -n "$BUILD_CC"; then |
| 4428 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4429 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4430 | else |
| 4431 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4432 | echo "${ECHO_T}no" >&6; } |
| 4433 | fi |
| 4434 | |
| 4435 | |
| 4436 | if test -z "$BUILD_CC"; then |
| 4437 | # Extract the first word of "cc", so it can be a program name with args. |
| 4438 | set dummy cc; ac_word=$2 |
| 4439 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4441 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4443 | else |
| 4444 | if test -n "$BUILD_CC"; then |
| 4445 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4446 | else |
| 4447 | ac_prog_rejected=no |
| 4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4449 | for as_dir in $PATH |
| 4450 | do |
| 4451 | IFS=$as_save_IFS |
| 4452 | test -z "$as_dir" && as_dir=. |
| 4453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4455 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4456 | ac_prog_rejected=yes |
| 4457 | continue |
| 4458 | fi |
| 4459 | ac_cv_prog_BUILD_CC="cc" |
| 4460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4461 | break 2 |
| 4462 | fi |
| 4463 | done |
| 4464 | done |
| 4465 | IFS=$as_save_IFS |
| 4466 | |
| 4467 | if test $ac_prog_rejected = yes; then |
| 4468 | # We found a bogon in the path, so make sure we never use it. |
| 4469 | set dummy $ac_cv_prog_BUILD_CC |
| 4470 | shift |
| 4471 | if test $# != 0; then |
| 4472 | # We chose a different compiler from the bogus one. |
| 4473 | # However, it has the same basename, so the bogon will be chosen |
| 4474 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4475 | shift |
| 4476 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4477 | fi |
| 4478 | fi |
| 4479 | fi |
| 4480 | fi |
| 4481 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4482 | if test -n "$BUILD_CC"; then |
| 4483 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4484 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4485 | else |
| 4486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4487 | echo "${ECHO_T}no" >&6; } |
| 4488 | fi |
| 4489 | |
| 4490 | |
| 4491 | fi |
| 4492 | fi |
| 4493 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4494 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4495 | { (exit 1); exit 1; }; } |
| 4496 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4497 | rm -f conftest* |
| 4498 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4499 | ac_cv_build_exeext= |
| 4500 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4501 | (eval $ac_build_link) 2>&5 |
| 4502 | ac_status=$? |
| 4503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4504 | (exit $ac_status); }; then |
| 4505 | for file in conftest.*; do |
| 4506 | case $file in |
| 4507 | *.c | *.o | *.obj) ;; |
| 4508 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4509 | esac |
| 4510 | done |
| 4511 | else |
| 4512 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4513 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4514 | { (exit 1); exit 1; }; } |
| 4515 | fi |
| 4516 | rm -f conftest* |
| 4517 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4518 | fi |
| 4519 | fi |
| 4520 | |
| 4521 | BUILD_EXEEXT="" |
| 4522 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4523 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4524 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4525 | ac_build_exeext=$BUILD_EXEEXT |
| 4526 | |
| 4527 | else |
| 4528 | LLVM_CROSS_COMPILING=0 |
| 4529 | |
| 4530 | fi |
| 4531 | |
| 4532 | if test -d "CVS" -o -d "${srcdir}/CVS"; then |
| 4533 | cvsbuild="yes" |
| 4534 | optimize="no" |
| 4535 | CVSBUILD=CVSBUILD=1 |
| 4536 | |
| 4537 | else |
| 4538 | cvsbuild="no" |
| 4539 | optimize="yes" |
| 4540 | fi |
| 4541 | |
| 4542 | |
| 4543 | # Check whether --enable-optimized was given. |
| 4544 | if test "${enable_optimized+set}" = set; then |
| 4545 | enableval=$enable_optimized; |
| 4546 | else |
| 4547 | enableval=$optimize |
| 4548 | fi |
| 4549 | |
| 4550 | if test ${enableval} = "no" ; then |
| 4551 | ENABLE_OPTIMIZED= |
| 4552 | |
| 4553 | else |
| 4554 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4555 | |
| 4556 | fi |
| 4557 | |
| 4558 | # Check whether --enable-assertions was given. |
| 4559 | if test "${enable_assertions+set}" = set; then |
| 4560 | enableval=$enable_assertions; |
| 4561 | else |
| 4562 | enableval="yes" |
| 4563 | fi |
| 4564 | |
| 4565 | if test ${enableval} = "yes" ; then |
| 4566 | DISABLE_ASSERTIONS= |
| 4567 | |
| 4568 | else |
| 4569 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4570 | |
| 4571 | fi |
| 4572 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4573 | # Check whether --enable-debug-runtime was given. |
| 4574 | if test "${enable_debug_runtime+set}" = set; then |
| 4575 | enableval=$enable_debug_runtime; |
| 4576 | else |
| 4577 | enableval=no |
| 4578 | fi |
| 4579 | |
| 4580 | if test ${enableval} = "no" ; then |
| 4581 | DEBUG_RUNTIME= |
| 4582 | |
| 4583 | else |
| 4584 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4585 | |
| 4586 | fi |
| 4587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4588 | # Check whether --enable-jit was given. |
| 4589 | if test "${enable_jit+set}" = set; then |
| 4590 | enableval=$enable_jit; |
| 4591 | else |
| 4592 | enableval=default |
| 4593 | fi |
| 4594 | |
| 4595 | if test ${enableval} = "no" |
| 4596 | then |
| 4597 | JIT= |
| 4598 | |
| 4599 | else |
| 4600 | case "$llvm_cv_target_arch" in |
| 4601 | x86) TARGET_HAS_JIT=1 |
| 4602 | ;; |
| 4603 | Sparc) TARGET_HAS_JIT=1 |
| 4604 | ;; |
| 4605 | PowerPC) TARGET_HAS_JIT=1 |
| 4606 | ;; |
| 4607 | x86_64) TARGET_HAS_JIT=0 |
| 4608 | ;; |
| 4609 | Alpha) TARGET_HAS_JIT=1 |
| 4610 | ;; |
| 4611 | IA64) TARGET_HAS_JIT=0 |
| 4612 | ;; |
| 4613 | *) TARGET_HAS_JIT=0 |
| 4614 | ;; |
| 4615 | esac |
| 4616 | fi |
| 4617 | |
| 4618 | # Check whether --enable-doxygen was given. |
| 4619 | if test "${enable_doxygen+set}" = set; then |
| 4620 | enableval=$enable_doxygen; |
| 4621 | else |
| 4622 | enableval=default |
| 4623 | fi |
| 4624 | |
| 4625 | case "$enableval" in |
| 4626 | yes) ENABLE_DOXYGEN=1 |
| 4627 | ;; |
| 4628 | no) ENABLE_DOXYGEN=0 |
| 4629 | ;; |
| 4630 | default) ENABLE_DOXYGEN=0 |
| 4631 | ;; |
| 4632 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4633 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4634 | { (exit 1); exit 1; }; } ;; |
| 4635 | esac |
| 4636 | |
| 4637 | # Check whether --enable-threads was given. |
| 4638 | if test "${enable_threads+set}" = set; then |
| 4639 | enableval=$enable_threads; |
| 4640 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4641 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4642 | fi |
| 4643 | |
| 4644 | case "$enableval" in |
| 4645 | yes) ENABLE_THREADS=1 |
| 4646 | ;; |
| 4647 | no) ENABLE_THREADS=0 |
| 4648 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4649 | default) ENABLE_THREADS=1 |
| 4650 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4651 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4652 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4653 | { (exit 1); exit 1; }; } ;; |
| 4654 | esac |
| 4655 | |
| 4656 | cat >>confdefs.h <<_ACEOF |
| 4657 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4658 | _ACEOF |
| 4659 | |
| 4660 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4661 | # Check whether --enable-pic was given. |
| 4662 | if test "${enable_pic+set}" = set; then |
| 4663 | enableval=$enable_pic; |
| 4664 | else |
| 4665 | enableval=default |
| 4666 | fi |
| 4667 | |
| 4668 | case "$enableval" in |
| 4669 | yes) ENABLE_PIC=1 |
| 4670 | ;; |
| 4671 | no) ENABLE_PIC=0 |
| 4672 | ;; |
| 4673 | default) ENABLE_PIC=0 |
| 4674 | ;; |
| 4675 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4676 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4677 | { (exit 1); exit 1; }; } ;; |
| 4678 | esac |
| 4679 | |
| 4680 | cat >>confdefs.h <<_ACEOF |
| 4681 | #define ENABLE_PIC $ENABLE_PIC |
| 4682 | _ACEOF |
| 4683 | |
| 4684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4685 | TARGETS_TO_BUILD="" |
| 4686 | # Check whether --enable-targets was given. |
| 4687 | if test "${enable_targets+set}" = set; then |
| 4688 | enableval=$enable_targets; |
| 4689 | else |
| 4690 | enableval=all |
| 4691 | fi |
| 4692 | |
| 4693 | case "$enableval" in |
| 4694 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;; |
| 4695 | host-only) |
| 4696 | case "$llvm_cv_target_arch" in |
| 4697 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4698 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4699 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4700 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4701 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4702 | IA64) TARGETS_TO_BUILD="IA64" ;; |
| 4703 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4704 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4705 | { (exit 1); exit 1; }; } ;; |
| 4706 | esac |
| 4707 | ;; |
| 4708 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4709 | case "$a_target" in |
| 4710 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4711 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4712 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4713 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4714 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4715 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
| 4716 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4717 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4718 | { (exit 1); exit 1; }; } ;; |
| 4719 | esac |
| 4720 | done |
| 4721 | ;; |
| 4722 | esac |
| 4723 | TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" |
| 4724 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4725 | |
| 4726 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4727 | # Check whether --enable-cbe-printf-a was given. |
| 4728 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4729 | enableval=$enable_cbe_printf_a; |
| 4730 | else |
| 4731 | enableval=default |
| 4732 | fi |
| 4733 | |
| 4734 | case "$enableval" in |
| 4735 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4736 | ;; |
| 4737 | no) ENABLE_CBE_PRINTF_A=0 |
| 4738 | ;; |
| 4739 | default) ENABLE_CBE_PRINTF_A=1 |
| 4740 | ;; |
| 4741 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4742 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4743 | { (exit 1); exit 1; }; } ;; |
| 4744 | esac |
| 4745 | |
| 4746 | cat >>confdefs.h <<_ACEOF |
| 4747 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4748 | _ACEOF |
| 4749 | |
| 4750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4751 | |
| 4752 | # Check whether --with-llvmgccdir was given. |
| 4753 | if test "${with_llvmgccdir+set}" = set; then |
| 4754 | withval=$with_llvmgccdir; |
| 4755 | else |
| 4756 | withval=default |
| 4757 | fi |
| 4758 | |
| 4759 | case "$withval" in |
| 4760 | default) WITH_LLVMGCCDIR=default ;; |
| 4761 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4762 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4763 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4764 | { (exit 1); exit 1; }; } ;; |
| 4765 | esac |
| 4766 | |
| 4767 | |
| 4768 | # Check whether --with-extra-options was given. |
| 4769 | if test "${with_extra_options+set}" = set; then |
| 4770 | withval=$with_extra_options; |
| 4771 | else |
| 4772 | withval=default |
| 4773 | fi |
| 4774 | |
| 4775 | case "$withval" in |
| 4776 | default) EXTRA_OPTIONS= ;; |
| 4777 | *) EXTRA_OPTIONS=$withval ;; |
| 4778 | esac |
| 4779 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 | ac_ext=c |
| 4784 | ac_cpp='$CPP $CPPFLAGS' |
| 4785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4788 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4789 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4790 | # On Suns, sometimes $CPP names a directory. |
| 4791 | if test -n "$CPP" && test -d "$CPP"; then |
| 4792 | CPP= |
| 4793 | fi |
| 4794 | if test -z "$CPP"; then |
| 4795 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4797 | else |
| 4798 | # Double quotes because CPP needs to be expanded |
| 4799 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4800 | do |
| 4801 | ac_preproc_ok=false |
| 4802 | for ac_c_preproc_warn_flag in '' yes |
| 4803 | do |
| 4804 | # Use a header file that comes with gcc, so configuring glibc |
| 4805 | # with a fresh cross-compiler works. |
| 4806 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4807 | # <limits.h> exists even on freestanding compilers. |
| 4808 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4809 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4810 | cat >conftest.$ac_ext <<_ACEOF |
| 4811 | /* confdefs.h. */ |
| 4812 | _ACEOF |
| 4813 | cat confdefs.h >>conftest.$ac_ext |
| 4814 | cat >>conftest.$ac_ext <<_ACEOF |
| 4815 | /* end confdefs.h. */ |
| 4816 | #ifdef __STDC__ |
| 4817 | # include <limits.h> |
| 4818 | #else |
| 4819 | # include <assert.h> |
| 4820 | #endif |
| 4821 | Syntax error |
| 4822 | _ACEOF |
| 4823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4824 | case "(($ac_try" in |
| 4825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4826 | *) ac_try_echo=$ac_try;; |
| 4827 | esac |
| 4828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4830 | ac_status=$? |
| 4831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4832 | rm -f conftest.er1 |
| 4833 | cat conftest.err >&5 |
| 4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4835 | (exit $ac_status); } >/dev/null; then |
| 4836 | if test -s conftest.err; then |
| 4837 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4838 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4839 | else |
| 4840 | ac_cpp_err= |
| 4841 | fi |
| 4842 | else |
| 4843 | ac_cpp_err=yes |
| 4844 | fi |
| 4845 | if test -z "$ac_cpp_err"; then |
| 4846 | : |
| 4847 | else |
| 4848 | echo "$as_me: failed program was:" >&5 |
| 4849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4850 | |
| 4851 | # Broken: fails on valid input. |
| 4852 | continue |
| 4853 | fi |
| 4854 | |
| 4855 | rm -f conftest.err conftest.$ac_ext |
| 4856 | |
| 4857 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4858 | # can be detected and how. |
| 4859 | cat >conftest.$ac_ext <<_ACEOF |
| 4860 | /* confdefs.h. */ |
| 4861 | _ACEOF |
| 4862 | cat confdefs.h >>conftest.$ac_ext |
| 4863 | cat >>conftest.$ac_ext <<_ACEOF |
| 4864 | /* end confdefs.h. */ |
| 4865 | #include <ac_nonexistent.h> |
| 4866 | _ACEOF |
| 4867 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4868 | case "(($ac_try" in |
| 4869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4870 | *) ac_try_echo=$ac_try;; |
| 4871 | esac |
| 4872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4873 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4874 | ac_status=$? |
| 4875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4876 | rm -f conftest.er1 |
| 4877 | cat conftest.err >&5 |
| 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); } >/dev/null; then |
| 4880 | if test -s conftest.err; then |
| 4881 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4883 | else |
| 4884 | ac_cpp_err= |
| 4885 | fi |
| 4886 | else |
| 4887 | ac_cpp_err=yes |
| 4888 | fi |
| 4889 | if test -z "$ac_cpp_err"; then |
| 4890 | # Broken: success on invalid input. |
| 4891 | continue |
| 4892 | else |
| 4893 | echo "$as_me: failed program was:" >&5 |
| 4894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4895 | |
| 4896 | # Passes both tests. |
| 4897 | ac_preproc_ok=: |
| 4898 | break |
| 4899 | fi |
| 4900 | |
| 4901 | rm -f conftest.err conftest.$ac_ext |
| 4902 | |
| 4903 | done |
| 4904 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4905 | rm -f conftest.err conftest.$ac_ext |
| 4906 | if $ac_preproc_ok; then |
| 4907 | break |
| 4908 | fi |
| 4909 | |
| 4910 | done |
| 4911 | ac_cv_prog_CPP=$CPP |
| 4912 | |
| 4913 | fi |
| 4914 | CPP=$ac_cv_prog_CPP |
| 4915 | else |
| 4916 | ac_cv_prog_CPP=$CPP |
| 4917 | fi |
| 4918 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4919 | echo "${ECHO_T}$CPP" >&6; } |
| 4920 | ac_preproc_ok=false |
| 4921 | for ac_c_preproc_warn_flag in '' yes |
| 4922 | do |
| 4923 | # Use a header file that comes with gcc, so configuring glibc |
| 4924 | # with a fresh cross-compiler works. |
| 4925 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4926 | # <limits.h> exists even on freestanding compilers. |
| 4927 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4928 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4929 | cat >conftest.$ac_ext <<_ACEOF |
| 4930 | /* confdefs.h. */ |
| 4931 | _ACEOF |
| 4932 | cat confdefs.h >>conftest.$ac_ext |
| 4933 | cat >>conftest.$ac_ext <<_ACEOF |
| 4934 | /* end confdefs.h. */ |
| 4935 | #ifdef __STDC__ |
| 4936 | # include <limits.h> |
| 4937 | #else |
| 4938 | # include <assert.h> |
| 4939 | #endif |
| 4940 | Syntax error |
| 4941 | _ACEOF |
| 4942 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4943 | case "(($ac_try" in |
| 4944 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4945 | *) ac_try_echo=$ac_try;; |
| 4946 | esac |
| 4947 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4948 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4949 | ac_status=$? |
| 4950 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4951 | rm -f conftest.er1 |
| 4952 | cat conftest.err >&5 |
| 4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4954 | (exit $ac_status); } >/dev/null; then |
| 4955 | if test -s conftest.err; then |
| 4956 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4957 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4958 | else |
| 4959 | ac_cpp_err= |
| 4960 | fi |
| 4961 | else |
| 4962 | ac_cpp_err=yes |
| 4963 | fi |
| 4964 | if test -z "$ac_cpp_err"; then |
| 4965 | : |
| 4966 | else |
| 4967 | echo "$as_me: failed program was:" >&5 |
| 4968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4969 | |
| 4970 | # Broken: fails on valid input. |
| 4971 | continue |
| 4972 | fi |
| 4973 | |
| 4974 | rm -f conftest.err conftest.$ac_ext |
| 4975 | |
| 4976 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4977 | # can be detected and how. |
| 4978 | cat >conftest.$ac_ext <<_ACEOF |
| 4979 | /* confdefs.h. */ |
| 4980 | _ACEOF |
| 4981 | cat confdefs.h >>conftest.$ac_ext |
| 4982 | cat >>conftest.$ac_ext <<_ACEOF |
| 4983 | /* end confdefs.h. */ |
| 4984 | #include <ac_nonexistent.h> |
| 4985 | _ACEOF |
| 4986 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4987 | case "(($ac_try" in |
| 4988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4989 | *) ac_try_echo=$ac_try;; |
| 4990 | esac |
| 4991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4992 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4993 | ac_status=$? |
| 4994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4995 | rm -f conftest.er1 |
| 4996 | cat conftest.err >&5 |
| 4997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); } >/dev/null; then |
| 4999 | if test -s conftest.err; then |
| 5000 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5001 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5002 | else |
| 5003 | ac_cpp_err= |
| 5004 | fi |
| 5005 | else |
| 5006 | ac_cpp_err=yes |
| 5007 | fi |
| 5008 | if test -z "$ac_cpp_err"; then |
| 5009 | # Broken: success on invalid input. |
| 5010 | continue |
| 5011 | else |
| 5012 | echo "$as_me: failed program was:" >&5 |
| 5013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5014 | |
| 5015 | # Passes both tests. |
| 5016 | ac_preproc_ok=: |
| 5017 | break |
| 5018 | fi |
| 5019 | |
| 5020 | rm -f conftest.err conftest.$ac_ext |
| 5021 | |
| 5022 | done |
| 5023 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5024 | rm -f conftest.err conftest.$ac_ext |
| 5025 | if $ac_preproc_ok; then |
| 5026 | : |
| 5027 | else |
| 5028 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5029 | See \`config.log' for more details." >&5 |
| 5030 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5031 | See \`config.log' for more details." >&2;} |
| 5032 | { (exit 1); exit 1; }; } |
| 5033 | fi |
| 5034 | |
| 5035 | ac_ext=c |
| 5036 | ac_cpp='$CPP $CPPFLAGS' |
| 5037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5040 | |
| 5041 | ac_ext=c |
| 5042 | ac_cpp='$CPP $CPPFLAGS' |
| 5043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5046 | if test -n "$ac_tool_prefix"; then |
| 5047 | for ac_prog in gcc |
| 5048 | do |
| 5049 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5050 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5053 | if test "${ac_cv_prog_CC+set}" = set; then |
| 5054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5055 | else |
| 5056 | if test -n "$CC"; then |
| 5057 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5058 | else |
| 5059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5060 | for as_dir in $PATH |
| 5061 | do |
| 5062 | IFS=$as_save_IFS |
| 5063 | test -z "$as_dir" && as_dir=. |
| 5064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5066 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5068 | break 2 |
| 5069 | fi |
| 5070 | done |
| 5071 | done |
| 5072 | IFS=$as_save_IFS |
| 5073 | |
| 5074 | fi |
| 5075 | fi |
| 5076 | CC=$ac_cv_prog_CC |
| 5077 | if test -n "$CC"; then |
| 5078 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5079 | echo "${ECHO_T}$CC" >&6; } |
| 5080 | else |
| 5081 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5082 | echo "${ECHO_T}no" >&6; } |
| 5083 | fi |
| 5084 | |
| 5085 | |
| 5086 | test -n "$CC" && break |
| 5087 | done |
| 5088 | fi |
| 5089 | if test -z "$CC"; then |
| 5090 | ac_ct_CC=$CC |
| 5091 | for ac_prog in gcc |
| 5092 | do |
| 5093 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5094 | set dummy $ac_prog; ac_word=$2 |
| 5095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5097 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5099 | else |
| 5100 | if test -n "$ac_ct_CC"; then |
| 5101 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5102 | else |
| 5103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5104 | for as_dir in $PATH |
| 5105 | do |
| 5106 | IFS=$as_save_IFS |
| 5107 | test -z "$as_dir" && as_dir=. |
| 5108 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5110 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5112 | break 2 |
| 5113 | fi |
| 5114 | done |
| 5115 | done |
| 5116 | IFS=$as_save_IFS |
| 5117 | |
| 5118 | fi |
| 5119 | fi |
| 5120 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5121 | if test -n "$ac_ct_CC"; then |
| 5122 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5123 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5124 | else |
| 5125 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5126 | echo "${ECHO_T}no" >&6; } |
| 5127 | fi |
| 5128 | |
| 5129 | |
| 5130 | test -n "$ac_ct_CC" && break |
| 5131 | done |
| 5132 | |
| 5133 | if test "x$ac_ct_CC" = x; then |
| 5134 | CC="" |
| 5135 | else |
| 5136 | case $cross_compiling:$ac_tool_warned in |
| 5137 | yes:) |
| 5138 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5139 | whose name does not start with the host triplet. If you think this |
| 5140 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5141 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5142 | whose name does not start with the host triplet. If you think this |
| 5143 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5144 | ac_tool_warned=yes ;; |
| 5145 | esac |
| 5146 | CC=$ac_ct_CC |
| 5147 | fi |
| 5148 | fi |
| 5149 | |
| 5150 | |
| 5151 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5152 | See \`config.log' for more details." >&5 |
| 5153 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5154 | See \`config.log' for more details." >&2;} |
| 5155 | { (exit 1); exit 1; }; } |
| 5156 | |
| 5157 | # Provide some information about the compiler. |
| 5158 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5159 | ac_compiler=`set X $ac_compile; echo $2` |
| 5160 | { (ac_try="$ac_compiler --version >&5" |
| 5161 | case "(($ac_try" in |
| 5162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5163 | *) ac_try_echo=$ac_try;; |
| 5164 | esac |
| 5165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5166 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5167 | ac_status=$? |
| 5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5169 | (exit $ac_status); } |
| 5170 | { (ac_try="$ac_compiler -v >&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 -v >&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 | |
| 5191 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5192 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5193 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5195 | else |
| 5196 | cat >conftest.$ac_ext <<_ACEOF |
| 5197 | /* confdefs.h. */ |
| 5198 | _ACEOF |
| 5199 | cat confdefs.h >>conftest.$ac_ext |
| 5200 | cat >>conftest.$ac_ext <<_ACEOF |
| 5201 | /* end confdefs.h. */ |
| 5202 | |
| 5203 | int |
| 5204 | main () |
| 5205 | { |
| 5206 | #ifndef __GNUC__ |
| 5207 | choke me |
| 5208 | #endif |
| 5209 | |
| 5210 | ; |
| 5211 | return 0; |
| 5212 | } |
| 5213 | _ACEOF |
| 5214 | rm -f conftest.$ac_objext |
| 5215 | if { (ac_try="$ac_compile" |
| 5216 | case "(($ac_try" in |
| 5217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5218 | *) ac_try_echo=$ac_try;; |
| 5219 | esac |
| 5220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5221 | (eval "$ac_compile") 2>conftest.er1 |
| 5222 | ac_status=$? |
| 5223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5224 | rm -f conftest.er1 |
| 5225 | cat conftest.err >&5 |
| 5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5227 | (exit $ac_status); } && |
| 5228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5229 | { (case "(($ac_try" in |
| 5230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5231 | *) ac_try_echo=$ac_try;; |
| 5232 | esac |
| 5233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5234 | (eval "$ac_try") 2>&5 |
| 5235 | ac_status=$? |
| 5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5237 | (exit $ac_status); }; } && |
| 5238 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5248 | ac_compiler_gnu=yes |
| 5249 | else |
| 5250 | echo "$as_me: failed program was:" >&5 |
| 5251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5252 | |
| 5253 | ac_compiler_gnu=no |
| 5254 | fi |
| 5255 | |
| 5256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5257 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5258 | |
| 5259 | fi |
| 5260 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5261 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5262 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5263 | ac_test_CFLAGS=${CFLAGS+set} |
| 5264 | ac_save_CFLAGS=$CFLAGS |
| 5265 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5266 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5267 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5269 | else |
| 5270 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5271 | ac_c_werror_flag=yes |
| 5272 | ac_cv_prog_cc_g=no |
| 5273 | CFLAGS="-g" |
| 5274 | cat >conftest.$ac_ext <<_ACEOF |
| 5275 | /* confdefs.h. */ |
| 5276 | _ACEOF |
| 5277 | cat confdefs.h >>conftest.$ac_ext |
| 5278 | cat >>conftest.$ac_ext <<_ACEOF |
| 5279 | /* end confdefs.h. */ |
| 5280 | |
| 5281 | int |
| 5282 | main () |
| 5283 | { |
| 5284 | |
| 5285 | ; |
| 5286 | return 0; |
| 5287 | } |
| 5288 | _ACEOF |
| 5289 | rm -f conftest.$ac_objext |
| 5290 | if { (ac_try="$ac_compile" |
| 5291 | case "(($ac_try" in |
| 5292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5293 | *) ac_try_echo=$ac_try;; |
| 5294 | esac |
| 5295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5296 | (eval "$ac_compile") 2>conftest.er1 |
| 5297 | ac_status=$? |
| 5298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5299 | rm -f conftest.er1 |
| 5300 | cat conftest.err >&5 |
| 5301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5302 | (exit $ac_status); } && |
| 5303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5304 | { (case "(($ac_try" in |
| 5305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5306 | *) ac_try_echo=$ac_try;; |
| 5307 | esac |
| 5308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5309 | (eval "$ac_try") 2>&5 |
| 5310 | ac_status=$? |
| 5311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5312 | (exit $ac_status); }; } && |
| 5313 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5323 | ac_cv_prog_cc_g=yes |
| 5324 | else |
| 5325 | echo "$as_me: failed program was:" >&5 |
| 5326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5327 | |
| 5328 | CFLAGS="" |
| 5329 | cat >conftest.$ac_ext <<_ACEOF |
| 5330 | /* confdefs.h. */ |
| 5331 | _ACEOF |
| 5332 | cat confdefs.h >>conftest.$ac_ext |
| 5333 | cat >>conftest.$ac_ext <<_ACEOF |
| 5334 | /* end confdefs.h. */ |
| 5335 | |
| 5336 | int |
| 5337 | main () |
| 5338 | { |
| 5339 | |
| 5340 | ; |
| 5341 | return 0; |
| 5342 | } |
| 5343 | _ACEOF |
| 5344 | rm -f conftest.$ac_objext |
| 5345 | if { (ac_try="$ac_compile" |
| 5346 | case "(($ac_try" in |
| 5347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5348 | *) ac_try_echo=$ac_try;; |
| 5349 | esac |
| 5350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5351 | (eval "$ac_compile") 2>conftest.er1 |
| 5352 | ac_status=$? |
| 5353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5354 | rm -f conftest.er1 |
| 5355 | cat conftest.err >&5 |
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); } && |
| 5358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5359 | { (case "(($ac_try" in |
| 5360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5361 | *) ac_try_echo=$ac_try;; |
| 5362 | esac |
| 5363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5364 | (eval "$ac_try") 2>&5 |
| 5365 | ac_status=$? |
| 5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5367 | (exit $ac_status); }; } && |
| 5368 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5378 | : |
| 5379 | else |
| 5380 | echo "$as_me: failed program was:" >&5 |
| 5381 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5382 | |
| 5383 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5384 | CFLAGS="-g" |
| 5385 | cat >conftest.$ac_ext <<_ACEOF |
| 5386 | /* confdefs.h. */ |
| 5387 | _ACEOF |
| 5388 | cat confdefs.h >>conftest.$ac_ext |
| 5389 | cat >>conftest.$ac_ext <<_ACEOF |
| 5390 | /* end confdefs.h. */ |
| 5391 | |
| 5392 | int |
| 5393 | main () |
| 5394 | { |
| 5395 | |
| 5396 | ; |
| 5397 | return 0; |
| 5398 | } |
| 5399 | _ACEOF |
| 5400 | rm -f conftest.$ac_objext |
| 5401 | if { (ac_try="$ac_compile" |
| 5402 | case "(($ac_try" in |
| 5403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5404 | *) ac_try_echo=$ac_try;; |
| 5405 | esac |
| 5406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5407 | (eval "$ac_compile") 2>conftest.er1 |
| 5408 | ac_status=$? |
| 5409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5410 | rm -f conftest.er1 |
| 5411 | cat conftest.err >&5 |
| 5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5413 | (exit $ac_status); } && |
| 5414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5415 | { (case "(($ac_try" in |
| 5416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5417 | *) ac_try_echo=$ac_try;; |
| 5418 | esac |
| 5419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5420 | (eval "$ac_try") 2>&5 |
| 5421 | ac_status=$? |
| 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5423 | (exit $ac_status); }; } && |
| 5424 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5434 | ac_cv_prog_cc_g=yes |
| 5435 | else |
| 5436 | echo "$as_me: failed program was:" >&5 |
| 5437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5438 | |
| 5439 | |
| 5440 | fi |
| 5441 | |
| 5442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5443 | fi |
| 5444 | |
| 5445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5446 | fi |
| 5447 | |
| 5448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5449 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5450 | fi |
| 5451 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5452 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5453 | if test "$ac_test_CFLAGS" = set; then |
| 5454 | CFLAGS=$ac_save_CFLAGS |
| 5455 | elif test $ac_cv_prog_cc_g = yes; then |
| 5456 | if test "$GCC" = yes; then |
| 5457 | CFLAGS="-g -O2" |
| 5458 | else |
| 5459 | CFLAGS="-g" |
| 5460 | fi |
| 5461 | else |
| 5462 | if test "$GCC" = yes; then |
| 5463 | CFLAGS="-O2" |
| 5464 | else |
| 5465 | CFLAGS= |
| 5466 | fi |
| 5467 | fi |
| 5468 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5469 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5470 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5472 | else |
| 5473 | ac_cv_prog_cc_c89=no |
| 5474 | ac_save_CC=$CC |
| 5475 | cat >conftest.$ac_ext <<_ACEOF |
| 5476 | /* confdefs.h. */ |
| 5477 | _ACEOF |
| 5478 | cat confdefs.h >>conftest.$ac_ext |
| 5479 | cat >>conftest.$ac_ext <<_ACEOF |
| 5480 | /* end confdefs.h. */ |
| 5481 | #include <stdarg.h> |
| 5482 | #include <stdio.h> |
| 5483 | #include <sys/types.h> |
| 5484 | #include <sys/stat.h> |
| 5485 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5486 | struct buf { int x; }; |
| 5487 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5488 | static char *e (p, i) |
| 5489 | char **p; |
| 5490 | int i; |
| 5491 | { |
| 5492 | return p[i]; |
| 5493 | } |
| 5494 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5495 | { |
| 5496 | char *s; |
| 5497 | va_list v; |
| 5498 | va_start (v,p); |
| 5499 | s = g (p, va_arg (v,int)); |
| 5500 | va_end (v); |
| 5501 | return s; |
| 5502 | } |
| 5503 | |
| 5504 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5505 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5506 | These don't provoke an error unfortunately, instead are silently treated |
| 5507 | as 'x'. The following induces an error, until -std is added to get |
| 5508 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5509 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5510 | that's true only with -std. */ |
| 5511 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5512 | |
| 5513 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5514 | inside strings and character constants. */ |
| 5515 | #define FOO(x) 'x' |
| 5516 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5517 | |
| 5518 | int test (int i, double x); |
| 5519 | struct s1 {int (*f) (int a);}; |
| 5520 | struct s2 {int (*f) (double a);}; |
| 5521 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5522 | int argc; |
| 5523 | char **argv; |
| 5524 | int |
| 5525 | main () |
| 5526 | { |
| 5527 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5528 | ; |
| 5529 | return 0; |
| 5530 | } |
| 5531 | _ACEOF |
| 5532 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5533 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5534 | do |
| 5535 | CC="$ac_save_CC $ac_arg" |
| 5536 | rm -f conftest.$ac_objext |
| 5537 | if { (ac_try="$ac_compile" |
| 5538 | case "(($ac_try" in |
| 5539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5540 | *) ac_try_echo=$ac_try;; |
| 5541 | esac |
| 5542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5543 | (eval "$ac_compile") 2>conftest.er1 |
| 5544 | ac_status=$? |
| 5545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5546 | rm -f conftest.er1 |
| 5547 | cat conftest.err >&5 |
| 5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5549 | (exit $ac_status); } && |
| 5550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5551 | { (case "(($ac_try" in |
| 5552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5553 | *) ac_try_echo=$ac_try;; |
| 5554 | esac |
| 5555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5556 | (eval "$ac_try") 2>&5 |
| 5557 | ac_status=$? |
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5559 | (exit $ac_status); }; } && |
| 5560 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5570 | ac_cv_prog_cc_c89=$ac_arg |
| 5571 | else |
| 5572 | echo "$as_me: failed program was:" >&5 |
| 5573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5574 | |
| 5575 | |
| 5576 | fi |
| 5577 | |
| 5578 | rm -f core conftest.err conftest.$ac_objext |
| 5579 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5580 | done |
| 5581 | rm -f conftest.$ac_ext |
| 5582 | CC=$ac_save_CC |
| 5583 | |
| 5584 | fi |
| 5585 | # AC_CACHE_VAL |
| 5586 | case "x$ac_cv_prog_cc_c89" in |
| 5587 | x) |
| 5588 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5589 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5590 | xno) |
| 5591 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5592 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5593 | *) |
| 5594 | CC="$CC $ac_cv_prog_cc_c89" |
| 5595 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5596 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5597 | esac |
| 5598 | |
| 5599 | |
| 5600 | ac_ext=c |
| 5601 | ac_cpp='$CPP $CPPFLAGS' |
| 5602 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5603 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5604 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5605 | |
| 5606 | ac_ext=cpp |
| 5607 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5611 | if test -z "$CXX"; then |
| 5612 | if test -n "$CCC"; then |
| 5613 | CXX=$CCC |
| 5614 | else |
| 5615 | if test -n "$ac_tool_prefix"; then |
| 5616 | for ac_prog in g++ |
| 5617 | do |
| 5618 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5619 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5622 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5624 | else |
| 5625 | if test -n "$CXX"; then |
| 5626 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5627 | else |
| 5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5629 | for as_dir in $PATH |
| 5630 | do |
| 5631 | IFS=$as_save_IFS |
| 5632 | test -z "$as_dir" && as_dir=. |
| 5633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5635 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5637 | break 2 |
| 5638 | fi |
| 5639 | done |
| 5640 | done |
| 5641 | IFS=$as_save_IFS |
| 5642 | |
| 5643 | fi |
| 5644 | fi |
| 5645 | CXX=$ac_cv_prog_CXX |
| 5646 | if test -n "$CXX"; then |
| 5647 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5648 | echo "${ECHO_T}$CXX" >&6; } |
| 5649 | else |
| 5650 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5651 | echo "${ECHO_T}no" >&6; } |
| 5652 | fi |
| 5653 | |
| 5654 | |
| 5655 | test -n "$CXX" && break |
| 5656 | done |
| 5657 | fi |
| 5658 | if test -z "$CXX"; then |
| 5659 | ac_ct_CXX=$CXX |
| 5660 | for ac_prog in g++ |
| 5661 | do |
| 5662 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5663 | set dummy $ac_prog; ac_word=$2 |
| 5664 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5666 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5668 | else |
| 5669 | if test -n "$ac_ct_CXX"; then |
| 5670 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5671 | else |
| 5672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5673 | for as_dir in $PATH |
| 5674 | do |
| 5675 | IFS=$as_save_IFS |
| 5676 | test -z "$as_dir" && as_dir=. |
| 5677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5679 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5681 | break 2 |
| 5682 | fi |
| 5683 | done |
| 5684 | done |
| 5685 | IFS=$as_save_IFS |
| 5686 | |
| 5687 | fi |
| 5688 | fi |
| 5689 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5690 | if test -n "$ac_ct_CXX"; then |
| 5691 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5692 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5693 | else |
| 5694 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5695 | echo "${ECHO_T}no" >&6; } |
| 5696 | fi |
| 5697 | |
| 5698 | |
| 5699 | test -n "$ac_ct_CXX" && break |
| 5700 | done |
| 5701 | |
| 5702 | if test "x$ac_ct_CXX" = x; then |
| 5703 | CXX="g++" |
| 5704 | else |
| 5705 | case $cross_compiling:$ac_tool_warned in |
| 5706 | yes:) |
| 5707 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5708 | whose name does not start with the host triplet. If you think this |
| 5709 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5710 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5711 | whose name does not start with the host triplet. If you think this |
| 5712 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5713 | ac_tool_warned=yes ;; |
| 5714 | esac |
| 5715 | CXX=$ac_ct_CXX |
| 5716 | fi |
| 5717 | fi |
| 5718 | |
| 5719 | fi |
| 5720 | fi |
| 5721 | # Provide some information about the compiler. |
| 5722 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5723 | ac_compiler=`set X $ac_compile; echo $2` |
| 5724 | { (ac_try="$ac_compiler --version >&5" |
| 5725 | case "(($ac_try" in |
| 5726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5727 | *) ac_try_echo=$ac_try;; |
| 5728 | esac |
| 5729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5730 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5731 | ac_status=$? |
| 5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5733 | (exit $ac_status); } |
| 5734 | { (ac_try="$ac_compiler -v >&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 -v >&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 | |
| 5755 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5756 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5757 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5759 | else |
| 5760 | cat >conftest.$ac_ext <<_ACEOF |
| 5761 | /* confdefs.h. */ |
| 5762 | _ACEOF |
| 5763 | cat confdefs.h >>conftest.$ac_ext |
| 5764 | cat >>conftest.$ac_ext <<_ACEOF |
| 5765 | /* end confdefs.h. */ |
| 5766 | |
| 5767 | int |
| 5768 | main () |
| 5769 | { |
| 5770 | #ifndef __GNUC__ |
| 5771 | choke me |
| 5772 | #endif |
| 5773 | |
| 5774 | ; |
| 5775 | return 0; |
| 5776 | } |
| 5777 | _ACEOF |
| 5778 | rm -f conftest.$ac_objext |
| 5779 | if { (ac_try="$ac_compile" |
| 5780 | case "(($ac_try" in |
| 5781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5782 | *) ac_try_echo=$ac_try;; |
| 5783 | esac |
| 5784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5785 | (eval "$ac_compile") 2>conftest.er1 |
| 5786 | ac_status=$? |
| 5787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5788 | rm -f conftest.er1 |
| 5789 | cat conftest.err >&5 |
| 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5791 | (exit $ac_status); } && |
| 5792 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5793 | { (case "(($ac_try" in |
| 5794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5795 | *) ac_try_echo=$ac_try;; |
| 5796 | esac |
| 5797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5798 | (eval "$ac_try") 2>&5 |
| 5799 | ac_status=$? |
| 5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5801 | (exit $ac_status); }; } && |
| 5802 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5812 | ac_compiler_gnu=yes |
| 5813 | else |
| 5814 | echo "$as_me: failed program was:" >&5 |
| 5815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5816 | |
| 5817 | ac_compiler_gnu=no |
| 5818 | fi |
| 5819 | |
| 5820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5821 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5822 | |
| 5823 | fi |
| 5824 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5825 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5826 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5827 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5828 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5829 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5830 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5831 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5833 | else |
| 5834 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5835 | ac_cxx_werror_flag=yes |
| 5836 | ac_cv_prog_cxx_g=no |
| 5837 | CXXFLAGS="-g" |
| 5838 | cat >conftest.$ac_ext <<_ACEOF |
| 5839 | /* confdefs.h. */ |
| 5840 | _ACEOF |
| 5841 | cat confdefs.h >>conftest.$ac_ext |
| 5842 | cat >>conftest.$ac_ext <<_ACEOF |
| 5843 | /* end confdefs.h. */ |
| 5844 | |
| 5845 | int |
| 5846 | main () |
| 5847 | { |
| 5848 | |
| 5849 | ; |
| 5850 | return 0; |
| 5851 | } |
| 5852 | _ACEOF |
| 5853 | rm -f conftest.$ac_objext |
| 5854 | if { (ac_try="$ac_compile" |
| 5855 | case "(($ac_try" in |
| 5856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5857 | *) ac_try_echo=$ac_try;; |
| 5858 | esac |
| 5859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5860 | (eval "$ac_compile") 2>conftest.er1 |
| 5861 | ac_status=$? |
| 5862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5863 | rm -f conftest.er1 |
| 5864 | cat conftest.err >&5 |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5866 | (exit $ac_status); } && |
| 5867 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5868 | { (case "(($ac_try" in |
| 5869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5870 | *) ac_try_echo=$ac_try;; |
| 5871 | esac |
| 5872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5873 | (eval "$ac_try") 2>&5 |
| 5874 | ac_status=$? |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); }; } && |
| 5877 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5887 | ac_cv_prog_cxx_g=yes |
| 5888 | else |
| 5889 | echo "$as_me: failed program was:" >&5 |
| 5890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5891 | |
| 5892 | CXXFLAGS="" |
| 5893 | cat >conftest.$ac_ext <<_ACEOF |
| 5894 | /* confdefs.h. */ |
| 5895 | _ACEOF |
| 5896 | cat confdefs.h >>conftest.$ac_ext |
| 5897 | cat >>conftest.$ac_ext <<_ACEOF |
| 5898 | /* end confdefs.h. */ |
| 5899 | |
| 5900 | int |
| 5901 | main () |
| 5902 | { |
| 5903 | |
| 5904 | ; |
| 5905 | return 0; |
| 5906 | } |
| 5907 | _ACEOF |
| 5908 | rm -f conftest.$ac_objext |
| 5909 | if { (ac_try="$ac_compile" |
| 5910 | case "(($ac_try" in |
| 5911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5912 | *) ac_try_echo=$ac_try;; |
| 5913 | esac |
| 5914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5915 | (eval "$ac_compile") 2>conftest.er1 |
| 5916 | ac_status=$? |
| 5917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5918 | rm -f conftest.er1 |
| 5919 | cat conftest.err >&5 |
| 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5921 | (exit $ac_status); } && |
| 5922 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5923 | { (case "(($ac_try" in |
| 5924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5925 | *) ac_try_echo=$ac_try;; |
| 5926 | esac |
| 5927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5928 | (eval "$ac_try") 2>&5 |
| 5929 | ac_status=$? |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5931 | (exit $ac_status); }; } && |
| 5932 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5942 | : |
| 5943 | else |
| 5944 | echo "$as_me: failed program was:" >&5 |
| 5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5946 | |
| 5947 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5948 | CXXFLAGS="-g" |
| 5949 | cat >conftest.$ac_ext <<_ACEOF |
| 5950 | /* confdefs.h. */ |
| 5951 | _ACEOF |
| 5952 | cat confdefs.h >>conftest.$ac_ext |
| 5953 | cat >>conftest.$ac_ext <<_ACEOF |
| 5954 | /* end confdefs.h. */ |
| 5955 | |
| 5956 | int |
| 5957 | main () |
| 5958 | { |
| 5959 | |
| 5960 | ; |
| 5961 | return 0; |
| 5962 | } |
| 5963 | _ACEOF |
| 5964 | rm -f conftest.$ac_objext |
| 5965 | if { (ac_try="$ac_compile" |
| 5966 | case "(($ac_try" in |
| 5967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5968 | *) ac_try_echo=$ac_try;; |
| 5969 | esac |
| 5970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5971 | (eval "$ac_compile") 2>conftest.er1 |
| 5972 | ac_status=$? |
| 5973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5974 | rm -f conftest.er1 |
| 5975 | cat conftest.err >&5 |
| 5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5977 | (exit $ac_status); } && |
| 5978 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 5979 | { (case "(($ac_try" in |
| 5980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5981 | *) ac_try_echo=$ac_try;; |
| 5982 | esac |
| 5983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5984 | (eval "$ac_try") 2>&5 |
| 5985 | ac_status=$? |
| 5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5987 | (exit $ac_status); }; } && |
| 5988 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 5998 | ac_cv_prog_cxx_g=yes |
| 5999 | else |
| 6000 | echo "$as_me: failed program was:" >&5 |
| 6001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6002 | |
| 6003 | |
| 6004 | fi |
| 6005 | |
| 6006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6007 | fi |
| 6008 | |
| 6009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6010 | fi |
| 6011 | |
| 6012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6013 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6014 | fi |
| 6015 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 6016 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 6017 | if test "$ac_test_CXXFLAGS" = set; then |
| 6018 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6019 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6020 | if test "$GXX" = yes; then |
| 6021 | CXXFLAGS="-g -O2" |
| 6022 | else |
| 6023 | CXXFLAGS="-g" |
| 6024 | fi |
| 6025 | else |
| 6026 | if test "$GXX" = yes; then |
| 6027 | CXXFLAGS="-O2" |
| 6028 | else |
| 6029 | CXXFLAGS= |
| 6030 | fi |
| 6031 | fi |
| 6032 | ac_ext=c |
| 6033 | ac_cpp='$CPP $CPPFLAGS' |
| 6034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6037 | |
| 6038 | { echo "$as_me:$LINENO: checking " >&5 |
| 6039 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6040 | if test "${ac_cv_has_flex+set}" = set; then |
| 6041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6042 | else |
| 6043 | for ac_prog in flex lex |
| 6044 | do |
| 6045 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6046 | set dummy $ac_prog; ac_word=$2 |
| 6047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6049 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 6050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6051 | else |
| 6052 | if test -n "$LEX"; then |
| 6053 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 6054 | else |
| 6055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6056 | for as_dir in $PATH |
| 6057 | do |
| 6058 | IFS=$as_save_IFS |
| 6059 | test -z "$as_dir" && as_dir=. |
| 6060 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6061 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6062 | ac_cv_prog_LEX="$ac_prog" |
| 6063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6064 | break 2 |
| 6065 | fi |
| 6066 | done |
| 6067 | done |
| 6068 | IFS=$as_save_IFS |
| 6069 | |
| 6070 | fi |
| 6071 | fi |
| 6072 | LEX=$ac_cv_prog_LEX |
| 6073 | if test -n "$LEX"; then |
| 6074 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 6075 | echo "${ECHO_T}$LEX" >&6; } |
| 6076 | else |
| 6077 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6078 | echo "${ECHO_T}no" >&6; } |
| 6079 | fi |
| 6080 | |
| 6081 | |
| 6082 | test -n "$LEX" && break |
| 6083 | done |
| 6084 | test -n "$LEX" || LEX=":" |
| 6085 | |
| 6086 | if test -z "$LEXLIB" |
| 6087 | then |
| 6088 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 6089 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } |
| 6090 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6092 | else |
| 6093 | ac_check_lib_save_LIBS=$LIBS |
| 6094 | LIBS="-lfl $LIBS" |
| 6095 | cat >conftest.$ac_ext <<_ACEOF |
| 6096 | /* confdefs.h. */ |
| 6097 | _ACEOF |
| 6098 | cat confdefs.h >>conftest.$ac_ext |
| 6099 | cat >>conftest.$ac_ext <<_ACEOF |
| 6100 | /* end confdefs.h. */ |
| 6101 | |
| 6102 | /* Override any GCC internal prototype to avoid an error. |
| 6103 | Use char because int might match the return type of a GCC |
| 6104 | builtin and then its argument prototype would still apply. */ |
| 6105 | #ifdef __cplusplus |
| 6106 | extern "C" |
| 6107 | #endif |
| 6108 | char yywrap (); |
| 6109 | int |
| 6110 | main () |
| 6111 | { |
| 6112 | return yywrap (); |
| 6113 | ; |
| 6114 | return 0; |
| 6115 | } |
| 6116 | _ACEOF |
| 6117 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6118 | if { (ac_try="$ac_link" |
| 6119 | case "(($ac_try" in |
| 6120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6121 | *) ac_try_echo=$ac_try;; |
| 6122 | esac |
| 6123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6124 | (eval "$ac_link") 2>conftest.er1 |
| 6125 | ac_status=$? |
| 6126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6127 | rm -f conftest.er1 |
| 6128 | cat conftest.err >&5 |
| 6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6130 | (exit $ac_status); } && |
| 6131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6132 | { (case "(($ac_try" in |
| 6133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6134 | *) ac_try_echo=$ac_try;; |
| 6135 | esac |
| 6136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6137 | (eval "$ac_try") 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); }; } && |
| 6141 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 6151 | ac_cv_lib_fl_yywrap=yes |
| 6152 | else |
| 6153 | echo "$as_me: failed program was:" >&5 |
| 6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6155 | |
| 6156 | ac_cv_lib_fl_yywrap=no |
| 6157 | fi |
| 6158 | |
| 6159 | rm -f core conftest.err conftest.$ac_objext \ |
| 6160 | conftest$ac_exeext conftest.$ac_ext |
| 6161 | LIBS=$ac_check_lib_save_LIBS |
| 6162 | fi |
| 6163 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 6164 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } |
| 6165 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 6166 | LEXLIB="-lfl" |
| 6167 | else |
| 6168 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 6169 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } |
| 6170 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 6171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6172 | else |
| 6173 | ac_check_lib_save_LIBS=$LIBS |
| 6174 | LIBS="-ll $LIBS" |
| 6175 | cat >conftest.$ac_ext <<_ACEOF |
| 6176 | /* confdefs.h. */ |
| 6177 | _ACEOF |
| 6178 | cat confdefs.h >>conftest.$ac_ext |
| 6179 | cat >>conftest.$ac_ext <<_ACEOF |
| 6180 | /* end confdefs.h. */ |
| 6181 | |
| 6182 | /* Override any GCC internal prototype to avoid an error. |
| 6183 | Use char because int might match the return type of a GCC |
| 6184 | builtin and then its argument prototype would still apply. */ |
| 6185 | #ifdef __cplusplus |
| 6186 | extern "C" |
| 6187 | #endif |
| 6188 | char yywrap (); |
| 6189 | int |
| 6190 | main () |
| 6191 | { |
| 6192 | return yywrap (); |
| 6193 | ; |
| 6194 | return 0; |
| 6195 | } |
| 6196 | _ACEOF |
| 6197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6198 | if { (ac_try="$ac_link" |
| 6199 | case "(($ac_try" in |
| 6200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6201 | *) ac_try_echo=$ac_try;; |
| 6202 | esac |
| 6203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6204 | (eval "$ac_link") 2>conftest.er1 |
| 6205 | ac_status=$? |
| 6206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6207 | rm -f conftest.er1 |
| 6208 | cat conftest.err >&5 |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); } && |
| 6211 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6212 | { (case "(($ac_try" in |
| 6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6214 | *) ac_try_echo=$ac_try;; |
| 6215 | esac |
| 6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6217 | (eval "$ac_try") 2>&5 |
| 6218 | ac_status=$? |
| 6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6220 | (exit $ac_status); }; } && |
| 6221 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 6231 | ac_cv_lib_l_yywrap=yes |
| 6232 | else |
| 6233 | echo "$as_me: failed program was:" >&5 |
| 6234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6235 | |
| 6236 | ac_cv_lib_l_yywrap=no |
| 6237 | fi |
| 6238 | |
| 6239 | rm -f core conftest.err conftest.$ac_objext \ |
| 6240 | conftest$ac_exeext conftest.$ac_ext |
| 6241 | LIBS=$ac_check_lib_save_LIBS |
| 6242 | fi |
| 6243 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 6244 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } |
| 6245 | if test $ac_cv_lib_l_yywrap = yes; then |
| 6246 | LEXLIB="-ll" |
| 6247 | fi |
| 6248 | |
| 6249 | fi |
| 6250 | |
| 6251 | fi |
| 6252 | |
| 6253 | if test "x$LEX" != "x:"; then |
| 6254 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 6255 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 6256 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6258 | else |
| 6259 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 6260 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 6261 | cat >conftest.l <<_ACEOF |
| 6262 | %% |
| 6263 | %% |
| 6264 | _ACEOF |
| 6265 | { (ac_try="$LEX conftest.l" |
| 6266 | case "(($ac_try" in |
| 6267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6268 | *) ac_try_echo=$ac_try;; |
| 6269 | esac |
| 6270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6271 | (eval "$LEX conftest.l") 2>&5 |
| 6272 | ac_status=$? |
| 6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6274 | (exit $ac_status); } |
| 6275 | if test -f lex.yy.c; then |
| 6276 | ac_cv_prog_lex_root=lex.yy |
| 6277 | elif test -f lexyy.c; then |
| 6278 | ac_cv_prog_lex_root=lexyy |
| 6279 | else |
| 6280 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 6281 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 6282 | { (exit 1); exit 1; }; } |
| 6283 | fi |
| 6284 | fi |
| 6285 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 6286 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
| 6287 | rm -f conftest.l |
| 6288 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 6289 | |
| 6290 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 6291 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 6292 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 6293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6294 | else |
| 6295 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 6296 | # default is implementation-dependent. Figure out which it is, since |
| 6297 | # not all implementations provide the %pointer and %array declarations. |
| 6298 | ac_cv_prog_lex_yytext_pointer=no |
| 6299 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 6300 | ac_save_LIBS=$LIBS |
| 6301 | LIBS="$LIBS $LEXLIB" |
| 6302 | cat >conftest.$ac_ext <<_ACEOF |
| 6303 | `cat $LEX_OUTPUT_ROOT.c` |
| 6304 | _ACEOF |
| 6305 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6306 | if { (ac_try="$ac_link" |
| 6307 | case "(($ac_try" in |
| 6308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6309 | *) ac_try_echo=$ac_try;; |
| 6310 | esac |
| 6311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6312 | (eval "$ac_link") 2>conftest.er1 |
| 6313 | ac_status=$? |
| 6314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6315 | rm -f conftest.er1 |
| 6316 | cat conftest.err >&5 |
| 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6318 | (exit $ac_status); } && |
| 6319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6320 | { (case "(($ac_try" in |
| 6321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6322 | *) ac_try_echo=$ac_try;; |
| 6323 | esac |
| 6324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6325 | (eval "$ac_try") 2>&5 |
| 6326 | ac_status=$? |
| 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6328 | (exit $ac_status); }; } && |
| 6329 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 6339 | ac_cv_prog_lex_yytext_pointer=yes |
| 6340 | else |
| 6341 | echo "$as_me: failed program was:" >&5 |
| 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6343 | |
| 6344 | |
| 6345 | fi |
| 6346 | |
| 6347 | rm -f core conftest.err conftest.$ac_objext \ |
| 6348 | conftest$ac_exeext conftest.$ac_ext |
| 6349 | LIBS=$ac_save_LIBS |
| 6350 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 6351 | |
| 6352 | fi |
| 6353 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6354 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6355 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6356 | |
| 6357 | cat >>confdefs.h <<\_ACEOF |
| 6358 | #define YYTEXT_POINTER 1 |
| 6359 | _ACEOF |
| 6360 | |
| 6361 | fi |
| 6362 | |
| 6363 | fi |
| 6364 | |
| 6365 | fi |
| 6366 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6367 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6368 | if test "$LEX" != "flex"; then |
| 6369 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6370 | echo "$as_me: error: flex not found but required" >&2;} |
| 6371 | { (exit 1); exit 1; }; } |
| 6372 | else |
| 6373 | FLEX=flex |
| 6374 | |
| 6375 | fi |
| 6376 | |
| 6377 | { echo "$as_me:$LINENO: checking " >&5 |
| 6378 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6379 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6381 | else |
| 6382 | for ac_prog in 'bison -y' byacc |
| 6383 | do |
| 6384 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6385 | set dummy $ac_prog; ac_word=$2 |
| 6386 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6388 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6390 | else |
| 6391 | if test -n "$YACC"; then |
| 6392 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6393 | else |
| 6394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6395 | for as_dir in $PATH |
| 6396 | do |
| 6397 | IFS=$as_save_IFS |
| 6398 | test -z "$as_dir" && as_dir=. |
| 6399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6401 | ac_cv_prog_YACC="$ac_prog" |
| 6402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6403 | break 2 |
| 6404 | fi |
| 6405 | done |
| 6406 | done |
| 6407 | IFS=$as_save_IFS |
| 6408 | |
| 6409 | fi |
| 6410 | fi |
| 6411 | YACC=$ac_cv_prog_YACC |
| 6412 | if test -n "$YACC"; then |
| 6413 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6414 | echo "${ECHO_T}$YACC" >&6; } |
| 6415 | else |
| 6416 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6417 | echo "${ECHO_T}no" >&6; } |
| 6418 | fi |
| 6419 | |
| 6420 | |
| 6421 | test -n "$YACC" && break |
| 6422 | done |
| 6423 | test -n "$YACC" || YACC="yacc" |
| 6424 | |
| 6425 | fi |
| 6426 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6427 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6428 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6429 | |
| 6430 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6431 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6432 | else |
| 6433 | BISON=bison |
| 6434 | |
| 6435 | fi |
| 6436 | |
| 6437 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6438 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6439 | if test "${lt_cv_path_NM+set}" = set; then |
| 6440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6441 | else |
| 6442 | if test -n "$NM"; then |
| 6443 | # Let the user override the test. |
| 6444 | lt_cv_path_NM="$NM" |
| 6445 | else |
| 6446 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6447 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6448 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6449 | fi |
| 6450 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6451 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6452 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6453 | IFS="$lt_save_ifs" |
| 6454 | test -z "$ac_dir" && ac_dir=. |
| 6455 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6456 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6457 | # Check to see if the nm accepts a BSD-compat flag. |
| 6458 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6459 | # nm: unknown option "B" ignored |
| 6460 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6461 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6462 | */dev/null* | *'Invalid file or object type'*) |
| 6463 | lt_cv_path_NM="$tmp_nm -B" |
| 6464 | break |
| 6465 | ;; |
| 6466 | *) |
| 6467 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6468 | */dev/null*) |
| 6469 | lt_cv_path_NM="$tmp_nm -p" |
| 6470 | break |
| 6471 | ;; |
| 6472 | *) |
| 6473 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6474 | continue # so that we can try to find one that supports BSD flags |
| 6475 | ;; |
| 6476 | esac |
| 6477 | ;; |
| 6478 | esac |
| 6479 | fi |
| 6480 | done |
| 6481 | IFS="$lt_save_ifs" |
| 6482 | done |
| 6483 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6484 | fi |
| 6485 | fi |
| 6486 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6487 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6488 | NM="$lt_cv_path_NM" |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6493 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6494 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6496 | else |
| 6497 | llvm_cv_gnu_make_command='' |
| 6498 | for a in "$MAKE" make gmake gnumake ; do |
| 6499 | if test -z "$a" ; then continue ; fi ; |
| 6500 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6501 | then |
| 6502 | llvm_cv_gnu_make_command=$a ; |
| 6503 | break; |
| 6504 | fi |
| 6505 | done |
| 6506 | fi |
| 6507 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6508 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6509 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6510 | ifGNUmake='' ; |
| 6511 | else |
| 6512 | ifGNUmake='#' ; |
| 6513 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6514 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6515 | fi |
| 6516 | |
| 6517 | |
| 6518 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6519 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6520 | LN_S=$as_ln_s |
| 6521 | if test "$LN_S" = "ln -s"; then |
| 6522 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6523 | echo "${ECHO_T}yes" >&6; } |
| 6524 | else |
| 6525 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6526 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6527 | fi |
| 6528 | |
| 6529 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6530 | set dummy cmp; ac_word=$2 |
| 6531 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6533 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6535 | else |
| 6536 | case $CMP in |
| 6537 | [\\/]* | ?:[\\/]*) |
| 6538 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6539 | ;; |
| 6540 | *) |
| 6541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6542 | for as_dir in $PATH |
| 6543 | do |
| 6544 | IFS=$as_save_IFS |
| 6545 | test -z "$as_dir" && as_dir=. |
| 6546 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6548 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6550 | break 2 |
| 6551 | fi |
| 6552 | done |
| 6553 | done |
| 6554 | IFS=$as_save_IFS |
| 6555 | |
| 6556 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6557 | ;; |
| 6558 | esac |
| 6559 | fi |
| 6560 | CMP=$ac_cv_path_CMP |
| 6561 | if test -n "$CMP"; then |
| 6562 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6563 | echo "${ECHO_T}$CMP" >&6; } |
| 6564 | else |
| 6565 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6566 | echo "${ECHO_T}no" >&6; } |
| 6567 | fi |
| 6568 | |
| 6569 | |
| 6570 | # Extract the first word of "cp", so it can be a program name with args. |
| 6571 | set dummy cp; ac_word=$2 |
| 6572 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6574 | if test "${ac_cv_path_CP+set}" = set; then |
| 6575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6576 | else |
| 6577 | case $CP in |
| 6578 | [\\/]* | ?:[\\/]*) |
| 6579 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6580 | ;; |
| 6581 | *) |
| 6582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6583 | for as_dir in $PATH |
| 6584 | do |
| 6585 | IFS=$as_save_IFS |
| 6586 | test -z "$as_dir" && as_dir=. |
| 6587 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6589 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6591 | break 2 |
| 6592 | fi |
| 6593 | done |
| 6594 | done |
| 6595 | IFS=$as_save_IFS |
| 6596 | |
| 6597 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6598 | ;; |
| 6599 | esac |
| 6600 | fi |
| 6601 | CP=$ac_cv_path_CP |
| 6602 | if test -n "$CP"; then |
| 6603 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6604 | echo "${ECHO_T}$CP" >&6; } |
| 6605 | else |
| 6606 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6607 | echo "${ECHO_T}no" >&6; } |
| 6608 | fi |
| 6609 | |
| 6610 | |
| 6611 | # Extract the first word of "date", so it can be a program name with args. |
| 6612 | set dummy date; ac_word=$2 |
| 6613 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6615 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6617 | else |
| 6618 | case $DATE in |
| 6619 | [\\/]* | ?:[\\/]*) |
| 6620 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6621 | ;; |
| 6622 | *) |
| 6623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6624 | for as_dir in $PATH |
| 6625 | do |
| 6626 | IFS=$as_save_IFS |
| 6627 | test -z "$as_dir" && as_dir=. |
| 6628 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6630 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6632 | break 2 |
| 6633 | fi |
| 6634 | done |
| 6635 | done |
| 6636 | IFS=$as_save_IFS |
| 6637 | |
| 6638 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6639 | ;; |
| 6640 | esac |
| 6641 | fi |
| 6642 | DATE=$ac_cv_path_DATE |
| 6643 | if test -n "$DATE"; then |
| 6644 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6645 | echo "${ECHO_T}$DATE" >&6; } |
| 6646 | else |
| 6647 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6648 | echo "${ECHO_T}no" >&6; } |
| 6649 | fi |
| 6650 | |
| 6651 | |
| 6652 | # Extract the first word of "find", so it can be a program name with args. |
| 6653 | set dummy find; ac_word=$2 |
| 6654 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6656 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6658 | else |
| 6659 | case $FIND in |
| 6660 | [\\/]* | ?:[\\/]*) |
| 6661 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6662 | ;; |
| 6663 | *) |
| 6664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6665 | for as_dir in $PATH |
| 6666 | do |
| 6667 | IFS=$as_save_IFS |
| 6668 | test -z "$as_dir" && as_dir=. |
| 6669 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6671 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6673 | break 2 |
| 6674 | fi |
| 6675 | done |
| 6676 | done |
| 6677 | IFS=$as_save_IFS |
| 6678 | |
| 6679 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6680 | ;; |
| 6681 | esac |
| 6682 | fi |
| 6683 | FIND=$ac_cv_path_FIND |
| 6684 | if test -n "$FIND"; then |
| 6685 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6686 | echo "${ECHO_T}$FIND" >&6; } |
| 6687 | else |
| 6688 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6689 | echo "${ECHO_T}no" >&6; } |
| 6690 | fi |
| 6691 | |
| 6692 | |
| 6693 | # Extract the first word of "grep", so it can be a program name with args. |
| 6694 | set dummy grep; ac_word=$2 |
| 6695 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6697 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6699 | else |
| 6700 | case $GREP in |
| 6701 | [\\/]* | ?:[\\/]*) |
| 6702 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6703 | ;; |
| 6704 | *) |
| 6705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6706 | for as_dir in $PATH |
| 6707 | do |
| 6708 | IFS=$as_save_IFS |
| 6709 | test -z "$as_dir" && as_dir=. |
| 6710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6712 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6714 | break 2 |
| 6715 | fi |
| 6716 | done |
| 6717 | done |
| 6718 | IFS=$as_save_IFS |
| 6719 | |
| 6720 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6721 | ;; |
| 6722 | esac |
| 6723 | fi |
| 6724 | GREP=$ac_cv_path_GREP |
| 6725 | if test -n "$GREP"; then |
| 6726 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6727 | echo "${ECHO_T}$GREP" >&6; } |
| 6728 | else |
| 6729 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6730 | echo "${ECHO_T}no" >&6; } |
| 6731 | fi |
| 6732 | |
| 6733 | |
| 6734 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6735 | set dummy mkdir; ac_word=$2 |
| 6736 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6738 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6740 | else |
| 6741 | case $MKDIR in |
| 6742 | [\\/]* | ?:[\\/]*) |
| 6743 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6744 | ;; |
| 6745 | *) |
| 6746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6747 | for as_dir in $PATH |
| 6748 | do |
| 6749 | IFS=$as_save_IFS |
| 6750 | test -z "$as_dir" && as_dir=. |
| 6751 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6753 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6754 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6755 | break 2 |
| 6756 | fi |
| 6757 | done |
| 6758 | done |
| 6759 | IFS=$as_save_IFS |
| 6760 | |
| 6761 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6762 | ;; |
| 6763 | esac |
| 6764 | fi |
| 6765 | MKDIR=$ac_cv_path_MKDIR |
| 6766 | if test -n "$MKDIR"; then |
| 6767 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6768 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6769 | else |
| 6770 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6771 | echo "${ECHO_T}no" >&6; } |
| 6772 | fi |
| 6773 | |
| 6774 | |
| 6775 | # Extract the first word of "mv", so it can be a program name with args. |
| 6776 | set dummy mv; ac_word=$2 |
| 6777 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6779 | if test "${ac_cv_path_MV+set}" = set; then |
| 6780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6781 | else |
| 6782 | case $MV in |
| 6783 | [\\/]* | ?:[\\/]*) |
| 6784 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6785 | ;; |
| 6786 | *) |
| 6787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6788 | for as_dir in $PATH |
| 6789 | do |
| 6790 | IFS=$as_save_IFS |
| 6791 | test -z "$as_dir" && as_dir=. |
| 6792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6794 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6796 | break 2 |
| 6797 | fi |
| 6798 | done |
| 6799 | done |
| 6800 | IFS=$as_save_IFS |
| 6801 | |
| 6802 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6803 | ;; |
| 6804 | esac |
| 6805 | fi |
| 6806 | MV=$ac_cv_path_MV |
| 6807 | if test -n "$MV"; then |
| 6808 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6809 | echo "${ECHO_T}$MV" >&6; } |
| 6810 | else |
| 6811 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6812 | echo "${ECHO_T}no" >&6; } |
| 6813 | fi |
| 6814 | |
| 6815 | |
| 6816 | if test -n "$ac_tool_prefix"; then |
| 6817 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6818 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6819 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6821 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6823 | else |
| 6824 | if test -n "$RANLIB"; then |
| 6825 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6826 | else |
| 6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6828 | for as_dir in $PATH |
| 6829 | do |
| 6830 | IFS=$as_save_IFS |
| 6831 | test -z "$as_dir" && as_dir=. |
| 6832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6834 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6836 | break 2 |
| 6837 | fi |
| 6838 | done |
| 6839 | done |
| 6840 | IFS=$as_save_IFS |
| 6841 | |
| 6842 | fi |
| 6843 | fi |
| 6844 | RANLIB=$ac_cv_prog_RANLIB |
| 6845 | if test -n "$RANLIB"; then |
| 6846 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6847 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6848 | else |
| 6849 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6850 | echo "${ECHO_T}no" >&6; } |
| 6851 | fi |
| 6852 | |
| 6853 | |
| 6854 | fi |
| 6855 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6856 | ac_ct_RANLIB=$RANLIB |
| 6857 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6858 | set dummy ranlib; ac_word=$2 |
| 6859 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6861 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6863 | else |
| 6864 | if test -n "$ac_ct_RANLIB"; then |
| 6865 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6866 | else |
| 6867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6868 | for as_dir in $PATH |
| 6869 | do |
| 6870 | IFS=$as_save_IFS |
| 6871 | test -z "$as_dir" && as_dir=. |
| 6872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6874 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6876 | break 2 |
| 6877 | fi |
| 6878 | done |
| 6879 | done |
| 6880 | IFS=$as_save_IFS |
| 6881 | |
| 6882 | fi |
| 6883 | fi |
| 6884 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6885 | if test -n "$ac_ct_RANLIB"; then |
| 6886 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6887 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6888 | else |
| 6889 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6890 | echo "${ECHO_T}no" >&6; } |
| 6891 | fi |
| 6892 | |
| 6893 | if test "x$ac_ct_RANLIB" = x; then |
| 6894 | RANLIB=":" |
| 6895 | else |
| 6896 | case $cross_compiling:$ac_tool_warned in |
| 6897 | yes:) |
| 6898 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6899 | whose name does not start with the host triplet. If you think this |
| 6900 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6901 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6902 | whose name does not start with the host triplet. If you think this |
| 6903 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6904 | ac_tool_warned=yes ;; |
| 6905 | esac |
| 6906 | RANLIB=$ac_ct_RANLIB |
| 6907 | fi |
| 6908 | else |
| 6909 | RANLIB="$ac_cv_prog_RANLIB" |
| 6910 | fi |
| 6911 | |
| 6912 | # Extract the first word of "rm", so it can be a program name with args. |
| 6913 | set dummy rm; ac_word=$2 |
| 6914 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6916 | if test "${ac_cv_path_RM+set}" = set; then |
| 6917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6918 | else |
| 6919 | case $RM in |
| 6920 | [\\/]* | ?:[\\/]*) |
| 6921 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6922 | ;; |
| 6923 | *) |
| 6924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6925 | for as_dir in $PATH |
| 6926 | do |
| 6927 | IFS=$as_save_IFS |
| 6928 | test -z "$as_dir" && as_dir=. |
| 6929 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6931 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6933 | break 2 |
| 6934 | fi |
| 6935 | done |
| 6936 | done |
| 6937 | IFS=$as_save_IFS |
| 6938 | |
| 6939 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6940 | ;; |
| 6941 | esac |
| 6942 | fi |
| 6943 | RM=$ac_cv_path_RM |
| 6944 | if test -n "$RM"; then |
| 6945 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6946 | echo "${ECHO_T}$RM" >&6; } |
| 6947 | else |
| 6948 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6949 | echo "${ECHO_T}no" >&6; } |
| 6950 | fi |
| 6951 | |
| 6952 | |
| 6953 | # Extract the first word of "sed", so it can be a program name with args. |
| 6954 | set dummy sed; ac_word=$2 |
| 6955 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6956 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6957 | if test "${ac_cv_path_SED+set}" = set; then |
| 6958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6959 | else |
| 6960 | case $SED in |
| 6961 | [\\/]* | ?:[\\/]*) |
| 6962 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6963 | ;; |
| 6964 | *) |
| 6965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6966 | for as_dir in $PATH |
| 6967 | do |
| 6968 | IFS=$as_save_IFS |
| 6969 | test -z "$as_dir" && as_dir=. |
| 6970 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6972 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6974 | break 2 |
| 6975 | fi |
| 6976 | done |
| 6977 | done |
| 6978 | IFS=$as_save_IFS |
| 6979 | |
| 6980 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6981 | ;; |
| 6982 | esac |
| 6983 | fi |
| 6984 | SED=$ac_cv_path_SED |
| 6985 | if test -n "$SED"; then |
| 6986 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6987 | echo "${ECHO_T}$SED" >&6; } |
| 6988 | else |
| 6989 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6990 | echo "${ECHO_T}no" >&6; } |
| 6991 | fi |
| 6992 | |
| 6993 | |
| 6994 | # Extract the first word of "tar", so it can be a program name with args. |
| 6995 | set dummy tar; ac_word=$2 |
| 6996 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6998 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7000 | else |
| 7001 | case $TAR in |
| 7002 | [\\/]* | ?:[\\/]*) |
| 7003 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 7004 | ;; |
| 7005 | *) |
| 7006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7007 | for as_dir in $PATH |
| 7008 | do |
| 7009 | IFS=$as_save_IFS |
| 7010 | test -z "$as_dir" && as_dir=. |
| 7011 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7013 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 7014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7015 | break 2 |
| 7016 | fi |
| 7017 | done |
| 7018 | done |
| 7019 | IFS=$as_save_IFS |
| 7020 | |
| 7021 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 7022 | ;; |
| 7023 | esac |
| 7024 | fi |
| 7025 | TAR=$ac_cv_path_TAR |
| 7026 | if test -n "$TAR"; then |
| 7027 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 7028 | echo "${ECHO_T}$TAR" >&6; } |
| 7029 | else |
| 7030 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7031 | echo "${ECHO_T}no" >&6; } |
| 7032 | fi |
| 7033 | |
| 7034 | |
| 7035 | # Extract the first word of "pwd", so it can be a program name with args. |
| 7036 | set dummy pwd; ac_word=$2 |
| 7037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7039 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 7040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7041 | else |
| 7042 | case $BINPWD in |
| 7043 | [\\/]* | ?:[\\/]*) |
| 7044 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 7045 | ;; |
| 7046 | *) |
| 7047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7048 | for as_dir in $PATH |
| 7049 | do |
| 7050 | IFS=$as_save_IFS |
| 7051 | test -z "$as_dir" && as_dir=. |
| 7052 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7054 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 7055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7056 | break 2 |
| 7057 | fi |
| 7058 | done |
| 7059 | done |
| 7060 | IFS=$as_save_IFS |
| 7061 | |
| 7062 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 7063 | ;; |
| 7064 | esac |
| 7065 | fi |
| 7066 | BINPWD=$ac_cv_path_BINPWD |
| 7067 | if test -n "$BINPWD"; then |
| 7068 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 7069 | echo "${ECHO_T}$BINPWD" >&6; } |
| 7070 | else |
| 7071 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7072 | echo "${ECHO_T}no" >&6; } |
| 7073 | fi |
| 7074 | |
| 7075 | |
| 7076 | |
| 7077 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 7078 | set dummy Graphviz; ac_word=$2 |
| 7079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7081 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 7082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7083 | else |
| 7084 | case $GRAPHVIZ in |
| 7085 | [\\/]* | ?:[\\/]*) |
| 7086 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 7087 | ;; |
| 7088 | *) |
| 7089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7090 | for as_dir in $PATH |
| 7091 | do |
| 7092 | IFS=$as_save_IFS |
| 7093 | test -z "$as_dir" && as_dir=. |
| 7094 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7096 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 7097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7098 | break 2 |
| 7099 | fi |
| 7100 | done |
| 7101 | done |
| 7102 | IFS=$as_save_IFS |
| 7103 | |
| 7104 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 7105 | ;; |
| 7106 | esac |
| 7107 | fi |
| 7108 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 7109 | if test -n "$GRAPHVIZ"; then |
| 7110 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 7111 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 7112 | else |
| 7113 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7114 | echo "${ECHO_T}no" >&6; } |
| 7115 | fi |
| 7116 | |
| 7117 | |
| 7118 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 7119 | |
| 7120 | cat >>confdefs.h <<\_ACEOF |
| 7121 | #define HAVE_GRAPHVIZ 1 |
| 7122 | _ACEOF |
| 7123 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7124 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7125 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7126 | fi |
| 7127 | |
| 7128 | cat >>confdefs.h <<_ACEOF |
| 7129 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 7130 | _ACEOF |
| 7131 | |
| 7132 | fi |
| 7133 | # Extract the first word of "dot", so it can be a program name with args. |
| 7134 | set dummy dot; ac_word=$2 |
| 7135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7137 | if test "${ac_cv_path_DOT+set}" = set; then |
| 7138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7139 | else |
| 7140 | case $DOT in |
| 7141 | [\\/]* | ?:[\\/]*) |
| 7142 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 7143 | ;; |
| 7144 | *) |
| 7145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7146 | for as_dir in $PATH |
| 7147 | do |
| 7148 | IFS=$as_save_IFS |
| 7149 | test -z "$as_dir" && as_dir=. |
| 7150 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7152 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 7153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7154 | break 2 |
| 7155 | fi |
| 7156 | done |
| 7157 | done |
| 7158 | IFS=$as_save_IFS |
| 7159 | |
| 7160 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 7161 | ;; |
| 7162 | esac |
| 7163 | fi |
| 7164 | DOT=$ac_cv_path_DOT |
| 7165 | if test -n "$DOT"; then |
| 7166 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 7167 | echo "${ECHO_T}$DOT" >&6; } |
| 7168 | else |
| 7169 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7170 | echo "${ECHO_T}no" >&6; } |
| 7171 | fi |
| 7172 | |
| 7173 | |
| 7174 | if test "$DOT" != "echo dot" ; then |
| 7175 | |
| 7176 | cat >>confdefs.h <<\_ACEOF |
| 7177 | #define HAVE_DOT 1 |
| 7178 | _ACEOF |
| 7179 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7180 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7181 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7182 | fi |
| 7183 | |
| 7184 | cat >>confdefs.h <<_ACEOF |
| 7185 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 7186 | _ACEOF |
| 7187 | |
| 7188 | fi |
| 7189 | for ac_prog in gv gsview32 |
| 7190 | do |
| 7191 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7192 | set dummy $ac_prog; ac_word=$2 |
| 7193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7195 | if test "${ac_cv_path_GV+set}" = set; then |
| 7196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7197 | else |
| 7198 | case $GV in |
| 7199 | [\\/]* | ?:[\\/]*) |
| 7200 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 7201 | ;; |
| 7202 | *) |
| 7203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7204 | for as_dir in $PATH |
| 7205 | do |
| 7206 | IFS=$as_save_IFS |
| 7207 | test -z "$as_dir" && as_dir=. |
| 7208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7210 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 7211 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7212 | break 2 |
| 7213 | fi |
| 7214 | done |
| 7215 | done |
| 7216 | IFS=$as_save_IFS |
| 7217 | |
| 7218 | ;; |
| 7219 | esac |
| 7220 | fi |
| 7221 | GV=$ac_cv_path_GV |
| 7222 | if test -n "$GV"; then |
| 7223 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 7224 | echo "${ECHO_T}$GV" >&6; } |
| 7225 | else |
| 7226 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7227 | echo "${ECHO_T}no" >&6; } |
| 7228 | fi |
| 7229 | |
| 7230 | |
| 7231 | test -n "$GV" && break |
| 7232 | done |
| 7233 | test -n "$GV" || GV="echo gv" |
| 7234 | |
| 7235 | if test "$GV" != "echo gv" ; then |
| 7236 | |
| 7237 | cat >>confdefs.h <<\_ACEOF |
| 7238 | #define HAVE_GV 1 |
| 7239 | _ACEOF |
| 7240 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7241 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7242 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7243 | fi |
| 7244 | |
| 7245 | cat >>confdefs.h <<_ACEOF |
| 7246 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 7247 | _ACEOF |
| 7248 | |
| 7249 | fi |
| 7250 | # Extract the first word of "dotty", so it can be a program name with args. |
| 7251 | set dummy dotty; ac_word=$2 |
| 7252 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7254 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 7255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7256 | else |
| 7257 | case $DOTTY in |
| 7258 | [\\/]* | ?:[\\/]*) |
| 7259 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 7260 | ;; |
| 7261 | *) |
| 7262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7263 | for as_dir in $PATH |
| 7264 | do |
| 7265 | IFS=$as_save_IFS |
| 7266 | test -z "$as_dir" && as_dir=. |
| 7267 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7268 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7269 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 7270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7271 | break 2 |
| 7272 | fi |
| 7273 | done |
| 7274 | done |
| 7275 | IFS=$as_save_IFS |
| 7276 | |
| 7277 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 7278 | ;; |
| 7279 | esac |
| 7280 | fi |
| 7281 | DOTTY=$ac_cv_path_DOTTY |
| 7282 | if test -n "$DOTTY"; then |
| 7283 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 7284 | echo "${ECHO_T}$DOTTY" >&6; } |
| 7285 | else |
| 7286 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7287 | echo "${ECHO_T}no" >&6; } |
| 7288 | fi |
| 7289 | |
| 7290 | |
| 7291 | if test "$DOTTY" != "echo dotty" ; then |
| 7292 | |
| 7293 | cat >>confdefs.h <<\_ACEOF |
| 7294 | #define HAVE_DOTTY 1 |
| 7295 | _ACEOF |
| 7296 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 7297 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7298 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 7299 | fi |
| 7300 | |
| 7301 | cat >>confdefs.h <<_ACEOF |
| 7302 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 7303 | _ACEOF |
| 7304 | |
| 7305 | fi |
| 7306 | |
| 7307 | |
| 7308 | # Extract the first word of "perl", so it can be a program name with args. |
| 7309 | set dummy perl; ac_word=$2 |
| 7310 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7312 | if test "${ac_cv_path_PERL+set}" = set; then |
| 7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7314 | else |
| 7315 | case $PERL in |
| 7316 | [\\/]* | ?:[\\/]*) |
| 7317 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 7318 | ;; |
| 7319 | *) |
| 7320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7321 | for as_dir in $PATH |
| 7322 | do |
| 7323 | IFS=$as_save_IFS |
| 7324 | test -z "$as_dir" && as_dir=. |
| 7325 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7327 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 7328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7329 | break 2 |
| 7330 | fi |
| 7331 | done |
| 7332 | done |
| 7333 | IFS=$as_save_IFS |
| 7334 | |
| 7335 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 7336 | ;; |
| 7337 | esac |
| 7338 | fi |
| 7339 | PERL=$ac_cv_path_PERL |
| 7340 | if test -n "$PERL"; then |
| 7341 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 7342 | echo "${ECHO_T}$PERL" >&6; } |
| 7343 | else |
| 7344 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7345 | echo "${ECHO_T}no" >&6; } |
| 7346 | fi |
| 7347 | |
| 7348 | |
| 7349 | if test "$PERL" != "none"; then |
| 7350 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7351 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7352 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7353 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7354 | echo "${ECHO_T}yes" >&6; } |
| 7355 | else |
| 7356 | PERL=none |
| 7357 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7358 | echo "${ECHO_T}not found" >&6; } |
| 7359 | fi |
| 7360 | fi |
| 7361 | |
| 7362 | |
| 7363 | if test x"$PERL" = xnone; then |
| 7364 | HAVE_PERL=0 |
| 7365 | |
| 7366 | else |
| 7367 | HAVE_PERL=1 |
| 7368 | |
| 7369 | fi |
| 7370 | |
| 7371 | # Find a good install program. We prefer a C program (faster), |
| 7372 | # so one script is as good as another. But avoid the broken or |
| 7373 | # incompatible versions: |
| 7374 | # SysV /etc/install, /usr/sbin/install |
| 7375 | # SunOS /usr/etc/install |
| 7376 | # IRIX /sbin/install |
| 7377 | # AIX /bin/install |
| 7378 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7379 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7380 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7381 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7382 | # OS/2's system install, which has a completely different semantic |
| 7383 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7384 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7385 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7386 | if test -z "$INSTALL"; then |
| 7387 | if test "${ac_cv_path_install+set}" = set; then |
| 7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7389 | else |
| 7390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7391 | for as_dir in $PATH |
| 7392 | do |
| 7393 | IFS=$as_save_IFS |
| 7394 | test -z "$as_dir" && as_dir=. |
| 7395 | # Account for people who put trailing slashes in PATH elements. |
| 7396 | case $as_dir/ in |
| 7397 | ./ | .// | /cC/* | \ |
| 7398 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7399 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7400 | /usr/ucb/* ) ;; |
| 7401 | *) |
| 7402 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7403 | # Don't use installbsd from OSF since it installs stuff as root |
| 7404 | # by default. |
| 7405 | for ac_prog in ginstall scoinst install; do |
| 7406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7407 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 7408 | if test $ac_prog = install && |
| 7409 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7410 | # AIX install. It has an incompatible calling convention. |
| 7411 | : |
| 7412 | elif test $ac_prog = install && |
| 7413 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7414 | # program-specific install script used by HP pwplus--don't use. |
| 7415 | : |
| 7416 | else |
| 7417 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7418 | break 3 |
| 7419 | fi |
| 7420 | fi |
| 7421 | done |
| 7422 | done |
| 7423 | ;; |
| 7424 | esac |
| 7425 | done |
| 7426 | IFS=$as_save_IFS |
| 7427 | |
| 7428 | |
| 7429 | fi |
| 7430 | if test "${ac_cv_path_install+set}" = set; then |
| 7431 | INSTALL=$ac_cv_path_install |
| 7432 | else |
| 7433 | # As a last resort, use the slow shell script. Don't cache a |
| 7434 | # value for INSTALL within a source directory, because that will |
| 7435 | # break other packages using the cache if that directory is |
| 7436 | # removed, or if the value is a relative name. |
| 7437 | INSTALL=$ac_install_sh |
| 7438 | fi |
| 7439 | fi |
| 7440 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7441 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7442 | |
| 7443 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7444 | # It thinks the first close brace ends the variable substitution. |
| 7445 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7446 | |
| 7447 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7448 | |
| 7449 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7450 | |
| 7451 | |
| 7452 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7453 | set dummy bzip2; ac_word=$2 |
| 7454 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7455 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7456 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7458 | else |
| 7459 | case $BZIP2 in |
| 7460 | [\\/]* | ?:[\\/]*) |
| 7461 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7462 | ;; |
| 7463 | *) |
| 7464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7465 | for as_dir in $PATH |
| 7466 | do |
| 7467 | IFS=$as_save_IFS |
| 7468 | test -z "$as_dir" && as_dir=. |
| 7469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7471 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7473 | break 2 |
| 7474 | fi |
| 7475 | done |
| 7476 | done |
| 7477 | IFS=$as_save_IFS |
| 7478 | |
| 7479 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7480 | ;; |
| 7481 | esac |
| 7482 | fi |
| 7483 | BZIP2=$ac_cv_path_BZIP2 |
| 7484 | if test -n "$BZIP2"; then |
| 7485 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7486 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7487 | else |
| 7488 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7489 | echo "${ECHO_T}no" >&6; } |
| 7490 | fi |
| 7491 | |
| 7492 | |
| 7493 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7494 | set dummy doxygen; ac_word=$2 |
| 7495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7497 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7499 | else |
| 7500 | case $DOXYGEN in |
| 7501 | [\\/]* | ?:[\\/]*) |
| 7502 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7503 | ;; |
| 7504 | *) |
| 7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7506 | for as_dir in $PATH |
| 7507 | do |
| 7508 | IFS=$as_save_IFS |
| 7509 | test -z "$as_dir" && as_dir=. |
| 7510 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7512 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7514 | break 2 |
| 7515 | fi |
| 7516 | done |
| 7517 | done |
| 7518 | IFS=$as_save_IFS |
| 7519 | |
| 7520 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7521 | ;; |
| 7522 | esac |
| 7523 | fi |
| 7524 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7525 | if test -n "$DOXYGEN"; then |
| 7526 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7527 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7528 | else |
| 7529 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7530 | echo "${ECHO_T}no" >&6; } |
| 7531 | fi |
| 7532 | |
| 7533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7534 | # Extract the first word of "groff", so it can be a program name with args. |
| 7535 | set dummy groff; ac_word=$2 |
| 7536 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7538 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7540 | else |
| 7541 | case $GROFF in |
| 7542 | [\\/]* | ?:[\\/]*) |
| 7543 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7544 | ;; |
| 7545 | *) |
| 7546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7547 | for as_dir in $PATH |
| 7548 | do |
| 7549 | IFS=$as_save_IFS |
| 7550 | test -z "$as_dir" && as_dir=. |
| 7551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7552 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7553 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7555 | break 2 |
| 7556 | fi |
| 7557 | done |
| 7558 | done |
| 7559 | IFS=$as_save_IFS |
| 7560 | |
| 7561 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7562 | ;; |
| 7563 | esac |
| 7564 | fi |
| 7565 | GROFF=$ac_cv_path_GROFF |
| 7566 | if test -n "$GROFF"; then |
| 7567 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7568 | echo "${ECHO_T}$GROFF" >&6; } |
| 7569 | else |
| 7570 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7571 | echo "${ECHO_T}no" >&6; } |
| 7572 | fi |
| 7573 | |
| 7574 | |
| 7575 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7576 | set dummy gzip; ac_word=$2 |
| 7577 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7579 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7581 | else |
| 7582 | case $GZIP in |
| 7583 | [\\/]* | ?:[\\/]*) |
| 7584 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7585 | ;; |
| 7586 | *) |
| 7587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7588 | for as_dir in $PATH |
| 7589 | do |
| 7590 | IFS=$as_save_IFS |
| 7591 | test -z "$as_dir" && as_dir=. |
| 7592 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7594 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7596 | break 2 |
| 7597 | fi |
| 7598 | done |
| 7599 | done |
| 7600 | IFS=$as_save_IFS |
| 7601 | |
| 7602 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7603 | ;; |
| 7604 | esac |
| 7605 | fi |
| 7606 | GZIP=$ac_cv_path_GZIP |
| 7607 | if test -n "$GZIP"; then |
| 7608 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7609 | echo "${ECHO_T}$GZIP" >&6; } |
| 7610 | else |
| 7611 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7612 | echo "${ECHO_T}no" >&6; } |
| 7613 | fi |
| 7614 | |
| 7615 | |
| 7616 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7617 | set dummy pod2html; ac_word=$2 |
| 7618 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7620 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7622 | else |
| 7623 | case $POD2HTML in |
| 7624 | [\\/]* | ?:[\\/]*) |
| 7625 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7626 | ;; |
| 7627 | *) |
| 7628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7629 | for as_dir in $PATH |
| 7630 | do |
| 7631 | IFS=$as_save_IFS |
| 7632 | test -z "$as_dir" && as_dir=. |
| 7633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7635 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7637 | break 2 |
| 7638 | fi |
| 7639 | done |
| 7640 | done |
| 7641 | IFS=$as_save_IFS |
| 7642 | |
| 7643 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7644 | ;; |
| 7645 | esac |
| 7646 | fi |
| 7647 | POD2HTML=$ac_cv_path_POD2HTML |
| 7648 | if test -n "$POD2HTML"; then |
| 7649 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7650 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7651 | else |
| 7652 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7653 | echo "${ECHO_T}no" >&6; } |
| 7654 | fi |
| 7655 | |
| 7656 | |
| 7657 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7658 | set dummy pod2man; ac_word=$2 |
| 7659 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7661 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7663 | else |
| 7664 | case $POD2MAN in |
| 7665 | [\\/]* | ?:[\\/]*) |
| 7666 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7667 | ;; |
| 7668 | *) |
| 7669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7670 | for as_dir in $PATH |
| 7671 | do |
| 7672 | IFS=$as_save_IFS |
| 7673 | test -z "$as_dir" && as_dir=. |
| 7674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7676 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7678 | break 2 |
| 7679 | fi |
| 7680 | done |
| 7681 | done |
| 7682 | IFS=$as_save_IFS |
| 7683 | |
| 7684 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7685 | ;; |
| 7686 | esac |
| 7687 | fi |
| 7688 | POD2MAN=$ac_cv_path_POD2MAN |
| 7689 | if test -n "$POD2MAN"; then |
| 7690 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7691 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7692 | else |
| 7693 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7694 | echo "${ECHO_T}no" >&6; } |
| 7695 | fi |
| 7696 | |
| 7697 | |
| 7698 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7699 | set dummy runtest; ac_word=$2 |
| 7700 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7702 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7704 | else |
| 7705 | case $RUNTEST in |
| 7706 | [\\/]* | ?:[\\/]*) |
| 7707 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7708 | ;; |
| 7709 | *) |
| 7710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7711 | for as_dir in $PATH |
| 7712 | do |
| 7713 | IFS=$as_save_IFS |
| 7714 | test -z "$as_dir" && as_dir=. |
| 7715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7717 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7719 | break 2 |
| 7720 | fi |
| 7721 | done |
| 7722 | done |
| 7723 | IFS=$as_save_IFS |
| 7724 | |
| 7725 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7726 | ;; |
| 7727 | esac |
| 7728 | fi |
| 7729 | RUNTEST=$ac_cv_path_RUNTEST |
| 7730 | if test -n "$RUNTEST"; then |
| 7731 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7732 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7733 | else |
| 7734 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7735 | echo "${ECHO_T}no" >&6; } |
| 7736 | fi |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | no_itcl=true |
| 7741 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7742 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7743 | |
| 7744 | # Check whether --with-tclinclude was given. |
| 7745 | if test "${with_tclinclude+set}" = set; then |
| 7746 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7747 | else |
| 7748 | with_tclinclude='' |
| 7749 | fi |
| 7750 | |
| 7751 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7753 | else |
| 7754 | |
| 7755 | if test x"${with_tclinclude}" != x ; then |
| 7756 | if test -f ${with_tclinclude}/tclsh ; then |
| 7757 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7758 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7759 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7760 | else |
| 7761 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7762 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7763 | { (exit 1); exit 1; }; } |
| 7764 | fi |
| 7765 | fi |
| 7766 | |
| 7767 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7768 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7769 | echo "${ECHO_T}none" >&6; } |
| 7770 | 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 |
| 7771 | do |
| 7772 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7773 | set dummy $ac_prog; ac_word=$2 |
| 7774 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7776 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7778 | else |
| 7779 | case $TCLSH in |
| 7780 | [\\/]* | ?:[\\/]*) |
| 7781 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7782 | ;; |
| 7783 | *) |
| 7784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7785 | for as_dir in $PATH |
| 7786 | do |
| 7787 | IFS=$as_save_IFS |
| 7788 | test -z "$as_dir" && as_dir=. |
| 7789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7791 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7793 | break 2 |
| 7794 | fi |
| 7795 | done |
| 7796 | done |
| 7797 | IFS=$as_save_IFS |
| 7798 | |
| 7799 | ;; |
| 7800 | esac |
| 7801 | fi |
| 7802 | TCLSH=$ac_cv_path_TCLSH |
| 7803 | if test -n "$TCLSH"; then |
| 7804 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7805 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7806 | else |
| 7807 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7808 | echo "${ECHO_T}no" >&6; } |
| 7809 | fi |
| 7810 | |
| 7811 | |
| 7812 | test -n "$TCLSH" && break |
| 7813 | done |
| 7814 | |
| 7815 | if test x"${TCLSH}" = x ; then |
| 7816 | ac_cv_path_tclsh=''; |
| 7817 | else |
| 7818 | ac_cv_path_tclsh="${TCLSH}"; |
| 7819 | fi |
| 7820 | else |
| 7821 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7822 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7823 | TCLSH="${ac_cv_path_tclsh}" |
| 7824 | |
| 7825 | fi |
| 7826 | |
| 7827 | fi |
| 7828 | |
| 7829 | # Extract the first word of "zip", so it can be a program name with args. |
| 7830 | set dummy zip; ac_word=$2 |
| 7831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7833 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7835 | else |
| 7836 | case $ZIP in |
| 7837 | [\\/]* | ?:[\\/]*) |
| 7838 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7839 | ;; |
| 7840 | *) |
| 7841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7842 | for as_dir in $PATH |
| 7843 | do |
| 7844 | IFS=$as_save_IFS |
| 7845 | test -z "$as_dir" && as_dir=. |
| 7846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7848 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7850 | break 2 |
| 7851 | fi |
| 7852 | done |
| 7853 | done |
| 7854 | IFS=$as_save_IFS |
| 7855 | |
| 7856 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7857 | ;; |
| 7858 | esac |
| 7859 | fi |
| 7860 | ZIP=$ac_cv_path_ZIP |
| 7861 | if test -n "$ZIP"; then |
| 7862 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7863 | echo "${ECHO_T}$ZIP" >&6; } |
| 7864 | else |
| 7865 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7866 | echo "${ECHO_T}no" >&6; } |
| 7867 | fi |
| 7868 | |
| 7869 | |
| 7870 | |
| 7871 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7872 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7873 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7875 | else |
| 7876 | ac_ext=c |
| 7877 | ac_cpp='$CPP $CPPFLAGS' |
| 7878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7881 | |
| 7882 | oldcflags="$CFLAGS" |
| 7883 | CFLAGS="$CFLAGS -Wl,-R." |
| 7884 | cat >conftest.$ac_ext <<_ACEOF |
| 7885 | /* confdefs.h. */ |
| 7886 | _ACEOF |
| 7887 | cat confdefs.h >>conftest.$ac_ext |
| 7888 | cat >>conftest.$ac_ext <<_ACEOF |
| 7889 | /* end confdefs.h. */ |
| 7890 | |
| 7891 | int |
| 7892 | main () |
| 7893 | { |
| 7894 | int main() { return 0; } |
| 7895 | ; |
| 7896 | return 0; |
| 7897 | } |
| 7898 | _ACEOF |
| 7899 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7900 | if { (ac_try="$ac_link" |
| 7901 | case "(($ac_try" in |
| 7902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7903 | *) ac_try_echo=$ac_try;; |
| 7904 | esac |
| 7905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7906 | (eval "$ac_link") 2>conftest.er1 |
| 7907 | ac_status=$? |
| 7908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7909 | rm -f conftest.er1 |
| 7910 | cat conftest.err >&5 |
| 7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7912 | (exit $ac_status); } && |
| 7913 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7914 | { (case "(($ac_try" in |
| 7915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7916 | *) ac_try_echo=$ac_try;; |
| 7917 | esac |
| 7918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7919 | (eval "$ac_try") 2>&5 |
| 7920 | ac_status=$? |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); }; } && |
| 7923 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 7933 | llvm_cv_link_use_r=yes |
| 7934 | else |
| 7935 | echo "$as_me: failed program was:" >&5 |
| 7936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7937 | |
| 7938 | llvm_cv_link_use_r=no |
| 7939 | fi |
| 7940 | |
| 7941 | rm -f core conftest.err conftest.$ac_objext \ |
| 7942 | conftest$ac_exeext conftest.$ac_ext |
| 7943 | CFLAGS="$oldcflags" |
| 7944 | ac_ext=c |
| 7945 | ac_cpp='$CPP $CPPFLAGS' |
| 7946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7949 | |
| 7950 | |
| 7951 | fi |
| 7952 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7953 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7954 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7955 | |
| 7956 | cat >>confdefs.h <<\_ACEOF |
| 7957 | #define HAVE_LINK_R 1 |
| 7958 | _ACEOF |
| 7959 | |
| 7960 | fi |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7966 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7967 | if test "${ac_cv_c_const+set}" = set; then |
| 7968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7969 | else |
| 7970 | cat >conftest.$ac_ext <<_ACEOF |
| 7971 | /* confdefs.h. */ |
| 7972 | _ACEOF |
| 7973 | cat confdefs.h >>conftest.$ac_ext |
| 7974 | cat >>conftest.$ac_ext <<_ACEOF |
| 7975 | /* end confdefs.h. */ |
| 7976 | |
| 7977 | int |
| 7978 | main () |
| 7979 | { |
| 7980 | /* FIXME: Include the comments suggested by Paul. */ |
| 7981 | #ifndef __cplusplus |
| 7982 | /* Ultrix mips cc rejects this. */ |
| 7983 | typedef int charset[2]; |
| 7984 | const charset x; |
| 7985 | /* SunOS 4.1.1 cc rejects this. */ |
| 7986 | char const *const *ccp; |
| 7987 | char **p; |
| 7988 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7989 | struct point {int x, y;}; |
| 7990 | static struct point const zero = {0,0}; |
| 7991 | /* AIX XL C 1.02.0.0 rejects this. |
| 7992 | It does not let you subtract one const X* pointer from another in |
| 7993 | an arm of an if-expression whose if-part is not a constant |
| 7994 | expression */ |
| 7995 | const char *g = "string"; |
| 7996 | ccp = &g + (g ? g-g : 0); |
| 7997 | /* HPUX 7.0 cc rejects these. */ |
| 7998 | ++ccp; |
| 7999 | p = (char**) ccp; |
| 8000 | ccp = (char const *const *) p; |
| 8001 | { /* SCO 3.2v4 cc rejects this. */ |
| 8002 | char *t; |
| 8003 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 8004 | |
| 8005 | *t++ = 0; |
| 8006 | if (s) return 0; |
| 8007 | } |
| 8008 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 8009 | int x[] = {25, 17}; |
| 8010 | const int *foo = &x[0]; |
| 8011 | ++foo; |
| 8012 | } |
| 8013 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 8014 | typedef const int *iptr; |
| 8015 | iptr p = 0; |
| 8016 | ++p; |
| 8017 | } |
| 8018 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 8019 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 8020 | struct s { int j; const int *ap[3]; }; |
| 8021 | struct s *b; b->j = 5; |
| 8022 | } |
| 8023 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 8024 | const int foo = 10; |
| 8025 | if (!foo) return 0; |
| 8026 | } |
| 8027 | return !x[0] && !zero.x; |
| 8028 | #endif |
| 8029 | |
| 8030 | ; |
| 8031 | return 0; |
| 8032 | } |
| 8033 | _ACEOF |
| 8034 | rm -f conftest.$ac_objext |
| 8035 | if { (ac_try="$ac_compile" |
| 8036 | case "(($ac_try" in |
| 8037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8038 | *) ac_try_echo=$ac_try;; |
| 8039 | esac |
| 8040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8041 | (eval "$ac_compile") 2>conftest.er1 |
| 8042 | ac_status=$? |
| 8043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8044 | rm -f conftest.er1 |
| 8045 | cat conftest.err >&5 |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); } && |
| 8048 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8049 | { (case "(($ac_try" in |
| 8050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8051 | *) ac_try_echo=$ac_try;; |
| 8052 | esac |
| 8053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8054 | (eval "$ac_try") 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; } && |
| 8058 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 8068 | ac_cv_c_const=yes |
| 8069 | else |
| 8070 | echo "$as_me: failed program was:" >&5 |
| 8071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8072 | |
| 8073 | ac_cv_c_const=no |
| 8074 | fi |
| 8075 | |
| 8076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8077 | fi |
| 8078 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 8079 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 8080 | if test $ac_cv_c_const = no; then |
| 8081 | |
| 8082 | cat >>confdefs.h <<\_ACEOF |
| 8083 | #define const |
| 8084 | _ACEOF |
| 8085 | |
| 8086 | fi |
| 8087 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | ac_header_dirent=no |
| 8094 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 8095 | 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] | 8096 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 8097 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 8098 | 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] | 8099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8100 | else |
| 8101 | cat >conftest.$ac_ext <<_ACEOF |
| 8102 | /* confdefs.h. */ |
| 8103 | _ACEOF |
| 8104 | cat confdefs.h >>conftest.$ac_ext |
| 8105 | cat >>conftest.$ac_ext <<_ACEOF |
| 8106 | /* end confdefs.h. */ |
| 8107 | #include <sys/types.h> |
| 8108 | #include <$ac_hdr> |
| 8109 | |
| 8110 | int |
| 8111 | main () |
| 8112 | { |
| 8113 | if ((DIR *) 0) |
| 8114 | return 0; |
| 8115 | ; |
| 8116 | return 0; |
| 8117 | } |
| 8118 | _ACEOF |
| 8119 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8120 | if { (ac_try="$ac_compile" |
| 8121 | case "(($ac_try" in |
| 8122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8123 | *) ac_try_echo=$ac_try;; |
| 8124 | esac |
| 8125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8126 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8127 | ac_status=$? |
| 8128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8129 | rm -f conftest.er1 |
| 8130 | cat conftest.err >&5 |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8134 | { (case "(($ac_try" in |
| 8135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8136 | *) ac_try_echo=$ac_try;; |
| 8137 | esac |
| 8138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8139 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8140 | ac_status=$? |
| 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8142 | (exit $ac_status); }; } && |
| 8143 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 8153 | eval "$as_ac_Header=yes" |
| 8154 | else |
| 8155 | echo "$as_me: failed program was:" >&5 |
| 8156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8157 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8158 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8159 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8160 | |
| 8161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8162 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8163 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8164 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8165 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8166 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8167 | cat >>confdefs.h <<_ACEOF |
| 8168 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 8169 | _ACEOF |
| 8170 | |
| 8171 | ac_header_dirent=$ac_hdr; break |
| 8172 | fi |
| 8173 | |
| 8174 | done |
| 8175 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 8176 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8177 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8178 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8179 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8181 | else |
| 8182 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8183 | cat >conftest.$ac_ext <<_ACEOF |
| 8184 | /* confdefs.h. */ |
| 8185 | _ACEOF |
| 8186 | cat confdefs.h >>conftest.$ac_ext |
| 8187 | cat >>conftest.$ac_ext <<_ACEOF |
| 8188 | /* end confdefs.h. */ |
| 8189 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8190 | /* Override any GCC internal prototype to avoid an error. |
| 8191 | Use char because int might match the return type of a GCC |
| 8192 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8193 | #ifdef __cplusplus |
| 8194 | extern "C" |
| 8195 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8196 | char opendir (); |
| 8197 | int |
| 8198 | main () |
| 8199 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8200 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8201 | ; |
| 8202 | return 0; |
| 8203 | } |
| 8204 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8205 | for ac_lib in '' dir; do |
| 8206 | if test -z "$ac_lib"; then |
| 8207 | ac_res="none required" |
| 8208 | else |
| 8209 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8210 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8211 | fi |
| 8212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8213 | if { (ac_try="$ac_link" |
| 8214 | case "(($ac_try" in |
| 8215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8216 | *) ac_try_echo=$ac_try;; |
| 8217 | esac |
| 8218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8219 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8220 | ac_status=$? |
| 8221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8222 | rm -f conftest.er1 |
| 8223 | cat conftest.err >&5 |
| 8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8225 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8227 | { (case "(($ac_try" in |
| 8228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8229 | *) ac_try_echo=$ac_try;; |
| 8230 | esac |
| 8231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8232 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8233 | ac_status=$? |
| 8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8235 | (exit $ac_status); }; } && |
| 8236 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8246 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8247 | else |
| 8248 | echo "$as_me: failed program was:" >&5 |
| 8249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8250 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8251 | |
| 8252 | fi |
| 8253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8254 | rm -f core conftest.err conftest.$ac_objext \ |
| 8255 | conftest$ac_exeext |
| 8256 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8257 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8258 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8259 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8260 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8261 | : |
| 8262 | else |
| 8263 | ac_cv_search_opendir=no |
| 8264 | fi |
| 8265 | rm conftest.$ac_ext |
| 8266 | LIBS=$ac_func_search_save_LIBS |
| 8267 | fi |
| 8268 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8269 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8270 | ac_res=$ac_cv_search_opendir |
| 8271 | if test "$ac_res" != no; then |
| 8272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8273 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8274 | fi |
| 8275 | |
| 8276 | else |
| 8277 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 8278 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 8279 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8281 | else |
| 8282 | ac_func_search_save_LIBS=$LIBS |
| 8283 | cat >conftest.$ac_ext <<_ACEOF |
| 8284 | /* confdefs.h. */ |
| 8285 | _ACEOF |
| 8286 | cat confdefs.h >>conftest.$ac_ext |
| 8287 | cat >>conftest.$ac_ext <<_ACEOF |
| 8288 | /* end confdefs.h. */ |
| 8289 | |
| 8290 | /* Override any GCC internal prototype to avoid an error. |
| 8291 | Use char because int might match the return type of a GCC |
| 8292 | builtin and then its argument prototype would still apply. */ |
| 8293 | #ifdef __cplusplus |
| 8294 | extern "C" |
| 8295 | #endif |
| 8296 | char opendir (); |
| 8297 | int |
| 8298 | main () |
| 8299 | { |
| 8300 | return opendir (); |
| 8301 | ; |
| 8302 | return 0; |
| 8303 | } |
| 8304 | _ACEOF |
| 8305 | for ac_lib in '' x; do |
| 8306 | if test -z "$ac_lib"; then |
| 8307 | ac_res="none required" |
| 8308 | else |
| 8309 | ac_res=-l$ac_lib |
| 8310 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8311 | fi |
| 8312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8313 | if { (ac_try="$ac_link" |
| 8314 | case "(($ac_try" in |
| 8315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8316 | *) ac_try_echo=$ac_try;; |
| 8317 | esac |
| 8318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8319 | (eval "$ac_link") 2>conftest.er1 |
| 8320 | ac_status=$? |
| 8321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8322 | rm -f conftest.er1 |
| 8323 | cat conftest.err >&5 |
| 8324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8325 | (exit $ac_status); } && |
| 8326 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8327 | { (case "(($ac_try" in |
| 8328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8329 | *) ac_try_echo=$ac_try;; |
| 8330 | esac |
| 8331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8332 | (eval "$ac_try") 2>&5 |
| 8333 | ac_status=$? |
| 8334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8335 | (exit $ac_status); }; } && |
| 8336 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 8346 | ac_cv_search_opendir=$ac_res |
| 8347 | else |
| 8348 | echo "$as_me: failed program was:" >&5 |
| 8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8350 | |
| 8351 | |
| 8352 | fi |
| 8353 | |
| 8354 | rm -f core conftest.err conftest.$ac_objext \ |
| 8355 | conftest$ac_exeext |
| 8356 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8357 | break |
| 8358 | fi |
| 8359 | done |
| 8360 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8361 | : |
| 8362 | else |
| 8363 | ac_cv_search_opendir=no |
| 8364 | fi |
| 8365 | rm conftest.$ac_ext |
| 8366 | LIBS=$ac_func_search_save_LIBS |
| 8367 | fi |
| 8368 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8369 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8370 | ac_res=$ac_cv_search_opendir |
| 8371 | if test "$ac_res" != no; then |
| 8372 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8373 | |
| 8374 | fi |
| 8375 | |
| 8376 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8377 | |
| 8378 | |
| 8379 | for ac_header in dlfcn.h |
| 8380 | do |
| 8381 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8382 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8383 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8385 | 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] | 8386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8387 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8388 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8389 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8390 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8391 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8392 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8393 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8394 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8395 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8396 | /* confdefs.h. */ |
| 8397 | _ACEOF |
| 8398 | cat confdefs.h >>conftest.$ac_ext |
| 8399 | cat >>conftest.$ac_ext <<_ACEOF |
| 8400 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8401 | $ac_includes_default |
| 8402 | #include <$ac_header> |
| 8403 | _ACEOF |
| 8404 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8405 | if { (ac_try="$ac_compile" |
| 8406 | case "(($ac_try" in |
| 8407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8408 | *) ac_try_echo=$ac_try;; |
| 8409 | esac |
| 8410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8411 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8412 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8414 | rm -f conftest.er1 |
| 8415 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8417 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8419 | { (case "(($ac_try" in |
| 8420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8421 | *) ac_try_echo=$ac_try;; |
| 8422 | esac |
| 8423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8424 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8425 | ac_status=$? |
| 8426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8427 | (exit $ac_status); }; } && |
| 8428 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8435 | ac_status=$? |
| 8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8437 | (exit $ac_status); }; }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8438 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8439 | else |
| 8440 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8443 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8444 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8445 | |
| 8446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8447 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8448 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8449 | |
| 8450 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8451 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8452 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8453 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8454 | /* confdefs.h. */ |
| 8455 | _ACEOF |
| 8456 | cat confdefs.h >>conftest.$ac_ext |
| 8457 | cat >>conftest.$ac_ext <<_ACEOF |
| 8458 | /* end confdefs.h. */ |
| 8459 | #include <$ac_header> |
| 8460 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8461 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8462 | case "(($ac_try" in |
| 8463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8464 | *) ac_try_echo=$ac_try;; |
| 8465 | esac |
| 8466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8467 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8468 | ac_status=$? |
| 8469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8470 | rm -f conftest.er1 |
| 8471 | cat conftest.err >&5 |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); } >/dev/null; then |
| 8474 | if test -s conftest.err; then |
| 8475 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8476 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8477 | else |
| 8478 | ac_cpp_err= |
| 8479 | fi |
| 8480 | else |
| 8481 | ac_cpp_err=yes |
| 8482 | fi |
| 8483 | if test -z "$ac_cpp_err"; then |
| 8484 | ac_header_preproc=yes |
| 8485 | else |
| 8486 | echo "$as_me: failed program was:" >&5 |
| 8487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8488 | |
| 8489 | ac_header_preproc=no |
| 8490 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8491 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8492 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8493 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8494 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8495 | |
| 8496 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8497 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8498 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8499 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8500 | 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] | 8501 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8502 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8503 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8504 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8505 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8506 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8507 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8508 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8509 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8510 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8511 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8512 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8513 | 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] | 8514 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8515 | 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] | 8516 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8517 | 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] | 8518 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8519 | ## ----------------------------------- ## |
| 8520 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8521 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8522 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8523 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8524 | ;; |
| 8525 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8526 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8528 | 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] | 8529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8530 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8531 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8532 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8533 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8535 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8536 | |
| 8537 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8538 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8539 | cat >>confdefs.h <<_ACEOF |
| 8540 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8541 | _ACEOF |
| 8542 | |
| 8543 | fi |
| 8544 | |
| 8545 | done |
| 8546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8547 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8548 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8549 | enableval=$enable_ltdl_install; |
| 8550 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8551 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8552 | |
| 8553 | |
| 8554 | |
| 8555 | if test x"${enable_ltdl_install-no}" != xno; then |
| 8556 | INSTALL_LTDL_TRUE= |
| 8557 | INSTALL_LTDL_FALSE='#' |
| 8558 | else |
| 8559 | INSTALL_LTDL_TRUE='#' |
| 8560 | INSTALL_LTDL_FALSE= |
| 8561 | fi |
| 8562 | |
| 8563 | |
| 8564 | |
| 8565 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 8566 | CONVENIENCE_LTDL_TRUE= |
| 8567 | CONVENIENCE_LTDL_FALSE='#' |
| 8568 | else |
| 8569 | CONVENIENCE_LTDL_TRUE='#' |
| 8570 | CONVENIENCE_LTDL_FALSE= |
| 8571 | fi |
| 8572 | |
| 8573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8574 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8575 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8576 | library_names_spec= |
| 8577 | libname_spec='lib$name' |
| 8578 | soname_spec= |
| 8579 | shrext_cmds=".so" |
| 8580 | postinstall_cmds= |
| 8581 | postuninstall_cmds= |
| 8582 | finish_cmds= |
| 8583 | finish_eval= |
| 8584 | shlibpath_var= |
| 8585 | shlibpath_overrides_runpath=unknown |
| 8586 | version_type=none |
| 8587 | dynamic_linker="$host_os ld.so" |
| 8588 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8589 | if test "$GCC" = yes; then |
| 8590 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8591 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8592 | # if the path contains ";" then we assume it to be the separator |
| 8593 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8594 | # assumed that no part of a normal pathname contains ";" but that should |
| 8595 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8596 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8597 | else |
| 8598 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8599 | fi |
| 8600 | else |
| 8601 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8602 | fi |
| 8603 | need_lib_prefix=unknown |
| 8604 | hardcode_into_libs=no |
| 8605 | |
| 8606 | # when you set need_version to no, make sure it does not cause -set_version |
| 8607 | # flags to be left without arguments |
| 8608 | need_version=unknown |
| 8609 | |
| 8610 | case $host_os in |
| 8611 | aix3*) |
| 8612 | version_type=linux |
| 8613 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8614 | shlibpath_var=LIBPATH |
| 8615 | |
| 8616 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8617 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8618 | ;; |
| 8619 | |
| 8620 | aix4* | aix5*) |
| 8621 | version_type=linux |
| 8622 | need_lib_prefix=no |
| 8623 | need_version=no |
| 8624 | hardcode_into_libs=yes |
| 8625 | if test "$host_cpu" = ia64; then |
| 8626 | # AIX 5 supports IA64 |
| 8627 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8628 | shlibpath_var=LD_LIBRARY_PATH |
| 8629 | else |
| 8630 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8631 | # for dependence libraries. The import file would start with |
| 8632 | # the line `#! .'. This would cause the generated library to |
| 8633 | # depend on `.', always an invalid library. This was fixed in |
| 8634 | # development snapshots of GCC prior to 3.0. |
| 8635 | case $host_os in |
| 8636 | aix4 | aix4.[01] | aix4.[01].*) |
| 8637 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8638 | echo ' yes ' |
| 8639 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8640 | : |
| 8641 | else |
| 8642 | can_build_shared=no |
| 8643 | fi |
| 8644 | ;; |
| 8645 | esac |
| 8646 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8647 | # soname into executable. Probably we can add versioning support to |
| 8648 | # collect2, so additional links can be useful in future. |
| 8649 | if test "$aix_use_runtimelinking" = yes; then |
| 8650 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8651 | # instead of lib<name>.a to let people know that these are not |
| 8652 | # typical AIX shared libraries. |
| 8653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8654 | else |
| 8655 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8656 | # and later when we are not doing run time linking. |
| 8657 | library_names_spec='${libname}${release}.a $libname.a' |
| 8658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8659 | fi |
| 8660 | shlibpath_var=LIBPATH |
| 8661 | fi |
| 8662 | ;; |
| 8663 | |
| 8664 | amigaos*) |
| 8665 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8666 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8667 | 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' |
| 8668 | ;; |
| 8669 | |
| 8670 | beos*) |
| 8671 | library_names_spec='${libname}${shared_ext}' |
| 8672 | dynamic_linker="$host_os ld.so" |
| 8673 | shlibpath_var=LIBRARY_PATH |
| 8674 | ;; |
| 8675 | |
| 8676 | bsdi[45]*) |
| 8677 | version_type=linux |
| 8678 | need_version=no |
| 8679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8681 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8682 | shlibpath_var=LD_LIBRARY_PATH |
| 8683 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8684 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8685 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8686 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8687 | # libtool to hard-code these into programs |
| 8688 | ;; |
| 8689 | |
| 8690 | cygwin* | mingw* | pw32*) |
| 8691 | version_type=windows |
| 8692 | shrext_cmds=".dll" |
| 8693 | need_version=no |
| 8694 | need_lib_prefix=no |
| 8695 | |
| 8696 | case $GCC,$host_os in |
| 8697 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8698 | library_names_spec='$libname.dll.a' |
| 8699 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8700 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8701 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8702 | dldir=$destdir/`dirname \$dlpath`~ |
| 8703 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8704 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8705 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8706 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8707 | dlpath=$dir/\$dldll~ |
| 8708 | $rm \$dlpath' |
| 8709 | shlibpath_overrides_runpath=yes |
| 8710 | |
| 8711 | case $host_os in |
| 8712 | cygwin*) |
| 8713 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8714 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8715 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8716 | ;; |
| 8717 | mingw*) |
| 8718 | # MinGW DLLs use traditional 'lib' prefix |
| 8719 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8720 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8721 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8722 | # It is most probably a Windows format PATH printed by |
| 8723 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8724 | # path with ; separators, and with drive letters. We can handle the |
| 8725 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8726 | # especially as we might pass files found there to a mingw objdump, |
| 8727 | # which wouldn't understand a cygwinified path. Ahh. |
| 8728 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8729 | else |
| 8730 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8731 | fi |
| 8732 | ;; |
| 8733 | pw32*) |
| 8734 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8735 | 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] | 8736 | ;; |
| 8737 | esac |
| 8738 | ;; |
| 8739 | |
| 8740 | *) |
| 8741 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8742 | ;; |
| 8743 | esac |
| 8744 | dynamic_linker='Win32 ld.exe' |
| 8745 | # FIXME: first we should search . and the directory the executable is in |
| 8746 | shlibpath_var=PATH |
| 8747 | ;; |
| 8748 | |
| 8749 | darwin* | rhapsody*) |
| 8750 | dynamic_linker="$host_os dyld" |
| 8751 | version_type=darwin |
| 8752 | need_lib_prefix=no |
| 8753 | need_version=no |
| 8754 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8755 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8756 | shlibpath_overrides_runpath=yes |
| 8757 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8758 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8759 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8760 | if test "$GCC" = yes; then |
| 8761 | 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"` |
| 8762 | else |
| 8763 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8764 | fi |
| 8765 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8766 | ;; |
| 8767 | |
| 8768 | dgux*) |
| 8769 | version_type=linux |
| 8770 | need_lib_prefix=no |
| 8771 | need_version=no |
| 8772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8773 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8774 | shlibpath_var=LD_LIBRARY_PATH |
| 8775 | ;; |
| 8776 | |
| 8777 | freebsd1*) |
| 8778 | dynamic_linker=no |
| 8779 | ;; |
| 8780 | |
| 8781 | kfreebsd*-gnu) |
| 8782 | version_type=linux |
| 8783 | need_lib_prefix=no |
| 8784 | need_version=no |
| 8785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8787 | shlibpath_var=LD_LIBRARY_PATH |
| 8788 | shlibpath_overrides_runpath=no |
| 8789 | hardcode_into_libs=yes |
| 8790 | dynamic_linker='GNU ld.so' |
| 8791 | ;; |
| 8792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8793 | freebsd* | dragonfly*) |
| 8794 | # DragonFly does not have aout. When/if they implement a new |
| 8795 | # versioning mechanism, adjust this. |
| 8796 | if test -x /usr/bin/objformat; then |
| 8797 | objformat=`/usr/bin/objformat` |
| 8798 | else |
| 8799 | case $host_os in |
| 8800 | freebsd[123]*) objformat=aout ;; |
| 8801 | *) objformat=elf ;; |
| 8802 | esac |
| 8803 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8804 | version_type=freebsd-$objformat |
| 8805 | case $version_type in |
| 8806 | freebsd-elf*) |
| 8807 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8808 | need_version=no |
| 8809 | need_lib_prefix=no |
| 8810 | ;; |
| 8811 | freebsd-*) |
| 8812 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8813 | need_version=yes |
| 8814 | ;; |
| 8815 | esac |
| 8816 | shlibpath_var=LD_LIBRARY_PATH |
| 8817 | case $host_os in |
| 8818 | freebsd2*) |
| 8819 | shlibpath_overrides_runpath=yes |
| 8820 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8821 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8822 | shlibpath_overrides_runpath=yes |
| 8823 | hardcode_into_libs=yes |
| 8824 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8825 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8826 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8827 | shlibpath_overrides_runpath=no |
| 8828 | hardcode_into_libs=yes |
| 8829 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8830 | freebsd*) # from 4.6 on |
| 8831 | shlibpath_overrides_runpath=yes |
| 8832 | hardcode_into_libs=yes |
| 8833 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8834 | esac |
| 8835 | ;; |
| 8836 | |
| 8837 | gnu*) |
| 8838 | version_type=linux |
| 8839 | need_lib_prefix=no |
| 8840 | need_version=no |
| 8841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8843 | shlibpath_var=LD_LIBRARY_PATH |
| 8844 | hardcode_into_libs=yes |
| 8845 | ;; |
| 8846 | |
| 8847 | hpux9* | hpux10* | hpux11*) |
| 8848 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8849 | # link against other versions. |
| 8850 | version_type=sunos |
| 8851 | need_lib_prefix=no |
| 8852 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8853 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8854 | ia64*) |
| 8855 | shrext_cmds='.so' |
| 8856 | hardcode_into_libs=yes |
| 8857 | dynamic_linker="$host_os dld.so" |
| 8858 | shlibpath_var=LD_LIBRARY_PATH |
| 8859 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8862 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8863 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8864 | else |
| 8865 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8866 | fi |
| 8867 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8868 | ;; |
| 8869 | hppa*64*) |
| 8870 | shrext_cmds='.sl' |
| 8871 | hardcode_into_libs=yes |
| 8872 | dynamic_linker="$host_os dld.sl" |
| 8873 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8874 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8875 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8876 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8877 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8878 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8879 | ;; |
| 8880 | *) |
| 8881 | shrext_cmds='.sl' |
| 8882 | dynamic_linker="$host_os dld.sl" |
| 8883 | shlibpath_var=SHLIB_PATH |
| 8884 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 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 | ;; |
| 8888 | esac |
| 8889 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8890 | postinstall_cmds='chmod 555 $lib' |
| 8891 | ;; |
| 8892 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8893 | interix3*) |
| 8894 | version_type=linux |
| 8895 | need_lib_prefix=no |
| 8896 | need_version=no |
| 8897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8899 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8900 | shlibpath_var=LD_LIBRARY_PATH |
| 8901 | shlibpath_overrides_runpath=no |
| 8902 | hardcode_into_libs=yes |
| 8903 | ;; |
| 8904 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8905 | irix5* | irix6* | nonstopux*) |
| 8906 | case $host_os in |
| 8907 | nonstopux*) version_type=nonstopux ;; |
| 8908 | *) |
| 8909 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8910 | version_type=linux |
| 8911 | else |
| 8912 | version_type=irix |
| 8913 | fi ;; |
| 8914 | esac |
| 8915 | need_lib_prefix=no |
| 8916 | need_version=no |
| 8917 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8918 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8919 | case $host_os in |
| 8920 | irix5* | nonstopux*) |
| 8921 | libsuff= shlibsuff= |
| 8922 | ;; |
| 8923 | *) |
| 8924 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8925 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8926 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8927 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8928 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8929 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8930 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8931 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8932 | esac |
| 8933 | ;; |
| 8934 | esac |
| 8935 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8936 | shlibpath_overrides_runpath=no |
| 8937 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8938 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8939 | hardcode_into_libs=yes |
| 8940 | ;; |
| 8941 | |
| 8942 | # No shared lib support for Linux oldld, aout, or coff. |
| 8943 | linux*oldld* | linux*aout* | linux*coff*) |
| 8944 | dynamic_linker=no |
| 8945 | ;; |
| 8946 | |
| 8947 | # This must be Linux ELF. |
| 8948 | linux*) |
| 8949 | version_type=linux |
| 8950 | need_lib_prefix=no |
| 8951 | need_version=no |
| 8952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8953 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8954 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8955 | shlibpath_var=LD_LIBRARY_PATH |
| 8956 | shlibpath_overrides_runpath=no |
| 8957 | # This implies no fast_install, which is unacceptable. |
| 8958 | # Some rework will be needed to allow for fast_install |
| 8959 | # before this can be enabled. |
| 8960 | hardcode_into_libs=yes |
| 8961 | |
| 8962 | # Append ld.so.conf contents to the search path |
| 8963 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8964 | 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] | 8965 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8966 | fi |
| 8967 | |
| 8968 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8969 | # powerpc, because MkLinux only supported shared libraries with the |
| 8970 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8971 | # most powerpc-linux boxes support dynamic linking these days and |
| 8972 | # people can always --disable-shared, the test was removed, and we |
| 8973 | # assume the GNU/Linux dynamic linker is in use. |
| 8974 | dynamic_linker='GNU/Linux ld.so' |
| 8975 | ;; |
| 8976 | |
| 8977 | knetbsd*-gnu) |
| 8978 | version_type=linux |
| 8979 | need_lib_prefix=no |
| 8980 | need_version=no |
| 8981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8982 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8983 | shlibpath_var=LD_LIBRARY_PATH |
| 8984 | shlibpath_overrides_runpath=no |
| 8985 | hardcode_into_libs=yes |
| 8986 | dynamic_linker='GNU ld.so' |
| 8987 | ;; |
| 8988 | |
| 8989 | netbsd*) |
| 8990 | version_type=sunos |
| 8991 | need_lib_prefix=no |
| 8992 | need_version=no |
| 8993 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8995 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8996 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8997 | else |
| 8998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8999 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9000 | dynamic_linker='NetBSD ld.elf_so' |
| 9001 | fi |
| 9002 | shlibpath_var=LD_LIBRARY_PATH |
| 9003 | shlibpath_overrides_runpath=yes |
| 9004 | hardcode_into_libs=yes |
| 9005 | ;; |
| 9006 | |
| 9007 | newsos6) |
| 9008 | version_type=linux |
| 9009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9010 | shlibpath_var=LD_LIBRARY_PATH |
| 9011 | shlibpath_overrides_runpath=yes |
| 9012 | ;; |
| 9013 | |
| 9014 | nto-qnx*) |
| 9015 | version_type=linux |
| 9016 | need_lib_prefix=no |
| 9017 | need_version=no |
| 9018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9019 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9020 | shlibpath_var=LD_LIBRARY_PATH |
| 9021 | shlibpath_overrides_runpath=yes |
| 9022 | ;; |
| 9023 | |
| 9024 | openbsd*) |
| 9025 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9026 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9027 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9028 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9029 | case $host_os in |
| 9030 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9031 | *) need_version=no ;; |
| 9032 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9034 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9035 | shlibpath_var=LD_LIBRARY_PATH |
| 9036 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9037 | case $host_os in |
| 9038 | openbsd2.[89] | openbsd2.[89].*) |
| 9039 | shlibpath_overrides_runpath=no |
| 9040 | ;; |
| 9041 | *) |
| 9042 | shlibpath_overrides_runpath=yes |
| 9043 | ;; |
| 9044 | esac |
| 9045 | else |
| 9046 | shlibpath_overrides_runpath=yes |
| 9047 | fi |
| 9048 | ;; |
| 9049 | |
| 9050 | os2*) |
| 9051 | libname_spec='$name' |
| 9052 | shrext_cmds=".dll" |
| 9053 | need_lib_prefix=no |
| 9054 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9055 | dynamic_linker='OS/2 ld.exe' |
| 9056 | shlibpath_var=LIBPATH |
| 9057 | ;; |
| 9058 | |
| 9059 | osf3* | osf4* | osf5*) |
| 9060 | version_type=osf |
| 9061 | need_lib_prefix=no |
| 9062 | need_version=no |
| 9063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9065 | shlibpath_var=LD_LIBRARY_PATH |
| 9066 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9067 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9068 | ;; |
| 9069 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9070 | solaris*) |
| 9071 | version_type=linux |
| 9072 | need_lib_prefix=no |
| 9073 | need_version=no |
| 9074 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9075 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9076 | shlibpath_var=LD_LIBRARY_PATH |
| 9077 | shlibpath_overrides_runpath=yes |
| 9078 | hardcode_into_libs=yes |
| 9079 | # ldd complains unless libraries are executable |
| 9080 | postinstall_cmds='chmod +x $lib' |
| 9081 | ;; |
| 9082 | |
| 9083 | sunos4*) |
| 9084 | version_type=sunos |
| 9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9086 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9087 | shlibpath_var=LD_LIBRARY_PATH |
| 9088 | shlibpath_overrides_runpath=yes |
| 9089 | if test "$with_gnu_ld" = yes; then |
| 9090 | need_lib_prefix=no |
| 9091 | fi |
| 9092 | need_version=yes |
| 9093 | ;; |
| 9094 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9095 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9096 | version_type=linux |
| 9097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9099 | shlibpath_var=LD_LIBRARY_PATH |
| 9100 | case $host_vendor in |
| 9101 | sni) |
| 9102 | shlibpath_overrides_runpath=no |
| 9103 | need_lib_prefix=no |
| 9104 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9105 | runpath_var=LD_RUN_PATH |
| 9106 | ;; |
| 9107 | siemens) |
| 9108 | need_lib_prefix=no |
| 9109 | ;; |
| 9110 | motorola) |
| 9111 | need_lib_prefix=no |
| 9112 | need_version=no |
| 9113 | shlibpath_overrides_runpath=no |
| 9114 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9115 | ;; |
| 9116 | esac |
| 9117 | ;; |
| 9118 | |
| 9119 | sysv4*MP*) |
| 9120 | if test -d /usr/nec ;then |
| 9121 | version_type=linux |
| 9122 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9123 | soname_spec='$libname${shared_ext}.$major' |
| 9124 | shlibpath_var=LD_LIBRARY_PATH |
| 9125 | fi |
| 9126 | ;; |
| 9127 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9128 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9129 | version_type=freebsd-elf |
| 9130 | need_lib_prefix=no |
| 9131 | need_version=no |
| 9132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9134 | shlibpath_var=LD_LIBRARY_PATH |
| 9135 | hardcode_into_libs=yes |
| 9136 | if test "$with_gnu_ld" = yes; then |
| 9137 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9138 | shlibpath_overrides_runpath=no |
| 9139 | else |
| 9140 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9141 | shlibpath_overrides_runpath=yes |
| 9142 | case $host_os in |
| 9143 | sco3.2v5*) |
| 9144 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9145 | ;; |
| 9146 | esac |
| 9147 | fi |
| 9148 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9149 | ;; |
| 9150 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9151 | uts4*) |
| 9152 | version_type=linux |
| 9153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9155 | shlibpath_var=LD_LIBRARY_PATH |
| 9156 | ;; |
| 9157 | |
| 9158 | *) |
| 9159 | dynamic_linker=no |
| 9160 | ;; |
| 9161 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9162 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9163 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9164 | test "$dynamic_linker" = no && can_build_shared=no |
| 9165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9166 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9167 | if test "$GCC" = yes; then |
| 9168 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9169 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9170 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9171 | |
| 9172 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 9173 | 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] | 9174 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 9175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9176 | else |
| 9177 | |
| 9178 | module=yes |
| 9179 | eval libltdl_cv_shlibext=$shrext_cmds |
| 9180 | |
| 9181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9182 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 9183 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9184 | if test -n "$libltdl_cv_shlibext"; then |
| 9185 | |
| 9186 | cat >>confdefs.h <<_ACEOF |
| 9187 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 9188 | _ACEOF |
| 9189 | |
| 9190 | fi |
| 9191 | |
| 9192 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9193 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 9194 | 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] | 9195 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 9196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9197 | else |
| 9198 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 9199 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9200 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 9201 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9202 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 9203 | |
| 9204 | cat >>confdefs.h <<_ACEOF |
| 9205 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 9206 | _ACEOF |
| 9207 | |
| 9208 | fi |
| 9209 | |
| 9210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9211 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 9212 | 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] | 9213 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 9214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9215 | else |
| 9216 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 9217 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9218 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 9219 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9220 | if test -n "$libltdl_cv_sys_search_path"; then |
| 9221 | sys_search_path= |
| 9222 | for dir in $libltdl_cv_sys_search_path; do |
| 9223 | if test -z "$sys_search_path"; then |
| 9224 | sys_search_path="$dir" |
| 9225 | else |
| 9226 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 9227 | fi |
| 9228 | done |
| 9229 | |
| 9230 | cat >>confdefs.h <<_ACEOF |
| 9231 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 9232 | _ACEOF |
| 9233 | |
| 9234 | fi |
| 9235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9236 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 9237 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9238 | if test "${libltdl_cv_objdir+set}" = set; then |
| 9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9240 | else |
| 9241 | libltdl_cv_objdir="$objdir" |
| 9242 | if test -n "$objdir"; then |
| 9243 | : |
| 9244 | else |
| 9245 | rm -f .libs 2>/dev/null |
| 9246 | mkdir .libs 2>/dev/null |
| 9247 | if test -d .libs; then |
| 9248 | libltdl_cv_objdir=.libs |
| 9249 | else |
| 9250 | # MS-DOS does not allow filenames that begin with a dot. |
| 9251 | libltdl_cv_objdir=_libs |
| 9252 | fi |
| 9253 | rmdir .libs 2>/dev/null |
| 9254 | fi |
| 9255 | |
| 9256 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9257 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 9258 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9259 | |
| 9260 | cat >>confdefs.h <<_ACEOF |
| 9261 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 9262 | _ACEOF |
| 9263 | |
| 9264 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | # 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] | 9270 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 9271 | 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] | 9272 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 9273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9274 | else |
| 9275 | |
| 9276 | # These are sane defaults that work on at least a few old systems. |
| 9277 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9278 | |
| 9279 | # Character class describing NM global symbol codes. |
| 9280 | symcode='[BCDEGRST]' |
| 9281 | |
| 9282 | # Regexp to match symbols that can be accessed directly from C. |
| 9283 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9284 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9285 | # Transform an extracted symbol line into a proper C declaration |
| 9286 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 9287 | |
| 9288 | # Transform an extracted symbol line into symbol name and symbol address |
| 9289 | 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'" |
| 9290 | |
| 9291 | # Define system-specific variables. |
| 9292 | case $host_os in |
| 9293 | aix*) |
| 9294 | symcode='[BCDT]' |
| 9295 | ;; |
| 9296 | cygwin* | mingw* | pw32*) |
| 9297 | symcode='[ABCDGISTW]' |
| 9298 | ;; |
| 9299 | hpux*) # Its linker distinguishes data from code symbols |
| 9300 | if test "$host_cpu" = ia64; then |
| 9301 | symcode='[ABCDEGRST]' |
| 9302 | fi |
| 9303 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9304 | 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'" |
| 9305 | ;; |
| 9306 | linux*) |
| 9307 | if test "$host_cpu" = ia64; then |
| 9308 | symcode='[ABCDGIRSTW]' |
| 9309 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9310 | 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'" |
| 9311 | fi |
| 9312 | ;; |
| 9313 | irix* | nonstopux*) |
| 9314 | symcode='[BCDEGRST]' |
| 9315 | ;; |
| 9316 | osf*) |
| 9317 | symcode='[BCDEGQRST]' |
| 9318 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9319 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9320 | symcode='[BDRT]' |
| 9321 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9322 | sco3.2v5*) |
| 9323 | symcode='[DT]' |
| 9324 | ;; |
| 9325 | sysv4.2uw2*) |
| 9326 | symcode='[DT]' |
| 9327 | ;; |
| 9328 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9329 | symcode='[ABDT]' |
| 9330 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9331 | sysv4) |
| 9332 | symcode='[DFNSTU]' |
| 9333 | ;; |
| 9334 | esac |
| 9335 | |
| 9336 | # Handle CRLF in mingw tool chain |
| 9337 | opt_cr= |
| 9338 | case $build_os in |
| 9339 | mingw*) |
| 9340 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9341 | ;; |
| 9342 | esac |
| 9343 | |
| 9344 | # If we're using GNU nm, then use its standard symbol codes. |
| 9345 | case `$NM -V 2>&1` in |
| 9346 | *GNU* | *'with BFD'*) |
| 9347 | symcode='[ABCDGIRSTW]' ;; |
| 9348 | esac |
| 9349 | |
| 9350 | # Try without a prefix undercore, then with it. |
| 9351 | for ac_symprfx in "" "_"; do |
| 9352 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9353 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9354 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9355 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9356 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9357 | 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] | 9358 | |
| 9359 | # Check to see that the pipe works correctly. |
| 9360 | pipe_works=no |
| 9361 | |
| 9362 | rm -f conftest* |
| 9363 | cat > conftest.$ac_ext <<EOF |
| 9364 | #ifdef __cplusplus |
| 9365 | extern "C" { |
| 9366 | #endif |
| 9367 | char nm_test_var; |
| 9368 | void nm_test_func(){} |
| 9369 | #ifdef __cplusplus |
| 9370 | } |
| 9371 | #endif |
| 9372 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9373 | EOF |
| 9374 | |
| 9375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9376 | (eval $ac_compile) 2>&5 |
| 9377 | ac_status=$? |
| 9378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9379 | (exit $ac_status); }; then |
| 9380 | # Now try to grab the symbols. |
| 9381 | nlist=conftest.nm |
| 9382 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9383 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9384 | ac_status=$? |
| 9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9386 | (exit $ac_status); } && test -s "$nlist"; then |
| 9387 | # Try sorting and uniquifying the output. |
| 9388 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9389 | mv -f "$nlist"T "$nlist" |
| 9390 | else |
| 9391 | rm -f "$nlist"T |
| 9392 | fi |
| 9393 | |
| 9394 | # Make sure that we snagged all the symbols we need. |
| 9395 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9396 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9397 | cat <<EOF > conftest.$ac_ext |
| 9398 | #ifdef __cplusplus |
| 9399 | extern "C" { |
| 9400 | #endif |
| 9401 | |
| 9402 | EOF |
| 9403 | # Now generate the symbol file. |
| 9404 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9405 | |
| 9406 | cat <<EOF >> conftest.$ac_ext |
| 9407 | #if defined (__STDC__) && __STDC__ |
| 9408 | # define lt_ptr_t void * |
| 9409 | #else |
| 9410 | # define lt_ptr_t char * |
| 9411 | # define const |
| 9412 | #endif |
| 9413 | |
| 9414 | /* The mapping between symbol names and symbols. */ |
| 9415 | const struct { |
| 9416 | const char *name; |
| 9417 | lt_ptr_t address; |
| 9418 | } |
| 9419 | lt_preloaded_symbols[] = |
| 9420 | { |
| 9421 | EOF |
| 9422 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9423 | cat <<\EOF >> conftest.$ac_ext |
| 9424 | {0, (lt_ptr_t) 0} |
| 9425 | }; |
| 9426 | |
| 9427 | #ifdef __cplusplus |
| 9428 | } |
| 9429 | #endif |
| 9430 | EOF |
| 9431 | # Now try linking the two files. |
| 9432 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9433 | lt_save_LIBS="$LIBS" |
| 9434 | lt_save_CFLAGS="$CFLAGS" |
| 9435 | LIBS="conftstm.$ac_objext" |
| 9436 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9438 | (eval $ac_link) 2>&5 |
| 9439 | ac_status=$? |
| 9440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9441 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9442 | pipe_works=yes |
| 9443 | fi |
| 9444 | LIBS="$lt_save_LIBS" |
| 9445 | CFLAGS="$lt_save_CFLAGS" |
| 9446 | else |
| 9447 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9448 | fi |
| 9449 | else |
| 9450 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9451 | fi |
| 9452 | else |
| 9453 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9454 | fi |
| 9455 | else |
| 9456 | echo "$progname: failed program was:" >&5 |
| 9457 | cat conftest.$ac_ext >&5 |
| 9458 | fi |
| 9459 | rm -f conftest* conftst* |
| 9460 | |
| 9461 | # Do not use the global_symbol_pipe unless it works. |
| 9462 | if test "$pipe_works" = yes; then |
| 9463 | break |
| 9464 | else |
| 9465 | lt_cv_sys_global_symbol_pipe= |
| 9466 | fi |
| 9467 | done |
| 9468 | |
| 9469 | fi |
| 9470 | |
| 9471 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9472 | lt_cv_sys_global_symbol_to_cdecl= |
| 9473 | fi |
| 9474 | 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] | 9475 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9476 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9477 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9478 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9479 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9480 | fi |
| 9481 | |
| 9482 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9483 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9484 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9485 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9487 | else |
| 9488 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9489 | libltdl_cv_preloaded_symbols=yes |
| 9490 | else |
| 9491 | libltdl_cv_preloaded_symbols=no |
| 9492 | fi |
| 9493 | |
| 9494 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9495 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9496 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9497 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9498 | |
| 9499 | cat >>confdefs.h <<\_ACEOF |
| 9500 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9501 | _ACEOF |
| 9502 | |
| 9503 | fi |
| 9504 | |
| 9505 | LIBADD_DL= |
| 9506 | |
| 9507 | ac_ext=c |
| 9508 | ac_cpp='$CPP $CPPFLAGS' |
| 9509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9512 | |
| 9513 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9514 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9515 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9516 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9518 | else |
| 9519 | cat >conftest.$ac_ext <<_ACEOF |
| 9520 | /* confdefs.h. */ |
| 9521 | _ACEOF |
| 9522 | cat confdefs.h >>conftest.$ac_ext |
| 9523 | cat >>conftest.$ac_ext <<_ACEOF |
| 9524 | /* end confdefs.h. */ |
| 9525 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9527 | #define shl_load innocuous_shl_load |
| 9528 | |
| 9529 | /* System header to define __stub macros and hopefully few prototypes, |
| 9530 | which can conflict with char shl_load (); below. |
| 9531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9532 | <limits.h> exists even on freestanding compilers. */ |
| 9533 | |
| 9534 | #ifdef __STDC__ |
| 9535 | # include <limits.h> |
| 9536 | #else |
| 9537 | # include <assert.h> |
| 9538 | #endif |
| 9539 | |
| 9540 | #undef shl_load |
| 9541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9542 | /* Override any GCC internal prototype to avoid an error. |
| 9543 | Use char because int might match the return type of a GCC |
| 9544 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9545 | #ifdef __cplusplus |
| 9546 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9547 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9548 | char shl_load (); |
| 9549 | /* The GNU C library defines this for functions which it implements |
| 9550 | to always fail with ENOSYS. Some functions are actually named |
| 9551 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9552 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9553 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9554 | #endif |
| 9555 | |
| 9556 | int |
| 9557 | main () |
| 9558 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9559 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9560 | ; |
| 9561 | return 0; |
| 9562 | } |
| 9563 | _ACEOF |
| 9564 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9565 | if { (ac_try="$ac_link" |
| 9566 | case "(($ac_try" in |
| 9567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9568 | *) ac_try_echo=$ac_try;; |
| 9569 | esac |
| 9570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9571 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9572 | ac_status=$? |
| 9573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9574 | rm -f conftest.er1 |
| 9575 | cat conftest.err >&5 |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9577 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9578 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9579 | { (case "(($ac_try" in |
| 9580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9581 | *) ac_try_echo=$ac_try;; |
| 9582 | esac |
| 9583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9584 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9585 | ac_status=$? |
| 9586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9587 | (exit $ac_status); }; } && |
| 9588 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9598 | ac_cv_func_shl_load=yes |
| 9599 | else |
| 9600 | echo "$as_me: failed program was:" >&5 |
| 9601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9602 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9603 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9605 | |
| 9606 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9607 | conftest$ac_exeext conftest.$ac_ext |
| 9608 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9609 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9610 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9611 | if test $ac_cv_func_shl_load = yes; then |
| 9612 | |
| 9613 | cat >>confdefs.h <<\_ACEOF |
| 9614 | #define HAVE_SHL_LOAD 1 |
| 9615 | _ACEOF |
| 9616 | |
| 9617 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9618 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9619 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9620 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9622 | else |
| 9623 | ac_check_lib_save_LIBS=$LIBS |
| 9624 | LIBS="-ldld $LIBS" |
| 9625 | cat >conftest.$ac_ext <<_ACEOF |
| 9626 | /* confdefs.h. */ |
| 9627 | _ACEOF |
| 9628 | cat confdefs.h >>conftest.$ac_ext |
| 9629 | cat >>conftest.$ac_ext <<_ACEOF |
| 9630 | /* end confdefs.h. */ |
| 9631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9632 | /* Override any GCC internal prototype to avoid an error. |
| 9633 | Use char because int might match the return type of a GCC |
| 9634 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9635 | #ifdef __cplusplus |
| 9636 | extern "C" |
| 9637 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9638 | char shl_load (); |
| 9639 | int |
| 9640 | main () |
| 9641 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9642 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
| 9647 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9648 | if { (ac_try="$ac_link" |
| 9649 | case "(($ac_try" in |
| 9650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9651 | *) ac_try_echo=$ac_try;; |
| 9652 | esac |
| 9653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9654 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9655 | ac_status=$? |
| 9656 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9657 | rm -f conftest.er1 |
| 9658 | cat conftest.err >&5 |
| 9659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9660 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9662 | { (case "(($ac_try" in |
| 9663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9664 | *) ac_try_echo=$ac_try;; |
| 9665 | esac |
| 9666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9667 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9668 | ac_status=$? |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; } && |
| 9671 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9681 | ac_cv_lib_dld_shl_load=yes |
| 9682 | else |
| 9683 | echo "$as_me: failed program was:" >&5 |
| 9684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9685 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9686 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9687 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9688 | |
| 9689 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9690 | conftest$ac_exeext conftest.$ac_ext |
| 9691 | LIBS=$ac_check_lib_save_LIBS |
| 9692 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9693 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9694 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9695 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9696 | |
| 9697 | cat >>confdefs.h <<\_ACEOF |
| 9698 | #define HAVE_SHL_LOAD 1 |
| 9699 | _ACEOF |
| 9700 | |
| 9701 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9702 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9703 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9704 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9705 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9707 | else |
| 9708 | ac_check_lib_save_LIBS=$LIBS |
| 9709 | LIBS="-ldl $LIBS" |
| 9710 | cat >conftest.$ac_ext <<_ACEOF |
| 9711 | /* confdefs.h. */ |
| 9712 | _ACEOF |
| 9713 | cat confdefs.h >>conftest.$ac_ext |
| 9714 | cat >>conftest.$ac_ext <<_ACEOF |
| 9715 | /* end confdefs.h. */ |
| 9716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9717 | /* Override any GCC internal prototype to avoid an error. |
| 9718 | Use char because int might match the return type of a GCC |
| 9719 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9720 | #ifdef __cplusplus |
| 9721 | extern "C" |
| 9722 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9723 | char dlopen (); |
| 9724 | int |
| 9725 | main () |
| 9726 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9727 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9728 | ; |
| 9729 | return 0; |
| 9730 | } |
| 9731 | _ACEOF |
| 9732 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9733 | if { (ac_try="$ac_link" |
| 9734 | case "(($ac_try" in |
| 9735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9736 | *) ac_try_echo=$ac_try;; |
| 9737 | esac |
| 9738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9739 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9740 | ac_status=$? |
| 9741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9742 | rm -f conftest.er1 |
| 9743 | cat conftest.err >&5 |
| 9744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9745 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9747 | { (case "(($ac_try" in |
| 9748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9749 | *) ac_try_echo=$ac_try;; |
| 9750 | esac |
| 9751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9752 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9753 | ac_status=$? |
| 9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9755 | (exit $ac_status); }; } && |
| 9756 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9766 | ac_cv_lib_dl_dlopen=yes |
| 9767 | else |
| 9768 | echo "$as_me: failed program was:" >&5 |
| 9769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9770 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9771 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9772 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9773 | |
| 9774 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9775 | conftest$ac_exeext conftest.$ac_ext |
| 9776 | LIBS=$ac_check_lib_save_LIBS |
| 9777 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9778 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9779 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9780 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9781 | |
| 9782 | cat >>confdefs.h <<\_ACEOF |
| 9783 | #define HAVE_LIBDL 1 |
| 9784 | _ACEOF |
| 9785 | |
| 9786 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9787 | else |
| 9788 | cat >conftest.$ac_ext <<_ACEOF |
| 9789 | /* confdefs.h. */ |
| 9790 | _ACEOF |
| 9791 | cat confdefs.h >>conftest.$ac_ext |
| 9792 | cat >>conftest.$ac_ext <<_ACEOF |
| 9793 | /* end confdefs.h. */ |
| 9794 | #if HAVE_DLFCN_H |
| 9795 | # include <dlfcn.h> |
| 9796 | #endif |
| 9797 | |
| 9798 | int |
| 9799 | main () |
| 9800 | { |
| 9801 | dlopen(0, 0); |
| 9802 | ; |
| 9803 | return 0; |
| 9804 | } |
| 9805 | _ACEOF |
| 9806 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9807 | if { (ac_try="$ac_link" |
| 9808 | case "(($ac_try" in |
| 9809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9810 | *) ac_try_echo=$ac_try;; |
| 9811 | esac |
| 9812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9813 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | ac_status=$? |
| 9815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9816 | rm -f conftest.er1 |
| 9817 | cat conftest.err >&5 |
| 9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9819 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9821 | { (case "(($ac_try" in |
| 9822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9823 | *) ac_try_echo=$ac_try;; |
| 9824 | esac |
| 9825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9826 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9827 | ac_status=$? |
| 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9829 | (exit $ac_status); }; } && |
| 9830 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9840 | |
| 9841 | cat >>confdefs.h <<\_ACEOF |
| 9842 | #define HAVE_LIBDL 1 |
| 9843 | _ACEOF |
| 9844 | libltdl_cv_func_dlopen="yes" |
| 9845 | else |
| 9846 | echo "$as_me: failed program was:" >&5 |
| 9847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9848 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9849 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9850 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9851 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9853 | else |
| 9854 | ac_check_lib_save_LIBS=$LIBS |
| 9855 | LIBS="-lsvld $LIBS" |
| 9856 | cat >conftest.$ac_ext <<_ACEOF |
| 9857 | /* confdefs.h. */ |
| 9858 | _ACEOF |
| 9859 | cat confdefs.h >>conftest.$ac_ext |
| 9860 | cat >>conftest.$ac_ext <<_ACEOF |
| 9861 | /* end confdefs.h. */ |
| 9862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9863 | /* Override any GCC internal prototype to avoid an error. |
| 9864 | Use char because int might match the return type of a GCC |
| 9865 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9866 | #ifdef __cplusplus |
| 9867 | extern "C" |
| 9868 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9869 | char dlopen (); |
| 9870 | int |
| 9871 | main () |
| 9872 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9873 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9874 | ; |
| 9875 | return 0; |
| 9876 | } |
| 9877 | _ACEOF |
| 9878 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9879 | if { (ac_try="$ac_link" |
| 9880 | case "(($ac_try" in |
| 9881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9882 | *) ac_try_echo=$ac_try;; |
| 9883 | esac |
| 9884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9885 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9886 | ac_status=$? |
| 9887 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9888 | rm -f conftest.er1 |
| 9889 | cat conftest.err >&5 |
| 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9891 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9893 | { (case "(($ac_try" in |
| 9894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9895 | *) ac_try_echo=$ac_try;; |
| 9896 | esac |
| 9897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9898 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9899 | ac_status=$? |
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); }; } && |
| 9902 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9912 | ac_cv_lib_svld_dlopen=yes |
| 9913 | else |
| 9914 | echo "$as_me: failed program was:" >&5 |
| 9915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9917 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9918 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9919 | |
| 9920 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9921 | conftest$ac_exeext conftest.$ac_ext |
| 9922 | LIBS=$ac_check_lib_save_LIBS |
| 9923 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9924 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9925 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9926 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9927 | |
| 9928 | cat >>confdefs.h <<\_ACEOF |
| 9929 | #define HAVE_LIBDL 1 |
| 9930 | _ACEOF |
| 9931 | |
| 9932 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9933 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9934 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9935 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9936 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9938 | else |
| 9939 | ac_check_lib_save_LIBS=$LIBS |
| 9940 | LIBS="-ldld $LIBS" |
| 9941 | cat >conftest.$ac_ext <<_ACEOF |
| 9942 | /* confdefs.h. */ |
| 9943 | _ACEOF |
| 9944 | cat confdefs.h >>conftest.$ac_ext |
| 9945 | cat >>conftest.$ac_ext <<_ACEOF |
| 9946 | /* end confdefs.h. */ |
| 9947 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9948 | /* Override any GCC internal prototype to avoid an error. |
| 9949 | Use char because int might match the return type of a GCC |
| 9950 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9951 | #ifdef __cplusplus |
| 9952 | extern "C" |
| 9953 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9954 | char dld_link (); |
| 9955 | int |
| 9956 | main () |
| 9957 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9958 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9959 | ; |
| 9960 | return 0; |
| 9961 | } |
| 9962 | _ACEOF |
| 9963 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9964 | if { (ac_try="$ac_link" |
| 9965 | case "(($ac_try" in |
| 9966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9967 | *) ac_try_echo=$ac_try;; |
| 9968 | esac |
| 9969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9970 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9971 | ac_status=$? |
| 9972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9973 | rm -f conftest.er1 |
| 9974 | cat conftest.err >&5 |
| 9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9976 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9978 | { (case "(($ac_try" in |
| 9979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9980 | *) ac_try_echo=$ac_try;; |
| 9981 | esac |
| 9982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9983 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9984 | ac_status=$? |
| 9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9986 | (exit $ac_status); }; } && |
| 9987 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 9997 | ac_cv_lib_dld_dld_link=yes |
| 9998 | else |
| 9999 | echo "$as_me: failed program was:" >&5 |
| 10000 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10002 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10003 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10004 | |
| 10005 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10006 | conftest$ac_exeext conftest.$ac_ext |
| 10007 | LIBS=$ac_check_lib_save_LIBS |
| 10008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10009 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10010 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10011 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10012 | |
| 10013 | cat >>confdefs.h <<\_ACEOF |
| 10014 | #define HAVE_DLD 1 |
| 10015 | _ACEOF |
| 10016 | |
| 10017 | LIBADD_DL="$LIBADD_DL -ldld" |
| 10018 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10019 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 10020 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10021 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 10022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10023 | else |
| 10024 | cat >conftest.$ac_ext <<_ACEOF |
| 10025 | /* confdefs.h. */ |
| 10026 | _ACEOF |
| 10027 | cat confdefs.h >>conftest.$ac_ext |
| 10028 | cat >>conftest.$ac_ext <<_ACEOF |
| 10029 | /* end confdefs.h. */ |
| 10030 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 10031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10032 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 10033 | |
| 10034 | /* System header to define __stub macros and hopefully few prototypes, |
| 10035 | which can conflict with char _dyld_func_lookup (); below. |
| 10036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10037 | <limits.h> exists even on freestanding compilers. */ |
| 10038 | |
| 10039 | #ifdef __STDC__ |
| 10040 | # include <limits.h> |
| 10041 | #else |
| 10042 | # include <assert.h> |
| 10043 | #endif |
| 10044 | |
| 10045 | #undef _dyld_func_lookup |
| 10046 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10047 | /* Override any GCC internal prototype to avoid an error. |
| 10048 | Use char because int might match the return type of a GCC |
| 10049 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10050 | #ifdef __cplusplus |
| 10051 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10052 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10053 | char _dyld_func_lookup (); |
| 10054 | /* The GNU C library defines this for functions which it implements |
| 10055 | to always fail with ENOSYS. Some functions are actually named |
| 10056 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10057 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10058 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10059 | #endif |
| 10060 | |
| 10061 | int |
| 10062 | main () |
| 10063 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10064 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10065 | ; |
| 10066 | return 0; |
| 10067 | } |
| 10068 | _ACEOF |
| 10069 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10070 | if { (ac_try="$ac_link" |
| 10071 | case "(($ac_try" in |
| 10072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10073 | *) ac_try_echo=$ac_try;; |
| 10074 | esac |
| 10075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10076 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10077 | ac_status=$? |
| 10078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10079 | rm -f conftest.er1 |
| 10080 | cat conftest.err >&5 |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10084 | { (case "(($ac_try" in |
| 10085 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10086 | *) ac_try_echo=$ac_try;; |
| 10087 | esac |
| 10088 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10089 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10090 | ac_status=$? |
| 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10092 | (exit $ac_status); }; } && |
| 10093 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10103 | ac_cv_func__dyld_func_lookup=yes |
| 10104 | else |
| 10105 | echo "$as_me: failed program was:" >&5 |
| 10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10108 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10109 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10110 | |
| 10111 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10112 | conftest$ac_exeext conftest.$ac_ext |
| 10113 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10114 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 10115 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10116 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 10117 | |
| 10118 | cat >>confdefs.h <<\_ACEOF |
| 10119 | #define HAVE_DYLD 1 |
| 10120 | _ACEOF |
| 10121 | |
| 10122 | fi |
| 10123 | |
| 10124 | |
| 10125 | fi |
| 10126 | |
| 10127 | |
| 10128 | fi |
| 10129 | |
| 10130 | |
| 10131 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10132 | |
| 10133 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10134 | conftest$ac_exeext conftest.$ac_ext |
| 10135 | |
| 10136 | fi |
| 10137 | |
| 10138 | |
| 10139 | fi |
| 10140 | |
| 10141 | |
| 10142 | fi |
| 10143 | |
| 10144 | |
| 10145 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 10146 | then |
| 10147 | lt_save_LIBS="$LIBS" |
| 10148 | LIBS="$LIBS $LIBADD_DL" |
| 10149 | |
| 10150 | for ac_func in dlerror |
| 10151 | do |
| 10152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10153 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10155 | 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] | 10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10157 | else |
| 10158 | cat >conftest.$ac_ext <<_ACEOF |
| 10159 | /* confdefs.h. */ |
| 10160 | _ACEOF |
| 10161 | cat confdefs.h >>conftest.$ac_ext |
| 10162 | cat >>conftest.$ac_ext <<_ACEOF |
| 10163 | /* end confdefs.h. */ |
| 10164 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10165 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10166 | #define $ac_func innocuous_$ac_func |
| 10167 | |
| 10168 | /* System header to define __stub macros and hopefully few prototypes, |
| 10169 | which can conflict with char $ac_func (); below. |
| 10170 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10171 | <limits.h> exists even on freestanding compilers. */ |
| 10172 | |
| 10173 | #ifdef __STDC__ |
| 10174 | # include <limits.h> |
| 10175 | #else |
| 10176 | # include <assert.h> |
| 10177 | #endif |
| 10178 | |
| 10179 | #undef $ac_func |
| 10180 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10181 | /* Override any GCC internal prototype to avoid an error. |
| 10182 | Use char because int might match the return type of a GCC |
| 10183 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10184 | #ifdef __cplusplus |
| 10185 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10186 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10187 | char $ac_func (); |
| 10188 | /* The GNU C library defines this for functions which it implements |
| 10189 | to always fail with ENOSYS. Some functions are actually named |
| 10190 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10191 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10192 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10193 | #endif |
| 10194 | |
| 10195 | int |
| 10196 | main () |
| 10197 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10198 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10199 | ; |
| 10200 | return 0; |
| 10201 | } |
| 10202 | _ACEOF |
| 10203 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10204 | if { (ac_try="$ac_link" |
| 10205 | case "(($ac_try" in |
| 10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10207 | *) ac_try_echo=$ac_try;; |
| 10208 | esac |
| 10209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10210 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10211 | ac_status=$? |
| 10212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10213 | rm -f conftest.er1 |
| 10214 | cat conftest.err >&5 |
| 10215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10216 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10218 | { (case "(($ac_try" in |
| 10219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10220 | *) ac_try_echo=$ac_try;; |
| 10221 | esac |
| 10222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10223 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); }; } && |
| 10227 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10237 | eval "$as_ac_var=yes" |
| 10238 | else |
| 10239 | echo "$as_me: failed program was:" >&5 |
| 10240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10242 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10243 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10244 | |
| 10245 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10246 | conftest$ac_exeext conftest.$ac_ext |
| 10247 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10248 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10249 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10250 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10251 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10252 | cat >>confdefs.h <<_ACEOF |
| 10253 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10254 | _ACEOF |
| 10255 | |
| 10256 | fi |
| 10257 | done |
| 10258 | |
| 10259 | LIBS="$lt_save_LIBS" |
| 10260 | fi |
| 10261 | ac_ext=c |
| 10262 | ac_cpp='$CPP $CPPFLAGS' |
| 10263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10266 | |
| 10267 | |
| 10268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10269 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 10270 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10271 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10273 | else |
| 10274 | ac_cv_sys_symbol_underscore=no |
| 10275 | cat > conftest.$ac_ext <<EOF |
| 10276 | void nm_test_func(){} |
| 10277 | int main(){nm_test_func;return 0;} |
| 10278 | EOF |
| 10279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10280 | (eval $ac_compile) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); }; then |
| 10284 | # Now try to grab the symbols. |
| 10285 | ac_nlist=conftest.nm |
| 10286 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 10287 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 10288 | ac_status=$? |
| 10289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10290 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 10291 | # See whether the symbols have a leading underscore. |
| 10292 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 10293 | ac_cv_sys_symbol_underscore=yes |
| 10294 | else |
| 10295 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 10296 | : |
| 10297 | else |
| 10298 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 10299 | fi |
| 10300 | fi |
| 10301 | else |
| 10302 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10303 | fi |
| 10304 | else |
| 10305 | echo "configure: failed program was:" >&5 |
| 10306 | cat conftest.c >&5 |
| 10307 | fi |
| 10308 | rm -rf conftest* |
| 10309 | |
| 10310 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10311 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 10312 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10313 | |
| 10314 | |
| 10315 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 10316 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 10317 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10318 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 10319 | 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] | 10320 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 10321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10322 | else |
| 10323 | libltdl_cv_need_uscore=unknown |
| 10324 | save_LIBS="$LIBS" |
| 10325 | LIBS="$LIBS $LIBADD_DL" |
| 10326 | if test "$cross_compiling" = yes; then : |
| 10327 | libltdl_cv_need_uscore=cross |
| 10328 | else |
| 10329 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10330 | lt_status=$lt_dlunknown |
| 10331 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 10332 | #line 10332 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10333 | #include "confdefs.h" |
| 10334 | |
| 10335 | #if HAVE_DLFCN_H |
| 10336 | #include <dlfcn.h> |
| 10337 | #endif |
| 10338 | |
| 10339 | #include <stdio.h> |
| 10340 | |
| 10341 | #ifdef RTLD_GLOBAL |
| 10342 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10343 | #else |
| 10344 | # ifdef DL_GLOBAL |
| 10345 | # define LT_DLGLOBAL DL_GLOBAL |
| 10346 | # else |
| 10347 | # define LT_DLGLOBAL 0 |
| 10348 | # endif |
| 10349 | #endif |
| 10350 | |
| 10351 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10352 | find out it does not work in some platform. */ |
| 10353 | #ifndef LT_DLLAZY_OR_NOW |
| 10354 | # ifdef RTLD_LAZY |
| 10355 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10356 | # else |
| 10357 | # ifdef DL_LAZY |
| 10358 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10359 | # else |
| 10360 | # ifdef RTLD_NOW |
| 10361 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10362 | # else |
| 10363 | # ifdef DL_NOW |
| 10364 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10365 | # else |
| 10366 | # define LT_DLLAZY_OR_NOW 0 |
| 10367 | # endif |
| 10368 | # endif |
| 10369 | # endif |
| 10370 | # endif |
| 10371 | #endif |
| 10372 | |
| 10373 | #ifdef __cplusplus |
| 10374 | extern "C" void exit (int); |
| 10375 | #endif |
| 10376 | |
| 10377 | void fnord() { int i=42;} |
| 10378 | int main () |
| 10379 | { |
| 10380 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10381 | int status = $lt_dlunknown; |
| 10382 | |
| 10383 | if (self) |
| 10384 | { |
| 10385 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10386 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10387 | /* dlclose (self); */ |
| 10388 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10389 | else |
| 10390 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10391 | |
| 10392 | exit (status); |
| 10393 | } |
| 10394 | EOF |
| 10395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10396 | (eval $ac_link) 2>&5 |
| 10397 | ac_status=$? |
| 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10399 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10400 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10401 | lt_status=$? |
| 10402 | case x$lt_status in |
| 10403 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 10404 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10405 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10406 | esac |
| 10407 | else : |
| 10408 | # compilation failed |
| 10409 | |
| 10410 | fi |
| 10411 | fi |
| 10412 | rm -fr conftest* |
| 10413 | |
| 10414 | LIBS="$save_LIBS" |
| 10415 | |
| 10416 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10417 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 10418 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10419 | fi |
| 10420 | fi |
| 10421 | |
| 10422 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 10423 | |
| 10424 | cat >>confdefs.h <<\_ACEOF |
| 10425 | #define NEED_USCORE 1 |
| 10426 | _ACEOF |
| 10427 | |
| 10428 | fi |
| 10429 | |
| 10430 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10431 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 10432 | 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] | 10433 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10435 | else |
| 10436 | # PORTME does your system automatically load deplibs for dlopen? |
| 10437 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 10438 | # For now, we just catch OSes we know something about -- in the |
| 10439 | # future, we'll try test this programmatically. |
| 10440 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10441 | case "$host_os" in |
| 10442 | aix3*|aix4.1.*|aix4.2.*) |
| 10443 | # Unknown whether this is true for these versions of AIX, but |
| 10444 | # we want this `case' here to explicitly catch those versions. |
| 10445 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10446 | ;; |
| 10447 | aix[45]*) |
| 10448 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10449 | ;; |
| 10450 | darwin*) |
| 10451 | # Assuming the user has installed a libdl from somewhere, this is true |
| 10452 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 10453 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10454 | ;; |
| 10455 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 10456 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10457 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10458 | ;; |
| 10459 | hpux10*|hpux11*) |
| 10460 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10461 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10462 | interix*) |
| 10463 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10464 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10465 | irix[12345]*|irix6.[01]*) |
| 10466 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10467 | # know how it worked for any of those versions. |
| 10468 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10469 | ;; |
| 10470 | irix*) |
| 10471 | # The case above catches anything before 6.2, and it's known that |
| 10472 | # at 6.2 and later dlopen does load deplibs. |
| 10473 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10474 | ;; |
| 10475 | netbsd*) |
| 10476 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10477 | ;; |
| 10478 | openbsd*) |
| 10479 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10480 | ;; |
| 10481 | osf[1234]*) |
| 10482 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10483 | # it did *not* use an RPATH in a shared library to find objects the |
| 10484 | # library depends on, so we explictly say `no'. |
| 10485 | libltdl_cv_sys_dlopen_deplibs=no |
| 10486 | ;; |
| 10487 | osf5.0|osf5.0a|osf5.1) |
| 10488 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10489 | # it even uses RPATH in a shared library to search for shared objects |
| 10490 | # that the library depends on, but there's no easy way to know if that |
| 10491 | # patch is installed. Since this is the case, all we can really |
| 10492 | # say is unknown -- it depends on the patch being installed. If |
| 10493 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10494 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10495 | ;; |
| 10496 | osf*) |
| 10497 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10498 | # the comments above for what we know about them. |
| 10499 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10500 | # is used to find them so we can finally say `yes'. |
| 10501 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10502 | ;; |
| 10503 | solaris*) |
| 10504 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10505 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10506 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10507 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10508 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10509 | esac |
| 10510 | |
| 10511 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10512 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10513 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10514 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10515 | |
| 10516 | cat >>confdefs.h <<\_ACEOF |
| 10517 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10518 | _ACEOF |
| 10519 | |
| 10520 | fi |
| 10521 | |
| 10522 | |
| 10523 | for ac_header in argz.h |
| 10524 | do |
| 10525 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10526 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10527 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10528 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10529 | 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] | 10530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10531 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10532 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10533 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10534 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10535 | else |
| 10536 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10537 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10538 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10539 | cat >conftest.$ac_ext <<_ACEOF |
| 10540 | /* confdefs.h. */ |
| 10541 | _ACEOF |
| 10542 | cat confdefs.h >>conftest.$ac_ext |
| 10543 | cat >>conftest.$ac_ext <<_ACEOF |
| 10544 | /* end confdefs.h. */ |
| 10545 | $ac_includes_default |
| 10546 | #include <$ac_header> |
| 10547 | _ACEOF |
| 10548 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10549 | if { (ac_try="$ac_compile" |
| 10550 | case "(($ac_try" in |
| 10551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10552 | *) ac_try_echo=$ac_try;; |
| 10553 | esac |
| 10554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10555 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10556 | ac_status=$? |
| 10557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10558 | rm -f conftest.er1 |
| 10559 | cat conftest.err >&5 |
| 10560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10561 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10563 | { (case "(($ac_try" in |
| 10564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10565 | *) ac_try_echo=$ac_try;; |
| 10566 | esac |
| 10567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10568 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; } && |
| 10572 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10582 | ac_header_compiler=yes |
| 10583 | else |
| 10584 | echo "$as_me: failed program was:" >&5 |
| 10585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10586 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10587 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10588 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10589 | |
| 10590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10591 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10592 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10593 | |
| 10594 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10595 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10596 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10597 | cat >conftest.$ac_ext <<_ACEOF |
| 10598 | /* confdefs.h. */ |
| 10599 | _ACEOF |
| 10600 | cat confdefs.h >>conftest.$ac_ext |
| 10601 | cat >>conftest.$ac_ext <<_ACEOF |
| 10602 | /* end confdefs.h. */ |
| 10603 | #include <$ac_header> |
| 10604 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10605 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10606 | case "(($ac_try" in |
| 10607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10608 | *) ac_try_echo=$ac_try;; |
| 10609 | esac |
| 10610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10611 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10612 | ac_status=$? |
| 10613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10614 | rm -f conftest.er1 |
| 10615 | cat conftest.err >&5 |
| 10616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10617 | (exit $ac_status); } >/dev/null; then |
| 10618 | if test -s conftest.err; then |
| 10619 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10620 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10621 | else |
| 10622 | ac_cpp_err= |
| 10623 | fi |
| 10624 | else |
| 10625 | ac_cpp_err=yes |
| 10626 | fi |
| 10627 | if test -z "$ac_cpp_err"; then |
| 10628 | ac_header_preproc=yes |
| 10629 | else |
| 10630 | echo "$as_me: failed program was:" >&5 |
| 10631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10632 | |
| 10633 | ac_header_preproc=no |
| 10634 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10635 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10636 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10637 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10638 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10639 | |
| 10640 | # So? What about this header? |
| 10641 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10642 | yes:no: ) |
| 10643 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10644 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10646 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10647 | ac_header_preproc=yes |
| 10648 | ;; |
| 10649 | no:yes:* ) |
| 10650 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10651 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10652 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10653 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10654 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10655 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10656 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10657 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10658 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10659 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10661 | 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] | 10662 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10663 | ## ----------------------------------- ## |
| 10664 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10665 | ## ----------------------------------- ## |
| 10666 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10667 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10668 | ;; |
| 10669 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10670 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10672 | 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] | 10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10674 | else |
| 10675 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10676 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10677 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10678 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10679 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10680 | |
| 10681 | fi |
| 10682 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10683 | cat >>confdefs.h <<_ACEOF |
| 10684 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10685 | _ACEOF |
| 10686 | |
| 10687 | fi |
| 10688 | |
| 10689 | done |
| 10690 | |
| 10691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10692 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10693 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10694 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10696 | else |
| 10697 | cat >conftest.$ac_ext <<_ACEOF |
| 10698 | /* confdefs.h. */ |
| 10699 | _ACEOF |
| 10700 | cat confdefs.h >>conftest.$ac_ext |
| 10701 | cat >>conftest.$ac_ext <<_ACEOF |
| 10702 | /* end confdefs.h. */ |
| 10703 | #if HAVE_ARGZ_H |
| 10704 | # include <argz.h> |
| 10705 | #endif |
| 10706 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10707 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10708 | int |
| 10709 | main () |
| 10710 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10711 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10712 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10713 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10714 | return 0; |
| 10715 | ; |
| 10716 | return 0; |
| 10717 | } |
| 10718 | _ACEOF |
| 10719 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10720 | if { (ac_try="$ac_compile" |
| 10721 | case "(($ac_try" in |
| 10722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10723 | *) ac_try_echo=$ac_try;; |
| 10724 | esac |
| 10725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10726 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10727 | ac_status=$? |
| 10728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10729 | rm -f conftest.er1 |
| 10730 | cat conftest.err >&5 |
| 10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10732 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10734 | { (case "(($ac_try" in |
| 10735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10736 | *) ac_try_echo=$ac_try;; |
| 10737 | esac |
| 10738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10739 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10740 | ac_status=$? |
| 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10742 | (exit $ac_status); }; } && |
| 10743 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10753 | ac_cv_type_error_t=yes |
| 10754 | else |
| 10755 | echo "$as_me: failed program was:" >&5 |
| 10756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10758 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10759 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10760 | |
| 10761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10762 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10763 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10764 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10765 | if test $ac_cv_type_error_t = yes; then |
| 10766 | |
| 10767 | cat >>confdefs.h <<_ACEOF |
| 10768 | #define HAVE_ERROR_T 1 |
| 10769 | _ACEOF |
| 10770 | |
| 10771 | |
| 10772 | else |
| 10773 | |
| 10774 | cat >>confdefs.h <<\_ACEOF |
| 10775 | #define error_t int |
| 10776 | _ACEOF |
| 10777 | |
| 10778 | fi |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | |
| 10784 | |
| 10785 | |
| 10786 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10787 | do |
| 10788 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10789 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10790 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10791 | 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] | 10792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10793 | else |
| 10794 | cat >conftest.$ac_ext <<_ACEOF |
| 10795 | /* confdefs.h. */ |
| 10796 | _ACEOF |
| 10797 | cat confdefs.h >>conftest.$ac_ext |
| 10798 | cat >>conftest.$ac_ext <<_ACEOF |
| 10799 | /* end confdefs.h. */ |
| 10800 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10802 | #define $ac_func innocuous_$ac_func |
| 10803 | |
| 10804 | /* System header to define __stub macros and hopefully few prototypes, |
| 10805 | which can conflict with char $ac_func (); below. |
| 10806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10807 | <limits.h> exists even on freestanding compilers. */ |
| 10808 | |
| 10809 | #ifdef __STDC__ |
| 10810 | # include <limits.h> |
| 10811 | #else |
| 10812 | # include <assert.h> |
| 10813 | #endif |
| 10814 | |
| 10815 | #undef $ac_func |
| 10816 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10817 | /* Override any GCC internal prototype to avoid an error. |
| 10818 | Use char because int might match the return type of a GCC |
| 10819 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10820 | #ifdef __cplusplus |
| 10821 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10822 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10823 | char $ac_func (); |
| 10824 | /* The GNU C library defines this for functions which it implements |
| 10825 | to always fail with ENOSYS. Some functions are actually named |
| 10826 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10827 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10828 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10829 | #endif |
| 10830 | |
| 10831 | int |
| 10832 | main () |
| 10833 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10834 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10835 | ; |
| 10836 | return 0; |
| 10837 | } |
| 10838 | _ACEOF |
| 10839 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10840 | if { (ac_try="$ac_link" |
| 10841 | case "(($ac_try" in |
| 10842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10843 | *) ac_try_echo=$ac_try;; |
| 10844 | esac |
| 10845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10846 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10847 | ac_status=$? |
| 10848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10849 | rm -f conftest.er1 |
| 10850 | cat conftest.err >&5 |
| 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10852 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10854 | { (case "(($ac_try" in |
| 10855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10856 | *) ac_try_echo=$ac_try;; |
| 10857 | esac |
| 10858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10859 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10860 | ac_status=$? |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); }; } && |
| 10863 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10873 | eval "$as_ac_var=yes" |
| 10874 | else |
| 10875 | echo "$as_me: failed program was:" >&5 |
| 10876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10878 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10880 | |
| 10881 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10882 | conftest$ac_exeext conftest.$ac_ext |
| 10883 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10884 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10885 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10886 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10887 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10888 | cat >>confdefs.h <<_ACEOF |
| 10889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10890 | _ACEOF |
| 10891 | |
| 10892 | fi |
| 10893 | done |
| 10894 | |
| 10895 | |
| 10896 | |
| 10897 | |
| 10898 | |
| 10899 | |
| 10900 | |
| 10901 | |
| 10902 | |
| 10903 | |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
| 10910 | |
| 10911 | |
| 10912 | |
| 10913 | |
| 10914 | |
| 10915 | |
| 10916 | |
| 10917 | |
| 10918 | |
| 10919 | |
| 10920 | |
| 10921 | |
| 10922 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10923 | stdio.h unistd.h |
| 10924 | do |
| 10925 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10927 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10929 | 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] | 10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10931 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10934 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10935 | else |
| 10936 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10937 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10939 | cat >conftest.$ac_ext <<_ACEOF |
| 10940 | /* confdefs.h. */ |
| 10941 | _ACEOF |
| 10942 | cat confdefs.h >>conftest.$ac_ext |
| 10943 | cat >>conftest.$ac_ext <<_ACEOF |
| 10944 | /* end confdefs.h. */ |
| 10945 | $ac_includes_default |
| 10946 | #include <$ac_header> |
| 10947 | _ACEOF |
| 10948 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10949 | if { (ac_try="$ac_compile" |
| 10950 | case "(($ac_try" in |
| 10951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10952 | *) ac_try_echo=$ac_try;; |
| 10953 | esac |
| 10954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10955 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10956 | ac_status=$? |
| 10957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10958 | rm -f conftest.er1 |
| 10959 | cat conftest.err >&5 |
| 10960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10961 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10962 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10963 | { (case "(($ac_try" in |
| 10964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10965 | *) ac_try_echo=$ac_try;; |
| 10966 | esac |
| 10967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10968 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10969 | ac_status=$? |
| 10970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10971 | (exit $ac_status); }; } && |
| 10972 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 10982 | ac_header_compiler=yes |
| 10983 | else |
| 10984 | echo "$as_me: failed program was:" >&5 |
| 10985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10987 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10988 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10989 | |
| 10990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10991 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10992 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10993 | |
| 10994 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10995 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10996 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10997 | cat >conftest.$ac_ext <<_ACEOF |
| 10998 | /* confdefs.h. */ |
| 10999 | _ACEOF |
| 11000 | cat confdefs.h >>conftest.$ac_ext |
| 11001 | cat >>conftest.$ac_ext <<_ACEOF |
| 11002 | /* end confdefs.h. */ |
| 11003 | #include <$ac_header> |
| 11004 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11005 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11006 | case "(($ac_try" in |
| 11007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11008 | *) ac_try_echo=$ac_try;; |
| 11009 | esac |
| 11010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11011 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11012 | ac_status=$? |
| 11013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11014 | rm -f conftest.er1 |
| 11015 | cat conftest.err >&5 |
| 11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11017 | (exit $ac_status); } >/dev/null; then |
| 11018 | if test -s conftest.err; then |
| 11019 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11020 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11021 | else |
| 11022 | ac_cpp_err= |
| 11023 | fi |
| 11024 | else |
| 11025 | ac_cpp_err=yes |
| 11026 | fi |
| 11027 | if test -z "$ac_cpp_err"; then |
| 11028 | ac_header_preproc=yes |
| 11029 | else |
| 11030 | echo "$as_me: failed program was:" >&5 |
| 11031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11032 | |
| 11033 | ac_header_preproc=no |
| 11034 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11035 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11036 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11037 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11038 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11039 | |
| 11040 | # So? What about this header? |
| 11041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11042 | yes:no: ) |
| 11043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11047 | ac_header_preproc=yes |
| 11048 | ;; |
| 11049 | no:yes:* ) |
| 11050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11061 | 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] | 11062 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11063 | ## ----------------------------------- ## |
| 11064 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11065 | ## ----------------------------------- ## |
| 11066 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11067 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11068 | ;; |
| 11069 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11070 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11072 | 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] | 11073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11074 | else |
| 11075 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11076 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11079 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11080 | |
| 11081 | fi |
| 11082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11083 | cat >>confdefs.h <<_ACEOF |
| 11084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11085 | _ACEOF |
| 11086 | |
| 11087 | fi |
| 11088 | |
| 11089 | done |
| 11090 | |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 11096 | do |
| 11097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11099 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11101 | 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] | 11102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11103 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11104 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11105 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11106 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11107 | else |
| 11108 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11109 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11110 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11111 | cat >conftest.$ac_ext <<_ACEOF |
| 11112 | /* confdefs.h. */ |
| 11113 | _ACEOF |
| 11114 | cat confdefs.h >>conftest.$ac_ext |
| 11115 | cat >>conftest.$ac_ext <<_ACEOF |
| 11116 | /* end confdefs.h. */ |
| 11117 | $ac_includes_default |
| 11118 | #include <$ac_header> |
| 11119 | _ACEOF |
| 11120 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11121 | if { (ac_try="$ac_compile" |
| 11122 | case "(($ac_try" in |
| 11123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11124 | *) ac_try_echo=$ac_try;; |
| 11125 | esac |
| 11126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11127 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11128 | ac_status=$? |
| 11129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11130 | rm -f conftest.er1 |
| 11131 | cat conftest.err >&5 |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11135 | { (case "(($ac_try" in |
| 11136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11137 | *) ac_try_echo=$ac_try;; |
| 11138 | esac |
| 11139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11140 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11141 | ac_status=$? |
| 11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11143 | (exit $ac_status); }; } && |
| 11144 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11154 | ac_header_compiler=yes |
| 11155 | else |
| 11156 | echo "$as_me: failed program was:" >&5 |
| 11157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11158 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11159 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11160 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11161 | |
| 11162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11163 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11164 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11165 | |
| 11166 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11167 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11168 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11169 | cat >conftest.$ac_ext <<_ACEOF |
| 11170 | /* confdefs.h. */ |
| 11171 | _ACEOF |
| 11172 | cat confdefs.h >>conftest.$ac_ext |
| 11173 | cat >>conftest.$ac_ext <<_ACEOF |
| 11174 | /* end confdefs.h. */ |
| 11175 | #include <$ac_header> |
| 11176 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11177 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11178 | case "(($ac_try" in |
| 11179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11180 | *) ac_try_echo=$ac_try;; |
| 11181 | esac |
| 11182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11183 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11184 | ac_status=$? |
| 11185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11186 | rm -f conftest.er1 |
| 11187 | cat conftest.err >&5 |
| 11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11189 | (exit $ac_status); } >/dev/null; then |
| 11190 | if test -s conftest.err; then |
| 11191 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11192 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11193 | else |
| 11194 | ac_cpp_err= |
| 11195 | fi |
| 11196 | else |
| 11197 | ac_cpp_err=yes |
| 11198 | fi |
| 11199 | if test -z "$ac_cpp_err"; then |
| 11200 | ac_header_preproc=yes |
| 11201 | else |
| 11202 | echo "$as_me: failed program was:" >&5 |
| 11203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11204 | |
| 11205 | ac_header_preproc=no |
| 11206 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11207 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11208 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11209 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11210 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11211 | |
| 11212 | # So? What about this header? |
| 11213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11214 | yes:no: ) |
| 11215 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11216 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11217 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11218 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11219 | ac_header_preproc=yes |
| 11220 | ;; |
| 11221 | no:yes:* ) |
| 11222 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11223 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11224 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11225 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11226 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11227 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11228 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11229 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11231 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11232 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11233 | 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] | 11234 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11235 | ## ----------------------------------- ## |
| 11236 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11237 | ## ----------------------------------- ## |
| 11238 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11239 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11240 | ;; |
| 11241 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11242 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11244 | 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] | 11245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11246 | else |
| 11247 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11248 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11249 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11250 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11251 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11252 | |
| 11253 | fi |
| 11254 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11255 | cat >>confdefs.h <<_ACEOF |
| 11256 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11257 | _ACEOF |
| 11258 | |
| 11259 | fi |
| 11260 | |
| 11261 | done |
| 11262 | |
| 11263 | |
| 11264 | |
| 11265 | for ac_header in string.h strings.h |
| 11266 | do |
| 11267 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11269 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11271 | 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] | 11272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11273 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11274 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11275 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11276 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11277 | else |
| 11278 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11279 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11281 | cat >conftest.$ac_ext <<_ACEOF |
| 11282 | /* confdefs.h. */ |
| 11283 | _ACEOF |
| 11284 | cat confdefs.h >>conftest.$ac_ext |
| 11285 | cat >>conftest.$ac_ext <<_ACEOF |
| 11286 | /* end confdefs.h. */ |
| 11287 | $ac_includes_default |
| 11288 | #include <$ac_header> |
| 11289 | _ACEOF |
| 11290 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11291 | if { (ac_try="$ac_compile" |
| 11292 | case "(($ac_try" in |
| 11293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11294 | *) ac_try_echo=$ac_try;; |
| 11295 | esac |
| 11296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11297 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11298 | ac_status=$? |
| 11299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11300 | rm -f conftest.er1 |
| 11301 | cat conftest.err >&5 |
| 11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11303 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11305 | { (case "(($ac_try" in |
| 11306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11307 | *) ac_try_echo=$ac_try;; |
| 11308 | esac |
| 11309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11310 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11311 | ac_status=$? |
| 11312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11313 | (exit $ac_status); }; } && |
| 11314 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11324 | ac_header_compiler=yes |
| 11325 | else |
| 11326 | echo "$as_me: failed program was:" >&5 |
| 11327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11328 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11329 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11330 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11331 | |
| 11332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11334 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11335 | |
| 11336 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11337 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11339 | cat >conftest.$ac_ext <<_ACEOF |
| 11340 | /* confdefs.h. */ |
| 11341 | _ACEOF |
| 11342 | cat confdefs.h >>conftest.$ac_ext |
| 11343 | cat >>conftest.$ac_ext <<_ACEOF |
| 11344 | /* end confdefs.h. */ |
| 11345 | #include <$ac_header> |
| 11346 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11348 | case "(($ac_try" in |
| 11349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11350 | *) ac_try_echo=$ac_try;; |
| 11351 | esac |
| 11352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11354 | ac_status=$? |
| 11355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11356 | rm -f conftest.er1 |
| 11357 | cat conftest.err >&5 |
| 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11359 | (exit $ac_status); } >/dev/null; then |
| 11360 | if test -s conftest.err; then |
| 11361 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11363 | else |
| 11364 | ac_cpp_err= |
| 11365 | fi |
| 11366 | else |
| 11367 | ac_cpp_err=yes |
| 11368 | fi |
| 11369 | if test -z "$ac_cpp_err"; then |
| 11370 | ac_header_preproc=yes |
| 11371 | else |
| 11372 | echo "$as_me: failed program was:" >&5 |
| 11373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11374 | |
| 11375 | ac_header_preproc=no |
| 11376 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11377 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11378 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11379 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11380 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11381 | |
| 11382 | # So? What about this header? |
| 11383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11384 | yes:no: ) |
| 11385 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11386 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11388 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11389 | ac_header_preproc=yes |
| 11390 | ;; |
| 11391 | no:yes:* ) |
| 11392 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11393 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11394 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11395 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11396 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11397 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11398 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11399 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11402 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11403 | 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] | 11404 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11405 | ## ----------------------------------- ## |
| 11406 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 11407 | ## ----------------------------------- ## |
| 11408 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11409 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11410 | ;; |
| 11411 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11412 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11414 | 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] | 11415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11416 | else |
| 11417 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11418 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11419 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11420 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11421 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11422 | |
| 11423 | fi |
| 11424 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11425 | cat >>confdefs.h <<_ACEOF |
| 11426 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11427 | _ACEOF |
| 11428 | break |
| 11429 | fi |
| 11430 | |
| 11431 | done |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
| 11436 | for ac_func in strchr index |
| 11437 | do |
| 11438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11439 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11441 | 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] | 11442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11443 | else |
| 11444 | cat >conftest.$ac_ext <<_ACEOF |
| 11445 | /* confdefs.h. */ |
| 11446 | _ACEOF |
| 11447 | cat confdefs.h >>conftest.$ac_ext |
| 11448 | cat >>conftest.$ac_ext <<_ACEOF |
| 11449 | /* end confdefs.h. */ |
| 11450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11452 | #define $ac_func innocuous_$ac_func |
| 11453 | |
| 11454 | /* System header to define __stub macros and hopefully few prototypes, |
| 11455 | which can conflict with char $ac_func (); below. |
| 11456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11457 | <limits.h> exists even on freestanding compilers. */ |
| 11458 | |
| 11459 | #ifdef __STDC__ |
| 11460 | # include <limits.h> |
| 11461 | #else |
| 11462 | # include <assert.h> |
| 11463 | #endif |
| 11464 | |
| 11465 | #undef $ac_func |
| 11466 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11467 | /* Override any GCC internal prototype to avoid an error. |
| 11468 | Use char because int might match the return type of a GCC |
| 11469 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11470 | #ifdef __cplusplus |
| 11471 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11472 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11473 | char $ac_func (); |
| 11474 | /* The GNU C library defines this for functions which it implements |
| 11475 | to always fail with ENOSYS. Some functions are actually named |
| 11476 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11477 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11478 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11479 | #endif |
| 11480 | |
| 11481 | int |
| 11482 | main () |
| 11483 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11484 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11485 | ; |
| 11486 | return 0; |
| 11487 | } |
| 11488 | _ACEOF |
| 11489 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11490 | if { (ac_try="$ac_link" |
| 11491 | case "(($ac_try" in |
| 11492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11493 | *) ac_try_echo=$ac_try;; |
| 11494 | esac |
| 11495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11496 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11497 | ac_status=$? |
| 11498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11499 | rm -f conftest.er1 |
| 11500 | cat conftest.err >&5 |
| 11501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11502 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11504 | { (case "(($ac_try" in |
| 11505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11506 | *) ac_try_echo=$ac_try;; |
| 11507 | esac |
| 11508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11509 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11510 | ac_status=$? |
| 11511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11512 | (exit $ac_status); }; } && |
| 11513 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11523 | eval "$as_ac_var=yes" |
| 11524 | else |
| 11525 | echo "$as_me: failed program was:" >&5 |
| 11526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11527 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11528 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11529 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11530 | |
| 11531 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11532 | conftest$ac_exeext conftest.$ac_ext |
| 11533 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11534 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11535 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11536 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11537 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11538 | cat >>confdefs.h <<_ACEOF |
| 11539 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11540 | _ACEOF |
| 11541 | break |
| 11542 | fi |
| 11543 | done |
| 11544 | |
| 11545 | |
| 11546 | |
| 11547 | for ac_func in strrchr rindex |
| 11548 | do |
| 11549 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11550 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11551 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11552 | 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] | 11553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11554 | else |
| 11555 | cat >conftest.$ac_ext <<_ACEOF |
| 11556 | /* confdefs.h. */ |
| 11557 | _ACEOF |
| 11558 | cat confdefs.h >>conftest.$ac_ext |
| 11559 | cat >>conftest.$ac_ext <<_ACEOF |
| 11560 | /* end confdefs.h. */ |
| 11561 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11563 | #define $ac_func innocuous_$ac_func |
| 11564 | |
| 11565 | /* System header to define __stub macros and hopefully few prototypes, |
| 11566 | which can conflict with char $ac_func (); below. |
| 11567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11568 | <limits.h> exists even on freestanding compilers. */ |
| 11569 | |
| 11570 | #ifdef __STDC__ |
| 11571 | # include <limits.h> |
| 11572 | #else |
| 11573 | # include <assert.h> |
| 11574 | #endif |
| 11575 | |
| 11576 | #undef $ac_func |
| 11577 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11578 | /* Override any GCC internal prototype to avoid an error. |
| 11579 | Use char because int might match the return type of a GCC |
| 11580 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11581 | #ifdef __cplusplus |
| 11582 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11583 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11584 | char $ac_func (); |
| 11585 | /* The GNU C library defines this for functions which it implements |
| 11586 | to always fail with ENOSYS. Some functions are actually named |
| 11587 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11588 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11589 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11590 | #endif |
| 11591 | |
| 11592 | int |
| 11593 | main () |
| 11594 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11595 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11596 | ; |
| 11597 | return 0; |
| 11598 | } |
| 11599 | _ACEOF |
| 11600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11601 | if { (ac_try="$ac_link" |
| 11602 | case "(($ac_try" in |
| 11603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11604 | *) ac_try_echo=$ac_try;; |
| 11605 | esac |
| 11606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11607 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11608 | ac_status=$? |
| 11609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11610 | rm -f conftest.er1 |
| 11611 | cat conftest.err >&5 |
| 11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11613 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11615 | { (case "(($ac_try" in |
| 11616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11617 | *) ac_try_echo=$ac_try;; |
| 11618 | esac |
| 11619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11620 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11621 | ac_status=$? |
| 11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11623 | (exit $ac_status); }; } && |
| 11624 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11634 | eval "$as_ac_var=yes" |
| 11635 | else |
| 11636 | echo "$as_me: failed program was:" >&5 |
| 11637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11638 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11639 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11640 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11641 | |
| 11642 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11643 | conftest$ac_exeext conftest.$ac_ext |
| 11644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11645 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11646 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11647 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11648 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11649 | cat >>confdefs.h <<_ACEOF |
| 11650 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11651 | _ACEOF |
| 11652 | break |
| 11653 | fi |
| 11654 | done |
| 11655 | |
| 11656 | |
| 11657 | |
| 11658 | for ac_func in memcpy bcopy |
| 11659 | do |
| 11660 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11661 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11662 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11663 | 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] | 11664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11665 | else |
| 11666 | cat >conftest.$ac_ext <<_ACEOF |
| 11667 | /* confdefs.h. */ |
| 11668 | _ACEOF |
| 11669 | cat confdefs.h >>conftest.$ac_ext |
| 11670 | cat >>conftest.$ac_ext <<_ACEOF |
| 11671 | /* end confdefs.h. */ |
| 11672 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11673 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11674 | #define $ac_func innocuous_$ac_func |
| 11675 | |
| 11676 | /* System header to define __stub macros and hopefully few prototypes, |
| 11677 | which can conflict with char $ac_func (); below. |
| 11678 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11679 | <limits.h> exists even on freestanding compilers. */ |
| 11680 | |
| 11681 | #ifdef __STDC__ |
| 11682 | # include <limits.h> |
| 11683 | #else |
| 11684 | # include <assert.h> |
| 11685 | #endif |
| 11686 | |
| 11687 | #undef $ac_func |
| 11688 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11689 | /* Override any GCC internal prototype to avoid an error. |
| 11690 | Use char because int might match the return type of a GCC |
| 11691 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11692 | #ifdef __cplusplus |
| 11693 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11694 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11695 | char $ac_func (); |
| 11696 | /* The GNU C library defines this for functions which it implements |
| 11697 | to always fail with ENOSYS. Some functions are actually named |
| 11698 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11699 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11700 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11701 | #endif |
| 11702 | |
| 11703 | int |
| 11704 | main () |
| 11705 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11706 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11707 | ; |
| 11708 | return 0; |
| 11709 | } |
| 11710 | _ACEOF |
| 11711 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11712 | if { (ac_try="$ac_link" |
| 11713 | case "(($ac_try" in |
| 11714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11715 | *) ac_try_echo=$ac_try;; |
| 11716 | esac |
| 11717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11718 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11719 | ac_status=$? |
| 11720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11721 | rm -f conftest.er1 |
| 11722 | cat conftest.err >&5 |
| 11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11724 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11726 | { (case "(($ac_try" in |
| 11727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11728 | *) ac_try_echo=$ac_try;; |
| 11729 | esac |
| 11730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11731 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11732 | ac_status=$? |
| 11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11734 | (exit $ac_status); }; } && |
| 11735 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11745 | eval "$as_ac_var=yes" |
| 11746 | else |
| 11747 | echo "$as_me: failed program was:" >&5 |
| 11748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11750 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11752 | |
| 11753 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11754 | conftest$ac_exeext conftest.$ac_ext |
| 11755 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11757 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11758 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11759 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11760 | cat >>confdefs.h <<_ACEOF |
| 11761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11762 | _ACEOF |
| 11763 | break |
| 11764 | fi |
| 11765 | done |
| 11766 | |
| 11767 | |
| 11768 | |
| 11769 | for ac_func in memmove strcmp |
| 11770 | do |
| 11771 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11772 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11773 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11774 | 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] | 11775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11776 | else |
| 11777 | cat >conftest.$ac_ext <<_ACEOF |
| 11778 | /* confdefs.h. */ |
| 11779 | _ACEOF |
| 11780 | cat confdefs.h >>conftest.$ac_ext |
| 11781 | cat >>conftest.$ac_ext <<_ACEOF |
| 11782 | /* end confdefs.h. */ |
| 11783 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11784 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11785 | #define $ac_func innocuous_$ac_func |
| 11786 | |
| 11787 | /* System header to define __stub macros and hopefully few prototypes, |
| 11788 | which can conflict with char $ac_func (); below. |
| 11789 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11790 | <limits.h> exists even on freestanding compilers. */ |
| 11791 | |
| 11792 | #ifdef __STDC__ |
| 11793 | # include <limits.h> |
| 11794 | #else |
| 11795 | # include <assert.h> |
| 11796 | #endif |
| 11797 | |
| 11798 | #undef $ac_func |
| 11799 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11800 | /* Override any GCC internal prototype to avoid an error. |
| 11801 | Use char because int might match the return type of a GCC |
| 11802 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11803 | #ifdef __cplusplus |
| 11804 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11805 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11806 | char $ac_func (); |
| 11807 | /* The GNU C library defines this for functions which it implements |
| 11808 | to always fail with ENOSYS. Some functions are actually named |
| 11809 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11810 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11811 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11812 | #endif |
| 11813 | |
| 11814 | int |
| 11815 | main () |
| 11816 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11817 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11818 | ; |
| 11819 | return 0; |
| 11820 | } |
| 11821 | _ACEOF |
| 11822 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11823 | if { (ac_try="$ac_link" |
| 11824 | case "(($ac_try" in |
| 11825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11826 | *) ac_try_echo=$ac_try;; |
| 11827 | esac |
| 11828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11829 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11830 | ac_status=$? |
| 11831 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11832 | rm -f conftest.er1 |
| 11833 | cat conftest.err >&5 |
| 11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11835 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11837 | { (case "(($ac_try" in |
| 11838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11839 | *) ac_try_echo=$ac_try;; |
| 11840 | esac |
| 11841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11842 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11843 | ac_status=$? |
| 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); }; } && |
| 11846 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11856 | eval "$as_ac_var=yes" |
| 11857 | else |
| 11858 | echo "$as_me: failed program was:" >&5 |
| 11859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11861 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11862 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11863 | |
| 11864 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11865 | conftest$ac_exeext conftest.$ac_ext |
| 11866 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11867 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11869 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11870 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11871 | cat >>confdefs.h <<_ACEOF |
| 11872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11873 | _ACEOF |
| 11874 | |
| 11875 | fi |
| 11876 | done |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | for ac_func in closedir opendir readdir |
| 11882 | do |
| 11883 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11884 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11885 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11886 | 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] | 11887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11888 | else |
| 11889 | cat >conftest.$ac_ext <<_ACEOF |
| 11890 | /* confdefs.h. */ |
| 11891 | _ACEOF |
| 11892 | cat confdefs.h >>conftest.$ac_ext |
| 11893 | cat >>conftest.$ac_ext <<_ACEOF |
| 11894 | /* end confdefs.h. */ |
| 11895 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11896 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11897 | #define $ac_func innocuous_$ac_func |
| 11898 | |
| 11899 | /* System header to define __stub macros and hopefully few prototypes, |
| 11900 | which can conflict with char $ac_func (); below. |
| 11901 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11902 | <limits.h> exists even on freestanding compilers. */ |
| 11903 | |
| 11904 | #ifdef __STDC__ |
| 11905 | # include <limits.h> |
| 11906 | #else |
| 11907 | # include <assert.h> |
| 11908 | #endif |
| 11909 | |
| 11910 | #undef $ac_func |
| 11911 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11912 | /* Override any GCC internal prototype to avoid an error. |
| 11913 | Use char because int might match the return type of a GCC |
| 11914 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11915 | #ifdef __cplusplus |
| 11916 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11917 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11918 | char $ac_func (); |
| 11919 | /* The GNU C library defines this for functions which it implements |
| 11920 | to always fail with ENOSYS. Some functions are actually named |
| 11921 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11922 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11923 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11924 | #endif |
| 11925 | |
| 11926 | int |
| 11927 | main () |
| 11928 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11929 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11930 | ; |
| 11931 | return 0; |
| 11932 | } |
| 11933 | _ACEOF |
| 11934 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11935 | if { (ac_try="$ac_link" |
| 11936 | case "(($ac_try" in |
| 11937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11938 | *) ac_try_echo=$ac_try;; |
| 11939 | esac |
| 11940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11941 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11942 | ac_status=$? |
| 11943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11944 | rm -f conftest.er1 |
| 11945 | cat conftest.err >&5 |
| 11946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11947 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11949 | { (case "(($ac_try" in |
| 11950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11951 | *) ac_try_echo=$ac_try;; |
| 11952 | esac |
| 11953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11954 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11955 | ac_status=$? |
| 11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11957 | (exit $ac_status); }; } && |
| 11958 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 11968 | eval "$as_ac_var=yes" |
| 11969 | else |
| 11970 | echo "$as_me: failed program was:" >&5 |
| 11971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11972 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11973 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11975 | |
| 11976 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11977 | conftest$ac_exeext conftest.$ac_ext |
| 11978 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11979 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11980 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11981 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11982 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11983 | cat >>confdefs.h <<_ACEOF |
| 11984 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11985 | _ACEOF |
| 11986 | |
| 11987 | fi |
| 11988 | done |
| 11989 | |
| 11990 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11991 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11992 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11993 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11994 | case $enableval in |
| 11995 | yes) enable_shared=yes ;; |
| 11996 | no) enable_shared=no ;; |
| 11997 | *) |
| 11998 | enable_shared=no |
| 11999 | # Look at the argument we got. We use all the common list separators. |
| 12000 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12001 | for pkg in $enableval; do |
| 12002 | IFS="$lt_save_ifs" |
| 12003 | if test "X$pkg" = "X$p"; then |
| 12004 | enable_shared=yes |
| 12005 | fi |
| 12006 | done |
| 12007 | IFS="$lt_save_ifs" |
| 12008 | ;; |
| 12009 | esac |
| 12010 | else |
| 12011 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12012 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12014 | |
| 12015 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12016 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12017 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12018 | case $enableval in |
| 12019 | yes) enable_static=yes ;; |
| 12020 | no) enable_static=no ;; |
| 12021 | *) |
| 12022 | enable_static=no |
| 12023 | # Look at the argument we got. We use all the common list separators. |
| 12024 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12025 | for pkg in $enableval; do |
| 12026 | IFS="$lt_save_ifs" |
| 12027 | if test "X$pkg" = "X$p"; then |
| 12028 | enable_static=yes |
| 12029 | fi |
| 12030 | done |
| 12031 | IFS="$lt_save_ifs" |
| 12032 | ;; |
| 12033 | esac |
| 12034 | else |
| 12035 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12036 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12037 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12038 | |
| 12039 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12040 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12041 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12042 | case $enableval in |
| 12043 | yes) enable_fast_install=yes ;; |
| 12044 | no) enable_fast_install=no ;; |
| 12045 | *) |
| 12046 | enable_fast_install=no |
| 12047 | # Look at the argument we got. We use all the common list separators. |
| 12048 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12049 | for pkg in $enableval; do |
| 12050 | IFS="$lt_save_ifs" |
| 12051 | if test "X$pkg" = "X$p"; then |
| 12052 | enable_fast_install=yes |
| 12053 | fi |
| 12054 | done |
| 12055 | IFS="$lt_save_ifs" |
| 12056 | ;; |
| 12057 | esac |
| 12058 | else |
| 12059 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12060 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12061 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12062 | |
| 12063 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 12064 | 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] | 12065 | if test "${lt_cv_path_SED+set}" = set; then |
| 12066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12067 | else |
| 12068 | # Loop through the user's path and test for sed and gsed. |
| 12069 | # Then use that list of sed's as ones to test for truncation. |
| 12070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12071 | for as_dir in $PATH |
| 12072 | do |
| 12073 | IFS=$as_save_IFS |
| 12074 | test -z "$as_dir" && as_dir=. |
| 12075 | for lt_ac_prog in sed gsed; do |
| 12076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12077 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 12078 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 12079 | fi |
| 12080 | done |
| 12081 | done |
| 12082 | done |
| 12083 | lt_ac_max=0 |
| 12084 | lt_ac_count=0 |
| 12085 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 12086 | # along with /bin/sed that truncates output. |
| 12087 | 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] | 12088 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12089 | cat /dev/null > conftest.in |
| 12090 | lt_ac_count=0 |
| 12091 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 12092 | # Check for GNU sed and select it if it is found. |
| 12093 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 12094 | lt_cv_path_SED=$lt_ac_sed |
| 12095 | break |
| 12096 | fi |
| 12097 | while true; do |
| 12098 | cat conftest.in conftest.in >conftest.tmp |
| 12099 | mv conftest.tmp conftest.in |
| 12100 | cp conftest.in conftest.nl |
| 12101 | echo >>conftest.nl |
| 12102 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 12103 | cmp -s conftest.out conftest.nl || break |
| 12104 | # 10000 chars as input seems more than enough |
| 12105 | test $lt_ac_count -gt 10 && break |
| 12106 | lt_ac_count=`expr $lt_ac_count + 1` |
| 12107 | if test $lt_ac_count -gt $lt_ac_max; then |
| 12108 | lt_ac_max=$lt_ac_count |
| 12109 | lt_cv_path_SED=$lt_ac_sed |
| 12110 | fi |
| 12111 | done |
| 12112 | done |
| 12113 | |
| 12114 | fi |
| 12115 | |
| 12116 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12117 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 12118 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12119 | |
| 12120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12121 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12122 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12123 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12124 | else |
| 12125 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12126 | fi |
| 12127 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12128 | ac_prog=ld |
| 12129 | if test "$GCC" = yes; then |
| 12130 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12131 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 12132 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12133 | case $host in |
| 12134 | *-*-mingw*) |
| 12135 | # gcc leaves a trailing carriage return which upsets mingw |
| 12136 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12137 | *) |
| 12138 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12139 | esac |
| 12140 | case $ac_prog in |
| 12141 | # Accept absolute paths. |
| 12142 | [\\/]* | ?:[\\/]*) |
| 12143 | re_direlt='/[^/][^/]*/\.\./' |
| 12144 | # Canonicalize the pathname of ld |
| 12145 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 12146 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 12147 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 12148 | done |
| 12149 | test -z "$LD" && LD="$ac_prog" |
| 12150 | ;; |
| 12151 | "") |
| 12152 | # If it fails, then pretend we aren't using GCC. |
| 12153 | ac_prog=ld |
| 12154 | ;; |
| 12155 | *) |
| 12156 | # If it is relative, then search for the first ld in PATH. |
| 12157 | with_gnu_ld=unknown |
| 12158 | ;; |
| 12159 | esac |
| 12160 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12161 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 12162 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12163 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12164 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 12165 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12166 | fi |
| 12167 | if test "${lt_cv_path_LD+set}" = set; then |
| 12168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12169 | else |
| 12170 | if test -z "$LD"; then |
| 12171 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12172 | for ac_dir in $PATH; do |
| 12173 | IFS="$lt_save_ifs" |
| 12174 | test -z "$ac_dir" && ac_dir=. |
| 12175 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12176 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12177 | # 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] | 12178 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12179 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12180 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12181 | *GNU* | *'with BFD'*) |
| 12182 | test "$with_gnu_ld" != no && break |
| 12183 | ;; |
| 12184 | *) |
| 12185 | test "$with_gnu_ld" != yes && break |
| 12186 | ;; |
| 12187 | esac |
| 12188 | fi |
| 12189 | done |
| 12190 | IFS="$lt_save_ifs" |
| 12191 | else |
| 12192 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12193 | fi |
| 12194 | fi |
| 12195 | |
| 12196 | LD="$lt_cv_path_LD" |
| 12197 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12198 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 12199 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12200 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12201 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12202 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12203 | fi |
| 12204 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 12205 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 12206 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12207 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 12208 | 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] | 12209 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 12210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12211 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12212 | # 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] | 12213 | case `$LD -v 2>&1 </dev/null` in |
| 12214 | *GNU* | *'with BFD'*) |
| 12215 | lt_cv_prog_gnu_ld=yes |
| 12216 | ;; |
| 12217 | *) |
| 12218 | lt_cv_prog_gnu_ld=no |
| 12219 | ;; |
| 12220 | esac |
| 12221 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12222 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 12223 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12224 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12225 | |
| 12226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12227 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 12228 | 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] | 12229 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12231 | else |
| 12232 | lt_cv_ld_reload_flag='-r' |
| 12233 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12234 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 12235 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12236 | reload_flag=$lt_cv_ld_reload_flag |
| 12237 | case $reload_flag in |
| 12238 | "" | " "*) ;; |
| 12239 | *) reload_flag=" $reload_flag" ;; |
| 12240 | esac |
| 12241 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12242 | case $host_os in |
| 12243 | darwin*) |
| 12244 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 12245 | 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] | 12246 | else |
| 12247 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 12248 | fi |
| 12249 | ;; |
| 12250 | esac |
| 12251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12252 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 12253 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12254 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 12255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12256 | else |
| 12257 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 12258 | lt_cv_file_magic_test_file= |
| 12259 | lt_cv_deplibs_check_method='unknown' |
| 12260 | # Need to set the preceding variable on all platforms that support |
| 12261 | # interlibrary dependencies. |
| 12262 | # 'none' -- dependencies not supported. |
| 12263 | # `unknown' -- same as none, but documents that we really don't know. |
| 12264 | # 'pass_all' -- all dependencies passed with no checks. |
| 12265 | # 'test_compile' -- check by making test program. |
| 12266 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 12267 | # which responds to the $file_magic_cmd with a given extended regex. |
| 12268 | # If you have `file' or equivalent on your system and you're not sure |
| 12269 | # whether `pass_all' will *always* work, you probably want this one. |
| 12270 | |
| 12271 | case $host_os in |
| 12272 | aix4* | aix5*) |
| 12273 | lt_cv_deplibs_check_method=pass_all |
| 12274 | ;; |
| 12275 | |
| 12276 | beos*) |
| 12277 | lt_cv_deplibs_check_method=pass_all |
| 12278 | ;; |
| 12279 | |
| 12280 | bsdi[45]*) |
| 12281 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 12282 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 12283 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 12284 | ;; |
| 12285 | |
| 12286 | cygwin*) |
| 12287 | # func_win32_libid is a shell function defined in ltmain.sh |
| 12288 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 12289 | lt_cv_file_magic_cmd='func_win32_libid' |
| 12290 | ;; |
| 12291 | |
| 12292 | mingw* | pw32*) |
| 12293 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 12294 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 12295 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 12296 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 12297 | ;; |
| 12298 | |
| 12299 | darwin* | rhapsody*) |
| 12300 | lt_cv_deplibs_check_method=pass_all |
| 12301 | ;; |
| 12302 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12303 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12304 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12305 | case $host_cpu in |
| 12306 | i*86 ) |
| 12307 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 12308 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12309 | 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] | 12310 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12311 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 12312 | ;; |
| 12313 | esac |
| 12314 | else |
| 12315 | lt_cv_deplibs_check_method=pass_all |
| 12316 | fi |
| 12317 | ;; |
| 12318 | |
| 12319 | gnu*) |
| 12320 | lt_cv_deplibs_check_method=pass_all |
| 12321 | ;; |
| 12322 | |
| 12323 | hpux10.20* | hpux11*) |
| 12324 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12325 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12326 | ia64*) |
| 12327 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 12328 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 12329 | ;; |
| 12330 | hppa*64*) |
| 12331 | 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]' |
| 12332 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 12333 | ;; |
| 12334 | *) |
| 12335 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 12336 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 12337 | ;; |
| 12338 | esac |
| 12339 | ;; |
| 12340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12341 | interix3*) |
| 12342 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 12343 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 12344 | ;; |
| 12345 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12346 | irix5* | irix6* | nonstopux*) |
| 12347 | case $LD in |
| 12348 | *-32|*"-32 ") libmagic=32-bit;; |
| 12349 | *-n32|*"-n32 ") libmagic=N32;; |
| 12350 | *-64|*"-64 ") libmagic=64-bit;; |
| 12351 | *) libmagic=never-match;; |
| 12352 | esac |
| 12353 | lt_cv_deplibs_check_method=pass_all |
| 12354 | ;; |
| 12355 | |
| 12356 | # This must be Linux ELF. |
| 12357 | linux*) |
| 12358 | lt_cv_deplibs_check_method=pass_all |
| 12359 | ;; |
| 12360 | |
| 12361 | netbsd*) |
| 12362 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 12363 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12364 | else |
| 12365 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 12366 | fi |
| 12367 | ;; |
| 12368 | |
| 12369 | newos6*) |
| 12370 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 12371 | lt_cv_file_magic_cmd=/usr/bin/file |
| 12372 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 12373 | ;; |
| 12374 | |
| 12375 | nto-qnx*) |
| 12376 | lt_cv_deplibs_check_method=unknown |
| 12377 | ;; |
| 12378 | |
| 12379 | openbsd*) |
| 12380 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12381 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 12382 | else |
| 12383 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 12384 | fi |
| 12385 | ;; |
| 12386 | |
| 12387 | osf3* | osf4* | osf5*) |
| 12388 | lt_cv_deplibs_check_method=pass_all |
| 12389 | ;; |
| 12390 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12391 | solaris*) |
| 12392 | lt_cv_deplibs_check_method=pass_all |
| 12393 | ;; |
| 12394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12395 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12396 | case $host_vendor in |
| 12397 | motorola) |
| 12398 | 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]' |
| 12399 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 12400 | ;; |
| 12401 | ncr) |
| 12402 | lt_cv_deplibs_check_method=pass_all |
| 12403 | ;; |
| 12404 | sequent) |
| 12405 | lt_cv_file_magic_cmd='/bin/file' |
| 12406 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 12407 | ;; |
| 12408 | sni) |
| 12409 | lt_cv_file_magic_cmd='/bin/file' |
| 12410 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 12411 | lt_cv_file_magic_test_file=/lib/libc.so |
| 12412 | ;; |
| 12413 | siemens) |
| 12414 | lt_cv_deplibs_check_method=pass_all |
| 12415 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12416 | pc) |
| 12417 | lt_cv_deplibs_check_method=pass_all |
| 12418 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12419 | esac |
| 12420 | ;; |
| 12421 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12422 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12423 | lt_cv_deplibs_check_method=pass_all |
| 12424 | ;; |
| 12425 | esac |
| 12426 | |
| 12427 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12428 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 12429 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12430 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 12431 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 12432 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 12433 | |
| 12434 | |
| 12435 | |
| 12436 | # If no C compiler was specified, use CC. |
| 12437 | LTCC=${LTCC-"$CC"} |
| 12438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12439 | # If no C compiler flags were specified, use CFLAGS. |
| 12440 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12441 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12442 | # Allow CC to be a program name with arguments. |
| 12443 | compiler=$CC |
| 12444 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12445 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12446 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12447 | enableval=$enable_libtool_lock; |
| 12448 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12449 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12450 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12451 | |
| 12452 | # Some flags need to be propagated to the compiler or linker for good |
| 12453 | # libtool support. |
| 12454 | case $host in |
| 12455 | ia64-*-hpux*) |
| 12456 | # Find out which ABI we are using. |
| 12457 | echo 'int i;' > conftest.$ac_ext |
| 12458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12459 | (eval $ac_compile) 2>&5 |
| 12460 | ac_status=$? |
| 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12462 | (exit $ac_status); }; then |
| 12463 | case `/usr/bin/file conftest.$ac_objext` in |
| 12464 | *ELF-32*) |
| 12465 | HPUX_IA64_MODE="32" |
| 12466 | ;; |
| 12467 | *ELF-64*) |
| 12468 | HPUX_IA64_MODE="64" |
| 12469 | ;; |
| 12470 | esac |
| 12471 | fi |
| 12472 | rm -rf conftest* |
| 12473 | ;; |
| 12474 | *-*-irix6*) |
| 12475 | # Find out which ABI we are using. |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 12476 | echo '#line 12476 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12478 | (eval $ac_compile) 2>&5 |
| 12479 | ac_status=$? |
| 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12481 | (exit $ac_status); }; then |
| 12482 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12483 | case `/usr/bin/file conftest.$ac_objext` in |
| 12484 | *32-bit*) |
| 12485 | LD="${LD-ld} -melf32bsmip" |
| 12486 | ;; |
| 12487 | *N32*) |
| 12488 | LD="${LD-ld} -melf32bmipn32" |
| 12489 | ;; |
| 12490 | *64-bit*) |
| 12491 | LD="${LD-ld} -melf64bmip" |
| 12492 | ;; |
| 12493 | esac |
| 12494 | else |
| 12495 | case `/usr/bin/file conftest.$ac_objext` in |
| 12496 | *32-bit*) |
| 12497 | LD="${LD-ld} -32" |
| 12498 | ;; |
| 12499 | *N32*) |
| 12500 | LD="${LD-ld} -n32" |
| 12501 | ;; |
| 12502 | *64-bit*) |
| 12503 | LD="${LD-ld} -64" |
| 12504 | ;; |
| 12505 | esac |
| 12506 | fi |
| 12507 | fi |
| 12508 | rm -rf conftest* |
| 12509 | ;; |
| 12510 | |
| 12511 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 12512 | # Find out which ABI we are using. |
| 12513 | echo 'int i;' > conftest.$ac_ext |
| 12514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12515 | (eval $ac_compile) 2>&5 |
| 12516 | ac_status=$? |
| 12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12518 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12519 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12520 | *32-bit*) |
| 12521 | case $host in |
| 12522 | x86_64-*linux*) |
| 12523 | LD="${LD-ld} -m elf_i386" |
| 12524 | ;; |
| 12525 | ppc64-*linux*|powerpc64-*linux*) |
| 12526 | LD="${LD-ld} -m elf32ppclinux" |
| 12527 | ;; |
| 12528 | s390x-*linux*) |
| 12529 | LD="${LD-ld} -m elf_s390" |
| 12530 | ;; |
| 12531 | sparc64-*linux*) |
| 12532 | LD="${LD-ld} -m elf32_sparc" |
| 12533 | ;; |
| 12534 | esac |
| 12535 | ;; |
| 12536 | *64-bit*) |
| 12537 | case $host in |
| 12538 | x86_64-*linux*) |
| 12539 | LD="${LD-ld} -m elf_x86_64" |
| 12540 | ;; |
| 12541 | ppc*-*linux*|powerpc*-*linux*) |
| 12542 | LD="${LD-ld} -m elf64ppc" |
| 12543 | ;; |
| 12544 | s390*-*linux*) |
| 12545 | LD="${LD-ld} -m elf64_s390" |
| 12546 | ;; |
| 12547 | sparc*-*linux*) |
| 12548 | LD="${LD-ld} -m elf64_sparc" |
| 12549 | ;; |
| 12550 | esac |
| 12551 | ;; |
| 12552 | esac |
| 12553 | fi |
| 12554 | rm -rf conftest* |
| 12555 | ;; |
| 12556 | |
| 12557 | *-*-sco3.2v5*) |
| 12558 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12559 | SAVE_CFLAGS="$CFLAGS" |
| 12560 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12561 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 12562 | 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] | 12563 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 12564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12565 | else |
| 12566 | ac_ext=c |
| 12567 | ac_cpp='$CPP $CPPFLAGS' |
| 12568 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12569 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12570 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12571 | |
| 12572 | cat >conftest.$ac_ext <<_ACEOF |
| 12573 | /* confdefs.h. */ |
| 12574 | _ACEOF |
| 12575 | cat confdefs.h >>conftest.$ac_ext |
| 12576 | cat >>conftest.$ac_ext <<_ACEOF |
| 12577 | /* end confdefs.h. */ |
| 12578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12579 | int |
| 12580 | main () |
| 12581 | { |
| 12582 | |
| 12583 | ; |
| 12584 | return 0; |
| 12585 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12586 | _ACEOF |
| 12587 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12588 | if { (ac_try="$ac_link" |
| 12589 | case "(($ac_try" in |
| 12590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12591 | *) ac_try_echo=$ac_try;; |
| 12592 | esac |
| 12593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12594 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12595 | ac_status=$? |
| 12596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12597 | rm -f conftest.er1 |
| 12598 | cat conftest.err >&5 |
| 12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12600 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12602 | { (case "(($ac_try" in |
| 12603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12604 | *) ac_try_echo=$ac_try;; |
| 12605 | esac |
| 12606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12607 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12608 | ac_status=$? |
| 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); }; } && |
| 12611 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 12621 | lt_cv_cc_needs_belf=yes |
| 12622 | else |
| 12623 | echo "$as_me: failed program was:" >&5 |
| 12624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12625 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12626 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12628 | |
| 12629 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12630 | conftest$ac_exeext conftest.$ac_ext |
| 12631 | ac_ext=c |
| 12632 | ac_cpp='$CPP $CPPFLAGS' |
| 12633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12636 | |
| 12637 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12638 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 12639 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12640 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12641 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12642 | CFLAGS="$SAVE_CFLAGS" |
| 12643 | fi |
| 12644 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12645 | sparc*-*solaris*) |
| 12646 | # Find out which ABI we are using. |
| 12647 | echo 'int i;' > conftest.$ac_ext |
| 12648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12649 | (eval $ac_compile) 2>&5 |
| 12650 | ac_status=$? |
| 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); }; then |
| 12653 | case `/usr/bin/file conftest.o` in |
| 12654 | *64-bit*) |
| 12655 | case $lt_cv_prog_gnu_ld in |
| 12656 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 12657 | *) LD="${LD-ld} -64" ;; |
| 12658 | esac |
| 12659 | ;; |
| 12660 | esac |
| 12661 | fi |
| 12662 | rm -rf conftest* |
| 12663 | ;; |
| 12664 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 12665 | |
| 12666 | esac |
| 12667 | |
| 12668 | need_locks="$enable_libtool_lock" |
| 12669 | |
| 12670 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12671 | |
| 12672 | |
| 12673 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12674 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12675 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12676 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12677 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12681 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12682 | 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] | 12683 | if test -z "$CXXCPP"; then |
| 12684 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12686 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12687 | # Double quotes because CXXCPP needs to be expanded |
| 12688 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12689 | do |
| 12690 | ac_preproc_ok=false |
| 12691 | for ac_cxx_preproc_warn_flag in '' yes |
| 12692 | do |
| 12693 | # Use a header file that comes with gcc, so configuring glibc |
| 12694 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12695 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12696 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12697 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12698 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12699 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12700 | /* confdefs.h. */ |
| 12701 | _ACEOF |
| 12702 | cat confdefs.h >>conftest.$ac_ext |
| 12703 | cat >>conftest.$ac_ext <<_ACEOF |
| 12704 | /* end confdefs.h. */ |
| 12705 | #ifdef __STDC__ |
| 12706 | # include <limits.h> |
| 12707 | #else |
| 12708 | # include <assert.h> |
| 12709 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12710 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12711 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12712 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12713 | case "(($ac_try" in |
| 12714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12715 | *) ac_try_echo=$ac_try;; |
| 12716 | esac |
| 12717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12719 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12720 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12721 | rm -f conftest.er1 |
| 12722 | cat conftest.err >&5 |
| 12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12724 | (exit $ac_status); } >/dev/null; then |
| 12725 | if test -s conftest.err; then |
| 12726 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12727 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12728 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12729 | ac_cpp_err= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12730 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12731 | else |
| 12732 | ac_cpp_err=yes |
| 12733 | fi |
| 12734 | if test -z "$ac_cpp_err"; then |
| 12735 | : |
| 12736 | else |
| 12737 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12739 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12740 | # Broken: fails on valid input. |
| 12741 | continue |
| 12742 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12743 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12744 | rm -f conftest.err conftest.$ac_ext |
| 12745 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12746 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12747 | # can be detected and how. |
| 12748 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12749 | /* confdefs.h. */ |
| 12750 | _ACEOF |
| 12751 | cat confdefs.h >>conftest.$ac_ext |
| 12752 | cat >>conftest.$ac_ext <<_ACEOF |
| 12753 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12754 | #include <ac_nonexistent.h> |
| 12755 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12756 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12757 | case "(($ac_try" in |
| 12758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12759 | *) ac_try_echo=$ac_try;; |
| 12760 | esac |
| 12761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12762 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12763 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12764 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12765 | rm -f conftest.er1 |
| 12766 | cat conftest.err >&5 |
| 12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12768 | (exit $ac_status); } >/dev/null; then |
| 12769 | if test -s conftest.err; then |
| 12770 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12771 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12772 | else |
| 12773 | ac_cpp_err= |
| 12774 | fi |
| 12775 | else |
| 12776 | ac_cpp_err=yes |
| 12777 | fi |
| 12778 | if test -z "$ac_cpp_err"; then |
| 12779 | # Broken: success on invalid input. |
| 12780 | continue |
| 12781 | else |
| 12782 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12784 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12785 | # Passes both tests. |
| 12786 | ac_preproc_ok=: |
| 12787 | break |
| 12788 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12789 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12790 | rm -f conftest.err conftest.$ac_ext |
| 12791 | |
| 12792 | done |
| 12793 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12794 | rm -f conftest.err conftest.$ac_ext |
| 12795 | if $ac_preproc_ok; then |
| 12796 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12797 | fi |
| 12798 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12799 | done |
| 12800 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12801 | |
| 12802 | fi |
| 12803 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12804 | else |
| 12805 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12806 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12807 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12808 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12809 | ac_preproc_ok=false |
| 12810 | for ac_cxx_preproc_warn_flag in '' yes |
| 12811 | do |
| 12812 | # Use a header file that comes with gcc, so configuring glibc |
| 12813 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12814 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12815 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12816 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12817 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12818 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12819 | /* confdefs.h. */ |
| 12820 | _ACEOF |
| 12821 | cat confdefs.h >>conftest.$ac_ext |
| 12822 | cat >>conftest.$ac_ext <<_ACEOF |
| 12823 | /* end confdefs.h. */ |
| 12824 | #ifdef __STDC__ |
| 12825 | # include <limits.h> |
| 12826 | #else |
| 12827 | # include <assert.h> |
| 12828 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12829 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12830 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12831 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12832 | case "(($ac_try" in |
| 12833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12834 | *) ac_try_echo=$ac_try;; |
| 12835 | esac |
| 12836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12837 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12838 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12839 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12840 | rm -f conftest.er1 |
| 12841 | cat conftest.err >&5 |
| 12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12843 | (exit $ac_status); } >/dev/null; then |
| 12844 | if test -s conftest.err; then |
| 12845 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12846 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12847 | else |
| 12848 | ac_cpp_err= |
| 12849 | fi |
| 12850 | else |
| 12851 | ac_cpp_err=yes |
| 12852 | fi |
| 12853 | if test -z "$ac_cpp_err"; then |
| 12854 | : |
| 12855 | else |
| 12856 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12858 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12859 | # Broken: fails on valid input. |
| 12860 | continue |
| 12861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12862 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12863 | rm -f conftest.err conftest.$ac_ext |
| 12864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12865 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12866 | # can be detected and how. |
| 12867 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12868 | /* confdefs.h. */ |
| 12869 | _ACEOF |
| 12870 | cat confdefs.h >>conftest.$ac_ext |
| 12871 | cat >>conftest.$ac_ext <<_ACEOF |
| 12872 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12873 | #include <ac_nonexistent.h> |
| 12874 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12876 | case "(($ac_try" in |
| 12877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12878 | *) ac_try_echo=$ac_try;; |
| 12879 | esac |
| 12880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12881 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12882 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12883 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12884 | rm -f conftest.er1 |
| 12885 | cat conftest.err >&5 |
| 12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12887 | (exit $ac_status); } >/dev/null; then |
| 12888 | if test -s conftest.err; then |
| 12889 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12890 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12891 | else |
| 12892 | ac_cpp_err= |
| 12893 | fi |
| 12894 | else |
| 12895 | ac_cpp_err=yes |
| 12896 | fi |
| 12897 | if test -z "$ac_cpp_err"; then |
| 12898 | # Broken: success on invalid input. |
| 12899 | continue |
| 12900 | else |
| 12901 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12903 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12904 | # Passes both tests. |
| 12905 | ac_preproc_ok=: |
| 12906 | break |
| 12907 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12909 | rm -f conftest.err conftest.$ac_ext |
| 12910 | |
| 12911 | done |
| 12912 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12913 | rm -f conftest.err conftest.$ac_ext |
| 12914 | if $ac_preproc_ok; then |
| 12915 | : |
| 12916 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12917 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12918 | See \`config.log' for more details." >&5 |
| 12919 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12920 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12921 | { (exit 1); exit 1; }; } |
| 12922 | fi |
| 12923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12924 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12925 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12929 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12930 | fi |
| 12931 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12932 | |
| 12933 | ac_ext=f |
| 12934 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12935 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12936 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12937 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12938 | 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] | 12939 | do |
| 12940 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12941 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12944 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12946 | else |
| 12947 | if test -n "$F77"; then |
| 12948 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12949 | else |
| 12950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12951 | for as_dir in $PATH |
| 12952 | do |
| 12953 | IFS=$as_save_IFS |
| 12954 | test -z "$as_dir" && as_dir=. |
| 12955 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12956 | 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] | 12957 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12959 | break 2 |
| 12960 | fi |
| 12961 | done |
| 12962 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12963 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12964 | |
| 12965 | fi |
| 12966 | fi |
| 12967 | F77=$ac_cv_prog_F77 |
| 12968 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12969 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12970 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12971 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12972 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12973 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12974 | fi |
| 12975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12976 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12977 | test -n "$F77" && break |
| 12978 | done |
| 12979 | fi |
| 12980 | if test -z "$F77"; then |
| 12981 | ac_ct_F77=$F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12982 | 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] | 12983 | do |
| 12984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12985 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12986 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12988 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12990 | else |
| 12991 | if test -n "$ac_ct_F77"; then |
| 12992 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 12993 | else |
| 12994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12995 | for as_dir in $PATH |
| 12996 | do |
| 12997 | IFS=$as_save_IFS |
| 12998 | test -z "$as_dir" && as_dir=. |
| 12999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13000 | 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] | 13001 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 13002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13003 | break 2 |
| 13004 | fi |
| 13005 | done |
| 13006 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13007 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13008 | |
| 13009 | fi |
| 13010 | fi |
| 13011 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 13012 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 13014 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13015 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13016 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13017 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13018 | fi |
| 13019 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13020 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13021 | test -n "$ac_ct_F77" && break |
| 13022 | done |
| 13023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13024 | if test "x$ac_ct_F77" = x; then |
| 13025 | F77="" |
| 13026 | else |
| 13027 | case $cross_compiling:$ac_tool_warned in |
| 13028 | yes:) |
| 13029 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13030 | whose name does not start with the host triplet. If you think this |
| 13031 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13032 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13033 | whose name does not start with the host triplet. If you think this |
| 13034 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13035 | ac_tool_warned=yes ;; |
| 13036 | esac |
| 13037 | F77=$ac_ct_F77 |
| 13038 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13039 | fi |
| 13040 | |
| 13041 | |
| 13042 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13043 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13044 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13045 | { (ac_try="$ac_compiler --version >&5" |
| 13046 | case "(($ac_try" in |
| 13047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13048 | *) ac_try_echo=$ac_try;; |
| 13049 | esac |
| 13050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13051 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13052 | ac_status=$? |
| 13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13054 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13055 | { (ac_try="$ac_compiler -v >&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 -v >&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 | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13075 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13076 | |
| 13077 | # 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] | 13078 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13079 | ac_save_ext=$ac_ext |
| 13080 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13081 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 13082 | 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] | 13083 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 13084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13085 | else |
| 13086 | cat >conftest.$ac_ext <<_ACEOF |
| 13087 | program main |
| 13088 | #ifndef __GNUC__ |
| 13089 | choke me |
| 13090 | #endif |
| 13091 | |
| 13092 | end |
| 13093 | _ACEOF |
| 13094 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13095 | if { (ac_try="$ac_compile" |
| 13096 | case "(($ac_try" in |
| 13097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13098 | *) ac_try_echo=$ac_try;; |
| 13099 | esac |
| 13100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13101 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13102 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13104 | rm -f conftest.er1 |
| 13105 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13107 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13108 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13109 | { (case "(($ac_try" in |
| 13110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13111 | *) ac_try_echo=$ac_try;; |
| 13112 | esac |
| 13113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13114 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13115 | ac_status=$? |
| 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); }; } && |
| 13118 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13125 | ac_status=$? |
| 13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13127 | (exit $ac_status); }; }; then |
| 13128 | ac_compiler_gnu=yes |
| 13129 | else |
| 13130 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13133 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13134 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13135 | |
| 13136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13137 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 13138 | |
| 13139 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13140 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 13141 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13142 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13143 | ac_test_FFLAGS=${FFLAGS+set} |
| 13144 | ac_save_FFLAGS=$FFLAGS |
| 13145 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13146 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 13147 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13148 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 13149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13150 | else |
| 13151 | FFLAGS=-g |
| 13152 | cat >conftest.$ac_ext <<_ACEOF |
| 13153 | program main |
| 13154 | |
| 13155 | end |
| 13156 | _ACEOF |
| 13157 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13158 | if { (ac_try="$ac_compile" |
| 13159 | case "(($ac_try" in |
| 13160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13161 | *) ac_try_echo=$ac_try;; |
| 13162 | esac |
| 13163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13164 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13165 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13166 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13167 | rm -f conftest.er1 |
| 13168 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13170 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13171 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 13172 | { (case "(($ac_try" in |
| 13173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13174 | *) ac_try_echo=$ac_try;; |
| 13175 | esac |
| 13176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13177 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13178 | ac_status=$? |
| 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13180 | (exit $ac_status); }; } && |
| 13181 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13188 | ac_status=$? |
| 13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13190 | (exit $ac_status); }; }; then |
| 13191 | ac_cv_prog_f77_g=yes |
| 13192 | else |
| 13193 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 13194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13195 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13196 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13198 | |
| 13199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13200 | |
| 13201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13202 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 13203 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13204 | if test "$ac_test_FFLAGS" = set; then |
| 13205 | FFLAGS=$ac_save_FFLAGS |
| 13206 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13207 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13208 | FFLAGS="-g -O2" |
| 13209 | else |
| 13210 | FFLAGS="-g" |
| 13211 | fi |
| 13212 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13213 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13214 | FFLAGS="-O2" |
| 13215 | else |
| 13216 | FFLAGS= |
| 13217 | fi |
| 13218 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13219 | |
| 13220 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13221 | ac_ext=c |
| 13222 | ac_cpp='$CPP $CPPFLAGS' |
| 13223 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13224 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13225 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13226 | |
| 13227 | |
| 13228 | |
| 13229 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 13230 | |
| 13231 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13232 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 13233 | 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] | 13234 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13236 | else |
| 13237 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13238 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13239 | |
| 13240 | case $build_os in |
| 13241 | msdosdjgpp*) |
| 13242 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 13243 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 13244 | # during glob expansion). Even if it were fixed, the result of this |
| 13245 | # check would be larger than it should be. |
| 13246 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 13247 | ;; |
| 13248 | |
| 13249 | gnu*) |
| 13250 | # Under GNU Hurd, this test is not required because there is |
| 13251 | # no limit to the length of command line arguments. |
| 13252 | # Libtool will interpret -1 as no limit whatsoever |
| 13253 | lt_cv_sys_max_cmd_len=-1; |
| 13254 | ;; |
| 13255 | |
| 13256 | cygwin* | mingw*) |
| 13257 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 13258 | # about 5 minutes as the teststring grows exponentially. |
| 13259 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 13260 | # you end up with a "frozen" computer, even though with patience |
| 13261 | # the test eventually succeeds (with a max line length of 256k). |
| 13262 | # Instead, let's just punt: use the minimum linelength reported by |
| 13263 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 13264 | lt_cv_sys_max_cmd_len=8192; |
| 13265 | ;; |
| 13266 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13267 | amigaos*) |
| 13268 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 13269 | # So we just punt and use a minimum line length of 8192. |
| 13270 | lt_cv_sys_max_cmd_len=8192; |
| 13271 | ;; |
| 13272 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13273 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13274 | # This has been around since 386BSD, at least. Likely further. |
| 13275 | if test -x /sbin/sysctl; then |
| 13276 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 13277 | elif test -x /usr/sbin/sysctl; then |
| 13278 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 13279 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13280 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13281 | fi |
| 13282 | # And add a safety zone |
| 13283 | 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] | 13284 | 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] | 13285 | ;; |
| 13286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13287 | interix*) |
| 13288 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 13289 | lt_cv_sys_max_cmd_len=196608 |
| 13290 | ;; |
| 13291 | |
| 13292 | osf*) |
| 13293 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 13294 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 13295 | # nice to cause kernel panics so lets avoid the loop below. |
| 13296 | # First set a reasonable default. |
| 13297 | lt_cv_sys_max_cmd_len=16384 |
| 13298 | # |
| 13299 | if test -x /sbin/sysconfig; then |
| 13300 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 13301 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 13302 | esac |
| 13303 | fi |
| 13304 | ;; |
| 13305 | sco3.2v5*) |
| 13306 | lt_cv_sys_max_cmd_len=102400 |
| 13307 | ;; |
| 13308 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 13309 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 13310 | if test -n "$kargmax"; then |
| 13311 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 13312 | else |
| 13313 | lt_cv_sys_max_cmd_len=32768 |
| 13314 | fi |
| 13315 | ;; |
| 13316 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13317 | # If test is not a shell built-in, we'll probably end up computing a |
| 13318 | # maximum length that is only half of the actual maximum length, but |
| 13319 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13320 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 13321 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 13322 | = "XX$teststring") >/dev/null 2>&1 && |
| 13323 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13324 | lt_cv_sys_max_cmd_len=$new_result && |
| 13325 | test $i != 17 # 1/2 MB should be enough |
| 13326 | do |
| 13327 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13328 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13329 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13330 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13331 | # Add a significant safety factor because C++ compilers can tack on massive |
| 13332 | # amounts of additional arguments before passing them to the linker. |
| 13333 | # It appears as though 1/2 is a usable value. |
| 13334 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 13335 | ;; |
| 13336 | esac |
| 13337 | |
| 13338 | fi |
| 13339 | |
| 13340 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13341 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 13342 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13343 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13344 | { echo "$as_me:$LINENO: result: none" >&5 |
| 13345 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13346 | fi |
| 13347 | |
| 13348 | |
| 13349 | |
| 13350 | |
| 13351 | # 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] | 13352 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 13353 | 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] | 13354 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 13355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13356 | else |
| 13357 | |
| 13358 | # These are sane defaults that work on at least a few old systems. |
| 13359 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 13360 | |
| 13361 | # Character class describing NM global symbol codes. |
| 13362 | symcode='[BCDEGRST]' |
| 13363 | |
| 13364 | # Regexp to match symbols that can be accessed directly from C. |
| 13365 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 13366 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13367 | # Transform an extracted symbol line into a proper C declaration |
| 13368 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 13369 | |
| 13370 | # Transform an extracted symbol line into symbol name and symbol address |
| 13371 | 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'" |
| 13372 | |
| 13373 | # Define system-specific variables. |
| 13374 | case $host_os in |
| 13375 | aix*) |
| 13376 | symcode='[BCDT]' |
| 13377 | ;; |
| 13378 | cygwin* | mingw* | pw32*) |
| 13379 | symcode='[ABCDGISTW]' |
| 13380 | ;; |
| 13381 | hpux*) # Its linker distinguishes data from code symbols |
| 13382 | if test "$host_cpu" = ia64; then |
| 13383 | symcode='[ABCDEGRST]' |
| 13384 | fi |
| 13385 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13386 | 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'" |
| 13387 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13388 | linux*) |
| 13389 | if test "$host_cpu" = ia64; then |
| 13390 | symcode='[ABCDGIRSTW]' |
| 13391 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 13392 | 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'" |
| 13393 | fi |
| 13394 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13395 | irix* | nonstopux*) |
| 13396 | symcode='[BCDEGRST]' |
| 13397 | ;; |
| 13398 | osf*) |
| 13399 | symcode='[BCDEGQRST]' |
| 13400 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13401 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13402 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13403 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13404 | sco3.2v5*) |
| 13405 | symcode='[DT]' |
| 13406 | ;; |
| 13407 | sysv4.2uw2*) |
| 13408 | symcode='[DT]' |
| 13409 | ;; |
| 13410 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 13411 | symcode='[ABDT]' |
| 13412 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13413 | sysv4) |
| 13414 | symcode='[DFNSTU]' |
| 13415 | ;; |
| 13416 | esac |
| 13417 | |
| 13418 | # Handle CRLF in mingw tool chain |
| 13419 | opt_cr= |
| 13420 | case $build_os in |
| 13421 | mingw*) |
| 13422 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 13423 | ;; |
| 13424 | esac |
| 13425 | |
| 13426 | # If we're using GNU nm, then use its standard symbol codes. |
| 13427 | case `$NM -V 2>&1` in |
| 13428 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13429 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13430 | esac |
| 13431 | |
| 13432 | # Try without a prefix undercore, then with it. |
| 13433 | for ac_symprfx in "" "_"; do |
| 13434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13435 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 13436 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 13437 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13438 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13439 | 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] | 13440 | |
| 13441 | # Check to see that the pipe works correctly. |
| 13442 | pipe_works=no |
| 13443 | |
| 13444 | rm -f conftest* |
| 13445 | cat > conftest.$ac_ext <<EOF |
| 13446 | #ifdef __cplusplus |
| 13447 | extern "C" { |
| 13448 | #endif |
| 13449 | char nm_test_var; |
| 13450 | void nm_test_func(){} |
| 13451 | #ifdef __cplusplus |
| 13452 | } |
| 13453 | #endif |
| 13454 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 13455 | EOF |
| 13456 | |
| 13457 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13458 | (eval $ac_compile) 2>&5 |
| 13459 | ac_status=$? |
| 13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13461 | (exit $ac_status); }; then |
| 13462 | # Now try to grab the symbols. |
| 13463 | nlist=conftest.nm |
| 13464 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 13465 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 13466 | ac_status=$? |
| 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13468 | (exit $ac_status); } && test -s "$nlist"; then |
| 13469 | # Try sorting and uniquifying the output. |
| 13470 | if sort "$nlist" | uniq > "$nlist"T; then |
| 13471 | mv -f "$nlist"T "$nlist" |
| 13472 | else |
| 13473 | rm -f "$nlist"T |
| 13474 | fi |
| 13475 | |
| 13476 | # Make sure that we snagged all the symbols we need. |
| 13477 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 13478 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 13479 | cat <<EOF > conftest.$ac_ext |
| 13480 | #ifdef __cplusplus |
| 13481 | extern "C" { |
| 13482 | #endif |
| 13483 | |
| 13484 | EOF |
| 13485 | # Now generate the symbol file. |
| 13486 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 13487 | |
| 13488 | cat <<EOF >> conftest.$ac_ext |
| 13489 | #if defined (__STDC__) && __STDC__ |
| 13490 | # define lt_ptr_t void * |
| 13491 | #else |
| 13492 | # define lt_ptr_t char * |
| 13493 | # define const |
| 13494 | #endif |
| 13495 | |
| 13496 | /* The mapping between symbol names and symbols. */ |
| 13497 | const struct { |
| 13498 | const char *name; |
| 13499 | lt_ptr_t address; |
| 13500 | } |
| 13501 | lt_preloaded_symbols[] = |
| 13502 | { |
| 13503 | EOF |
| 13504 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 13505 | cat <<\EOF >> conftest.$ac_ext |
| 13506 | {0, (lt_ptr_t) 0} |
| 13507 | }; |
| 13508 | |
| 13509 | #ifdef __cplusplus |
| 13510 | } |
| 13511 | #endif |
| 13512 | EOF |
| 13513 | # Now try linking the two files. |
| 13514 | mv conftest.$ac_objext conftstm.$ac_objext |
| 13515 | lt_save_LIBS="$LIBS" |
| 13516 | lt_save_CFLAGS="$CFLAGS" |
| 13517 | LIBS="conftstm.$ac_objext" |
| 13518 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 13519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13520 | (eval $ac_link) 2>&5 |
| 13521 | ac_status=$? |
| 13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13523 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 13524 | pipe_works=yes |
| 13525 | fi |
| 13526 | LIBS="$lt_save_LIBS" |
| 13527 | CFLAGS="$lt_save_CFLAGS" |
| 13528 | else |
| 13529 | echo "cannot find nm_test_func in $nlist" >&5 |
| 13530 | fi |
| 13531 | else |
| 13532 | echo "cannot find nm_test_var in $nlist" >&5 |
| 13533 | fi |
| 13534 | else |
| 13535 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 13536 | fi |
| 13537 | else |
| 13538 | echo "$progname: failed program was:" >&5 |
| 13539 | cat conftest.$ac_ext >&5 |
| 13540 | fi |
| 13541 | rm -f conftest* conftst* |
| 13542 | |
| 13543 | # Do not use the global_symbol_pipe unless it works. |
| 13544 | if test "$pipe_works" = yes; then |
| 13545 | break |
| 13546 | else |
| 13547 | lt_cv_sys_global_symbol_pipe= |
| 13548 | fi |
| 13549 | done |
| 13550 | |
| 13551 | fi |
| 13552 | |
| 13553 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 13554 | lt_cv_sys_global_symbol_to_cdecl= |
| 13555 | fi |
| 13556 | 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] | 13557 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 13558 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13559 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13560 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 13561 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13562 | fi |
| 13563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13564 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 13565 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13566 | if test "${lt_cv_objdir+set}" = set; then |
| 13567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13568 | else |
| 13569 | rm -f .libs 2>/dev/null |
| 13570 | mkdir .libs 2>/dev/null |
| 13571 | if test -d .libs; then |
| 13572 | lt_cv_objdir=.libs |
| 13573 | else |
| 13574 | # MS-DOS does not allow filenames that begin with a dot. |
| 13575 | lt_cv_objdir=_libs |
| 13576 | fi |
| 13577 | rmdir .libs 2>/dev/null |
| 13578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13579 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 13580 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13581 | objdir=$lt_cv_objdir |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | case $host_os in |
| 13588 | aix3*) |
| 13589 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13590 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13591 | # vanish in a puff of smoke. |
| 13592 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13593 | COLLECT_NAMES= |
| 13594 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13595 | fi |
| 13596 | ;; |
| 13597 | esac |
| 13598 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13599 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 13600 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13601 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13602 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 13603 | |
| 13604 | # Same as above, but do not quote variable references. |
| 13605 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 13606 | |
| 13607 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 13608 | # double_quote_subst'ed string. |
| 13609 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 13610 | |
| 13611 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 13612 | no_glob_subst='s/\*/\\\*/g' |
| 13613 | |
| 13614 | # Constants: |
| 13615 | rm="rm -f" |
| 13616 | |
| 13617 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 13618 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13619 | can_build_shared=yes |
| 13620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13621 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13622 | # which needs '.lib'). |
| 13623 | libext=a |
| 13624 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13625 | ofile="$default_ofile" |
| 13626 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13627 | |
| 13628 | if test -n "$ac_tool_prefix"; then |
| 13629 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 13630 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13631 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13633 | if test "${ac_cv_prog_AR+set}" = set; then |
| 13634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13635 | else |
| 13636 | if test -n "$AR"; then |
| 13637 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 13638 | else |
| 13639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13640 | for as_dir in $PATH |
| 13641 | do |
| 13642 | IFS=$as_save_IFS |
| 13643 | test -z "$as_dir" && as_dir=. |
| 13644 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13645 | 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] | 13646 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 13647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13648 | break 2 |
| 13649 | fi |
| 13650 | done |
| 13651 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13652 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13653 | |
| 13654 | fi |
| 13655 | fi |
| 13656 | AR=$ac_cv_prog_AR |
| 13657 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13658 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 13659 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13660 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13661 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13662 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13663 | fi |
| 13664 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13666 | fi |
| 13667 | if test -z "$ac_cv_prog_AR"; then |
| 13668 | ac_ct_AR=$AR |
| 13669 | # Extract the first word of "ar", so it can be a program name with args. |
| 13670 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13671 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13673 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 13674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13675 | else |
| 13676 | if test -n "$ac_ct_AR"; then |
| 13677 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 13678 | else |
| 13679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13680 | for as_dir in $PATH |
| 13681 | do |
| 13682 | IFS=$as_save_IFS |
| 13683 | test -z "$as_dir" && as_dir=. |
| 13684 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13685 | 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] | 13686 | ac_cv_prog_ac_ct_AR="ar" |
| 13687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13688 | break 2 |
| 13689 | fi |
| 13690 | done |
| 13691 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13692 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13693 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13694 | fi |
| 13695 | fi |
| 13696 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 13697 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13698 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 13699 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13700 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13701 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13702 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13703 | fi |
| 13704 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13705 | if test "x$ac_ct_AR" = x; then |
| 13706 | AR="false" |
| 13707 | else |
| 13708 | case $cross_compiling:$ac_tool_warned in |
| 13709 | yes:) |
| 13710 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13711 | whose name does not start with the host triplet. If you think this |
| 13712 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13713 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13714 | whose name does not start with the host triplet. If you think this |
| 13715 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13716 | ac_tool_warned=yes ;; |
| 13717 | esac |
| 13718 | AR=$ac_ct_AR |
| 13719 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13720 | else |
| 13721 | AR="$ac_cv_prog_AR" |
| 13722 | fi |
| 13723 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13724 | if test -n "$ac_tool_prefix"; then |
| 13725 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 13726 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13729 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 13730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13731 | else |
| 13732 | if test -n "$RANLIB"; then |
| 13733 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 13734 | else |
| 13735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13736 | for as_dir in $PATH |
| 13737 | do |
| 13738 | IFS=$as_save_IFS |
| 13739 | test -z "$as_dir" && as_dir=. |
| 13740 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13741 | 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] | 13742 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 13743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13744 | break 2 |
| 13745 | fi |
| 13746 | done |
| 13747 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13748 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13749 | |
| 13750 | fi |
| 13751 | fi |
| 13752 | RANLIB=$ac_cv_prog_RANLIB |
| 13753 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13754 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13755 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13756 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13757 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13758 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13759 | fi |
| 13760 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13761 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13762 | fi |
| 13763 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13764 | ac_ct_RANLIB=$RANLIB |
| 13765 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13766 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13767 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13769 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13771 | else |
| 13772 | if test -n "$ac_ct_RANLIB"; then |
| 13773 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13774 | else |
| 13775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13776 | for as_dir in $PATH |
| 13777 | do |
| 13778 | IFS=$as_save_IFS |
| 13779 | test -z "$as_dir" && as_dir=. |
| 13780 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13781 | 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] | 13782 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13784 | break 2 |
| 13785 | fi |
| 13786 | done |
| 13787 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13788 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13789 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13790 | fi |
| 13791 | fi |
| 13792 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13793 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13794 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13795 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13796 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13797 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13798 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13799 | fi |
| 13800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13801 | if test "x$ac_ct_RANLIB" = x; then |
| 13802 | RANLIB=":" |
| 13803 | else |
| 13804 | case $cross_compiling:$ac_tool_warned in |
| 13805 | yes:) |
| 13806 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13807 | whose name does not start with the host triplet. If you think this |
| 13808 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13809 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13810 | whose name does not start with the host triplet. If you think this |
| 13811 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13812 | ac_tool_warned=yes ;; |
| 13813 | esac |
| 13814 | RANLIB=$ac_ct_RANLIB |
| 13815 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13816 | else |
| 13817 | RANLIB="$ac_cv_prog_RANLIB" |
| 13818 | fi |
| 13819 | |
| 13820 | if test -n "$ac_tool_prefix"; then |
| 13821 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13822 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13825 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13827 | else |
| 13828 | if test -n "$STRIP"; then |
| 13829 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13830 | else |
| 13831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13832 | for as_dir in $PATH |
| 13833 | do |
| 13834 | IFS=$as_save_IFS |
| 13835 | test -z "$as_dir" && as_dir=. |
| 13836 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13837 | 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] | 13838 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13840 | break 2 |
| 13841 | fi |
| 13842 | done |
| 13843 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13844 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13845 | |
| 13846 | fi |
| 13847 | fi |
| 13848 | STRIP=$ac_cv_prog_STRIP |
| 13849 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13850 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13851 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13852 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13853 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13854 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13855 | fi |
| 13856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13857 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13858 | fi |
| 13859 | if test -z "$ac_cv_prog_STRIP"; then |
| 13860 | ac_ct_STRIP=$STRIP |
| 13861 | # Extract the first word of "strip", so it can be a program name with args. |
| 13862 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13863 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13865 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13867 | else |
| 13868 | if test -n "$ac_ct_STRIP"; then |
| 13869 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13870 | else |
| 13871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13872 | for as_dir in $PATH |
| 13873 | do |
| 13874 | IFS=$as_save_IFS |
| 13875 | test -z "$as_dir" && as_dir=. |
| 13876 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13877 | 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] | 13878 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13880 | break 2 |
| 13881 | fi |
| 13882 | done |
| 13883 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13884 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13885 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13886 | fi |
| 13887 | fi |
| 13888 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13889 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13890 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13891 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13892 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13893 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13894 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13895 | fi |
| 13896 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13897 | if test "x$ac_ct_STRIP" = x; then |
| 13898 | STRIP=":" |
| 13899 | else |
| 13900 | case $cross_compiling:$ac_tool_warned in |
| 13901 | yes:) |
| 13902 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13903 | whose name does not start with the host triplet. If you think this |
| 13904 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13905 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13906 | whose name does not start with the host triplet. If you think this |
| 13907 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13908 | ac_tool_warned=yes ;; |
| 13909 | esac |
| 13910 | STRIP=$ac_ct_STRIP |
| 13911 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13912 | else |
| 13913 | STRIP="$ac_cv_prog_STRIP" |
| 13914 | fi |
| 13915 | |
| 13916 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13917 | old_CC="$CC" |
| 13918 | old_CFLAGS="$CFLAGS" |
| 13919 | |
| 13920 | # Set sane defaults for various variables |
| 13921 | test -z "$AR" && AR=ar |
| 13922 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13923 | test -z "$AS" && AS=as |
| 13924 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13925 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13926 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13927 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13928 | test -z "$LD" && LD=ld |
| 13929 | test -z "$LN_S" && LN_S="ln -s" |
| 13930 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13931 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13932 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13933 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13934 | test -z "$RANLIB" && RANLIB=: |
| 13935 | test -z "$STRIP" && STRIP=: |
| 13936 | test -z "$ac_objext" && ac_objext=o |
| 13937 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13938 | # Determine commands to create old-style static archives. |
| 13939 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13940 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13941 | old_postuninstall_cmds= |
| 13942 | |
| 13943 | if test -n "$RANLIB"; then |
| 13944 | case $host_os in |
| 13945 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13946 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13947 | ;; |
| 13948 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13949 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13950 | ;; |
| 13951 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13952 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13953 | fi |
| 13954 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13955 | for cc_temp in $compiler""; do |
| 13956 | case $cc_temp in |
| 13957 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13958 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13959 | \-*) ;; |
| 13960 | *) break;; |
| 13961 | esac |
| 13962 | done |
| 13963 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13964 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13965 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13966 | # Only perform the check for file, if the check method requires it |
| 13967 | case $deplibs_check_method in |
| 13968 | file_magic*) |
| 13969 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13970 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13971 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13972 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13974 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13975 | case $MAGIC_CMD in |
| 13976 | [\\/*] | ?:[\\/]*) |
| 13977 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13978 | ;; |
| 13979 | *) |
| 13980 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13981 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13982 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13983 | for ac_dir in $ac_dummy; do |
| 13984 | IFS="$lt_save_ifs" |
| 13985 | test -z "$ac_dir" && ac_dir=. |
| 13986 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13987 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13988 | if test -n "$file_magic_test_file"; then |
| 13989 | case $deplibs_check_method in |
| 13990 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13991 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13992 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13993 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13994 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13995 | : |
| 13996 | else |
| 13997 | cat <<EOF 1>&2 |
| 13998 | |
| 13999 | *** Warning: the command libtool uses to detect shared libraries, |
| 14000 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14001 | *** The result is that libtool may fail to recognize shared libraries |
| 14002 | *** as such. This will affect the creation of libtool libraries that |
| 14003 | *** depend on shared libraries, but programs linked with such libtool |
| 14004 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14005 | *** may want to report the problem to your system manager and/or to |
| 14006 | *** bug-libtool@gnu.org |
| 14007 | |
| 14008 | EOF |
| 14009 | fi ;; |
| 14010 | esac |
| 14011 | fi |
| 14012 | break |
| 14013 | fi |
| 14014 | done |
| 14015 | IFS="$lt_save_ifs" |
| 14016 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14017 | ;; |
| 14018 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14019 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14020 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14021 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14022 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14023 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14024 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14025 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14026 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14027 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14028 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14029 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14030 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14031 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14032 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 14033 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14034 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 14035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14036 | else |
| 14037 | case $MAGIC_CMD in |
| 14038 | [\\/*] | ?:[\\/]*) |
| 14039 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14040 | ;; |
| 14041 | *) |
| 14042 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14043 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14044 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14045 | for ac_dir in $ac_dummy; do |
| 14046 | IFS="$lt_save_ifs" |
| 14047 | test -z "$ac_dir" && ac_dir=. |
| 14048 | if test -f $ac_dir/file; then |
| 14049 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14050 | if test -n "$file_magic_test_file"; then |
| 14051 | case $deplibs_check_method in |
| 14052 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14053 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14054 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14055 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14056 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14057 | : |
| 14058 | else |
| 14059 | cat <<EOF 1>&2 |
| 14060 | |
| 14061 | *** Warning: the command libtool uses to detect shared libraries, |
| 14062 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14063 | *** The result is that libtool may fail to recognize shared libraries |
| 14064 | *** as such. This will affect the creation of libtool libraries that |
| 14065 | *** depend on shared libraries, but programs linked with such libtool |
| 14066 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14067 | *** may want to report the problem to your system manager and/or to |
| 14068 | *** bug-libtool@gnu.org |
| 14069 | |
| 14070 | EOF |
| 14071 | fi ;; |
| 14072 | esac |
| 14073 | fi |
| 14074 | break |
| 14075 | fi |
| 14076 | done |
| 14077 | IFS="$lt_save_ifs" |
| 14078 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14079 | ;; |
| 14080 | esac |
| 14081 | fi |
| 14082 | |
| 14083 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14084 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14085 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 14086 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14087 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14088 | { echo "$as_me:$LINENO: result: no" >&5 |
| 14089 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14090 | fi |
| 14091 | |
| 14092 | else |
| 14093 | MAGIC_CMD=: |
| 14094 | fi |
| 14095 | fi |
| 14096 | |
| 14097 | fi |
| 14098 | ;; |
| 14099 | esac |
| 14100 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 14101 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14102 | enable_win32_dll=no |
| 14103 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14104 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14105 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14106 | enableval=$enable_libtool_lock; |
| 14107 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14108 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14109 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 14110 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14112 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14113 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14114 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14115 | else |
| 14116 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14117 | fi |
| 14118 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14119 | test -z "$pic_mode" && pic_mode=default |
| 14120 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14121 | # Use C for the default configuration in the libtool script |
| 14122 | tagname= |
| 14123 | lt_save_CC="$CC" |
| 14124 | ac_ext=c |
| 14125 | ac_cpp='$CPP $CPPFLAGS' |
| 14126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14129 | |
| 14130 | |
| 14131 | # Source file extension for C test sources. |
| 14132 | ac_ext=c |
| 14133 | |
| 14134 | # Object file extension for compiled C test sources. |
| 14135 | objext=o |
| 14136 | objext=$objext |
| 14137 | |
| 14138 | # Code to be used in simple compile tests |
| 14139 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 14140 | |
| 14141 | # Code to be used in simple link tests |
| 14142 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 14143 | |
| 14144 | |
| 14145 | # If no C compiler was specified, use CC. |
| 14146 | LTCC=${LTCC-"$CC"} |
| 14147 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14148 | # If no C compiler flags were specified, use CFLAGS. |
| 14149 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14150 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14151 | # Allow CC to be a program name with arguments. |
| 14152 | compiler=$CC |
| 14153 | |
| 14154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14155 | # save warnings/boilerplate of simple test code |
| 14156 | ac_outfile=conftest.$ac_objext |
| 14157 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14158 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14159 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14160 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14162 | ac_outfile=conftest.$ac_objext |
| 14163 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14164 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14165 | _lt_linker_boilerplate=`cat conftest.err` |
| 14166 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14167 | |
| 14168 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14169 | |
| 14170 | lt_prog_compiler_no_builtin_flag= |
| 14171 | |
| 14172 | if test "$GCC" = yes; then |
| 14173 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 14174 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14175 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14176 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14177 | 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] | 14178 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 14179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14180 | else |
| 14181 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14182 | ac_outfile=conftest.$ac_objext |
| 14183 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14184 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14185 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14186 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14187 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14188 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14189 | # The option is referenced via a variable to avoid confusing sed. |
| 14190 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14191 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14192 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14193 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14194 | (eval echo "\"\$as_me:14194: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14195 | (eval "$lt_compile" 2>conftest.err) |
| 14196 | ac_status=$? |
| 14197 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14198 | echo "$as_me:14198: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14199 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14200 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14201 | # So say no if there are warnings other than the usual output. |
| 14202 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14203 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14204 | 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] | 14205 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14206 | fi |
| 14207 | fi |
| 14208 | $rm conftest* |
| 14209 | |
| 14210 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14211 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14212 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14213 | |
| 14214 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14215 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14216 | else |
| 14217 | : |
| 14218 | fi |
| 14219 | |
| 14220 | fi |
| 14221 | |
| 14222 | lt_prog_compiler_wl= |
| 14223 | lt_prog_compiler_pic= |
| 14224 | lt_prog_compiler_static= |
| 14225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14227 | 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] | 14228 | |
| 14229 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14230 | lt_prog_compiler_wl='-Wl,' |
| 14231 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14232 | |
| 14233 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14234 | aix*) |
| 14235 | # All AIX code is PIC. |
| 14236 | if test "$host_cpu" = ia64; then |
| 14237 | # AIX 5 now supports IA64 processor |
| 14238 | lt_prog_compiler_static='-Bstatic' |
| 14239 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14240 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14241 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14242 | amigaos*) |
| 14243 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14244 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14245 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14247 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14248 | |
| 14249 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14250 | # PIC is the default for these OSes. |
| 14251 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14252 | |
| 14253 | mingw* | pw32* | os2*) |
| 14254 | # This hack is so that the source file can tell whether it is being |
| 14255 | # built for inclusion in a dll (and should export symbols for example). |
| 14256 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14257 | ;; |
| 14258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14259 | darwin* | rhapsody*) |
| 14260 | # PIC is the default on this platform |
| 14261 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14262 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14263 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14264 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14265 | interix3*) |
| 14266 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14267 | # Instead, we relocate shared libraries at runtime. |
| 14268 | ;; |
| 14269 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14270 | msdosdjgpp*) |
| 14271 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14272 | # on systems that don't support them. |
| 14273 | lt_prog_compiler_can_build_shared=no |
| 14274 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14275 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14276 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14277 | sysv4*MP*) |
| 14278 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14279 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14280 | fi |
| 14281 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14282 | |
| 14283 | hpux*) |
| 14284 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14285 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14286 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14287 | hppa*64*|ia64*) |
| 14288 | # +Z the default |
| 14289 | ;; |
| 14290 | *) |
| 14291 | lt_prog_compiler_pic='-fPIC' |
| 14292 | ;; |
| 14293 | esac |
| 14294 | ;; |
| 14295 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14296 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14297 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14298 | ;; |
| 14299 | esac |
| 14300 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14301 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14302 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14303 | aix*) |
| 14304 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14305 | if test "$host_cpu" = ia64; then |
| 14306 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14307 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14308 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14309 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14310 | fi |
| 14311 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14312 | darwin*) |
| 14313 | # PIC is the default on this platform |
| 14314 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14315 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14316 | xlc*) |
| 14317 | lt_prog_compiler_pic='-qnocommon' |
| 14318 | lt_prog_compiler_wl='-Wl,' |
| 14319 | ;; |
| 14320 | esac |
| 14321 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14323 | mingw* | pw32* | os2*) |
| 14324 | # This hack is so that the source file can tell whether it is being |
| 14325 | # built for inclusion in a dll (and should export symbols for example). |
| 14326 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14327 | ;; |
| 14328 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14329 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14330 | lt_prog_compiler_wl='-Wl,' |
| 14331 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14332 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14333 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14334 | hppa*64*|ia64*) |
| 14335 | # +Z the default |
| 14336 | ;; |
| 14337 | *) |
| 14338 | lt_prog_compiler_pic='+Z' |
| 14339 | ;; |
| 14340 | esac |
| 14341 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14342 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14343 | ;; |
| 14344 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14345 | irix5* | irix6* | nonstopux*) |
| 14346 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14347 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14348 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14349 | ;; |
| 14350 | |
| 14351 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14352 | lt_prog_compiler_pic='-KPIC' |
| 14353 | lt_prog_compiler_static='-Bstatic' |
| 14354 | ;; |
| 14355 | |
| 14356 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14357 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14358 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14359 | lt_prog_compiler_wl='-Wl,' |
| 14360 | lt_prog_compiler_pic='-KPIC' |
| 14361 | lt_prog_compiler_static='-static' |
| 14362 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14363 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14364 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14365 | # which looks to be a dead project) |
| 14366 | lt_prog_compiler_wl='-Wl,' |
| 14367 | lt_prog_compiler_pic='-fpic' |
| 14368 | lt_prog_compiler_static='-Bstatic' |
| 14369 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14370 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14371 | lt_prog_compiler_wl='-Wl,' |
| 14372 | # All Alpha code is PIC. |
| 14373 | lt_prog_compiler_static='-non_shared' |
| 14374 | ;; |
| 14375 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14376 | ;; |
| 14377 | |
| 14378 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14379 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14380 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14381 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14382 | ;; |
| 14383 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14384 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14385 | lt_prog_compiler_pic='-KPIC' |
| 14386 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14387 | case $cc_basename in |
| 14388 | f77* | f90* | f95*) |
| 14389 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14390 | *) |
| 14391 | lt_prog_compiler_wl='-Wl,';; |
| 14392 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14393 | ;; |
| 14394 | |
| 14395 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14396 | lt_prog_compiler_wl='-Qoption ld ' |
| 14397 | lt_prog_compiler_pic='-PIC' |
| 14398 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14399 | ;; |
| 14400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14401 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14402 | lt_prog_compiler_wl='-Wl,' |
| 14403 | lt_prog_compiler_pic='-KPIC' |
| 14404 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14405 | ;; |
| 14406 | |
| 14407 | sysv4*MP*) |
| 14408 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14409 | lt_prog_compiler_pic='-Kconform_pic' |
| 14410 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14411 | fi |
| 14412 | ;; |
| 14413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14414 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14415 | lt_prog_compiler_wl='-Wl,' |
| 14416 | lt_prog_compiler_pic='-KPIC' |
| 14417 | lt_prog_compiler_static='-Bstatic' |
| 14418 | ;; |
| 14419 | |
| 14420 | unicos*) |
| 14421 | lt_prog_compiler_wl='-Wl,' |
| 14422 | lt_prog_compiler_can_build_shared=no |
| 14423 | ;; |
| 14424 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14425 | uts4*) |
| 14426 | lt_prog_compiler_pic='-pic' |
| 14427 | lt_prog_compiler_static='-Bstatic' |
| 14428 | ;; |
| 14429 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14430 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14431 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14432 | ;; |
| 14433 | esac |
| 14434 | fi |
| 14435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14436 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 14437 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14438 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14439 | # |
| 14440 | # Check to make sure the PIC flag actually works. |
| 14441 | # |
| 14442 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14443 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14444 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14445 | 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] | 14446 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14448 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14449 | lt_prog_compiler_pic_works=no |
| 14450 | ac_outfile=conftest.$ac_objext |
| 14451 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14452 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14453 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14454 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14455 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14456 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14457 | # The option is referenced via a variable to avoid confusing sed. |
| 14458 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14459 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14460 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14461 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14462 | (eval echo "\"\$as_me:14462: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14463 | (eval "$lt_compile" 2>conftest.err) |
| 14464 | ac_status=$? |
| 14465 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14466 | echo "$as_me:14466: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14467 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14468 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14469 | # So say no if there are warnings other than the usual output. |
| 14470 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14471 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14472 | 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] | 14473 | lt_prog_compiler_pic_works=yes |
| 14474 | fi |
| 14475 | fi |
| 14476 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14477 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14478 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14479 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 14480 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14481 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14482 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 14483 | case $lt_prog_compiler_pic in |
| 14484 | "" | " "*) ;; |
| 14485 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14486 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14487 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14488 | lt_prog_compiler_pic= |
| 14489 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14490 | fi |
| 14491 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14492 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14493 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14494 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14495 | *djgpp*) |
| 14496 | lt_prog_compiler_pic= |
| 14497 | ;; |
| 14498 | *) |
| 14499 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14500 | ;; |
| 14501 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14502 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14503 | # |
| 14504 | # Check to make sure the static flag actually works. |
| 14505 | # |
| 14506 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14507 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14508 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14509 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 14510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14511 | else |
| 14512 | lt_prog_compiler_static_works=no |
| 14513 | save_LDFLAGS="$LDFLAGS" |
| 14514 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14515 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14516 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14517 | # The linker can only warn and ignore the option if not recognized |
| 14518 | # So say no if there are warnings |
| 14519 | if test -s conftest.err; then |
| 14520 | # Append any errors to the config.log. |
| 14521 | cat conftest.err 1>&5 |
| 14522 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14523 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14524 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14525 | lt_prog_compiler_static_works=yes |
| 14526 | fi |
| 14527 | else |
| 14528 | lt_prog_compiler_static_works=yes |
| 14529 | fi |
| 14530 | fi |
| 14531 | $rm conftest* |
| 14532 | LDFLAGS="$save_LDFLAGS" |
| 14533 | |
| 14534 | fi |
| 14535 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 14536 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 14537 | |
| 14538 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 14539 | : |
| 14540 | else |
| 14541 | lt_prog_compiler_static= |
| 14542 | fi |
| 14543 | |
| 14544 | |
| 14545 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14546 | 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] | 14547 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14549 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14550 | lt_cv_prog_compiler_c_o=no |
| 14551 | $rm -r conftest 2>/dev/null |
| 14552 | mkdir conftest |
| 14553 | cd conftest |
| 14554 | mkdir out |
| 14555 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14556 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14557 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14558 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14559 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14560 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14561 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14562 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14563 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14564 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14565 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14566 | (eval echo "\"\$as_me:14566: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14567 | (eval "$lt_compile" 2>out/conftest.err) |
| 14568 | ac_status=$? |
| 14569 | cat out/conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 14570 | echo "$as_me:14570: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14571 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14572 | then |
| 14573 | # The compiler can only warn and ignore the option if not recognized |
| 14574 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14575 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14576 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14577 | 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] | 14578 | lt_cv_prog_compiler_c_o=yes |
| 14579 | fi |
| 14580 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14581 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14582 | $rm conftest* |
| 14583 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14584 | # template instantiation |
| 14585 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14586 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 | cd .. |
| 14588 | rmdir conftest |
| 14589 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14590 | |
| 14591 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14592 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14593 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14594 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14596 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14597 | 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] | 14598 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14599 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14600 | 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] | 14601 | hard_links=yes |
| 14602 | $rm conftest* |
| 14603 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14604 | touch conftest.a |
| 14605 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14606 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14607 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14608 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14609 | if test "$hard_links" = no; then |
| 14610 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14611 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14612 | need_locks=warn |
| 14613 | fi |
| 14614 | else |
| 14615 | need_locks=no |
| 14616 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14618 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14619 | 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] | 14620 | |
| 14621 | runpath_var= |
| 14622 | allow_undefined_flag= |
| 14623 | enable_shared_with_static_runtimes=no |
| 14624 | archive_cmds= |
| 14625 | archive_expsym_cmds= |
| 14626 | old_archive_From_new_cmds= |
| 14627 | old_archive_from_expsyms_cmds= |
| 14628 | export_dynamic_flag_spec= |
| 14629 | whole_archive_flag_spec= |
| 14630 | thread_safe_flag_spec= |
| 14631 | hardcode_libdir_flag_spec= |
| 14632 | hardcode_libdir_flag_spec_ld= |
| 14633 | hardcode_libdir_separator= |
| 14634 | hardcode_direct=no |
| 14635 | hardcode_minus_L=no |
| 14636 | hardcode_shlibpath_var=unsupported |
| 14637 | link_all_deplibs=unknown |
| 14638 | hardcode_automatic=no |
| 14639 | module_cmds= |
| 14640 | module_expsym_cmds= |
| 14641 | always_export_symbols=no |
| 14642 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14643 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14644 | # included in the symbol list |
| 14645 | include_expsyms= |
| 14646 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14647 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14648 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14649 | # as well as any symbol that contains `d'. |
| 14650 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 14651 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14652 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14653 | # the symbol is explicitly referenced. Since portable code cannot |
| 14654 | # rely on this symbol name, it's probably fine to never include it in |
| 14655 | # preloaded symbol tables. |
| 14656 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14657 | # Just being paranoid about ensuring that cc_basename is set. |
| 14658 | for cc_temp in $compiler""; do |
| 14659 | case $cc_temp in |
| 14660 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14661 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14662 | \-*) ;; |
| 14663 | *) break;; |
| 14664 | esac |
| 14665 | done |
| 14666 | 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] | 14667 | |
| 14668 | case $host_os in |
| 14669 | cygwin* | mingw* | pw32*) |
| 14670 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14671 | # When not using gcc, we currently assume that we are using |
| 14672 | # Microsoft Visual C++. |
| 14673 | if test "$GCC" != yes; then |
| 14674 | with_gnu_ld=no |
| 14675 | fi |
| 14676 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14677 | interix*) |
| 14678 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14679 | with_gnu_ld=yes |
| 14680 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14681 | openbsd*) |
| 14682 | with_gnu_ld=no |
| 14683 | ;; |
| 14684 | esac |
| 14685 | |
| 14686 | ld_shlibs=yes |
| 14687 | if test "$with_gnu_ld" = yes; then |
| 14688 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14689 | wlarc='${wl}' |
| 14690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14691 | # Set some defaults for GNU ld with shared library support. These |
| 14692 | # are reset later if shared libraries are not supported. Putting them |
| 14693 | # here allows them to be overridden if necessary. |
| 14694 | runpath_var=LD_RUN_PATH |
| 14695 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 14696 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14697 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14698 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14699 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14700 | else |
| 14701 | whole_archive_flag_spec= |
| 14702 | fi |
| 14703 | supports_anon_versioning=no |
| 14704 | case `$LD -v 2>/dev/null` in |
| 14705 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14706 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14707 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14708 | *\ 2.11.*) ;; # other 2.11 versions |
| 14709 | *) supports_anon_versioning=yes ;; |
| 14710 | esac |
| 14711 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14712 | # See if GNU ld supports shared libraries. |
| 14713 | case $host_os in |
| 14714 | aix3* | aix4* | aix5*) |
| 14715 | # On AIX/PPC, the GNU linker is very broken |
| 14716 | if test "$host_cpu" != ia64; then |
| 14717 | ld_shlibs=no |
| 14718 | cat <<EOF 1>&2 |
| 14719 | |
| 14720 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14721 | *** to be unable to reliably create shared libraries on AIX. |
| 14722 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14723 | *** really care for shared libraries, you may want to modify your PATH |
| 14724 | *** so that a non-GNU linker is found, and then restart. |
| 14725 | |
| 14726 | EOF |
| 14727 | fi |
| 14728 | ;; |
| 14729 | |
| 14730 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14731 | 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] | 14732 | hardcode_libdir_flag_spec='-L$libdir' |
| 14733 | hardcode_minus_L=yes |
| 14734 | |
| 14735 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14736 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14737 | # to version 4, is to share data among multiple programs linked |
| 14738 | # with the same dynamic library. Since this doesn't match the |
| 14739 | # behavior of shared libraries on other platforms, we can't use |
| 14740 | # them. |
| 14741 | ld_shlibs=no |
| 14742 | ;; |
| 14743 | |
| 14744 | beos*) |
| 14745 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14746 | allow_undefined_flag=unsupported |
| 14747 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14748 | # support --undefined. This deserves some investigation. FIXME |
| 14749 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14750 | else |
| 14751 | ld_shlibs=no |
| 14752 | fi |
| 14753 | ;; |
| 14754 | |
| 14755 | cygwin* | mingw* | pw32*) |
| 14756 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14757 | # as there is no search path for DLLs. |
| 14758 | hardcode_libdir_flag_spec='-L$libdir' |
| 14759 | allow_undefined_flag=unsupported |
| 14760 | always_export_symbols=no |
| 14761 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14762 | 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] | 14763 | |
| 14764 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14765 | 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] | 14766 | # If the export-symbols file already is a .def file (1st line |
| 14767 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14768 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14769 | cp $export_symbols $output_objdir/$soname.def; |
| 14770 | else |
| 14771 | echo EXPORTS > $output_objdir/$soname.def; |
| 14772 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14773 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14774 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14775 | else |
| 14776 | ld_shlibs=no |
| 14777 | fi |
| 14778 | ;; |
| 14779 | |
| 14780 | interix3*) |
| 14781 | hardcode_direct=no |
| 14782 | hardcode_shlibpath_var=no |
| 14783 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14784 | export_dynamic_flag_spec='${wl}-E' |
| 14785 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14786 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14787 | # default) and relocated if they conflict, which is a slow very memory |
| 14788 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14789 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14790 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14791 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14792 | 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' |
| 14793 | ;; |
| 14794 | |
| 14795 | linux*) |
| 14796 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14797 | tmp_addflag= |
| 14798 | case $cc_basename,$host_cpu in |
| 14799 | pgcc*) # Portland Group C compiler |
| 14800 | 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' |
| 14801 | tmp_addflag=' $pic_flag' |
| 14802 | ;; |
| 14803 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14804 | 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' |
| 14805 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14806 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14807 | tmp_addflag=' -i_dynamic' ;; |
| 14808 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14809 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14810 | ifc* | ifort*) # Intel Fortran compiler |
| 14811 | tmp_addflag=' -nofor_main' ;; |
| 14812 | esac |
| 14813 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14814 | |
| 14815 | if test $supports_anon_versioning = yes; then |
| 14816 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14817 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14818 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14819 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14820 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14821 | else |
| 14822 | ld_shlibs=no |
| 14823 | fi |
| 14824 | ;; |
| 14825 | |
| 14826 | netbsd*) |
| 14827 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14828 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14829 | wlarc= |
| 14830 | else |
| 14831 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14832 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14833 | fi |
| 14834 | ;; |
| 14835 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14836 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14837 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14838 | ld_shlibs=no |
| 14839 | cat <<EOF 1>&2 |
| 14840 | |
| 14841 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14842 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14843 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14844 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14845 | *** your PATH or compiler configuration so that the native linker is |
| 14846 | *** used, and then restart. |
| 14847 | |
| 14848 | EOF |
| 14849 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14850 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14851 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14852 | else |
| 14853 | ld_shlibs=no |
| 14854 | fi |
| 14855 | ;; |
| 14856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14857 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14858 | case `$LD -v 2>&1` in |
| 14859 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14860 | ld_shlibs=no |
| 14861 | cat <<_LT_EOF 1>&2 |
| 14862 | |
| 14863 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14864 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14865 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14866 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14867 | *** your PATH or compiler configuration so that the native linker is |
| 14868 | *** used, and then restart. |
| 14869 | |
| 14870 | _LT_EOF |
| 14871 | ;; |
| 14872 | *) |
| 14873 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14874 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14875 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14876 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14877 | else |
| 14878 | ld_shlibs=no |
| 14879 | fi |
| 14880 | ;; |
| 14881 | esac |
| 14882 | ;; |
| 14883 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14884 | sunos4*) |
| 14885 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14886 | wlarc= |
| 14887 | hardcode_direct=yes |
| 14888 | hardcode_shlibpath_var=no |
| 14889 | ;; |
| 14890 | |
| 14891 | *) |
| 14892 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14893 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14894 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14895 | else |
| 14896 | ld_shlibs=no |
| 14897 | fi |
| 14898 | ;; |
| 14899 | esac |
| 14900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14901 | if test "$ld_shlibs" = no; then |
| 14902 | runpath_var= |
| 14903 | hardcode_libdir_flag_spec= |
| 14904 | export_dynamic_flag_spec= |
| 14905 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14906 | fi |
| 14907 | else |
| 14908 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14909 | case $host_os in |
| 14910 | aix3*) |
| 14911 | allow_undefined_flag=unsupported |
| 14912 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14913 | 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] | 14914 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14915 | # are no directories specified by -L. |
| 14916 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14917 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14918 | # Neither direct hardcoding nor static linking is supported with a |
| 14919 | # broken collect2. |
| 14920 | hardcode_direct=unsupported |
| 14921 | fi |
| 14922 | ;; |
| 14923 | |
| 14924 | aix4* | aix5*) |
| 14925 | if test "$host_cpu" = ia64; then |
| 14926 | # On IA64, the linker does run time linking by default, so we don't |
| 14927 | # have to do anything special. |
| 14928 | aix_use_runtimelinking=no |
| 14929 | exp_sym_flag='-Bexport' |
| 14930 | no_entry_flag="" |
| 14931 | else |
| 14932 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14933 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14934 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14935 | 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' |
| 14936 | else |
| 14937 | 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' |
| 14938 | fi |
| 14939 | aix_use_runtimelinking=no |
| 14940 | |
| 14941 | # Test if we are trying to use run time linking or normal |
| 14942 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14943 | # need to do runtime linking. |
| 14944 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14945 | for ld_flag in $LDFLAGS; do |
| 14946 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14947 | aix_use_runtimelinking=yes |
| 14948 | break |
| 14949 | fi |
| 14950 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14951 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14952 | esac |
| 14953 | |
| 14954 | exp_sym_flag='-bexport' |
| 14955 | no_entry_flag='-bnoentry' |
| 14956 | fi |
| 14957 | |
| 14958 | # When large executables or shared objects are built, AIX ld can |
| 14959 | # have problems creating the table of contents. If linking a library |
| 14960 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14961 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14962 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14963 | |
| 14964 | archive_cmds='' |
| 14965 | hardcode_direct=yes |
| 14966 | hardcode_libdir_separator=':' |
| 14967 | link_all_deplibs=yes |
| 14968 | |
| 14969 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14970 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14971 | # We only want to do this on AIX 4.2 and lower, the check |
| 14972 | # below for broken collect2 doesn't work under 4.3+ |
| 14973 | collect2name=`${CC} -print-prog-name=collect2` |
| 14974 | if test -f "$collect2name" && \ |
| 14975 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14976 | then |
| 14977 | # We have reworked collect2 |
| 14978 | hardcode_direct=yes |
| 14979 | else |
| 14980 | # We have old collect2 |
| 14981 | hardcode_direct=unsupported |
| 14982 | # It fails to find uninstalled libraries when the uninstalled |
| 14983 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14984 | # to unsupported forces relinking |
| 14985 | hardcode_minus_L=yes |
| 14986 | hardcode_libdir_flag_spec='-L$libdir' |
| 14987 | hardcode_libdir_separator= |
| 14988 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14989 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14990 | esac |
| 14991 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14992 | if test "$aix_use_runtimelinking" = yes; then |
| 14993 | shared_flag="$shared_flag "'${wl}-G' |
| 14994 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14995 | else |
| 14996 | # not using gcc |
| 14997 | if test "$host_cpu" = ia64; then |
| 14998 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14999 | # chokes on -Wl,-G. The following line is correct: |
| 15000 | shared_flag='-G' |
| 15001 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15002 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15003 | shared_flag='${wl}-G' |
| 15004 | else |
| 15005 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15006 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15007 | fi |
| 15008 | fi |
| 15009 | |
| 15010 | # It seems that -bexpall does not export symbols beginning with |
| 15011 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15012 | always_export_symbols=yes |
| 15013 | if test "$aix_use_runtimelinking" = yes; then |
| 15014 | # Warning - without using the other runtime loading flags (-brtl), |
| 15015 | # -berok will link without error, but may produce a broken library. |
| 15016 | allow_undefined_flag='-berok' |
| 15017 | # Determine the default libpath from the value encoded in an empty executable. |
| 15018 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15019 | /* confdefs.h. */ |
| 15020 | _ACEOF |
| 15021 | cat confdefs.h >>conftest.$ac_ext |
| 15022 | cat >>conftest.$ac_ext <<_ACEOF |
| 15023 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15024 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15025 | int |
| 15026 | main () |
| 15027 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15028 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15029 | ; |
| 15030 | return 0; |
| 15031 | } |
| 15032 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15033 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15034 | if { (ac_try="$ac_link" |
| 15035 | case "(($ac_try" in |
| 15036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15037 | *) ac_try_echo=$ac_try;; |
| 15038 | esac |
| 15039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15040 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15041 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15043 | rm -f conftest.er1 |
| 15044 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15046 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15048 | { (case "(($ac_try" in |
| 15049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15050 | *) ac_try_echo=$ac_try;; |
| 15051 | esac |
| 15052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15053 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15054 | ac_status=$? |
| 15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); }; } && |
| 15057 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15064 | ac_status=$? |
| 15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15066 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15067 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15068 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15069 | }'` |
| 15070 | # Check for a 64-bit object if we didn't find anything. |
| 15071 | 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; } |
| 15072 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15073 | else |
| 15074 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15077 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15079 | |
| 15080 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15081 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15082 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15083 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15084 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15085 | 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] | 15086 | else |
| 15087 | if test "$host_cpu" = ia64; then |
| 15088 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15089 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15090 | 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] | 15091 | else |
| 15092 | # Determine the default libpath from the value encoded in an empty executable. |
| 15093 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15094 | /* confdefs.h. */ |
| 15095 | _ACEOF |
| 15096 | cat confdefs.h >>conftest.$ac_ext |
| 15097 | cat >>conftest.$ac_ext <<_ACEOF |
| 15098 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15099 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15100 | int |
| 15101 | main () |
| 15102 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15103 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15104 | ; |
| 15105 | return 0; |
| 15106 | } |
| 15107 | _ACEOF |
| 15108 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15109 | if { (ac_try="$ac_link" |
| 15110 | case "(($ac_try" in |
| 15111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15112 | *) ac_try_echo=$ac_try;; |
| 15113 | esac |
| 15114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15115 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15116 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15117 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15118 | rm -f conftest.er1 |
| 15119 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15121 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15123 | { (case "(($ac_try" in |
| 15124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15125 | *) ac_try_echo=$ac_try;; |
| 15126 | esac |
| 15127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15128 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15129 | ac_status=$? |
| 15130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15131 | (exit $ac_status); }; } && |
| 15132 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15142 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15143 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 15144 | }'` |
| 15145 | # Check for a 64-bit object if we didn't find anything. |
| 15146 | 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; } |
| 15147 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15148 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15149 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15151 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15152 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15153 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15154 | |
| 15155 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15156 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15157 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15158 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15159 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15160 | # Warning - without using the other run time loading flags, |
| 15161 | # -berok will link without error, but may produce a broken library. |
| 15162 | no_undefined_flag=' ${wl}-bernotok' |
| 15163 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15164 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15165 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15166 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15167 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15168 | 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] | 15169 | fi |
| 15170 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15171 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15172 | |
| 15173 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15174 | 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] | 15175 | hardcode_libdir_flag_spec='-L$libdir' |
| 15176 | hardcode_minus_L=yes |
| 15177 | # see comment about different semantics on the GNU ld section |
| 15178 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15179 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15180 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15181 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15182 | export_dynamic_flag_spec=-rdynamic |
| 15183 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15184 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15185 | cygwin* | mingw* | pw32*) |
| 15186 | # When not using gcc, we currently assume that we are using |
| 15187 | # Microsoft Visual C++. |
| 15188 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15189 | # no search path for DLLs. |
| 15190 | hardcode_libdir_flag_spec=' ' |
| 15191 | allow_undefined_flag=unsupported |
| 15192 | # Tell ltmain to make .lib files, not .a files. |
| 15193 | libext=lib |
| 15194 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15195 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15196 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15197 | 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] | 15198 | # The linker will automatically build a .lib file if we build a DLL. |
| 15199 | old_archive_From_new_cmds='true' |
| 15200 | # FIXME: Should let the user specify the lib program. |
| 15201 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 15202 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 15203 | enable_shared_with_static_runtimes=yes |
| 15204 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15205 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15206 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15207 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15208 | rhapsody* | darwin1.[012]) |
| 15209 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 15210 | ;; |
| 15211 | *) # Darwin 1.3 on |
| 15212 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15213 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15214 | else |
| 15215 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15216 | 10.[012]) |
| 15217 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15218 | ;; |
| 15219 | 10.*) |
| 15220 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 15221 | ;; |
| 15222 | esac |
| 15223 | fi |
| 15224 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15225 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15226 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15227 | hardcode_direct=no |
| 15228 | hardcode_automatic=yes |
| 15229 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15230 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15231 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15232 | if test "$GCC" = yes ; then |
| 15233 | output_verbose_link_cmd='echo' |
| 15234 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15235 | 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] | 15236 | # 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] | 15237 | 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}' |
| 15238 | 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] | 15239 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15240 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15241 | xlc*) |
| 15242 | output_verbose_link_cmd='echo' |
| 15243 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15244 | 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] | 15245 | # 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] | 15246 | 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}' |
| 15247 | 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] | 15248 | ;; |
| 15249 | *) |
| 15250 | ld_shlibs=no |
| 15251 | ;; |
| 15252 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15253 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15254 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15255 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15256 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15257 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15258 | hardcode_libdir_flag_spec='-L$libdir' |
| 15259 | hardcode_shlibpath_var=no |
| 15260 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15261 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15262 | freebsd1*) |
| 15263 | ld_shlibs=no |
| 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 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15267 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15268 | # does not break anything, and helps significantly (at the cost of a little |
| 15269 | # extra space). |
| 15270 | freebsd2.2*) |
| 15271 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15272 | hardcode_libdir_flag_spec='-R$libdir' |
| 15273 | hardcode_direct=yes |
| 15274 | hardcode_shlibpath_var=no |
| 15275 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15276 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15277 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15278 | freebsd2*) |
| 15279 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15280 | hardcode_direct=yes |
| 15281 | hardcode_minus_L=yes |
| 15282 | hardcode_shlibpath_var=no |
| 15283 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15284 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15285 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15286 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15287 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15288 | hardcode_libdir_flag_spec='-R$libdir' |
| 15289 | hardcode_direct=yes |
| 15290 | hardcode_shlibpath_var=no |
| 15291 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15292 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15293 | hpux9*) |
| 15294 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15295 | 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] | 15296 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15297 | 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] | 15298 | fi |
| 15299 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15300 | hardcode_libdir_separator=: |
| 15301 | hardcode_direct=yes |
| 15302 | |
| 15303 | # hardcode_minus_L: Not really in the search PATH, |
| 15304 | # but as the default location of the library. |
| 15305 | hardcode_minus_L=yes |
| 15306 | export_dynamic_flag_spec='${wl}-E' |
| 15307 | ;; |
| 15308 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15309 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15310 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15311 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15312 | else |
| 15313 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15314 | fi |
| 15315 | if test "$with_gnu_ld" = no; then |
| 15316 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15317 | hardcode_libdir_separator=: |
| 15318 | |
| 15319 | hardcode_direct=yes |
| 15320 | export_dynamic_flag_spec='${wl}-E' |
| 15321 | |
| 15322 | # hardcode_minus_L: Not really in the search PATH, |
| 15323 | # but as the default location of the library. |
| 15324 | hardcode_minus_L=yes |
| 15325 | fi |
| 15326 | ;; |
| 15327 | |
| 15328 | hpux11*) |
| 15329 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15330 | case $host_cpu in |
| 15331 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15332 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15333 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15334 | ia64*) |
| 15335 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15336 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15337 | *) |
| 15338 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15339 | ;; |
| 15340 | esac |
| 15341 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15342 | case $host_cpu in |
| 15343 | hppa*64*) |
| 15344 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15345 | ;; |
| 15346 | ia64*) |
| 15347 | 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] | 15348 | ;; |
| 15349 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15350 | 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] | 15351 | ;; |
| 15352 | esac |
| 15353 | fi |
| 15354 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15355 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15356 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15357 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15358 | case $host_cpu in |
| 15359 | hppa*64*|ia64*) |
| 15360 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 15361 | hardcode_direct=no |
| 15362 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15363 | ;; |
| 15364 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15365 | hardcode_direct=yes |
| 15366 | export_dynamic_flag_spec='${wl}-E' |
| 15367 | |
| 15368 | # hardcode_minus_L: Not really in the search PATH, |
| 15369 | # but as the default location of the library. |
| 15370 | hardcode_minus_L=yes |
| 15371 | ;; |
| 15372 | esac |
| 15373 | fi |
| 15374 | ;; |
| 15375 | |
| 15376 | irix5* | irix6* | nonstopux*) |
| 15377 | if test "$GCC" = yes; then |
| 15378 | 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' |
| 15379 | else |
| 15380 | 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' |
| 15381 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 15382 | fi |
| 15383 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15384 | hardcode_libdir_separator=: |
| 15385 | link_all_deplibs=yes |
| 15386 | ;; |
| 15387 | |
| 15388 | netbsd*) |
| 15389 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15390 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15391 | else |
| 15392 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15393 | fi |
| 15394 | hardcode_libdir_flag_spec='-R$libdir' |
| 15395 | hardcode_direct=yes |
| 15396 | hardcode_shlibpath_var=no |
| 15397 | ;; |
| 15398 | |
| 15399 | newsos6) |
| 15400 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15401 | hardcode_direct=yes |
| 15402 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15403 | hardcode_libdir_separator=: |
| 15404 | hardcode_shlibpath_var=no |
| 15405 | ;; |
| 15406 | |
| 15407 | openbsd*) |
| 15408 | hardcode_direct=yes |
| 15409 | hardcode_shlibpath_var=no |
| 15410 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15411 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15412 | 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] | 15413 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15414 | export_dynamic_flag_spec='${wl}-E' |
| 15415 | else |
| 15416 | case $host_os in |
| 15417 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15418 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15419 | hardcode_libdir_flag_spec='-R$libdir' |
| 15420 | ;; |
| 15421 | *) |
| 15422 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15423 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15424 | ;; |
| 15425 | esac |
| 15426 | fi |
| 15427 | ;; |
| 15428 | |
| 15429 | os2*) |
| 15430 | hardcode_libdir_flag_spec='-L$libdir' |
| 15431 | hardcode_minus_L=yes |
| 15432 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15433 | 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] | 15434 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15435 | ;; |
| 15436 | |
| 15437 | osf3*) |
| 15438 | if test "$GCC" = yes; then |
| 15439 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15440 | 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' |
| 15441 | else |
| 15442 | allow_undefined_flag=' -expect_unresolved \*' |
| 15443 | 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' |
| 15444 | fi |
| 15445 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15446 | hardcode_libdir_separator=: |
| 15447 | ;; |
| 15448 | |
| 15449 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15450 | if test "$GCC" = yes; then |
| 15451 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 15452 | 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' |
| 15453 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15454 | else |
| 15455 | allow_undefined_flag=' -expect_unresolved \*' |
| 15456 | 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] | 15457 | 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] | 15458 | $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] | 15459 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15460 | # Both c and cxx compiler support -rpath directly |
| 15461 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15462 | fi |
| 15463 | hardcode_libdir_separator=: |
| 15464 | ;; |
| 15465 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15466 | solaris*) |
| 15467 | no_undefined_flag=' -z text' |
| 15468 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15469 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15470 | 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] | 15471 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15472 | $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] | 15473 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15474 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15475 | 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] | 15476 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15477 | $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] | 15478 | fi |
| 15479 | hardcode_libdir_flag_spec='-R$libdir' |
| 15480 | hardcode_shlibpath_var=no |
| 15481 | case $host_os in |
| 15482 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15483 | *) |
| 15484 | # The compiler driver will combine linker options so we |
| 15485 | # cannot just pass the convience library names through |
| 15486 | # without $wl, iff we do not link with $LD. |
| 15487 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15488 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15489 | case $wlarc in |
| 15490 | '') |
| 15491 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 15492 | *) |
| 15493 | 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' ;; |
| 15494 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15495 | esac |
| 15496 | link_all_deplibs=yes |
| 15497 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15498 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15499 | sunos4*) |
| 15500 | if test "x$host_vendor" = xsequent; then |
| 15501 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15502 | # files that make .init and .fini sections work. |
| 15503 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15504 | else |
| 15505 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15506 | fi |
| 15507 | hardcode_libdir_flag_spec='-L$libdir' |
| 15508 | hardcode_direct=yes |
| 15509 | hardcode_minus_L=yes |
| 15510 | hardcode_shlibpath_var=no |
| 15511 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15512 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15513 | sysv4) |
| 15514 | case $host_vendor in |
| 15515 | sni) |
| 15516 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15517 | hardcode_direct=yes # is this really true??? |
| 15518 | ;; |
| 15519 | siemens) |
| 15520 | ## LD is ld it makes a PLAMLIB |
| 15521 | ## CC just makes a GrossModule. |
| 15522 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15523 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15524 | hardcode_direct=no |
| 15525 | ;; |
| 15526 | motorola) |
| 15527 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15528 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15529 | ;; |
| 15530 | esac |
| 15531 | runpath_var='LD_RUN_PATH' |
| 15532 | hardcode_shlibpath_var=no |
| 15533 | ;; |
| 15534 | |
| 15535 | sysv4.3*) |
| 15536 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15537 | hardcode_shlibpath_var=no |
| 15538 | export_dynamic_flag_spec='-Bexport' |
| 15539 | ;; |
| 15540 | |
| 15541 | sysv4*MP*) |
| 15542 | if test -d /usr/nec; then |
| 15543 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15544 | hardcode_shlibpath_var=no |
| 15545 | runpath_var=LD_RUN_PATH |
| 15546 | hardcode_runpath_var=yes |
| 15547 | ld_shlibs=yes |
| 15548 | fi |
| 15549 | ;; |
| 15550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15551 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15552 | no_undefined_flag='${wl}-z,text' |
| 15553 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15554 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15555 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15556 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15557 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15558 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15559 | 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] | 15560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15561 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15562 | 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] | 15563 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15564 | ;; |
| 15565 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15566 | sysv5* | sco3.2v5* | sco5v6*) |
| 15567 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15568 | # link with -lc, and that would cause any symbols used from libc to |
| 15569 | # always be unresolved, which means just about no library would |
| 15570 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15571 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15572 | # as -z defs. |
| 15573 | no_undefined_flag='${wl}-z,text' |
| 15574 | allow_undefined_flag='${wl}-z,nodefs' |
| 15575 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15576 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15577 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15578 | hardcode_libdir_separator=':' |
| 15579 | link_all_deplibs=yes |
| 15580 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15581 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15582 | |
| 15583 | if test "$GCC" = yes; then |
| 15584 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15585 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15586 | else |
| 15587 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15588 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15589 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15590 | ;; |
| 15591 | |
| 15592 | uts4*) |
| 15593 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15594 | hardcode_libdir_flag_spec='-L$libdir' |
| 15595 | hardcode_shlibpath_var=no |
| 15596 | ;; |
| 15597 | |
| 15598 | *) |
| 15599 | ld_shlibs=no |
| 15600 | ;; |
| 15601 | esac |
| 15602 | fi |
| 15603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15604 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 15605 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15606 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15607 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15608 | # |
| 15609 | # Do we need to explicitly link libc? |
| 15610 | # |
| 15611 | case "x$archive_cmds_need_lc" in |
| 15612 | x|xyes) |
| 15613 | # Assume -lc should be added |
| 15614 | archive_cmds_need_lc=yes |
| 15615 | |
| 15616 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15617 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15618 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15619 | # FIXME: we may have to deal with multi-command sequences. |
| 15620 | ;; |
| 15621 | '$CC '*) |
| 15622 | # Test whether the compiler implicitly links with -lc since on some |
| 15623 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15624 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15625 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15626 | 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] | 15627 | $rm conftest* |
| 15628 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15629 | |
| 15630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15631 | (eval $ac_compile) 2>&5 |
| 15632 | ac_status=$? |
| 15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15634 | (exit $ac_status); } 2>conftest.err; then |
| 15635 | soname=conftest |
| 15636 | lib=conftest |
| 15637 | libobjs=conftest.$ac_objext |
| 15638 | deplibs= |
| 15639 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15640 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15641 | compiler_flags=-v |
| 15642 | linker_flags=-v |
| 15643 | verstring= |
| 15644 | output_objdir=. |
| 15645 | libname=conftest |
| 15646 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15647 | allow_undefined_flag= |
| 15648 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15649 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15650 | ac_status=$? |
| 15651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15652 | (exit $ac_status); } |
| 15653 | then |
| 15654 | archive_cmds_need_lc=no |
| 15655 | else |
| 15656 | archive_cmds_need_lc=yes |
| 15657 | fi |
| 15658 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15659 | else |
| 15660 | cat conftest.err 1>&5 |
| 15661 | fi |
| 15662 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15663 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 15664 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15665 | ;; |
| 15666 | esac |
| 15667 | fi |
| 15668 | ;; |
| 15669 | esac |
| 15670 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15671 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15672 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15673 | library_names_spec= |
| 15674 | libname_spec='lib$name' |
| 15675 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15676 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15677 | postinstall_cmds= |
| 15678 | postuninstall_cmds= |
| 15679 | finish_cmds= |
| 15680 | finish_eval= |
| 15681 | shlibpath_var= |
| 15682 | shlibpath_overrides_runpath=unknown |
| 15683 | version_type=none |
| 15684 | dynamic_linker="$host_os ld.so" |
| 15685 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15686 | if test "$GCC" = yes; then |
| 15687 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15688 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15689 | # if the path contains ";" then we assume it to be the separator |
| 15690 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15691 | # assumed that no part of a normal pathname contains ";" but that should |
| 15692 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15693 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15694 | else |
| 15695 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15696 | fi |
| 15697 | else |
| 15698 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15699 | fi |
| 15700 | need_lib_prefix=unknown |
| 15701 | hardcode_into_libs=no |
| 15702 | |
| 15703 | # when you set need_version to no, make sure it does not cause -set_version |
| 15704 | # flags to be left without arguments |
| 15705 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15706 | |
| 15707 | case $host_os in |
| 15708 | aix3*) |
| 15709 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15710 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15711 | shlibpath_var=LIBPATH |
| 15712 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15713 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15714 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15715 | ;; |
| 15716 | |
| 15717 | aix4* | aix5*) |
| 15718 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15719 | need_lib_prefix=no |
| 15720 | need_version=no |
| 15721 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15722 | if test "$host_cpu" = ia64; then |
| 15723 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15724 | 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] | 15725 | shlibpath_var=LD_LIBRARY_PATH |
| 15726 | else |
| 15727 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15728 | # for dependence libraries. The import file would start with |
| 15729 | # the line `#! .'. This would cause the generated library to |
| 15730 | # depend on `.', always an invalid library. This was fixed in |
| 15731 | # development snapshots of GCC prior to 3.0. |
| 15732 | case $host_os in |
| 15733 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15734 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15735 | echo ' yes ' |
| 15736 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15737 | : |
| 15738 | else |
| 15739 | can_build_shared=no |
| 15740 | fi |
| 15741 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15742 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15743 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15744 | # soname into executable. Probably we can add versioning support to |
| 15745 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15746 | if test "$aix_use_runtimelinking" = yes; then |
| 15747 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15748 | # instead of lib<name>.a to let people know that these are not |
| 15749 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15750 | 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] | 15751 | else |
| 15752 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15753 | # and later when we are not doing run time linking. |
| 15754 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15755 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15756 | fi |
| 15757 | shlibpath_var=LIBPATH |
| 15758 | fi |
| 15759 | ;; |
| 15760 | |
| 15761 | amigaos*) |
| 15762 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15763 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15764 | 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] | 15765 | ;; |
| 15766 | |
| 15767 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15768 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15769 | dynamic_linker="$host_os ld.so" |
| 15770 | shlibpath_var=LIBRARY_PATH |
| 15771 | ;; |
| 15772 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15773 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15774 | version_type=linux |
| 15775 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15777 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15778 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15779 | shlibpath_var=LD_LIBRARY_PATH |
| 15780 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15781 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15782 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15783 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15784 | # libtool to hard-code these into programs |
| 15785 | ;; |
| 15786 | |
| 15787 | cygwin* | mingw* | pw32*) |
| 15788 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15789 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15790 | need_version=no |
| 15791 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15792 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15793 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15794 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15795 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15796 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15797 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15798 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15799 | dldir=$destdir/`dirname \$dlpath`~ |
| 15800 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15801 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15802 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15803 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15804 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15805 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15806 | shlibpath_overrides_runpath=yes |
| 15807 | |
| 15808 | case $host_os in |
| 15809 | cygwin*) |
| 15810 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15811 | 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] | 15812 | 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] | 15813 | ;; |
| 15814 | mingw*) |
| 15815 | # MinGW DLLs use traditional 'lib' prefix |
| 15816 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15817 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15818 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15819 | # It is most probably a Windows format PATH printed by |
| 15820 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15821 | # path with ; separators, and with drive letters. We can handle the |
| 15822 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15823 | # especially as we might pass files found there to a mingw objdump, |
| 15824 | # which wouldn't understand a cygwinified path. Ahh. |
| 15825 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15826 | else |
| 15827 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15828 | fi |
| 15829 | ;; |
| 15830 | pw32*) |
| 15831 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15832 | 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] | 15833 | ;; |
| 15834 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15835 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15836 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15837 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15838 | 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] | 15839 | ;; |
| 15840 | esac |
| 15841 | dynamic_linker='Win32 ld.exe' |
| 15842 | # FIXME: first we should search . and the directory the executable is in |
| 15843 | shlibpath_var=PATH |
| 15844 | ;; |
| 15845 | |
| 15846 | darwin* | rhapsody*) |
| 15847 | dynamic_linker="$host_os dyld" |
| 15848 | version_type=darwin |
| 15849 | need_lib_prefix=no |
| 15850 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15851 | 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] | 15852 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15853 | shlibpath_overrides_runpath=yes |
| 15854 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15855 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15856 | # 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] | 15857 | if test "$GCC" = yes; then |
| 15858 | 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"` |
| 15859 | else |
| 15860 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15861 | fi |
| 15862 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15863 | ;; |
| 15864 | |
| 15865 | dgux*) |
| 15866 | version_type=linux |
| 15867 | need_lib_prefix=no |
| 15868 | need_version=no |
| 15869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15871 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15872 | ;; |
| 15873 | |
| 15874 | freebsd1*) |
| 15875 | dynamic_linker=no |
| 15876 | ;; |
| 15877 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15878 | kfreebsd*-gnu) |
| 15879 | version_type=linux |
| 15880 | need_lib_prefix=no |
| 15881 | need_version=no |
| 15882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15884 | shlibpath_var=LD_LIBRARY_PATH |
| 15885 | shlibpath_overrides_runpath=no |
| 15886 | hardcode_into_libs=yes |
| 15887 | dynamic_linker='GNU ld.so' |
| 15888 | ;; |
| 15889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15890 | freebsd* | dragonfly*) |
| 15891 | # DragonFly does not have aout. When/if they implement a new |
| 15892 | # versioning mechanism, adjust this. |
| 15893 | if test -x /usr/bin/objformat; then |
| 15894 | objformat=`/usr/bin/objformat` |
| 15895 | else |
| 15896 | case $host_os in |
| 15897 | freebsd[123]*) objformat=aout ;; |
| 15898 | *) objformat=elf ;; |
| 15899 | esac |
| 15900 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15901 | version_type=freebsd-$objformat |
| 15902 | case $version_type in |
| 15903 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15904 | 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] | 15905 | need_version=no |
| 15906 | need_lib_prefix=no |
| 15907 | ;; |
| 15908 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15909 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15910 | need_version=yes |
| 15911 | ;; |
| 15912 | esac |
| 15913 | shlibpath_var=LD_LIBRARY_PATH |
| 15914 | case $host_os in |
| 15915 | freebsd2*) |
| 15916 | shlibpath_overrides_runpath=yes |
| 15917 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15918 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15919 | shlibpath_overrides_runpath=yes |
| 15920 | hardcode_into_libs=yes |
| 15921 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15922 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15923 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15924 | shlibpath_overrides_runpath=no |
| 15925 | hardcode_into_libs=yes |
| 15926 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15927 | freebsd*) # from 4.6 on |
| 15928 | shlibpath_overrides_runpath=yes |
| 15929 | hardcode_into_libs=yes |
| 15930 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15931 | esac |
| 15932 | ;; |
| 15933 | |
| 15934 | gnu*) |
| 15935 | version_type=linux |
| 15936 | need_lib_prefix=no |
| 15937 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15939 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15940 | shlibpath_var=LD_LIBRARY_PATH |
| 15941 | hardcode_into_libs=yes |
| 15942 | ;; |
| 15943 | |
| 15944 | hpux9* | hpux10* | hpux11*) |
| 15945 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15946 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15947 | version_type=sunos |
| 15948 | need_lib_prefix=no |
| 15949 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15950 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15951 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15952 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15953 | hardcode_into_libs=yes |
| 15954 | dynamic_linker="$host_os dld.so" |
| 15955 | shlibpath_var=LD_LIBRARY_PATH |
| 15956 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15959 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15960 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15961 | else |
| 15962 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15963 | fi |
| 15964 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15965 | ;; |
| 15966 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15967 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15968 | hardcode_into_libs=yes |
| 15969 | dynamic_linker="$host_os dld.sl" |
| 15970 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15971 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15973 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15974 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15975 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15976 | ;; |
| 15977 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15978 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15979 | dynamic_linker="$host_os dld.sl" |
| 15980 | shlibpath_var=SHLIB_PATH |
| 15981 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 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 | ;; |
| 15985 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15986 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15987 | postinstall_cmds='chmod 555 $lib' |
| 15988 | ;; |
| 15989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15990 | interix3*) |
| 15991 | version_type=linux |
| 15992 | need_lib_prefix=no |
| 15993 | need_version=no |
| 15994 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15995 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15996 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15997 | shlibpath_var=LD_LIBRARY_PATH |
| 15998 | shlibpath_overrides_runpath=no |
| 15999 | hardcode_into_libs=yes |
| 16000 | ;; |
| 16001 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16002 | irix5* | irix6* | nonstopux*) |
| 16003 | case $host_os in |
| 16004 | nonstopux*) version_type=nonstopux ;; |
| 16005 | *) |
| 16006 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 16007 | version_type=linux |
| 16008 | else |
| 16009 | version_type=irix |
| 16010 | fi ;; |
| 16011 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16012 | need_lib_prefix=no |
| 16013 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16014 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16015 | 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] | 16016 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16017 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16018 | libsuff= shlibsuff= |
| 16019 | ;; |
| 16020 | *) |
| 16021 | 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] | 16022 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16023 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16024 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16025 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16026 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16027 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16028 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16029 | esac |
| 16030 | ;; |
| 16031 | esac |
| 16032 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16033 | shlibpath_overrides_runpath=no |
| 16034 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16035 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16036 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16037 | ;; |
| 16038 | |
| 16039 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16040 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16041 | dynamic_linker=no |
| 16042 | ;; |
| 16043 | |
| 16044 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16045 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16046 | version_type=linux |
| 16047 | need_lib_prefix=no |
| 16048 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16050 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16051 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16052 | shlibpath_var=LD_LIBRARY_PATH |
| 16053 | shlibpath_overrides_runpath=no |
| 16054 | # This implies no fast_install, which is unacceptable. |
| 16055 | # Some rework will be needed to allow for fast_install |
| 16056 | # before this can be enabled. |
| 16057 | hardcode_into_libs=yes |
| 16058 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16059 | # Append ld.so.conf contents to the search path |
| 16060 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16061 | 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] | 16062 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 16063 | fi |
| 16064 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16065 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16066 | # powerpc, because MkLinux only supported shared libraries with the |
| 16067 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16068 | # most powerpc-linux boxes support dynamic linking these days and |
| 16069 | # people can always --disable-shared, the test was removed, and we |
| 16070 | # assume the GNU/Linux dynamic linker is in use. |
| 16071 | dynamic_linker='GNU/Linux ld.so' |
| 16072 | ;; |
| 16073 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16074 | knetbsd*-gnu) |
| 16075 | version_type=linux |
| 16076 | need_lib_prefix=no |
| 16077 | need_version=no |
| 16078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16079 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16080 | shlibpath_var=LD_LIBRARY_PATH |
| 16081 | shlibpath_overrides_runpath=no |
| 16082 | hardcode_into_libs=yes |
| 16083 | dynamic_linker='GNU ld.so' |
| 16084 | ;; |
| 16085 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16086 | netbsd*) |
| 16087 | version_type=sunos |
| 16088 | need_lib_prefix=no |
| 16089 | need_version=no |
| 16090 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16093 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16094 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16095 | 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] | 16096 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16097 | dynamic_linker='NetBSD ld.elf_so' |
| 16098 | fi |
| 16099 | shlibpath_var=LD_LIBRARY_PATH |
| 16100 | shlibpath_overrides_runpath=yes |
| 16101 | hardcode_into_libs=yes |
| 16102 | ;; |
| 16103 | |
| 16104 | newsos6) |
| 16105 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16107 | shlibpath_var=LD_LIBRARY_PATH |
| 16108 | shlibpath_overrides_runpath=yes |
| 16109 | ;; |
| 16110 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16111 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16112 | version_type=linux |
| 16113 | need_lib_prefix=no |
| 16114 | need_version=no |
| 16115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16116 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16117 | shlibpath_var=LD_LIBRARY_PATH |
| 16118 | shlibpath_overrides_runpath=yes |
| 16119 | ;; |
| 16120 | |
| 16121 | openbsd*) |
| 16122 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16123 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16124 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16125 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16126 | case $host_os in |
| 16127 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16128 | *) need_version=no ;; |
| 16129 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16131 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16132 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16133 | 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] | 16134 | case $host_os in |
| 16135 | openbsd2.[89] | openbsd2.[89].*) |
| 16136 | shlibpath_overrides_runpath=no |
| 16137 | ;; |
| 16138 | *) |
| 16139 | shlibpath_overrides_runpath=yes |
| 16140 | ;; |
| 16141 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16142 | else |
| 16143 | shlibpath_overrides_runpath=yes |
| 16144 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16145 | ;; |
| 16146 | |
| 16147 | os2*) |
| 16148 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16149 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16150 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16151 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16152 | dynamic_linker='OS/2 ld.exe' |
| 16153 | shlibpath_var=LIBPATH |
| 16154 | ;; |
| 16155 | |
| 16156 | osf3* | osf4* | osf5*) |
| 16157 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16158 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16159 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16160 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16161 | 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] | 16162 | shlibpath_var=LD_LIBRARY_PATH |
| 16163 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16164 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16165 | ;; |
| 16166 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16167 | solaris*) |
| 16168 | version_type=linux |
| 16169 | need_lib_prefix=no |
| 16170 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16172 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16173 | shlibpath_var=LD_LIBRARY_PATH |
| 16174 | shlibpath_overrides_runpath=yes |
| 16175 | hardcode_into_libs=yes |
| 16176 | # ldd complains unless libraries are executable |
| 16177 | postinstall_cmds='chmod +x $lib' |
| 16178 | ;; |
| 16179 | |
| 16180 | sunos4*) |
| 16181 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16183 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16184 | shlibpath_var=LD_LIBRARY_PATH |
| 16185 | shlibpath_overrides_runpath=yes |
| 16186 | if test "$with_gnu_ld" = yes; then |
| 16187 | need_lib_prefix=no |
| 16188 | fi |
| 16189 | need_version=yes |
| 16190 | ;; |
| 16191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16192 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16193 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16195 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16196 | shlibpath_var=LD_LIBRARY_PATH |
| 16197 | case $host_vendor in |
| 16198 | sni) |
| 16199 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16200 | need_lib_prefix=no |
| 16201 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16202 | runpath_var=LD_RUN_PATH |
| 16203 | ;; |
| 16204 | siemens) |
| 16205 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16206 | ;; |
| 16207 | motorola) |
| 16208 | need_lib_prefix=no |
| 16209 | need_version=no |
| 16210 | shlibpath_overrides_runpath=no |
| 16211 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16212 | ;; |
| 16213 | esac |
| 16214 | ;; |
| 16215 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16216 | sysv4*MP*) |
| 16217 | if test -d /usr/nec ;then |
| 16218 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16219 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16220 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16221 | shlibpath_var=LD_LIBRARY_PATH |
| 16222 | fi |
| 16223 | ;; |
| 16224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16225 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16226 | version_type=freebsd-elf |
| 16227 | need_lib_prefix=no |
| 16228 | need_version=no |
| 16229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16230 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16231 | shlibpath_var=LD_LIBRARY_PATH |
| 16232 | hardcode_into_libs=yes |
| 16233 | if test "$with_gnu_ld" = yes; then |
| 16234 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16235 | shlibpath_overrides_runpath=no |
| 16236 | else |
| 16237 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16238 | shlibpath_overrides_runpath=yes |
| 16239 | case $host_os in |
| 16240 | sco3.2v5*) |
| 16241 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16242 | ;; |
| 16243 | esac |
| 16244 | fi |
| 16245 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16246 | ;; |
| 16247 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16248 | uts4*) |
| 16249 | version_type=linux |
| 16250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16251 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16252 | shlibpath_var=LD_LIBRARY_PATH |
| 16253 | ;; |
| 16254 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16255 | *) |
| 16256 | dynamic_linker=no |
| 16257 | ;; |
| 16258 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16259 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16260 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16261 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16262 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16263 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16264 | if test "$GCC" = yes; then |
| 16265 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16266 | fi |
| 16267 | |
| 16268 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16269 | 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] | 16270 | hardcode_action= |
| 16271 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 16272 | test -n "$runpath_var" || \ |
| 16273 | test "X$hardcode_automatic" = "Xyes" ; then |
| 16274 | |
| 16275 | # We can hardcode non-existant directories. |
| 16276 | if test "$hardcode_direct" != no && |
| 16277 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16278 | # have to relink, otherwise we might link with an installed library |
| 16279 | # when we should be linking with a yet-to-be-installed one |
| 16280 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 16281 | test "$hardcode_minus_L" != no; then |
| 16282 | # Linking always hardcodes the temporary library directory. |
| 16283 | hardcode_action=relink |
| 16284 | else |
| 16285 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16286 | hardcode_action=immediate |
| 16287 | fi |
| 16288 | else |
| 16289 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16290 | # directories. |
| 16291 | hardcode_action=unsupported |
| 16292 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16293 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 16294 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16295 | |
| 16296 | if test "$hardcode_action" = relink; then |
| 16297 | # Fast installation is not supported |
| 16298 | enable_fast_install=no |
| 16299 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16300 | test "$enable_shared" = no; then |
| 16301 | # Fast installation is not necessary |
| 16302 | enable_fast_install=needless |
| 16303 | fi |
| 16304 | |
| 16305 | striplib= |
| 16306 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16307 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 16308 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16309 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 16310 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16311 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16312 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16313 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16314 | else |
| 16315 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16316 | case $host_os in |
| 16317 | darwin*) |
| 16318 | if test -n "$STRIP" ; then |
| 16319 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16320 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 16321 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16322 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16323 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16324 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16325 | fi |
| 16326 | ;; |
| 16327 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16328 | { echo "$as_me:$LINENO: result: no" >&5 |
| 16329 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16330 | ;; |
| 16331 | esac |
| 16332 | fi |
| 16333 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16334 | if test "x$enable_dlopen" != xyes; then |
| 16335 | enable_dlopen=unknown |
| 16336 | enable_dlopen_self=unknown |
| 16337 | enable_dlopen_self_static=unknown |
| 16338 | else |
| 16339 | lt_cv_dlopen=no |
| 16340 | lt_cv_dlopen_libs= |
| 16341 | |
| 16342 | case $host_os in |
| 16343 | beos*) |
| 16344 | lt_cv_dlopen="load_add_on" |
| 16345 | lt_cv_dlopen_libs= |
| 16346 | lt_cv_dlopen_self=yes |
| 16347 | ;; |
| 16348 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16349 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16350 | lt_cv_dlopen="LoadLibrary" |
| 16351 | lt_cv_dlopen_libs= |
| 16352 | ;; |
| 16353 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16354 | cygwin*) |
| 16355 | lt_cv_dlopen="dlopen" |
| 16356 | lt_cv_dlopen_libs= |
| 16357 | ;; |
| 16358 | |
| 16359 | darwin*) |
| 16360 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16361 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16362 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16363 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16365 | else |
| 16366 | ac_check_lib_save_LIBS=$LIBS |
| 16367 | LIBS="-ldl $LIBS" |
| 16368 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16369 | /* confdefs.h. */ |
| 16370 | _ACEOF |
| 16371 | cat confdefs.h >>conftest.$ac_ext |
| 16372 | cat >>conftest.$ac_ext <<_ACEOF |
| 16373 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16374 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16375 | /* Override any GCC internal prototype to avoid an error. |
| 16376 | Use char because int might match the return type of a GCC |
| 16377 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16378 | #ifdef __cplusplus |
| 16379 | extern "C" |
| 16380 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16381 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16382 | int |
| 16383 | main () |
| 16384 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16385 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16386 | ; |
| 16387 | return 0; |
| 16388 | } |
| 16389 | _ACEOF |
| 16390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16391 | if { (ac_try="$ac_link" |
| 16392 | case "(($ac_try" in |
| 16393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16394 | *) ac_try_echo=$ac_try;; |
| 16395 | esac |
| 16396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16397 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16398 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16400 | rm -f conftest.er1 |
| 16401 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16403 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16405 | { (case "(($ac_try" in |
| 16406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16407 | *) ac_try_echo=$ac_try;; |
| 16408 | esac |
| 16409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16410 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16411 | ac_status=$? |
| 16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16413 | (exit $ac_status); }; } && |
| 16414 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16421 | ac_status=$? |
| 16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16423 | (exit $ac_status); }; }; then |
| 16424 | ac_cv_lib_dl_dlopen=yes |
| 16425 | else |
| 16426 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16429 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16431 | |
| 16432 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16433 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16434 | LIBS=$ac_check_lib_save_LIBS |
| 16435 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16436 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16437 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16438 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16439 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16440 | else |
| 16441 | |
| 16442 | lt_cv_dlopen="dyld" |
| 16443 | lt_cv_dlopen_libs= |
| 16444 | lt_cv_dlopen_self=yes |
| 16445 | |
| 16446 | fi |
| 16447 | |
| 16448 | ;; |
| 16449 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16450 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16451 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 16452 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16453 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 16454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16455 | else |
| 16456 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16457 | /* confdefs.h. */ |
| 16458 | _ACEOF |
| 16459 | cat confdefs.h >>conftest.$ac_ext |
| 16460 | cat >>conftest.$ac_ext <<_ACEOF |
| 16461 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16462 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 16463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16464 | #define shl_load innocuous_shl_load |
| 16465 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16466 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16467 | which can conflict with char shl_load (); below. |
| 16468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16469 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16470 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16471 | #ifdef __STDC__ |
| 16472 | # include <limits.h> |
| 16473 | #else |
| 16474 | # include <assert.h> |
| 16475 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16476 | |
| 16477 | #undef shl_load |
| 16478 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16479 | /* Override any GCC internal prototype to avoid an error. |
| 16480 | Use char because int might match the return type of a GCC |
| 16481 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16482 | #ifdef __cplusplus |
| 16483 | extern "C" |
| 16484 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16485 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16486 | /* The GNU C library defines this for functions which it implements |
| 16487 | to always fail with ENOSYS. Some functions are actually named |
| 16488 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16489 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16490 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16491 | #endif |
| 16492 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16493 | int |
| 16494 | main () |
| 16495 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16496 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16497 | ; |
| 16498 | return 0; |
| 16499 | } |
| 16500 | _ACEOF |
| 16501 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16502 | if { (ac_try="$ac_link" |
| 16503 | case "(($ac_try" in |
| 16504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16505 | *) ac_try_echo=$ac_try;; |
| 16506 | esac |
| 16507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16508 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16509 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16510 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16511 | rm -f conftest.er1 |
| 16512 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16514 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16516 | { (case "(($ac_try" in |
| 16517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16518 | *) ac_try_echo=$ac_try;; |
| 16519 | esac |
| 16520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16521 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16522 | ac_status=$? |
| 16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16524 | (exit $ac_status); }; } && |
| 16525 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16532 | ac_status=$? |
| 16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16534 | (exit $ac_status); }; }; then |
| 16535 | ac_cv_func_shl_load=yes |
| 16536 | else |
| 16537 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16540 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16541 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16542 | |
| 16543 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16544 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16546 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 16547 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16548 | if test $ac_cv_func_shl_load = yes; then |
| 16549 | lt_cv_dlopen="shl_load" |
| 16550 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16551 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 16552 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16553 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 16554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16555 | else |
| 16556 | ac_check_lib_save_LIBS=$LIBS |
| 16557 | LIBS="-ldld $LIBS" |
| 16558 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16559 | /* confdefs.h. */ |
| 16560 | _ACEOF |
| 16561 | cat confdefs.h >>conftest.$ac_ext |
| 16562 | cat >>conftest.$ac_ext <<_ACEOF |
| 16563 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16565 | /* Override any GCC internal prototype to avoid an error. |
| 16566 | Use char because int might match the return type of a GCC |
| 16567 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16568 | #ifdef __cplusplus |
| 16569 | extern "C" |
| 16570 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16571 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16572 | int |
| 16573 | main () |
| 16574 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16575 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16576 | ; |
| 16577 | return 0; |
| 16578 | } |
| 16579 | _ACEOF |
| 16580 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16581 | if { (ac_try="$ac_link" |
| 16582 | case "(($ac_try" in |
| 16583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16584 | *) ac_try_echo=$ac_try;; |
| 16585 | esac |
| 16586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16587 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16588 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16590 | rm -f conftest.er1 |
| 16591 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16593 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16594 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16595 | { (case "(($ac_try" in |
| 16596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16597 | *) ac_try_echo=$ac_try;; |
| 16598 | esac |
| 16599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16600 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16601 | ac_status=$? |
| 16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16603 | (exit $ac_status); }; } && |
| 16604 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16611 | ac_status=$? |
| 16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16613 | (exit $ac_status); }; }; then |
| 16614 | ac_cv_lib_dld_shl_load=yes |
| 16615 | else |
| 16616 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16618 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16619 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16620 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16621 | |
| 16622 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16623 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16624 | LIBS=$ac_check_lib_save_LIBS |
| 16625 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16626 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16627 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16628 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 16629 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 16630 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16631 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 16632 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16633 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 16634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16635 | else |
| 16636 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16637 | /* confdefs.h. */ |
| 16638 | _ACEOF |
| 16639 | cat confdefs.h >>conftest.$ac_ext |
| 16640 | cat >>conftest.$ac_ext <<_ACEOF |
| 16641 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16642 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 16643 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16644 | #define dlopen innocuous_dlopen |
| 16645 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16646 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16647 | which can conflict with char dlopen (); below. |
| 16648 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16649 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16650 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16651 | #ifdef __STDC__ |
| 16652 | # include <limits.h> |
| 16653 | #else |
| 16654 | # include <assert.h> |
| 16655 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16656 | |
| 16657 | #undef dlopen |
| 16658 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16659 | /* Override any GCC internal prototype to avoid an error. |
| 16660 | Use char because int might match the return type of a GCC |
| 16661 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16662 | #ifdef __cplusplus |
| 16663 | extern "C" |
| 16664 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16665 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16666 | /* The GNU C library defines this for functions which it implements |
| 16667 | to always fail with ENOSYS. Some functions are actually named |
| 16668 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16669 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16670 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16671 | #endif |
| 16672 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16673 | int |
| 16674 | main () |
| 16675 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16676 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16677 | ; |
| 16678 | return 0; |
| 16679 | } |
| 16680 | _ACEOF |
| 16681 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16682 | if { (ac_try="$ac_link" |
| 16683 | case "(($ac_try" in |
| 16684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16685 | *) ac_try_echo=$ac_try;; |
| 16686 | esac |
| 16687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16688 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16689 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16690 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16691 | rm -f conftest.er1 |
| 16692 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16694 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16695 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16696 | { (case "(($ac_try" in |
| 16697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16698 | *) ac_try_echo=$ac_try;; |
| 16699 | esac |
| 16700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16701 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16702 | ac_status=$? |
| 16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16704 | (exit $ac_status); }; } && |
| 16705 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | ac_status=$? |
| 16713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16714 | (exit $ac_status); }; }; then |
| 16715 | ac_cv_func_dlopen=yes |
| 16716 | else |
| 16717 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16719 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16720 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16721 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16722 | |
| 16723 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16724 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16725 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16726 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 16727 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16728 | if test $ac_cv_func_dlopen = yes; then |
| 16729 | lt_cv_dlopen="dlopen" |
| 16730 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16731 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 16732 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16733 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16735 | else |
| 16736 | ac_check_lib_save_LIBS=$LIBS |
| 16737 | LIBS="-ldl $LIBS" |
| 16738 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16739 | /* confdefs.h. */ |
| 16740 | _ACEOF |
| 16741 | cat confdefs.h >>conftest.$ac_ext |
| 16742 | cat >>conftest.$ac_ext <<_ACEOF |
| 16743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16745 | /* Override any GCC internal prototype to avoid an error. |
| 16746 | Use char because int might match the return type of a GCC |
| 16747 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16748 | #ifdef __cplusplus |
| 16749 | extern "C" |
| 16750 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16751 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16752 | int |
| 16753 | main () |
| 16754 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16755 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16756 | ; |
| 16757 | return 0; |
| 16758 | } |
| 16759 | _ACEOF |
| 16760 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16761 | if { (ac_try="$ac_link" |
| 16762 | case "(($ac_try" in |
| 16763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16764 | *) ac_try_echo=$ac_try;; |
| 16765 | esac |
| 16766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16767 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16768 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16770 | rm -f conftest.er1 |
| 16771 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16773 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16775 | { (case "(($ac_try" in |
| 16776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16777 | *) ac_try_echo=$ac_try;; |
| 16778 | esac |
| 16779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16780 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16781 | ac_status=$? |
| 16782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16783 | (exit $ac_status); }; } && |
| 16784 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16791 | ac_status=$? |
| 16792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16793 | (exit $ac_status); }; }; then |
| 16794 | ac_cv_lib_dl_dlopen=yes |
| 16795 | else |
| 16796 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16799 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16801 | |
| 16802 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16803 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16804 | LIBS=$ac_check_lib_save_LIBS |
| 16805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16806 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16807 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16808 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 16809 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16810 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16811 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 16812 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16813 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 16814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16815 | else |
| 16816 | ac_check_lib_save_LIBS=$LIBS |
| 16817 | LIBS="-lsvld $LIBS" |
| 16818 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16819 | /* confdefs.h. */ |
| 16820 | _ACEOF |
| 16821 | cat confdefs.h >>conftest.$ac_ext |
| 16822 | cat >>conftest.$ac_ext <<_ACEOF |
| 16823 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16824 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16825 | /* Override any GCC internal prototype to avoid an error. |
| 16826 | Use char because int might match the return type of a GCC |
| 16827 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16828 | #ifdef __cplusplus |
| 16829 | extern "C" |
| 16830 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16831 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16832 | int |
| 16833 | main () |
| 16834 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16835 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16836 | ; |
| 16837 | return 0; |
| 16838 | } |
| 16839 | _ACEOF |
| 16840 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16841 | if { (ac_try="$ac_link" |
| 16842 | case "(($ac_try" in |
| 16843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16844 | *) ac_try_echo=$ac_try;; |
| 16845 | esac |
| 16846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16847 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16848 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16850 | rm -f conftest.er1 |
| 16851 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16853 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16855 | { (case "(($ac_try" in |
| 16856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16857 | *) ac_try_echo=$ac_try;; |
| 16858 | esac |
| 16859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16860 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16861 | ac_status=$? |
| 16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16863 | (exit $ac_status); }; } && |
| 16864 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16871 | ac_status=$? |
| 16872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16873 | (exit $ac_status); }; }; then |
| 16874 | ac_cv_lib_svld_dlopen=yes |
| 16875 | else |
| 16876 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16879 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16880 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16881 | |
| 16882 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16883 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16884 | LIBS=$ac_check_lib_save_LIBS |
| 16885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16886 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16887 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16888 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16889 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16890 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16891 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16892 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16893 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16895 | else |
| 16896 | ac_check_lib_save_LIBS=$LIBS |
| 16897 | LIBS="-ldld $LIBS" |
| 16898 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16899 | /* confdefs.h. */ |
| 16900 | _ACEOF |
| 16901 | cat confdefs.h >>conftest.$ac_ext |
| 16902 | cat >>conftest.$ac_ext <<_ACEOF |
| 16903 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16905 | /* Override any GCC internal prototype to avoid an error. |
| 16906 | Use char because int might match the return type of a GCC |
| 16907 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16908 | #ifdef __cplusplus |
| 16909 | extern "C" |
| 16910 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16911 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16912 | int |
| 16913 | main () |
| 16914 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16915 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16916 | ; |
| 16917 | return 0; |
| 16918 | } |
| 16919 | _ACEOF |
| 16920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16921 | if { (ac_try="$ac_link" |
| 16922 | case "(($ac_try" in |
| 16923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16924 | *) ac_try_echo=$ac_try;; |
| 16925 | esac |
| 16926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16927 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16928 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16930 | rm -f conftest.er1 |
| 16931 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16933 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16935 | { (case "(($ac_try" in |
| 16936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16937 | *) ac_try_echo=$ac_try;; |
| 16938 | esac |
| 16939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16940 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16941 | ac_status=$? |
| 16942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16943 | (exit $ac_status); }; } && |
| 16944 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16951 | ac_status=$? |
| 16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16953 | (exit $ac_status); }; }; then |
| 16954 | ac_cv_lib_dld_dld_link=yes |
| 16955 | else |
| 16956 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16958 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16959 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16960 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16961 | |
| 16962 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16963 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16964 | LIBS=$ac_check_lib_save_LIBS |
| 16965 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16966 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16967 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16968 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16969 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16970 | fi |
| 16971 | |
| 16972 | |
| 16973 | fi |
| 16974 | |
| 16975 | |
| 16976 | fi |
| 16977 | |
| 16978 | |
| 16979 | fi |
| 16980 | |
| 16981 | |
| 16982 | fi |
| 16983 | |
| 16984 | |
| 16985 | fi |
| 16986 | |
| 16987 | ;; |
| 16988 | esac |
| 16989 | |
| 16990 | if test "x$lt_cv_dlopen" != xno; then |
| 16991 | enable_dlopen=yes |
| 16992 | else |
| 16993 | enable_dlopen=no |
| 16994 | fi |
| 16995 | |
| 16996 | case $lt_cv_dlopen in |
| 16997 | dlopen) |
| 16998 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16999 | 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] | 17000 | |
| 17001 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17002 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17003 | |
| 17004 | save_LIBS="$LIBS" |
| 17005 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17007 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 17008 | 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] | 17009 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 17010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17011 | else |
| 17012 | if test "$cross_compiling" = yes; then : |
| 17013 | lt_cv_dlopen_self=cross |
| 17014 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17015 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17016 | lt_status=$lt_dlunknown |
| 17017 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 17018 | #line 17018 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17019 | #include "confdefs.h" |
| 17020 | |
| 17021 | #if HAVE_DLFCN_H |
| 17022 | #include <dlfcn.h> |
| 17023 | #endif |
| 17024 | |
| 17025 | #include <stdio.h> |
| 17026 | |
| 17027 | #ifdef RTLD_GLOBAL |
| 17028 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17029 | #else |
| 17030 | # ifdef DL_GLOBAL |
| 17031 | # define LT_DLGLOBAL DL_GLOBAL |
| 17032 | # else |
| 17033 | # define LT_DLGLOBAL 0 |
| 17034 | # endif |
| 17035 | #endif |
| 17036 | |
| 17037 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17038 | find out it does not work in some platform. */ |
| 17039 | #ifndef LT_DLLAZY_OR_NOW |
| 17040 | # ifdef RTLD_LAZY |
| 17041 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17042 | # else |
| 17043 | # ifdef DL_LAZY |
| 17044 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17045 | # else |
| 17046 | # ifdef RTLD_NOW |
| 17047 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17048 | # else |
| 17049 | # ifdef DL_NOW |
| 17050 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17051 | # else |
| 17052 | # define LT_DLLAZY_OR_NOW 0 |
| 17053 | # endif |
| 17054 | # endif |
| 17055 | # endif |
| 17056 | # endif |
| 17057 | #endif |
| 17058 | |
| 17059 | #ifdef __cplusplus |
| 17060 | extern "C" void exit (int); |
| 17061 | #endif |
| 17062 | |
| 17063 | void fnord() { int i=42;} |
| 17064 | int main () |
| 17065 | { |
| 17066 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17067 | int status = $lt_dlunknown; |
| 17068 | |
| 17069 | if (self) |
| 17070 | { |
| 17071 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17072 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17073 | /* dlclose (self); */ |
| 17074 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17075 | else |
| 17076 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17077 | |
| 17078 | exit (status); |
| 17079 | } |
| 17080 | EOF |
| 17081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17082 | (eval $ac_link) 2>&5 |
| 17083 | ac_status=$? |
| 17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17085 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17086 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17087 | lt_status=$? |
| 17088 | case x$lt_status in |
| 17089 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17090 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17091 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17092 | esac |
| 17093 | else : |
| 17094 | # compilation failed |
| 17095 | lt_cv_dlopen_self=no |
| 17096 | fi |
| 17097 | fi |
| 17098 | rm -fr conftest* |
| 17099 | |
| 17100 | |
| 17101 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17102 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 17103 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17104 | |
| 17105 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17106 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17107 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 17108 | 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] | 17109 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 17110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17111 | else |
| 17112 | if test "$cross_compiling" = yes; then : |
| 17113 | lt_cv_dlopen_self_static=cross |
| 17114 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17115 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17116 | lt_status=$lt_dlunknown |
| 17117 | cat > conftest.$ac_ext <<EOF |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 17118 | #line 17118 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17119 | #include "confdefs.h" |
| 17120 | |
| 17121 | #if HAVE_DLFCN_H |
| 17122 | #include <dlfcn.h> |
| 17123 | #endif |
| 17124 | |
| 17125 | #include <stdio.h> |
| 17126 | |
| 17127 | #ifdef RTLD_GLOBAL |
| 17128 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17129 | #else |
| 17130 | # ifdef DL_GLOBAL |
| 17131 | # define LT_DLGLOBAL DL_GLOBAL |
| 17132 | # else |
| 17133 | # define LT_DLGLOBAL 0 |
| 17134 | # endif |
| 17135 | #endif |
| 17136 | |
| 17137 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17138 | find out it does not work in some platform. */ |
| 17139 | #ifndef LT_DLLAZY_OR_NOW |
| 17140 | # ifdef RTLD_LAZY |
| 17141 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17142 | # else |
| 17143 | # ifdef DL_LAZY |
| 17144 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17145 | # else |
| 17146 | # ifdef RTLD_NOW |
| 17147 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17148 | # else |
| 17149 | # ifdef DL_NOW |
| 17150 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17151 | # else |
| 17152 | # define LT_DLLAZY_OR_NOW 0 |
| 17153 | # endif |
| 17154 | # endif |
| 17155 | # endif |
| 17156 | # endif |
| 17157 | #endif |
| 17158 | |
| 17159 | #ifdef __cplusplus |
| 17160 | extern "C" void exit (int); |
| 17161 | #endif |
| 17162 | |
| 17163 | void fnord() { int i=42;} |
| 17164 | int main () |
| 17165 | { |
| 17166 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17167 | int status = $lt_dlunknown; |
| 17168 | |
| 17169 | if (self) |
| 17170 | { |
| 17171 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 17172 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17173 | /* dlclose (self); */ |
| 17174 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17175 | else |
| 17176 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17177 | |
| 17178 | exit (status); |
| 17179 | } |
| 17180 | EOF |
| 17181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17182 | (eval $ac_link) 2>&5 |
| 17183 | ac_status=$? |
| 17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17185 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17186 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17187 | lt_status=$? |
| 17188 | case x$lt_status in |
| 17189 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17190 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17191 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17192 | esac |
| 17193 | else : |
| 17194 | # compilation failed |
| 17195 | lt_cv_dlopen_self_static=no |
| 17196 | fi |
| 17197 | fi |
| 17198 | rm -fr conftest* |
| 17199 | |
| 17200 | |
| 17201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17202 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 17203 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17204 | fi |
| 17205 | |
| 17206 | CPPFLAGS="$save_CPPFLAGS" |
| 17207 | LDFLAGS="$save_LDFLAGS" |
| 17208 | LIBS="$save_LIBS" |
| 17209 | ;; |
| 17210 | esac |
| 17211 | |
| 17212 | case $lt_cv_dlopen_self in |
| 17213 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17214 | *) enable_dlopen_self=unknown ;; |
| 17215 | esac |
| 17216 | |
| 17217 | case $lt_cv_dlopen_self_static in |
| 17218 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17219 | *) enable_dlopen_self_static=unknown ;; |
| 17220 | esac |
| 17221 | fi |
| 17222 | |
| 17223 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17224 | # Report which library types will actually be built |
| 17225 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 17226 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 17227 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 17228 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17229 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17230 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 17231 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17232 | test "$can_build_shared" = "no" && enable_shared=no |
| 17233 | |
| 17234 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17235 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17236 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17237 | aix3*) |
| 17238 | test "$enable_shared" = yes && enable_static=no |
| 17239 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17240 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17241 | postinstall_cmds='$RANLIB $lib' |
| 17242 | fi |
| 17243 | ;; |
| 17244 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17245 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17246 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17247 | test "$enable_shared" = yes && enable_static=no |
| 17248 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17249 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17250 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17251 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 17252 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17254 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 17255 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17256 | # Make sure either enable_shared or enable_static is yes. |
| 17257 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17258 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 17259 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17260 | |
| 17261 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17262 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 17263 | # with your package, and you will get complaints that there are |
| 17264 | # no rules to generate ltmain.sh. |
| 17265 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17266 | # See if we are running on zsh, and set the options which allow our commands through |
| 17267 | # without removal of \ escapes. |
| 17268 | if test -n "${ZSH_VERSION+set}" ; then |
| 17269 | setopt NO_GLOB_SUBST |
| 17270 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17271 | # Now quote all the things that may contain metacharacters while being |
| 17272 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 17273 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17274 | 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] | 17275 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17276 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 17277 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 17278 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 17279 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 17280 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17281 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17282 | old_postinstall_cmds old_postuninstall_cmds \ |
| 17283 | compiler \ |
| 17284 | CC \ |
| 17285 | LD \ |
| 17286 | lt_prog_compiler_wl \ |
| 17287 | lt_prog_compiler_pic \ |
| 17288 | lt_prog_compiler_static \ |
| 17289 | lt_prog_compiler_no_builtin_flag \ |
| 17290 | export_dynamic_flag_spec \ |
| 17291 | thread_safe_flag_spec \ |
| 17292 | whole_archive_flag_spec \ |
| 17293 | enable_shared_with_static_runtimes \ |
| 17294 | old_archive_cmds \ |
| 17295 | old_archive_from_new_cmds \ |
| 17296 | predep_objects \ |
| 17297 | postdep_objects \ |
| 17298 | predeps \ |
| 17299 | postdeps \ |
| 17300 | compiler_lib_search_path \ |
| 17301 | archive_cmds \ |
| 17302 | archive_expsym_cmds \ |
| 17303 | postinstall_cmds \ |
| 17304 | postuninstall_cmds \ |
| 17305 | old_archive_from_expsyms_cmds \ |
| 17306 | allow_undefined_flag \ |
| 17307 | no_undefined_flag \ |
| 17308 | export_symbols_cmds \ |
| 17309 | hardcode_libdir_flag_spec \ |
| 17310 | hardcode_libdir_flag_spec_ld \ |
| 17311 | hardcode_libdir_separator \ |
| 17312 | hardcode_automatic \ |
| 17313 | module_cmds \ |
| 17314 | module_expsym_cmds \ |
| 17315 | lt_cv_prog_compiler_c_o \ |
| 17316 | exclude_expsyms \ |
| 17317 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17318 | |
| 17319 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17320 | old_archive_cmds | \ |
| 17321 | old_archive_from_new_cmds | \ |
| 17322 | archive_cmds | \ |
| 17323 | archive_expsym_cmds | \ |
| 17324 | module_cmds | \ |
| 17325 | module_expsym_cmds | \ |
| 17326 | old_archive_from_expsyms_cmds | \ |
| 17327 | export_symbols_cmds | \ |
| 17328 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17329 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17330 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 17331 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17332 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17333 | 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] | 17334 | ;; |
| 17335 | *) |
| 17336 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 17337 | ;; |
| 17338 | esac |
| 17339 | done |
| 17340 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17341 | case $lt_echo in |
| 17342 | *'\$0 --fallback-echo"') |
| 17343 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 17344 | ;; |
| 17345 | esac |
| 17346 | |
| 17347 | cfgfile="${ofile}T" |
| 17348 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 17349 | $rm -f "$cfgfile" |
| 17350 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 17351 | echo "$as_me: creating $ofile" >&6;} |
| 17352 | |
| 17353 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17354 | #! $SHELL |
| 17355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17356 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17357 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 17358 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 17359 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17360 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 17361 | # Free Software Foundation, Inc. |
| 17362 | # |
| 17363 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17364 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 17365 | # |
| 17366 | # This program is free software; you can redistribute it and/or modify |
| 17367 | # it under the terms of the GNU General Public License as published by |
| 17368 | # the Free Software Foundation; either version 2 of the License, or |
| 17369 | # (at your option) any later version. |
| 17370 | # |
| 17371 | # This program is distributed in the hope that it will be useful, but |
| 17372 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17373 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17374 | # General Public License for more details. |
| 17375 | # |
| 17376 | # You should have received a copy of the GNU General Public License |
| 17377 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17378 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17379 | # |
| 17380 | # As a special exception to the GNU General Public License, if you |
| 17381 | # distribute this file as part of a program that contains a |
| 17382 | # configuration script generated by Autoconf, you may include it under |
| 17383 | # the same distribution terms that you use for the rest of that program. |
| 17384 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17385 | # A sed program that does not truncate output. |
| 17386 | SED=$lt_SED |
| 17387 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17388 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17389 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17390 | |
| 17391 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 17392 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17393 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17394 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17395 | # The names of the tagged configurations supported by this script. |
| 17396 | available_tags= |
| 17397 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17398 | # ### BEGIN LIBTOOL CONFIG |
| 17399 | |
| 17400 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 17401 | |
| 17402 | # Shell to use when invoking shell scripts. |
| 17403 | SHELL=$lt_SHELL |
| 17404 | |
| 17405 | # Whether or not to build shared libraries. |
| 17406 | build_libtool_libs=$enable_shared |
| 17407 | |
| 17408 | # Whether or not to build static libraries. |
| 17409 | build_old_libs=$enable_static |
| 17410 | |
| 17411 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17412 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17413 | |
| 17414 | # Whether or not to disallow shared libs when runtime libs are static |
| 17415 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17416 | |
| 17417 | # Whether or not to optimize for fast installation. |
| 17418 | fast_install=$enable_fast_install |
| 17419 | |
| 17420 | # The host system. |
| 17421 | host_alias=$host_alias |
| 17422 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17423 | host_os=$host_os |
| 17424 | |
| 17425 | # The build system. |
| 17426 | build_alias=$build_alias |
| 17427 | build=$build |
| 17428 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17429 | |
| 17430 | # An echo program that does not interpret backslashes. |
| 17431 | echo=$lt_echo |
| 17432 | |
| 17433 | # The archiver. |
| 17434 | AR=$lt_AR |
| 17435 | AR_FLAGS=$lt_AR_FLAGS |
| 17436 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17437 | # A C compiler. |
| 17438 | LTCC=$lt_LTCC |
| 17439 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17440 | # LTCC compiler flags. |
| 17441 | LTCFLAGS=$lt_LTCFLAGS |
| 17442 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17443 | # A language-specific compiler. |
| 17444 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17445 | |
| 17446 | # Is the compiler the GNU C compiler? |
| 17447 | with_gcc=$GCC |
| 17448 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17449 | # An ERE matcher. |
| 17450 | EGREP=$lt_EGREP |
| 17451 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17452 | # The linker used to build libraries. |
| 17453 | LD=$lt_LD |
| 17454 | |
| 17455 | # Whether we need hard or soft links. |
| 17456 | LN_S=$lt_LN_S |
| 17457 | |
| 17458 | # A BSD-compatible nm program. |
| 17459 | NM=$lt_NM |
| 17460 | |
| 17461 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17462 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17463 | |
| 17464 | # Used to examine libraries when file_magic_cmd begins "file" |
| 17465 | MAGIC_CMD=$MAGIC_CMD |
| 17466 | |
| 17467 | # Used on cygwin: DLL creation program. |
| 17468 | DLLTOOL="$DLLTOOL" |
| 17469 | |
| 17470 | # Used on cygwin: object dumper. |
| 17471 | OBJDUMP="$OBJDUMP" |
| 17472 | |
| 17473 | # Used on cygwin: assembler. |
| 17474 | AS="$AS" |
| 17475 | |
| 17476 | # The name of the directory that contains temporary libtool files. |
| 17477 | objdir=$objdir |
| 17478 | |
| 17479 | # How to create reloadable object files. |
| 17480 | reload_flag=$lt_reload_flag |
| 17481 | reload_cmds=$lt_reload_cmds |
| 17482 | |
| 17483 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17484 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17485 | |
| 17486 | # Object file suffix (normally "o"). |
| 17487 | objext="$ac_objext" |
| 17488 | |
| 17489 | # Old archive suffix (normally "a"). |
| 17490 | libext="$libext" |
| 17491 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17492 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17493 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17494 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17495 | # Executable file suffix (normally ""). |
| 17496 | exeext="$exeext" |
| 17497 | |
| 17498 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17499 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17500 | pic_mode=$pic_mode |
| 17501 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17502 | # What is the maximum length of a command? |
| 17503 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17504 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17505 | # Does compiler simultaneously support -c and -o options? |
| 17506 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17508 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17509 | need_locks=$lt_need_locks |
| 17510 | |
| 17511 | # Do we need the lib prefix for modules? |
| 17512 | need_lib_prefix=$need_lib_prefix |
| 17513 | |
| 17514 | # Do we need a version for libraries? |
| 17515 | need_version=$need_version |
| 17516 | |
| 17517 | # Whether dlopen is supported. |
| 17518 | dlopen_support=$enable_dlopen |
| 17519 | |
| 17520 | # Whether dlopen of programs is supported. |
| 17521 | dlopen_self=$enable_dlopen_self |
| 17522 | |
| 17523 | # Whether dlopen of statically linked programs is supported. |
| 17524 | dlopen_self_static=$enable_dlopen_self_static |
| 17525 | |
| 17526 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17527 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17528 | |
| 17529 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17530 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17531 | |
| 17532 | # Compiler flag to allow reflexive dlopens. |
| 17533 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17534 | |
| 17535 | # Compiler flag to generate shared objects directly from archives. |
| 17536 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17537 | |
| 17538 | # Compiler flag to generate thread-safe objects. |
| 17539 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 17540 | |
| 17541 | # Library versioning type. |
| 17542 | version_type=$version_type |
| 17543 | |
| 17544 | # Format of library name prefix. |
| 17545 | libname_spec=$lt_libname_spec |
| 17546 | |
| 17547 | # List of archive names. First name is the real one, the rest are links. |
| 17548 | # The last name is the one that the linker finds with -lNAME. |
| 17549 | library_names_spec=$lt_library_names_spec |
| 17550 | |
| 17551 | # The coded name of the library, if different from the real name. |
| 17552 | soname_spec=$lt_soname_spec |
| 17553 | |
| 17554 | # Commands used to build and install an old-style archive. |
| 17555 | RANLIB=$lt_RANLIB |
| 17556 | old_archive_cmds=$lt_old_archive_cmds |
| 17557 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 17558 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 17559 | |
| 17560 | # Create an old-style archive from a shared archive. |
| 17561 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17562 | |
| 17563 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17564 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17565 | |
| 17566 | # Commands used to build and install a shared archive. |
| 17567 | archive_cmds=$lt_archive_cmds |
| 17568 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17569 | postinstall_cmds=$lt_postinstall_cmds |
| 17570 | postuninstall_cmds=$lt_postuninstall_cmds |
| 17571 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17572 | # Commands used to build a loadable module (assumed same as above if empty) |
| 17573 | module_cmds=$lt_module_cmds |
| 17574 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17575 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17576 | # Commands to strip libraries. |
| 17577 | old_striplib=$lt_old_striplib |
| 17578 | striplib=$lt_striplib |
| 17579 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17580 | # Dependencies to place before the objects being linked to create a |
| 17581 | # shared library. |
| 17582 | predep_objects=$lt_predep_objects |
| 17583 | |
| 17584 | # Dependencies to place after the objects being linked to create a |
| 17585 | # shared library. |
| 17586 | postdep_objects=$lt_postdep_objects |
| 17587 | |
| 17588 | # Dependencies to place before the objects being linked to create a |
| 17589 | # shared library. |
| 17590 | predeps=$lt_predeps |
| 17591 | |
| 17592 | # Dependencies to place after the objects being linked to create a |
| 17593 | # shared library. |
| 17594 | postdeps=$lt_postdeps |
| 17595 | |
| 17596 | # The library search path used internally by the compiler when linking |
| 17597 | # a shared library. |
| 17598 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17599 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17600 | # Method to check whether dependent libraries are shared objects. |
| 17601 | deplibs_check_method=$lt_deplibs_check_method |
| 17602 | |
| 17603 | # Command to use when deplibs_check_method == file_magic. |
| 17604 | file_magic_cmd=$lt_file_magic_cmd |
| 17605 | |
| 17606 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17607 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17608 | |
| 17609 | # Flag that forces no undefined symbols. |
| 17610 | no_undefined_flag=$lt_no_undefined_flag |
| 17611 | |
| 17612 | # Commands used to finish a libtool library installation in a directory. |
| 17613 | finish_cmds=$lt_finish_cmds |
| 17614 | |
| 17615 | # Same as above, but a single script fragment to be evaled but not shown. |
| 17616 | finish_eval=$lt_finish_eval |
| 17617 | |
| 17618 | # 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] | 17619 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17620 | |
| 17621 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17622 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17623 | |
| 17624 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17625 | 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] | 17626 | |
| 17627 | # This is the shared library runtime path variable. |
| 17628 | runpath_var=$runpath_var |
| 17629 | |
| 17630 | # This is the shared library path variable. |
| 17631 | shlibpath_var=$shlibpath_var |
| 17632 | |
| 17633 | # Is shlibpath searched before the hard-coded library search path? |
| 17634 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 17635 | |
| 17636 | # How to hardcode a shared library path into an executable. |
| 17637 | hardcode_action=$hardcode_action |
| 17638 | |
| 17639 | # Whether we should hardcode library paths into libraries. |
| 17640 | hardcode_into_libs=$hardcode_into_libs |
| 17641 | |
| 17642 | # Flag to hardcode \$libdir into a binary during linking. |
| 17643 | # This must work even if \$libdir does not exist. |
| 17644 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17645 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17646 | # If ld is used when linking, flag to hardcode \$libdir into |
| 17647 | # a binary during linking. This must work even if \$libdir does |
| 17648 | # not exist. |
| 17649 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17650 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17651 | # Whether we need a single -rpath flag with a separated argument. |
| 17652 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17653 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17654 | # 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] | 17655 | # resulting binary. |
| 17656 | hardcode_direct=$hardcode_direct |
| 17657 | |
| 17658 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 17659 | # resulting binary. |
| 17660 | hardcode_minus_L=$hardcode_minus_L |
| 17661 | |
| 17662 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 17663 | # the resulting binary. |
| 17664 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17665 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17666 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 17667 | # and all subsequent libraries and executables linked against it. |
| 17668 | hardcode_automatic=$hardcode_automatic |
| 17669 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17670 | # Variables whose values should be saved in libtool wrapper scripts and |
| 17671 | # restored at relink time. |
| 17672 | variables_saved_for_relink="$variables_saved_for_relink" |
| 17673 | |
| 17674 | # Whether libtool must link a program against all its dependency libraries. |
| 17675 | link_all_deplibs=$link_all_deplibs |
| 17676 | |
| 17677 | # Compile-time system search path for libraries |
| 17678 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 17679 | |
| 17680 | # Run-time system search path for libraries |
| 17681 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17682 | |
| 17683 | # Fix the shell variable \$srcfile for the compiler. |
| 17684 | fix_srcfile_path="$fix_srcfile_path" |
| 17685 | |
| 17686 | # Set to yes if exported symbols are required. |
| 17687 | always_export_symbols=$always_export_symbols |
| 17688 | |
| 17689 | # The commands to list exported symbols. |
| 17690 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17691 | |
| 17692 | # The commands to extract the exported symbol list from a shared archive. |
| 17693 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 17694 | |
| 17695 | # Symbols that should not be listed in the preloaded symbols. |
| 17696 | exclude_expsyms=$lt_exclude_expsyms |
| 17697 | |
| 17698 | # Symbols that must always be exported. |
| 17699 | include_expsyms=$lt_include_expsyms |
| 17700 | |
| 17701 | # ### END LIBTOOL CONFIG |
| 17702 | |
| 17703 | __EOF__ |
| 17704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17705 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17706 | case $host_os in |
| 17707 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17708 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17709 | |
| 17710 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17711 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17712 | # vanish in a puff of smoke. |
| 17713 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17714 | COLLECT_NAMES= |
| 17715 | export COLLECT_NAMES |
| 17716 | fi |
| 17717 | EOF |
| 17718 | ;; |
| 17719 | esac |
| 17720 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17721 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17722 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17723 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17724 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17725 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17726 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17727 | mv -f "$cfgfile" "$ofile" || \ |
| 17728 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17729 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17730 | |
| 17731 | else |
| 17732 | # If there is no Makefile yet, we rely on a make rule to execute |
| 17733 | # `config.status --recheck' to rerun these tests and create the |
| 17734 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17735 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 17736 | if test -f "$ltmain_in"; then |
| 17737 | test -f Makefile && make "$ltmain" |
| 17738 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17739 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 17740 | |
| 17741 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17742 | ac_ext=c |
| 17743 | ac_cpp='$CPP $CPPFLAGS' |
| 17744 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17745 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17746 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17747 | |
| 17748 | CC="$lt_save_CC" |
| 17749 | |
| 17750 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17751 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17752 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17753 | withval=$with_tags; tagnames="$withval" |
| 17754 | fi |
| 17755 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17756 | |
| 17757 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 17758 | if test ! -f "${ofile}"; then |
| 17759 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 17760 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 17761 | fi |
| 17762 | |
| 17763 | if test -z "$LTCC"; then |
| 17764 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 17765 | if test -z "$LTCC"; then |
| 17766 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 17767 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 17768 | else |
| 17769 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 17770 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 17771 | fi |
| 17772 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17773 | if test -z "$LTCFLAGS"; then |
| 17774 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 17775 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17776 | |
| 17777 | # Extract list of available tagged configurations in $ofile. |
| 17778 | # Note that this assumes the entire list is on one line. |
| 17779 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 17780 | |
| 17781 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 17782 | for tagname in $tagnames; do |
| 17783 | IFS="$lt_save_ifs" |
| 17784 | # Check whether tagname contains only valid characters |
| 17785 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 17786 | "") ;; |
| 17787 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 17788 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 17789 | { (exit 1); exit 1; }; } |
| 17790 | ;; |
| 17791 | esac |
| 17792 | |
| 17793 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 17794 | then |
| 17795 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 17796 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 17797 | { (exit 1); exit 1; }; } |
| 17798 | fi |
| 17799 | |
| 17800 | # Update the list of available tags. |
| 17801 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17802 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17803 | |
| 17804 | case $tagname in |
| 17805 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17806 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17807 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17808 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17809 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17810 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17814 | |
| 17815 | |
| 17816 | |
| 17817 | |
| 17818 | archive_cmds_need_lc_CXX=no |
| 17819 | allow_undefined_flag_CXX= |
| 17820 | always_export_symbols_CXX=no |
| 17821 | archive_expsym_cmds_CXX= |
| 17822 | export_dynamic_flag_spec_CXX= |
| 17823 | hardcode_direct_CXX=no |
| 17824 | hardcode_libdir_flag_spec_CXX= |
| 17825 | hardcode_libdir_flag_spec_ld_CXX= |
| 17826 | hardcode_libdir_separator_CXX= |
| 17827 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17828 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17829 | hardcode_automatic_CXX=no |
| 17830 | module_cmds_CXX= |
| 17831 | module_expsym_cmds_CXX= |
| 17832 | link_all_deplibs_CXX=unknown |
| 17833 | old_archive_cmds_CXX=$old_archive_cmds |
| 17834 | no_undefined_flag_CXX= |
| 17835 | whole_archive_flag_spec_CXX= |
| 17836 | enable_shared_with_static_runtimes_CXX=no |
| 17837 | |
| 17838 | # Dependencies to place before and after the object being linked: |
| 17839 | predep_objects_CXX= |
| 17840 | postdep_objects_CXX= |
| 17841 | predeps_CXX= |
| 17842 | postdeps_CXX= |
| 17843 | compiler_lib_search_path_CXX= |
| 17844 | |
| 17845 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17846 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17847 | |
| 17848 | # Object file extension for compiled C++ test sources. |
| 17849 | objext=o |
| 17850 | objext_CXX=$objext |
| 17851 | |
| 17852 | # Code to be used in simple compile tests |
| 17853 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 17854 | |
| 17855 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17856 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17857 | |
| 17858 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17859 | |
| 17860 | # If no C compiler was specified, use CC. |
| 17861 | LTCC=${LTCC-"$CC"} |
| 17862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17863 | # If no C compiler flags were specified, use CFLAGS. |
| 17864 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17865 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17866 | # Allow CC to be a program name with arguments. |
| 17867 | compiler=$CC |
| 17868 | |
| 17869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17870 | # save warnings/boilerplate of simple test code |
| 17871 | ac_outfile=conftest.$ac_objext |
| 17872 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17873 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17874 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17875 | $rm conftest* |
| 17876 | |
| 17877 | ac_outfile=conftest.$ac_objext |
| 17878 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17879 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17880 | _lt_linker_boilerplate=`cat conftest.err` |
| 17881 | $rm conftest* |
| 17882 | |
| 17883 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17884 | # Allow CC to be a program name with arguments. |
| 17885 | lt_save_CC=$CC |
| 17886 | lt_save_LD=$LD |
| 17887 | lt_save_GCC=$GCC |
| 17888 | GCC=$GXX |
| 17889 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17890 | lt_save_path_LD=$lt_cv_path_LD |
| 17891 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17892 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17893 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17894 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17895 | fi |
| 17896 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17897 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17898 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17899 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17900 | fi |
| 17901 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17902 | CC=${CXX-"c++"} |
| 17903 | compiler=$CC |
| 17904 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17905 | for cc_temp in $compiler""; do |
| 17906 | case $cc_temp in |
| 17907 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17908 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17909 | \-*) ;; |
| 17910 | *) break;; |
| 17911 | esac |
| 17912 | done |
| 17913 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17914 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17915 | |
| 17916 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17917 | # no_builtin_flag separately |
| 17918 | if test "$GXX" = yes; then |
| 17919 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17920 | else |
| 17921 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17922 | fi |
| 17923 | |
| 17924 | if test "$GXX" = yes; then |
| 17925 | # Set up default GNU C++ configuration |
| 17926 | |
| 17927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17928 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17929 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17930 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17931 | else |
| 17932 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17933 | fi |
| 17934 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17935 | ac_prog=ld |
| 17936 | if test "$GCC" = yes; then |
| 17937 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17938 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17939 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17940 | case $host in |
| 17941 | *-*-mingw*) |
| 17942 | # gcc leaves a trailing carriage return which upsets mingw |
| 17943 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17944 | *) |
| 17945 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17946 | esac |
| 17947 | case $ac_prog in |
| 17948 | # Accept absolute paths. |
| 17949 | [\\/]* | ?:[\\/]*) |
| 17950 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17951 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17952 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17953 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17954 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17955 | done |
| 17956 | test -z "$LD" && LD="$ac_prog" |
| 17957 | ;; |
| 17958 | "") |
| 17959 | # If it fails, then pretend we aren't using GCC. |
| 17960 | ac_prog=ld |
| 17961 | ;; |
| 17962 | *) |
| 17963 | # If it is relative, then search for the first ld in PATH. |
| 17964 | with_gnu_ld=unknown |
| 17965 | ;; |
| 17966 | esac |
| 17967 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17968 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17969 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17970 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17971 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17972 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17973 | fi |
| 17974 | if test "${lt_cv_path_LD+set}" = set; then |
| 17975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17976 | else |
| 17977 | if test -z "$LD"; then |
| 17978 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17979 | for ac_dir in $PATH; do |
| 17980 | IFS="$lt_save_ifs" |
| 17981 | test -z "$ac_dir" && ac_dir=. |
| 17982 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17983 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17984 | # 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] | 17985 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17986 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17987 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17988 | *GNU* | *'with BFD'*) |
| 17989 | test "$with_gnu_ld" != no && break |
| 17990 | ;; |
| 17991 | *) |
| 17992 | test "$with_gnu_ld" != yes && break |
| 17993 | ;; |
| 17994 | esac |
| 17995 | fi |
| 17996 | done |
| 17997 | IFS="$lt_save_ifs" |
| 17998 | else |
| 17999 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 18000 | fi |
| 18001 | fi |
| 18002 | |
| 18003 | LD="$lt_cv_path_LD" |
| 18004 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18005 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 18006 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18007 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18008 | { echo "$as_me:$LINENO: result: no" >&5 |
| 18009 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18010 | fi |
| 18011 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 18012 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 18013 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18014 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 18015 | 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] | 18016 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 18017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18018 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18019 | # 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] | 18020 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18021 | *GNU* | *'with BFD'*) |
| 18022 | lt_cv_prog_gnu_ld=yes |
| 18023 | ;; |
| 18024 | *) |
| 18025 | lt_cv_prog_gnu_ld=no |
| 18026 | ;; |
| 18027 | esac |
| 18028 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18029 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 18030 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18031 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18032 | |
| 18033 | |
| 18034 | |
| 18035 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18036 | # archiving commands below assume that GNU ld is being used. |
| 18037 | if test "$with_gnu_ld" = yes; then |
| 18038 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18039 | 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' |
| 18040 | |
| 18041 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18042 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18043 | |
| 18044 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18045 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18046 | # investigate it a little bit more. (MM) |
| 18047 | wlarc='${wl}' |
| 18048 | |
| 18049 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18050 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 18051 | grep 'no-whole-archive' > /dev/null; then |
| 18052 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18053 | else |
| 18054 | whole_archive_flag_spec_CXX= |
| 18055 | fi |
| 18056 | else |
| 18057 | with_gnu_ld=no |
| 18058 | wlarc= |
| 18059 | |
| 18060 | # A generic and very simple default shared library creation |
| 18061 | # command for GNU C++ for the case where it uses the native |
| 18062 | # linker, instead of GNU ld. If possible, this setting should |
| 18063 | # overridden to take advantage of the native linker features on |
| 18064 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18065 | 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] | 18066 | fi |
| 18067 | |
| 18068 | # Commands to make compiler produce verbose output that lists |
| 18069 | # what "hidden" libraries, object files and flags are used when |
| 18070 | # linking a shared library. |
| 18071 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18072 | |
| 18073 | else |
| 18074 | GXX=no |
| 18075 | with_gnu_ld=no |
| 18076 | wlarc= |
| 18077 | fi |
| 18078 | |
| 18079 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18080 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18081 | 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] | 18082 | ld_shlibs_CXX=yes |
| 18083 | case $host_os in |
| 18084 | aix3*) |
| 18085 | # FIXME: insert proper C++ library support |
| 18086 | ld_shlibs_CXX=no |
| 18087 | ;; |
| 18088 | aix4* | aix5*) |
| 18089 | if test "$host_cpu" = ia64; then |
| 18090 | # On IA64, the linker does run time linking by default, so we don't |
| 18091 | # have to do anything special. |
| 18092 | aix_use_runtimelinking=no |
| 18093 | exp_sym_flag='-Bexport' |
| 18094 | no_entry_flag="" |
| 18095 | else |
| 18096 | aix_use_runtimelinking=no |
| 18097 | |
| 18098 | # Test if we are trying to use run time linking or normal |
| 18099 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18100 | # need to do runtime linking. |
| 18101 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 18102 | for ld_flag in $LDFLAGS; do |
| 18103 | case $ld_flag in |
| 18104 | *-brtl*) |
| 18105 | aix_use_runtimelinking=yes |
| 18106 | break |
| 18107 | ;; |
| 18108 | esac |
| 18109 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18110 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18111 | esac |
| 18112 | |
| 18113 | exp_sym_flag='-bexport' |
| 18114 | no_entry_flag='-bnoentry' |
| 18115 | fi |
| 18116 | |
| 18117 | # When large executables or shared objects are built, AIX ld can |
| 18118 | # have problems creating the table of contents. If linking a library |
| 18119 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18120 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18121 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18122 | |
| 18123 | archive_cmds_CXX='' |
| 18124 | hardcode_direct_CXX=yes |
| 18125 | hardcode_libdir_separator_CXX=':' |
| 18126 | link_all_deplibs_CXX=yes |
| 18127 | |
| 18128 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18129 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18130 | # We only want to do this on AIX 4.2 and lower, the check |
| 18131 | # below for broken collect2 doesn't work under 4.3+ |
| 18132 | collect2name=`${CC} -print-prog-name=collect2` |
| 18133 | if test -f "$collect2name" && \ |
| 18134 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 18135 | then |
| 18136 | # We have reworked collect2 |
| 18137 | hardcode_direct_CXX=yes |
| 18138 | else |
| 18139 | # We have old collect2 |
| 18140 | hardcode_direct_CXX=unsupported |
| 18141 | # It fails to find uninstalled libraries when the uninstalled |
| 18142 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18143 | # to unsupported forces relinking |
| 18144 | hardcode_minus_L_CXX=yes |
| 18145 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18146 | hardcode_libdir_separator_CXX= |
| 18147 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18148 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18149 | esac |
| 18150 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18151 | if test "$aix_use_runtimelinking" = yes; then |
| 18152 | shared_flag="$shared_flag "'${wl}-G' |
| 18153 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18154 | else |
| 18155 | # not using gcc |
| 18156 | if test "$host_cpu" = ia64; then |
| 18157 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18158 | # chokes on -Wl,-G. The following line is correct: |
| 18159 | shared_flag='-G' |
| 18160 | else |
| 18161 | if test "$aix_use_runtimelinking" = yes; then |
| 18162 | shared_flag='${wl}-G' |
| 18163 | else |
| 18164 | shared_flag='${wl}-bM:SRE' |
| 18165 | fi |
| 18166 | fi |
| 18167 | fi |
| 18168 | |
| 18169 | # It seems that -bexpall does not export symbols beginning with |
| 18170 | # underscore (_), so it is better to generate a list of symbols to export. |
| 18171 | always_export_symbols_CXX=yes |
| 18172 | if test "$aix_use_runtimelinking" = yes; then |
| 18173 | # Warning - without using the other runtime loading flags (-brtl), |
| 18174 | # -berok will link without error, but may produce a broken library. |
| 18175 | allow_undefined_flag_CXX='-berok' |
| 18176 | # Determine the default libpath from the value encoded in an empty executable. |
| 18177 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18178 | /* confdefs.h. */ |
| 18179 | _ACEOF |
| 18180 | cat confdefs.h >>conftest.$ac_ext |
| 18181 | cat >>conftest.$ac_ext <<_ACEOF |
| 18182 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18183 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18184 | int |
| 18185 | main () |
| 18186 | { |
| 18187 | |
| 18188 | ; |
| 18189 | return 0; |
| 18190 | } |
| 18191 | _ACEOF |
| 18192 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18193 | if { (ac_try="$ac_link" |
| 18194 | case "(($ac_try" in |
| 18195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18196 | *) ac_try_echo=$ac_try;; |
| 18197 | esac |
| 18198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18199 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18200 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18201 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18202 | rm -f conftest.er1 |
| 18203 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18205 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18207 | { (case "(($ac_try" in |
| 18208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18209 | *) ac_try_echo=$ac_try;; |
| 18210 | esac |
| 18211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18212 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18213 | ac_status=$? |
| 18214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18215 | (exit $ac_status); }; } && |
| 18216 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18223 | ac_status=$? |
| 18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18225 | (exit $ac_status); }; }; then |
| 18226 | |
| 18227 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18228 | }'` |
| 18229 | # Check for a 64-bit object if we didn't find anything. |
| 18230 | 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; } |
| 18231 | }'`; fi |
| 18232 | else |
| 18233 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18236 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18237 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18238 | |
| 18239 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18240 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18241 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18242 | |
| 18243 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18245 | 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] | 18246 | else |
| 18247 | if test "$host_cpu" = ia64; then |
| 18248 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18249 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18250 | 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] | 18251 | else |
| 18252 | # Determine the default libpath from the value encoded in an empty executable. |
| 18253 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18254 | /* confdefs.h. */ |
| 18255 | _ACEOF |
| 18256 | cat confdefs.h >>conftest.$ac_ext |
| 18257 | cat >>conftest.$ac_ext <<_ACEOF |
| 18258 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18259 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18260 | int |
| 18261 | main () |
| 18262 | { |
| 18263 | |
| 18264 | ; |
| 18265 | return 0; |
| 18266 | } |
| 18267 | _ACEOF |
| 18268 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18269 | if { (ac_try="$ac_link" |
| 18270 | case "(($ac_try" in |
| 18271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18272 | *) ac_try_echo=$ac_try;; |
| 18273 | esac |
| 18274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18275 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18276 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18278 | rm -f conftest.er1 |
| 18279 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18281 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 18283 | { (case "(($ac_try" in |
| 18284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 18285 | *) ac_try_echo=$ac_try;; |
| 18286 | esac |
| 18287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 18288 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18289 | ac_status=$? |
| 18290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18291 | (exit $ac_status); }; } && |
| 18292 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18299 | ac_status=$? |
| 18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18301 | (exit $ac_status); }; }; then |
| 18302 | |
| 18303 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 18304 | }'` |
| 18305 | # Check for a 64-bit object if we didn't find anything. |
| 18306 | 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; } |
| 18307 | }'`; fi |
| 18308 | else |
| 18309 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 18310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18311 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18312 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18313 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18314 | |
| 18315 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18316 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18317 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 18318 | |
| 18319 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18320 | # Warning - without using the other run time loading flags, |
| 18321 | # -berok will link without error, but may produce a broken library. |
| 18322 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18323 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18324 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18325 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18326 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18327 | # This is similar to how AIX traditionally builds its shared libraries. |
| 18328 | 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] | 18329 | fi |
| 18330 | fi |
| 18331 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18332 | |
| 18333 | beos*) |
| 18334 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 18335 | allow_undefined_flag_CXX=unsupported |
| 18336 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18337 | # support --undefined. This deserves some investigation. FIXME |
| 18338 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18339 | else |
| 18340 | ld_shlibs_CXX=no |
| 18341 | fi |
| 18342 | ;; |
| 18343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18344 | chorus*) |
| 18345 | case $cc_basename in |
| 18346 | *) |
| 18347 | # FIXME: insert proper C++ library support |
| 18348 | ld_shlibs_CXX=no |
| 18349 | ;; |
| 18350 | esac |
| 18351 | ;; |
| 18352 | |
| 18353 | cygwin* | mingw* | pw32*) |
| 18354 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18355 | # as there is no search path for DLLs. |
| 18356 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18357 | allow_undefined_flag_CXX=unsupported |
| 18358 | always_export_symbols_CXX=no |
| 18359 | enable_shared_with_static_runtimes_CXX=yes |
| 18360 | |
| 18361 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18362 | 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] | 18363 | # If the export-symbols file already is a .def file (1st line |
| 18364 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18365 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18366 | cp $export_symbols $output_objdir/$soname.def; |
| 18367 | else |
| 18368 | echo EXPORTS > $output_objdir/$soname.def; |
| 18369 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18370 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18371 | $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] | 18372 | else |
| 18373 | ld_shlibs_CXX=no |
| 18374 | fi |
| 18375 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18376 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18377 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18378 | rhapsody* | darwin1.[012]) |
| 18379 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 18380 | ;; |
| 18381 | *) # Darwin 1.3 on |
| 18382 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 18383 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18384 | else |
| 18385 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 18386 | 10.[012]) |
| 18387 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 18388 | ;; |
| 18389 | 10.*) |
| 18390 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 18391 | ;; |
| 18392 | esac |
| 18393 | fi |
| 18394 | ;; |
| 18395 | esac |
| 18396 | archive_cmds_need_lc_CXX=no |
| 18397 | hardcode_direct_CXX=no |
| 18398 | hardcode_automatic_CXX=yes |
| 18399 | hardcode_shlibpath_var_CXX=unsupported |
| 18400 | whole_archive_flag_spec_CXX='' |
| 18401 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18402 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18403 | if test "$GXX" = yes ; then |
| 18404 | lt_int_apple_cc_single_mod=no |
| 18405 | output_verbose_link_cmd='echo' |
| 18406 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 18407 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18408 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18409 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18410 | 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] | 18411 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18412 | 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] | 18413 | fi |
| 18414 | 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] | 18415 | # 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] | 18416 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18417 | 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] | 18418 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18419 | 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] | 18420 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18421 | 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] | 18422 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18423 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18424 | xlc*) |
| 18425 | output_verbose_link_cmd='echo' |
| 18426 | 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' |
| 18427 | 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] | 18428 | # 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] | 18429 | 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}' |
| 18430 | 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] | 18431 | ;; |
| 18432 | *) |
| 18433 | ld_shlibs_CXX=no |
| 18434 | ;; |
| 18435 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 18436 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18437 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18438 | |
| 18439 | dgux*) |
| 18440 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18441 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18442 | # FIXME: insert proper C++ library support |
| 18443 | ld_shlibs_CXX=no |
| 18444 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18445 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18446 | # Green Hills C++ Compiler |
| 18447 | # FIXME: insert proper C++ library support |
| 18448 | ld_shlibs_CXX=no |
| 18449 | ;; |
| 18450 | *) |
| 18451 | # FIXME: insert proper C++ library support |
| 18452 | ld_shlibs_CXX=no |
| 18453 | ;; |
| 18454 | esac |
| 18455 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18456 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18457 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 18458 | ld_shlibs_CXX=no |
| 18459 | ;; |
| 18460 | freebsd-elf*) |
| 18461 | archive_cmds_need_lc_CXX=no |
| 18462 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18463 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18464 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18465 | # conventions |
| 18466 | ld_shlibs_CXX=yes |
| 18467 | ;; |
| 18468 | gnu*) |
| 18469 | ;; |
| 18470 | hpux9*) |
| 18471 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18472 | hardcode_libdir_separator_CXX=: |
| 18473 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18474 | hardcode_direct_CXX=yes |
| 18475 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18476 | # but as the default |
| 18477 | # location of the library. |
| 18478 | |
| 18479 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18480 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18481 | # FIXME: insert proper C++ library support |
| 18482 | ld_shlibs_CXX=no |
| 18483 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18484 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18485 | 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] | 18486 | # Commands to make compiler produce verbose output that lists |
| 18487 | # what "hidden" libraries, object files and flags are used when |
| 18488 | # linking a shared library. |
| 18489 | # |
| 18490 | # There doesn't appear to be a way to prevent this compiler from |
| 18491 | # explicitly linking system object files so we need to strip them |
| 18492 | # from the output so that they don't get included in the library |
| 18493 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18494 | 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] | 18495 | ;; |
| 18496 | *) |
| 18497 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18498 | 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] | 18499 | else |
| 18500 | # FIXME: insert proper C++ library support |
| 18501 | ld_shlibs_CXX=no |
| 18502 | fi |
| 18503 | ;; |
| 18504 | esac |
| 18505 | ;; |
| 18506 | hpux10*|hpux11*) |
| 18507 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18508 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18509 | hardcode_libdir_separator_CXX=: |
| 18510 | |
| 18511 | case $host_cpu in |
| 18512 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18513 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18514 | ;; |
| 18515 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18516 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18517 | ;; |
| 18518 | esac |
| 18519 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18520 | case $host_cpu in |
| 18521 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18522 | hardcode_direct_CXX=no |
| 18523 | hardcode_shlibpath_var_CXX=no |
| 18524 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18525 | *) |
| 18526 | hardcode_direct_CXX=yes |
| 18527 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18528 | # but as the default |
| 18529 | # location of the library. |
| 18530 | ;; |
| 18531 | esac |
| 18532 | |
| 18533 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18534 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18535 | # FIXME: insert proper C++ library support |
| 18536 | ld_shlibs_CXX=no |
| 18537 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18538 | aCC*) |
| 18539 | case $host_cpu in |
| 18540 | hppa*64*) |
| 18541 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18542 | ;; |
| 18543 | ia64*) |
| 18544 | 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] | 18545 | ;; |
| 18546 | *) |
| 18547 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18548 | ;; |
| 18549 | esac |
| 18550 | # Commands to make compiler produce verbose output that lists |
| 18551 | # what "hidden" libraries, object files and flags are used when |
| 18552 | # linking a shared library. |
| 18553 | # |
| 18554 | # There doesn't appear to be a way to prevent this compiler from |
| 18555 | # explicitly linking system object files so we need to strip them |
| 18556 | # from the output so that they don't get included in the library |
| 18557 | # dependencies. |
| 18558 | 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' |
| 18559 | ;; |
| 18560 | *) |
| 18561 | if test "$GXX" = yes; then |
| 18562 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18563 | case $host_cpu in |
| 18564 | hppa*64*) |
| 18565 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18566 | ;; |
| 18567 | ia64*) |
| 18568 | 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] | 18569 | ;; |
| 18570 | *) |
| 18571 | 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' |
| 18572 | ;; |
| 18573 | esac |
| 18574 | fi |
| 18575 | else |
| 18576 | # FIXME: insert proper C++ library support |
| 18577 | ld_shlibs_CXX=no |
| 18578 | fi |
| 18579 | ;; |
| 18580 | esac |
| 18581 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18582 | interix3*) |
| 18583 | hardcode_direct_CXX=no |
| 18584 | hardcode_shlibpath_var_CXX=no |
| 18585 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18586 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18587 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18588 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18589 | # default) and relocated if they conflict, which is a slow very memory |
| 18590 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18591 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18592 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18593 | 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' |
| 18594 | 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' |
| 18595 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18596 | irix5* | irix6*) |
| 18597 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18598 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18599 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18600 | 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] | 18601 | |
| 18602 | # Archives containing C++ object files must be created using |
| 18603 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18604 | # necessary to make sure instantiated templates are included |
| 18605 | # in the archive. |
| 18606 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18607 | ;; |
| 18608 | *) |
| 18609 | if test "$GXX" = yes; then |
| 18610 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18611 | 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] | 18612 | else |
| 18613 | 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' |
| 18614 | fi |
| 18615 | fi |
| 18616 | link_all_deplibs_CXX=yes |
| 18617 | ;; |
| 18618 | esac |
| 18619 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18620 | hardcode_libdir_separator_CXX=: |
| 18621 | ;; |
| 18622 | linux*) |
| 18623 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18624 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18625 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18626 | |
| 18627 | # KCC will only create a shared library if the output file |
| 18628 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18629 | # to its proper name (with version) after linking. |
| 18630 | 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' |
| 18631 | 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' |
| 18632 | # Commands to make compiler produce verbose output that lists |
| 18633 | # what "hidden" libraries, object files and flags are used when |
| 18634 | # linking a shared library. |
| 18635 | # |
| 18636 | # There doesn't appear to be a way to prevent this compiler from |
| 18637 | # explicitly linking system object files so we need to strip them |
| 18638 | # from the output so that they don't get included in the library |
| 18639 | # dependencies. |
| 18640 | 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' |
| 18641 | |
| 18642 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 18643 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18644 | |
| 18645 | # Archives containing C++ object files must be created using |
| 18646 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18647 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18648 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18649 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18650 | # Intel C++ |
| 18651 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18652 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18653 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18654 | # earlier do not add the objects themselves. |
| 18655 | case `$CC -V 2>&1` in |
| 18656 | *"Version 7."*) |
| 18657 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18658 | 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' |
| 18659 | ;; |
| 18660 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18661 | tmp_idyn= |
| 18662 | case $host_cpu in |
| 18663 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18664 | esac |
| 18665 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18666 | 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] | 18667 | ;; |
| 18668 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18669 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18670 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18671 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18672 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18673 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18674 | pgCC*) |
| 18675 | # Portland Group C++ compiler |
| 18676 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18677 | 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' |
| 18678 | |
| 18679 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18680 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18681 | 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' |
| 18682 | ;; |
| 18683 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18684 | # Compaq C++ |
| 18685 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18686 | 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' |
| 18687 | |
| 18688 | runpath_var=LD_RUN_PATH |
| 18689 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18690 | hardcode_libdir_separator_CXX=: |
| 18691 | |
| 18692 | # Commands to make compiler produce verbose output that lists |
| 18693 | # what "hidden" libraries, object files and flags are used when |
| 18694 | # linking a shared library. |
| 18695 | # |
| 18696 | # There doesn't appear to be a way to prevent this compiler from |
| 18697 | # explicitly linking system object files so we need to strip them |
| 18698 | # from the output so that they don't get included in the library |
| 18699 | # dependencies. |
| 18700 | 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' |
| 18701 | ;; |
| 18702 | esac |
| 18703 | ;; |
| 18704 | lynxos*) |
| 18705 | # FIXME: insert proper C++ library support |
| 18706 | ld_shlibs_CXX=no |
| 18707 | ;; |
| 18708 | m88k*) |
| 18709 | # FIXME: insert proper C++ library support |
| 18710 | ld_shlibs_CXX=no |
| 18711 | ;; |
| 18712 | mvs*) |
| 18713 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18714 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18715 | # FIXME: insert proper C++ library support |
| 18716 | ld_shlibs_CXX=no |
| 18717 | ;; |
| 18718 | *) |
| 18719 | # FIXME: insert proper C++ library support |
| 18720 | ld_shlibs_CXX=no |
| 18721 | ;; |
| 18722 | esac |
| 18723 | ;; |
| 18724 | netbsd*) |
| 18725 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18726 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18727 | wlarc= |
| 18728 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18729 | hardcode_direct_CXX=yes |
| 18730 | hardcode_shlibpath_var_CXX=no |
| 18731 | fi |
| 18732 | # Workaround some broken pre-1.5 toolchains |
| 18733 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18734 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18735 | openbsd2*) |
| 18736 | # C++ shared libraries are fairly broken |
| 18737 | ld_shlibs_CXX=no |
| 18738 | ;; |
| 18739 | openbsd*) |
| 18740 | hardcode_direct_CXX=yes |
| 18741 | hardcode_shlibpath_var_CXX=no |
| 18742 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18743 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18744 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18745 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18746 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18747 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18748 | fi |
| 18749 | output_verbose_link_cmd='echo' |
| 18750 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18751 | osf3*) |
| 18752 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18753 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18754 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18755 | |
| 18756 | # KCC will only create a shared library if the output file |
| 18757 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18758 | # to its proper name (with version) after linking. |
| 18759 | 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' |
| 18760 | |
| 18761 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18762 | hardcode_libdir_separator_CXX=: |
| 18763 | |
| 18764 | # Archives containing C++ object files must be created using |
| 18765 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18766 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18767 | |
| 18768 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18769 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18770 | # Rational C++ 2.4.1 |
| 18771 | # FIXME: insert proper C++ library support |
| 18772 | ld_shlibs_CXX=no |
| 18773 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18774 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18775 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18776 | 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] | 18777 | |
| 18778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18779 | hardcode_libdir_separator_CXX=: |
| 18780 | |
| 18781 | # Commands to make compiler produce verbose output that lists |
| 18782 | # what "hidden" libraries, object files and flags are used when |
| 18783 | # linking a shared library. |
| 18784 | # |
| 18785 | # There doesn't appear to be a way to prevent this compiler from |
| 18786 | # explicitly linking system object files so we need to strip them |
| 18787 | # from the output so that they don't get included in the library |
| 18788 | # dependencies. |
| 18789 | 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' |
| 18790 | ;; |
| 18791 | *) |
| 18792 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18793 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18794 | 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] | 18795 | |
| 18796 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18797 | hardcode_libdir_separator_CXX=: |
| 18798 | |
| 18799 | # Commands to make compiler produce verbose output that lists |
| 18800 | # what "hidden" libraries, object files and flags are used when |
| 18801 | # linking a shared library. |
| 18802 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18803 | |
| 18804 | else |
| 18805 | # FIXME: insert proper C++ library support |
| 18806 | ld_shlibs_CXX=no |
| 18807 | fi |
| 18808 | ;; |
| 18809 | esac |
| 18810 | ;; |
| 18811 | osf4* | osf5*) |
| 18812 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18813 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18814 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18815 | |
| 18816 | # KCC will only create a shared library if the output file |
| 18817 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18818 | # to its proper name (with version) after linking. |
| 18819 | 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' |
| 18820 | |
| 18821 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18822 | hardcode_libdir_separator_CXX=: |
| 18823 | |
| 18824 | # Archives containing C++ object files must be created using |
| 18825 | # the KAI C++ compiler. |
| 18826 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 18827 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18828 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18829 | # Rational C++ 2.4.1 |
| 18830 | # FIXME: insert proper C++ library support |
| 18831 | ld_shlibs_CXX=no |
| 18832 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18833 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18834 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18835 | 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] | 18836 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18837 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18838 | $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] | 18839 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18840 | |
| 18841 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18842 | hardcode_libdir_separator_CXX=: |
| 18843 | |
| 18844 | # Commands to make compiler produce verbose output that lists |
| 18845 | # what "hidden" libraries, object files and flags are used when |
| 18846 | # linking a shared library. |
| 18847 | # |
| 18848 | # There doesn't appear to be a way to prevent this compiler from |
| 18849 | # explicitly linking system object files so we need to strip them |
| 18850 | # from the output so that they don't get included in the library |
| 18851 | # dependencies. |
| 18852 | 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' |
| 18853 | ;; |
| 18854 | *) |
| 18855 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18856 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18857 | 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] | 18858 | |
| 18859 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18860 | hardcode_libdir_separator_CXX=: |
| 18861 | |
| 18862 | # Commands to make compiler produce verbose output that lists |
| 18863 | # what "hidden" libraries, object files and flags are used when |
| 18864 | # linking a shared library. |
| 18865 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 18866 | |
| 18867 | else |
| 18868 | # FIXME: insert proper C++ library support |
| 18869 | ld_shlibs_CXX=no |
| 18870 | fi |
| 18871 | ;; |
| 18872 | esac |
| 18873 | ;; |
| 18874 | psos*) |
| 18875 | # FIXME: insert proper C++ library support |
| 18876 | ld_shlibs_CXX=no |
| 18877 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18878 | sunos4*) |
| 18879 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18880 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18881 | # Sun C++ 4.x |
| 18882 | # FIXME: insert proper C++ library support |
| 18883 | ld_shlibs_CXX=no |
| 18884 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18885 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18886 | # Lucid |
| 18887 | # FIXME: insert proper C++ library support |
| 18888 | ld_shlibs_CXX=no |
| 18889 | ;; |
| 18890 | *) |
| 18891 | # FIXME: insert proper C++ library support |
| 18892 | ld_shlibs_CXX=no |
| 18893 | ;; |
| 18894 | esac |
| 18895 | ;; |
| 18896 | solaris*) |
| 18897 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18898 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18899 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18900 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18901 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18902 | 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] | 18903 | 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] | 18904 | $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] | 18905 | |
| 18906 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18907 | hardcode_shlibpath_var_CXX=no |
| 18908 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18909 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18910 | *) |
| 18911 | # The C++ compiler is used as linker so we must use $wl |
| 18912 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18913 | # linker. We must also pass each convience library through |
| 18914 | # to the system linker between allextract/defaultextract. |
| 18915 | # The C++ compiler will combine linker options so we |
| 18916 | # cannot just pass the convience library names through |
| 18917 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18918 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18919 | 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] | 18920 | ;; |
| 18921 | esac |
| 18922 | link_all_deplibs_CXX=yes |
| 18923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18924 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18925 | |
| 18926 | # Archives containing C++ object files must be created using |
| 18927 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18928 | # necessary to make sure instantiated templates are included |
| 18929 | # in the archive. |
| 18930 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18931 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18932 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18933 | # Green Hills C++ Compiler |
| 18934 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18935 | |
| 18936 | # The C++ compiler must be used to create the archive. |
| 18937 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18938 | ;; |
| 18939 | *) |
| 18940 | # GNU C++ compiler with Solaris linker |
| 18941 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18942 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18943 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18944 | 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] | 18945 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18946 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18947 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18948 | # Commands to make compiler produce verbose output that lists |
| 18949 | # what "hidden" libraries, object files and flags are used when |
| 18950 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18951 | 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] | 18952 | else |
| 18953 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18954 | # platform. |
| 18955 | 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] | 18956 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18957 | $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] | 18958 | |
| 18959 | # Commands to make compiler produce verbose output that lists |
| 18960 | # what "hidden" libraries, object files and flags are used when |
| 18961 | # linking a shared library. |
| 18962 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18963 | fi |
| 18964 | |
| 18965 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18966 | fi |
| 18967 | ;; |
| 18968 | esac |
| 18969 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18970 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18971 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18972 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18973 | hardcode_shlibpath_var_CXX=no |
| 18974 | runpath_var='LD_RUN_PATH' |
| 18975 | |
| 18976 | case $cc_basename in |
| 18977 | CC*) |
| 18978 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18979 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18980 | ;; |
| 18981 | *) |
| 18982 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18983 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18984 | ;; |
| 18985 | esac |
| 18986 | ;; |
| 18987 | sysv5* | sco3.2v5* | sco5v6*) |
| 18988 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18989 | # link with -lc, and that would cause any symbols used from libc to |
| 18990 | # always be unresolved, which means just about no library would |
| 18991 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18992 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18993 | # as -z defs. |
| 18994 | # For security reasons, it is highly recommended that you always |
| 18995 | # use absolute paths for naming shared libraries, and exclude the |
| 18996 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 18997 | # requires that you compile everything twice, which is a pain. |
| 18998 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 18999 | # non-empty value in the environment. Most likely only useful for |
| 19000 | # creating official distributions of packages. |
| 19001 | # This is a hack until libtool officially supports absolute path |
| 19002 | # names for shared libraries. |
| 19003 | no_undefined_flag_CXX='${wl}-z,text' |
| 19004 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19005 | archive_cmds_need_lc_CXX=no |
| 19006 | hardcode_shlibpath_var_CXX=no |
| 19007 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 19008 | hardcode_libdir_separator_CXX=':' |
| 19009 | link_all_deplibs_CXX=yes |
| 19010 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19011 | runpath_var='LD_RUN_PATH' |
| 19012 | |
| 19013 | case $cc_basename in |
| 19014 | CC*) |
| 19015 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19016 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19017 | ;; |
| 19018 | *) |
| 19019 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19020 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19021 | ;; |
| 19022 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19023 | ;; |
| 19024 | tandem*) |
| 19025 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19026 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19027 | # NonStop-UX NCC 3.20 |
| 19028 | # FIXME: insert proper C++ library support |
| 19029 | ld_shlibs_CXX=no |
| 19030 | ;; |
| 19031 | *) |
| 19032 | # FIXME: insert proper C++ library support |
| 19033 | ld_shlibs_CXX=no |
| 19034 | ;; |
| 19035 | esac |
| 19036 | ;; |
| 19037 | vxworks*) |
| 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 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19046 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19047 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19048 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19049 | |
| 19050 | GCC_CXX="$GXX" |
| 19051 | LD_CXX="$LD" |
| 19052 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19053 | |
| 19054 | cat > conftest.$ac_ext <<EOF |
| 19055 | class Foo |
| 19056 | { |
| 19057 | public: |
| 19058 | Foo (void) { a = 0; } |
| 19059 | private: |
| 19060 | int a; |
| 19061 | }; |
| 19062 | EOF |
| 19063 | |
| 19064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19065 | (eval $ac_compile) 2>&5 |
| 19066 | ac_status=$? |
| 19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19068 | (exit $ac_status); }; then |
| 19069 | # Parse the compiler output and extract the necessary |
| 19070 | # objects, libraries and library flags. |
| 19071 | |
| 19072 | # Sentinel used to keep track of whether or not we are before |
| 19073 | # the conftest object file. |
| 19074 | pre_test_object_deps_done=no |
| 19075 | |
| 19076 | # The `*' in the case matches for architectures that use `case' in |
| 19077 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 19078 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19079 | 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] | 19080 | |
| 19081 | for p in `eval $output_verbose_link_cmd`; do |
| 19082 | case $p in |
| 19083 | |
| 19084 | -L* | -R* | -l*) |
| 19085 | # Some compilers place space between "-{L,R}" and the path. |
| 19086 | # Remove the space. |
| 19087 | if test $p = "-L" \ |
| 19088 | || test $p = "-R"; then |
| 19089 | prev=$p |
| 19090 | continue |
| 19091 | else |
| 19092 | prev= |
| 19093 | fi |
| 19094 | |
| 19095 | if test "$pre_test_object_deps_done" = no; then |
| 19096 | case $p in |
| 19097 | -L* | -R*) |
| 19098 | # Internal compiler library paths should come after those |
| 19099 | # provided the user. The postdeps already come after the |
| 19100 | # user supplied libs so there is no need to process them. |
| 19101 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19102 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19103 | else |
| 19104 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19105 | fi |
| 19106 | ;; |
| 19107 | # The "-l" case would never come before the object being |
| 19108 | # linked, so don't bother handling this case. |
| 19109 | esac |
| 19110 | else |
| 19111 | if test -z "$postdeps_CXX"; then |
| 19112 | postdeps_CXX="${prev}${p}" |
| 19113 | else |
| 19114 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19115 | fi |
| 19116 | fi |
| 19117 | ;; |
| 19118 | |
| 19119 | *.$objext) |
| 19120 | # This assumes that the test object file only shows up |
| 19121 | # once in the compiler output. |
| 19122 | if test "$p" = "conftest.$objext"; then |
| 19123 | pre_test_object_deps_done=yes |
| 19124 | continue |
| 19125 | fi |
| 19126 | |
| 19127 | if test "$pre_test_object_deps_done" = no; then |
| 19128 | if test -z "$predep_objects_CXX"; then |
| 19129 | predep_objects_CXX="$p" |
| 19130 | else |
| 19131 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19132 | fi |
| 19133 | else |
| 19134 | if test -z "$postdep_objects_CXX"; then |
| 19135 | postdep_objects_CXX="$p" |
| 19136 | else |
| 19137 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19138 | fi |
| 19139 | fi |
| 19140 | ;; |
| 19141 | |
| 19142 | *) ;; # Ignore the rest. |
| 19143 | |
| 19144 | esac |
| 19145 | done |
| 19146 | |
| 19147 | # Clean up. |
| 19148 | rm -f a.out a.exe |
| 19149 | else |
| 19150 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19151 | fi |
| 19152 | |
| 19153 | $rm -f confest.$objext |
| 19154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19155 | # PORTME: override above test on systems where it is broken |
| 19156 | case $host_os in |
| 19157 | interix3*) |
| 19158 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19159 | # hack all around it, let's just trust "g++" to DTRT. |
| 19160 | predep_objects_CXX= |
| 19161 | postdep_objects_CXX= |
| 19162 | postdeps_CXX= |
| 19163 | ;; |
| 19164 | |
| 19165 | solaris*) |
| 19166 | case $cc_basename in |
| 19167 | CC*) |
| 19168 | # Adding this requires a known-good setup of shared libraries for |
| 19169 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19170 | # archive will be linked into the output, leading to subtle bugs. |
| 19171 | postdeps_CXX='-lCstd -lCrun' |
| 19172 | ;; |
| 19173 | esac |
| 19174 | ;; |
| 19175 | esac |
| 19176 | |
| 19177 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19178 | case " $postdeps_CXX " in |
| 19179 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19180 | esac |
| 19181 | |
| 19182 | lt_prog_compiler_wl_CXX= |
| 19183 | lt_prog_compiler_pic_CXX= |
| 19184 | lt_prog_compiler_static_CXX= |
| 19185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19186 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 19187 | 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] | 19188 | |
| 19189 | # C++ specific cases for pic, static, wl, etc. |
| 19190 | if test "$GXX" = yes; then |
| 19191 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19192 | lt_prog_compiler_static_CXX='-static' |
| 19193 | |
| 19194 | case $host_os in |
| 19195 | aix*) |
| 19196 | # All AIX code is PIC. |
| 19197 | if test "$host_cpu" = ia64; then |
| 19198 | # AIX 5 now supports IA64 processor |
| 19199 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19200 | fi |
| 19201 | ;; |
| 19202 | amigaos*) |
| 19203 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19204 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19205 | # like `-m68040'. |
| 19206 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19207 | ;; |
| 19208 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19209 | # PIC is the default for these OSes. |
| 19210 | ;; |
| 19211 | mingw* | os2* | pw32*) |
| 19212 | # This hack is so that the source file can tell whether it is being |
| 19213 | # built for inclusion in a dll (and should export symbols for example). |
| 19214 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19215 | ;; |
| 19216 | darwin* | rhapsody*) |
| 19217 | # PIC is the default on this platform |
| 19218 | # Common symbols not allowed in MH_DYLIB files |
| 19219 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19220 | ;; |
| 19221 | *djgpp*) |
| 19222 | # DJGPP does not support shared libraries at all |
| 19223 | lt_prog_compiler_pic_CXX= |
| 19224 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19225 | interix3*) |
| 19226 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19227 | # Instead, we relocate shared libraries at runtime. |
| 19228 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19229 | sysv4*MP*) |
| 19230 | if test -d /usr/nec; then |
| 19231 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19232 | fi |
| 19233 | ;; |
| 19234 | hpux*) |
| 19235 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 19236 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19237 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19238 | hppa*64*|ia64*) |
| 19239 | ;; |
| 19240 | *) |
| 19241 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19242 | ;; |
| 19243 | esac |
| 19244 | ;; |
| 19245 | *) |
| 19246 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19247 | ;; |
| 19248 | esac |
| 19249 | else |
| 19250 | case $host_os in |
| 19251 | aix4* | aix5*) |
| 19252 | # All AIX code is PIC. |
| 19253 | if test "$host_cpu" = ia64; then |
| 19254 | # AIX 5 now supports IA64 processor |
| 19255 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19256 | else |
| 19257 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19258 | fi |
| 19259 | ;; |
| 19260 | chorus*) |
| 19261 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19262 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19263 | # Green Hills C++ Compiler |
| 19264 | # _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" |
| 19265 | ;; |
| 19266 | esac |
| 19267 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19268 | darwin*) |
| 19269 | # PIC is the default on this platform |
| 19270 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19271 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19272 | xlc*) |
| 19273 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 19274 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19275 | ;; |
| 19276 | esac |
| 19277 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19278 | dgux*) |
| 19279 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19280 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19281 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19282 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19283 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19284 | # Green Hills C++ Compiler |
| 19285 | lt_prog_compiler_pic_CXX='-pic' |
| 19286 | ;; |
| 19287 | *) |
| 19288 | ;; |
| 19289 | esac |
| 19290 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19291 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19292 | # FreeBSD uses GNU C++ |
| 19293 | ;; |
| 19294 | hpux9* | hpux10* | hpux11*) |
| 19295 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19296 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19297 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19298 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19299 | if test "$host_cpu" != ia64; then |
| 19300 | lt_prog_compiler_pic_CXX='+Z' |
| 19301 | fi |
| 19302 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19303 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19304 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19305 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19306 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19307 | hppa*64*|ia64*) |
| 19308 | # +Z the default |
| 19309 | ;; |
| 19310 | *) |
| 19311 | lt_prog_compiler_pic_CXX='+Z' |
| 19312 | ;; |
| 19313 | esac |
| 19314 | ;; |
| 19315 | *) |
| 19316 | ;; |
| 19317 | esac |
| 19318 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19319 | interix*) |
| 19320 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19321 | # Anyone wants to do a port? |
| 19322 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19323 | irix5* | irix6* | nonstopux*) |
| 19324 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19325 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19326 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19327 | lt_prog_compiler_static_CXX='-non_shared' |
| 19328 | # CC pic flag -KPIC is the default. |
| 19329 | ;; |
| 19330 | *) |
| 19331 | ;; |
| 19332 | esac |
| 19333 | ;; |
| 19334 | linux*) |
| 19335 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19336 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19337 | # KAI C++ Compiler |
| 19338 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19339 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19340 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19341 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19342 | # Intel C++ |
| 19343 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19344 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19345 | lt_prog_compiler_static_CXX='-static' |
| 19346 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19347 | pgCC*) |
| 19348 | # Portland Group C++ compiler. |
| 19349 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19350 | lt_prog_compiler_pic_CXX='-fpic' |
| 19351 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19352 | ;; |
| 19353 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19354 | # Compaq C++ |
| 19355 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19356 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19357 | lt_prog_compiler_pic_CXX= |
| 19358 | lt_prog_compiler_static_CXX='-non_shared' |
| 19359 | ;; |
| 19360 | *) |
| 19361 | ;; |
| 19362 | esac |
| 19363 | ;; |
| 19364 | lynxos*) |
| 19365 | ;; |
| 19366 | m88k*) |
| 19367 | ;; |
| 19368 | mvs*) |
| 19369 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19370 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19371 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19372 | ;; |
| 19373 | *) |
| 19374 | ;; |
| 19375 | esac |
| 19376 | ;; |
| 19377 | netbsd*) |
| 19378 | ;; |
| 19379 | osf3* | osf4* | osf5*) |
| 19380 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19381 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19382 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19383 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19384 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19385 | # Rational C++ 2.4.1 |
| 19386 | lt_prog_compiler_pic_CXX='-pic' |
| 19387 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19388 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19389 | # Digital/Compaq C++ |
| 19390 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19391 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19392 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19393 | lt_prog_compiler_pic_CXX= |
| 19394 | lt_prog_compiler_static_CXX='-non_shared' |
| 19395 | ;; |
| 19396 | *) |
| 19397 | ;; |
| 19398 | esac |
| 19399 | ;; |
| 19400 | psos*) |
| 19401 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19402 | solaris*) |
| 19403 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19404 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19405 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19406 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19407 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19408 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19409 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19410 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19411 | # Green Hills C++ Compiler |
| 19412 | lt_prog_compiler_pic_CXX='-PIC' |
| 19413 | ;; |
| 19414 | *) |
| 19415 | ;; |
| 19416 | esac |
| 19417 | ;; |
| 19418 | sunos4*) |
| 19419 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19420 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19421 | # Sun C++ 4.x |
| 19422 | lt_prog_compiler_pic_CXX='-pic' |
| 19423 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19424 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19425 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19426 | # Lucid |
| 19427 | lt_prog_compiler_pic_CXX='-pic' |
| 19428 | ;; |
| 19429 | *) |
| 19430 | ;; |
| 19431 | esac |
| 19432 | ;; |
| 19433 | tandem*) |
| 19434 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19435 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19436 | # NonStop-UX NCC 3.20 |
| 19437 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19438 | ;; |
| 19439 | *) |
| 19440 | ;; |
| 19441 | esac |
| 19442 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19443 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19444 | case $cc_basename in |
| 19445 | CC*) |
| 19446 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19447 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19448 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19449 | ;; |
| 19450 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19451 | ;; |
| 19452 | vxworks*) |
| 19453 | ;; |
| 19454 | *) |
| 19455 | lt_prog_compiler_can_build_shared_CXX=no |
| 19456 | ;; |
| 19457 | esac |
| 19458 | fi |
| 19459 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19460 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 19461 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19462 | |
| 19463 | # |
| 19464 | # Check to make sure the PIC flag actually works. |
| 19465 | # |
| 19466 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19467 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19468 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19469 | 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] | 19470 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 19471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19472 | else |
| 19473 | lt_prog_compiler_pic_works_CXX=no |
| 19474 | ac_outfile=conftest.$ac_objext |
| 19475 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19476 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19477 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19478 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19479 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19480 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19481 | # The option is referenced via a variable to avoid confusing sed. |
| 19482 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19483 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19484 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19485 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 19486 | (eval echo "\"\$as_me:19486: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19487 | (eval "$lt_compile" 2>conftest.err) |
| 19488 | ac_status=$? |
| 19489 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 19490 | echo "$as_me:19490: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19491 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19492 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19493 | # So say no if there are warnings other than the usual output. |
| 19494 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 19495 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19496 | 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] | 19497 | lt_prog_compiler_pic_works_CXX=yes |
| 19498 | fi |
| 19499 | fi |
| 19500 | $rm conftest* |
| 19501 | |
| 19502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19503 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 19504 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19505 | |
| 19506 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 19507 | case $lt_prog_compiler_pic_CXX in |
| 19508 | "" | " "*) ;; |
| 19509 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19510 | esac |
| 19511 | else |
| 19512 | lt_prog_compiler_pic_CXX= |
| 19513 | lt_prog_compiler_can_build_shared_CXX=no |
| 19514 | fi |
| 19515 | |
| 19516 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19517 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19518 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19519 | *djgpp*) |
| 19520 | lt_prog_compiler_pic_CXX= |
| 19521 | ;; |
| 19522 | *) |
| 19523 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19524 | ;; |
| 19525 | esac |
| 19526 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19527 | # |
| 19528 | # Check to make sure the static flag actually works. |
| 19529 | # |
| 19530 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19531 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19532 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 19533 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 19534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19535 | else |
| 19536 | lt_prog_compiler_static_works_CXX=no |
| 19537 | save_LDFLAGS="$LDFLAGS" |
| 19538 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19539 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19540 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19541 | # The linker can only warn and ignore the option if not recognized |
| 19542 | # So say no if there are warnings |
| 19543 | if test -s conftest.err; then |
| 19544 | # Append any errors to the config.log. |
| 19545 | cat conftest.err 1>&5 |
| 19546 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 19547 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19548 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19549 | lt_prog_compiler_static_works_CXX=yes |
| 19550 | fi |
| 19551 | else |
| 19552 | lt_prog_compiler_static_works_CXX=yes |
| 19553 | fi |
| 19554 | fi |
| 19555 | $rm conftest* |
| 19556 | LDFLAGS="$save_LDFLAGS" |
| 19557 | |
| 19558 | fi |
| 19559 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 19560 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 19561 | |
| 19562 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 19563 | : |
| 19564 | else |
| 19565 | lt_prog_compiler_static_CXX= |
| 19566 | fi |
| 19567 | |
| 19568 | |
| 19569 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19570 | 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] | 19571 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 19572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19573 | else |
| 19574 | lt_cv_prog_compiler_c_o_CXX=no |
| 19575 | $rm -r conftest 2>/dev/null |
| 19576 | mkdir conftest |
| 19577 | cd conftest |
| 19578 | mkdir out |
| 19579 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19580 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19581 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19582 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19583 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19584 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19585 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19586 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19587 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19588 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19589 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 19590 | (eval echo "\"\$as_me:19590: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19591 | (eval "$lt_compile" 2>out/conftest.err) |
| 19592 | ac_status=$? |
| 19593 | cat out/conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 19594 | echo "$as_me:19594: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19595 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19596 | then |
| 19597 | # The compiler can only warn and ignore the option if not recognized |
| 19598 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19599 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 19600 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19601 | 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] | 19602 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19603 | fi |
| 19604 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19605 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19606 | $rm conftest* |
| 19607 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19608 | # template instantiation |
| 19609 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 19610 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19611 | cd .. |
| 19612 | rmdir conftest |
| 19613 | $rm conftest* |
| 19614 | |
| 19615 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19616 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19617 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19618 | |
| 19619 | |
| 19620 | hard_links="nottested" |
| 19621 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19622 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19623 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 19624 | 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] | 19625 | hard_links=yes |
| 19626 | $rm conftest* |
| 19627 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19628 | touch conftest.a |
| 19629 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19630 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19631 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 19632 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19633 | if test "$hard_links" = no; then |
| 19634 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19635 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19636 | need_locks=warn |
| 19637 | fi |
| 19638 | else |
| 19639 | need_locks=no |
| 19640 | fi |
| 19641 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19642 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19643 | 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] | 19644 | |
| 19645 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19646 | case $host_os in |
| 19647 | aix4* | aix5*) |
| 19648 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19649 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 19650 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 19651 | 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' |
| 19652 | else |
| 19653 | 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' |
| 19654 | fi |
| 19655 | ;; |
| 19656 | pw32*) |
| 19657 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 19658 | ;; |
| 19659 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19660 | 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] | 19661 | ;; |
| 19662 | *) |
| 19663 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 19664 | ;; |
| 19665 | esac |
| 19666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19667 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 19668 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19669 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19670 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19671 | # |
| 19672 | # Do we need to explicitly link libc? |
| 19673 | # |
| 19674 | case "x$archive_cmds_need_lc_CXX" in |
| 19675 | x|xyes) |
| 19676 | # Assume -lc should be added |
| 19677 | archive_cmds_need_lc_CXX=yes |
| 19678 | |
| 19679 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19680 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19681 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19682 | # FIXME: we may have to deal with multi-command sequences. |
| 19683 | ;; |
| 19684 | '$CC '*) |
| 19685 | # Test whether the compiler implicitly links with -lc since on some |
| 19686 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19687 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19688 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 19689 | 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] | 19690 | $rm conftest* |
| 19691 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19692 | |
| 19693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19694 | (eval $ac_compile) 2>&5 |
| 19695 | ac_status=$? |
| 19696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19697 | (exit $ac_status); } 2>conftest.err; then |
| 19698 | soname=conftest |
| 19699 | lib=conftest |
| 19700 | libobjs=conftest.$ac_objext |
| 19701 | deplibs= |
| 19702 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19703 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19704 | compiler_flags=-v |
| 19705 | linker_flags=-v |
| 19706 | verstring= |
| 19707 | output_objdir=. |
| 19708 | libname=conftest |
| 19709 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19710 | allow_undefined_flag_CXX= |
| 19711 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 19712 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19713 | ac_status=$? |
| 19714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19715 | (exit $ac_status); } |
| 19716 | then |
| 19717 | archive_cmds_need_lc_CXX=no |
| 19718 | else |
| 19719 | archive_cmds_need_lc_CXX=yes |
| 19720 | fi |
| 19721 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19722 | else |
| 19723 | cat conftest.err 1>&5 |
| 19724 | fi |
| 19725 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19726 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 19727 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19728 | ;; |
| 19729 | esac |
| 19730 | fi |
| 19731 | ;; |
| 19732 | esac |
| 19733 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19734 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 19735 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19736 | library_names_spec= |
| 19737 | libname_spec='lib$name' |
| 19738 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19739 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19740 | postinstall_cmds= |
| 19741 | postuninstall_cmds= |
| 19742 | finish_cmds= |
| 19743 | finish_eval= |
| 19744 | shlibpath_var= |
| 19745 | shlibpath_overrides_runpath=unknown |
| 19746 | version_type=none |
| 19747 | dynamic_linker="$host_os ld.so" |
| 19748 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19749 | if test "$GCC" = yes; then |
| 19750 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19751 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 19752 | # if the path contains ";" then we assume it to be the separator |
| 19753 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 19754 | # assumed that no part of a normal pathname contains ";" but that should |
| 19755 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 19756 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19757 | else |
| 19758 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19759 | fi |
| 19760 | else |
| 19761 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 19762 | fi |
| 19763 | need_lib_prefix=unknown |
| 19764 | hardcode_into_libs=no |
| 19765 | |
| 19766 | # when you set need_version to no, make sure it does not cause -set_version |
| 19767 | # flags to be left without arguments |
| 19768 | need_version=unknown |
| 19769 | |
| 19770 | case $host_os in |
| 19771 | aix3*) |
| 19772 | version_type=linux |
| 19773 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19774 | shlibpath_var=LIBPATH |
| 19775 | |
| 19776 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19777 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19778 | ;; |
| 19779 | |
| 19780 | aix4* | aix5*) |
| 19781 | version_type=linux |
| 19782 | need_lib_prefix=no |
| 19783 | need_version=no |
| 19784 | hardcode_into_libs=yes |
| 19785 | if test "$host_cpu" = ia64; then |
| 19786 | # AIX 5 supports IA64 |
| 19787 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19788 | shlibpath_var=LD_LIBRARY_PATH |
| 19789 | else |
| 19790 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19791 | # for dependence libraries. The import file would start with |
| 19792 | # the line `#! .'. This would cause the generated library to |
| 19793 | # depend on `.', always an invalid library. This was fixed in |
| 19794 | # development snapshots of GCC prior to 3.0. |
| 19795 | case $host_os in |
| 19796 | aix4 | aix4.[01] | aix4.[01].*) |
| 19797 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19798 | echo ' yes ' |
| 19799 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 19800 | : |
| 19801 | else |
| 19802 | can_build_shared=no |
| 19803 | fi |
| 19804 | ;; |
| 19805 | esac |
| 19806 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19807 | # soname into executable. Probably we can add versioning support to |
| 19808 | # collect2, so additional links can be useful in future. |
| 19809 | if test "$aix_use_runtimelinking" = yes; then |
| 19810 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19811 | # instead of lib<name>.a to let people know that these are not |
| 19812 | # typical AIX shared libraries. |
| 19813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19814 | else |
| 19815 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19816 | # and later when we are not doing run time linking. |
| 19817 | library_names_spec='${libname}${release}.a $libname.a' |
| 19818 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19819 | fi |
| 19820 | shlibpath_var=LIBPATH |
| 19821 | fi |
| 19822 | ;; |
| 19823 | |
| 19824 | amigaos*) |
| 19825 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19826 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19827 | 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] | 19828 | ;; |
| 19829 | |
| 19830 | beos*) |
| 19831 | library_names_spec='${libname}${shared_ext}' |
| 19832 | dynamic_linker="$host_os ld.so" |
| 19833 | shlibpath_var=LIBRARY_PATH |
| 19834 | ;; |
| 19835 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19836 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19837 | version_type=linux |
| 19838 | need_version=no |
| 19839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19840 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19841 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19842 | shlibpath_var=LD_LIBRARY_PATH |
| 19843 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19844 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19845 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19846 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19847 | # libtool to hard-code these into programs |
| 19848 | ;; |
| 19849 | |
| 19850 | cygwin* | mingw* | pw32*) |
| 19851 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19852 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19853 | need_version=no |
| 19854 | need_lib_prefix=no |
| 19855 | |
| 19856 | case $GCC,$host_os in |
| 19857 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 19858 | library_names_spec='$libname.dll.a' |
| 19859 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19860 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19861 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 19862 | dldir=$destdir/`dirname \$dlpath`~ |
| 19863 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19864 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19865 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19866 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19867 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19868 | $rm \$dlpath' |
| 19869 | shlibpath_overrides_runpath=yes |
| 19870 | |
| 19871 | case $host_os in |
| 19872 | cygwin*) |
| 19873 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19874 | 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] | 19875 | 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] | 19876 | ;; |
| 19877 | mingw*) |
| 19878 | # MinGW DLLs use traditional 'lib' prefix |
| 19879 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19880 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 19881 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 19882 | # It is most probably a Windows format PATH printed by |
| 19883 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 19884 | # path with ; separators, and with drive letters. We can handle the |
| 19885 | # drive letters (cygwin fileutils understands them), so leave them, |
| 19886 | # especially as we might pass files found there to a mingw objdump, |
| 19887 | # which wouldn't understand a cygwinified path. Ahh. |
| 19888 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19889 | else |
| 19890 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19891 | fi |
| 19892 | ;; |
| 19893 | pw32*) |
| 19894 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19895 | 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] | 19896 | ;; |
| 19897 | esac |
| 19898 | ;; |
| 19899 | |
| 19900 | *) |
| 19901 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 19902 | ;; |
| 19903 | esac |
| 19904 | dynamic_linker='Win32 ld.exe' |
| 19905 | # FIXME: first we should search . and the directory the executable is in |
| 19906 | shlibpath_var=PATH |
| 19907 | ;; |
| 19908 | |
| 19909 | darwin* | rhapsody*) |
| 19910 | dynamic_linker="$host_os dyld" |
| 19911 | version_type=darwin |
| 19912 | need_lib_prefix=no |
| 19913 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19914 | 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] | 19915 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19916 | shlibpath_overrides_runpath=yes |
| 19917 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19918 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19919 | # 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] | 19920 | if test "$GCC" = yes; then |
| 19921 | 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"` |
| 19922 | else |
| 19923 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19924 | fi |
| 19925 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19926 | ;; |
| 19927 | |
| 19928 | dgux*) |
| 19929 | version_type=linux |
| 19930 | need_lib_prefix=no |
| 19931 | need_version=no |
| 19932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19934 | shlibpath_var=LD_LIBRARY_PATH |
| 19935 | ;; |
| 19936 | |
| 19937 | freebsd1*) |
| 19938 | dynamic_linker=no |
| 19939 | ;; |
| 19940 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19941 | kfreebsd*-gnu) |
| 19942 | version_type=linux |
| 19943 | need_lib_prefix=no |
| 19944 | need_version=no |
| 19945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19946 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19947 | shlibpath_var=LD_LIBRARY_PATH |
| 19948 | shlibpath_overrides_runpath=no |
| 19949 | hardcode_into_libs=yes |
| 19950 | dynamic_linker='GNU ld.so' |
| 19951 | ;; |
| 19952 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19953 | freebsd* | dragonfly*) |
| 19954 | # DragonFly does not have aout. When/if they implement a new |
| 19955 | # versioning mechanism, adjust this. |
| 19956 | if test -x /usr/bin/objformat; then |
| 19957 | objformat=`/usr/bin/objformat` |
| 19958 | else |
| 19959 | case $host_os in |
| 19960 | freebsd[123]*) objformat=aout ;; |
| 19961 | *) objformat=elf ;; |
| 19962 | esac |
| 19963 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19964 | version_type=freebsd-$objformat |
| 19965 | case $version_type in |
| 19966 | freebsd-elf*) |
| 19967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19968 | need_version=no |
| 19969 | need_lib_prefix=no |
| 19970 | ;; |
| 19971 | freebsd-*) |
| 19972 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19973 | need_version=yes |
| 19974 | ;; |
| 19975 | esac |
| 19976 | shlibpath_var=LD_LIBRARY_PATH |
| 19977 | case $host_os in |
| 19978 | freebsd2*) |
| 19979 | shlibpath_overrides_runpath=yes |
| 19980 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19981 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19982 | shlibpath_overrides_runpath=yes |
| 19983 | hardcode_into_libs=yes |
| 19984 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19985 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19986 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19987 | shlibpath_overrides_runpath=no |
| 19988 | hardcode_into_libs=yes |
| 19989 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19990 | freebsd*) # from 4.6 on |
| 19991 | shlibpath_overrides_runpath=yes |
| 19992 | hardcode_into_libs=yes |
| 19993 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19994 | esac |
| 19995 | ;; |
| 19996 | |
| 19997 | gnu*) |
| 19998 | version_type=linux |
| 19999 | need_lib_prefix=no |
| 20000 | need_version=no |
| 20001 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20002 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20003 | shlibpath_var=LD_LIBRARY_PATH |
| 20004 | hardcode_into_libs=yes |
| 20005 | ;; |
| 20006 | |
| 20007 | hpux9* | hpux10* | hpux11*) |
| 20008 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20009 | # link against other versions. |
| 20010 | version_type=sunos |
| 20011 | need_lib_prefix=no |
| 20012 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20013 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20014 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20015 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20016 | hardcode_into_libs=yes |
| 20017 | dynamic_linker="$host_os dld.so" |
| 20018 | shlibpath_var=LD_LIBRARY_PATH |
| 20019 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20021 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20022 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20023 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20024 | else |
| 20025 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20026 | fi |
| 20027 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20028 | ;; |
| 20029 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20030 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20031 | hardcode_into_libs=yes |
| 20032 | dynamic_linker="$host_os dld.sl" |
| 20033 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20034 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20036 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20037 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20038 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20039 | ;; |
| 20040 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20041 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20042 | dynamic_linker="$host_os dld.sl" |
| 20043 | shlibpath_var=SHLIB_PATH |
| 20044 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 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 | ;; |
| 20048 | esac |
| 20049 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 20050 | postinstall_cmds='chmod 555 $lib' |
| 20051 | ;; |
| 20052 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20053 | interix3*) |
| 20054 | version_type=linux |
| 20055 | need_lib_prefix=no |
| 20056 | need_version=no |
| 20057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20058 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20059 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20060 | shlibpath_var=LD_LIBRARY_PATH |
| 20061 | shlibpath_overrides_runpath=no |
| 20062 | hardcode_into_libs=yes |
| 20063 | ;; |
| 20064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20065 | irix5* | irix6* | nonstopux*) |
| 20066 | case $host_os in |
| 20067 | nonstopux*) version_type=nonstopux ;; |
| 20068 | *) |
| 20069 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 20070 | version_type=linux |
| 20071 | else |
| 20072 | version_type=irix |
| 20073 | fi ;; |
| 20074 | esac |
| 20075 | need_lib_prefix=no |
| 20076 | need_version=no |
| 20077 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20078 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20079 | case $host_os in |
| 20080 | irix5* | nonstopux*) |
| 20081 | libsuff= shlibsuff= |
| 20082 | ;; |
| 20083 | *) |
| 20084 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20085 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20086 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20087 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20088 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20089 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20090 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20091 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20092 | esac |
| 20093 | ;; |
| 20094 | esac |
| 20095 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20096 | shlibpath_overrides_runpath=no |
| 20097 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20098 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20099 | hardcode_into_libs=yes |
| 20100 | ;; |
| 20101 | |
| 20102 | # No shared lib support for Linux oldld, aout, or coff. |
| 20103 | linux*oldld* | linux*aout* | linux*coff*) |
| 20104 | dynamic_linker=no |
| 20105 | ;; |
| 20106 | |
| 20107 | # This must be Linux ELF. |
| 20108 | linux*) |
| 20109 | version_type=linux |
| 20110 | need_lib_prefix=no |
| 20111 | need_version=no |
| 20112 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20113 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20114 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20115 | shlibpath_var=LD_LIBRARY_PATH |
| 20116 | shlibpath_overrides_runpath=no |
| 20117 | # This implies no fast_install, which is unacceptable. |
| 20118 | # Some rework will be needed to allow for fast_install |
| 20119 | # before this can be enabled. |
| 20120 | hardcode_into_libs=yes |
| 20121 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20122 | # Append ld.so.conf contents to the search path |
| 20123 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20124 | 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] | 20125 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 20126 | fi |
| 20127 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20128 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20129 | # powerpc, because MkLinux only supported shared libraries with the |
| 20130 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20131 | # most powerpc-linux boxes support dynamic linking these days and |
| 20132 | # people can always --disable-shared, the test was removed, and we |
| 20133 | # assume the GNU/Linux dynamic linker is in use. |
| 20134 | dynamic_linker='GNU/Linux ld.so' |
| 20135 | ;; |
| 20136 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20137 | knetbsd*-gnu) |
| 20138 | version_type=linux |
| 20139 | need_lib_prefix=no |
| 20140 | need_version=no |
| 20141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20143 | shlibpath_var=LD_LIBRARY_PATH |
| 20144 | shlibpath_overrides_runpath=no |
| 20145 | hardcode_into_libs=yes |
| 20146 | dynamic_linker='GNU ld.so' |
| 20147 | ;; |
| 20148 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20149 | netbsd*) |
| 20150 | version_type=sunos |
| 20151 | need_lib_prefix=no |
| 20152 | need_version=no |
| 20153 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20155 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20156 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20157 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20158 | 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] | 20159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20160 | dynamic_linker='NetBSD ld.elf_so' |
| 20161 | fi |
| 20162 | shlibpath_var=LD_LIBRARY_PATH |
| 20163 | shlibpath_overrides_runpath=yes |
| 20164 | hardcode_into_libs=yes |
| 20165 | ;; |
| 20166 | |
| 20167 | newsos6) |
| 20168 | version_type=linux |
| 20169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20170 | shlibpath_var=LD_LIBRARY_PATH |
| 20171 | shlibpath_overrides_runpath=yes |
| 20172 | ;; |
| 20173 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20174 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20175 | version_type=linux |
| 20176 | need_lib_prefix=no |
| 20177 | need_version=no |
| 20178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20179 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20180 | shlibpath_var=LD_LIBRARY_PATH |
| 20181 | shlibpath_overrides_runpath=yes |
| 20182 | ;; |
| 20183 | |
| 20184 | openbsd*) |
| 20185 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20186 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20187 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20188 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20189 | case $host_os in |
| 20190 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20191 | *) need_version=no ;; |
| 20192 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20195 | shlibpath_var=LD_LIBRARY_PATH |
| 20196 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20197 | case $host_os in |
| 20198 | openbsd2.[89] | openbsd2.[89].*) |
| 20199 | shlibpath_overrides_runpath=no |
| 20200 | ;; |
| 20201 | *) |
| 20202 | shlibpath_overrides_runpath=yes |
| 20203 | ;; |
| 20204 | esac |
| 20205 | else |
| 20206 | shlibpath_overrides_runpath=yes |
| 20207 | fi |
| 20208 | ;; |
| 20209 | |
| 20210 | os2*) |
| 20211 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20212 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20213 | need_lib_prefix=no |
| 20214 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20215 | dynamic_linker='OS/2 ld.exe' |
| 20216 | shlibpath_var=LIBPATH |
| 20217 | ;; |
| 20218 | |
| 20219 | osf3* | osf4* | osf5*) |
| 20220 | version_type=osf |
| 20221 | need_lib_prefix=no |
| 20222 | need_version=no |
| 20223 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20224 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20225 | shlibpath_var=LD_LIBRARY_PATH |
| 20226 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20227 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20228 | ;; |
| 20229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20230 | solaris*) |
| 20231 | version_type=linux |
| 20232 | need_lib_prefix=no |
| 20233 | need_version=no |
| 20234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20235 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20236 | shlibpath_var=LD_LIBRARY_PATH |
| 20237 | shlibpath_overrides_runpath=yes |
| 20238 | hardcode_into_libs=yes |
| 20239 | # ldd complains unless libraries are executable |
| 20240 | postinstall_cmds='chmod +x $lib' |
| 20241 | ;; |
| 20242 | |
| 20243 | sunos4*) |
| 20244 | version_type=sunos |
| 20245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20246 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20247 | shlibpath_var=LD_LIBRARY_PATH |
| 20248 | shlibpath_overrides_runpath=yes |
| 20249 | if test "$with_gnu_ld" = yes; then |
| 20250 | need_lib_prefix=no |
| 20251 | fi |
| 20252 | need_version=yes |
| 20253 | ;; |
| 20254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20255 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20256 | version_type=linux |
| 20257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20259 | shlibpath_var=LD_LIBRARY_PATH |
| 20260 | case $host_vendor in |
| 20261 | sni) |
| 20262 | shlibpath_overrides_runpath=no |
| 20263 | need_lib_prefix=no |
| 20264 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 20265 | runpath_var=LD_RUN_PATH |
| 20266 | ;; |
| 20267 | siemens) |
| 20268 | need_lib_prefix=no |
| 20269 | ;; |
| 20270 | motorola) |
| 20271 | need_lib_prefix=no |
| 20272 | need_version=no |
| 20273 | shlibpath_overrides_runpath=no |
| 20274 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20275 | ;; |
| 20276 | esac |
| 20277 | ;; |
| 20278 | |
| 20279 | sysv4*MP*) |
| 20280 | if test -d /usr/nec ;then |
| 20281 | version_type=linux |
| 20282 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20283 | soname_spec='$libname${shared_ext}.$major' |
| 20284 | shlibpath_var=LD_LIBRARY_PATH |
| 20285 | fi |
| 20286 | ;; |
| 20287 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20288 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20289 | version_type=freebsd-elf |
| 20290 | need_lib_prefix=no |
| 20291 | need_version=no |
| 20292 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20293 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20294 | shlibpath_var=LD_LIBRARY_PATH |
| 20295 | hardcode_into_libs=yes |
| 20296 | if test "$with_gnu_ld" = yes; then |
| 20297 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20298 | shlibpath_overrides_runpath=no |
| 20299 | else |
| 20300 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20301 | shlibpath_overrides_runpath=yes |
| 20302 | case $host_os in |
| 20303 | sco3.2v5*) |
| 20304 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20305 | ;; |
| 20306 | esac |
| 20307 | fi |
| 20308 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20309 | ;; |
| 20310 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20311 | uts4*) |
| 20312 | version_type=linux |
| 20313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20314 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20315 | shlibpath_var=LD_LIBRARY_PATH |
| 20316 | ;; |
| 20317 | |
| 20318 | *) |
| 20319 | dynamic_linker=no |
| 20320 | ;; |
| 20321 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20322 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 20323 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20324 | test "$dynamic_linker" = no && can_build_shared=no |
| 20325 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20326 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20327 | if test "$GCC" = yes; then |
| 20328 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20329 | fi |
| 20330 | |
| 20331 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 20332 | 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] | 20333 | hardcode_action_CXX= |
| 20334 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 20335 | test -n "$runpath_var_CXX" || \ |
| 20336 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20337 | |
| 20338 | # We can hardcode non-existant directories. |
| 20339 | if test "$hardcode_direct_CXX" != no && |
| 20340 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20341 | # have to relink, otherwise we might link with an installed library |
| 20342 | # when we should be linking with a yet-to-be-installed one |
| 20343 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20344 | test "$hardcode_minus_L_CXX" != no; then |
| 20345 | # Linking always hardcodes the temporary library directory. |
| 20346 | hardcode_action_CXX=relink |
| 20347 | else |
| 20348 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20349 | hardcode_action_CXX=immediate |
| 20350 | fi |
| 20351 | else |
| 20352 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20353 | # directories. |
| 20354 | hardcode_action_CXX=unsupported |
| 20355 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20356 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 20357 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20358 | |
| 20359 | if test "$hardcode_action_CXX" = relink; then |
| 20360 | # Fast installation is not supported |
| 20361 | enable_fast_install=no |
| 20362 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20363 | test "$enable_shared" = no; then |
| 20364 | # Fast installation is not necessary |
| 20365 | enable_fast_install=needless |
| 20366 | fi |
| 20367 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20368 | |
| 20369 | # The else clause should only fire when bootstrapping the |
| 20370 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 20371 | # with your package, and you will get complaints that there are |
| 20372 | # no rules to generate ltmain.sh. |
| 20373 | if test -f "$ltmain"; then |
| 20374 | # See if we are running on zsh, and set the options which allow our commands through |
| 20375 | # without removal of \ escapes. |
| 20376 | if test -n "${ZSH_VERSION+set}" ; then |
| 20377 | setopt NO_GLOB_SUBST |
| 20378 | fi |
| 20379 | # Now quote all the things that may contain metacharacters while being |
| 20380 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 20381 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20382 | 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] | 20383 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20384 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 20385 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 20386 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 20387 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 20388 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 20389 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 20390 | old_postinstall_cmds old_postuninstall_cmds \ |
| 20391 | compiler_CXX \ |
| 20392 | CC_CXX \ |
| 20393 | LD_CXX \ |
| 20394 | lt_prog_compiler_wl_CXX \ |
| 20395 | lt_prog_compiler_pic_CXX \ |
| 20396 | lt_prog_compiler_static_CXX \ |
| 20397 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 20398 | export_dynamic_flag_spec_CXX \ |
| 20399 | thread_safe_flag_spec_CXX \ |
| 20400 | whole_archive_flag_spec_CXX \ |
| 20401 | enable_shared_with_static_runtimes_CXX \ |
| 20402 | old_archive_cmds_CXX \ |
| 20403 | old_archive_from_new_cmds_CXX \ |
| 20404 | predep_objects_CXX \ |
| 20405 | postdep_objects_CXX \ |
| 20406 | predeps_CXX \ |
| 20407 | postdeps_CXX \ |
| 20408 | compiler_lib_search_path_CXX \ |
| 20409 | archive_cmds_CXX \ |
| 20410 | archive_expsym_cmds_CXX \ |
| 20411 | postinstall_cmds_CXX \ |
| 20412 | postuninstall_cmds_CXX \ |
| 20413 | old_archive_from_expsyms_cmds_CXX \ |
| 20414 | allow_undefined_flag_CXX \ |
| 20415 | no_undefined_flag_CXX \ |
| 20416 | export_symbols_cmds_CXX \ |
| 20417 | hardcode_libdir_flag_spec_CXX \ |
| 20418 | hardcode_libdir_flag_spec_ld_CXX \ |
| 20419 | hardcode_libdir_separator_CXX \ |
| 20420 | hardcode_automatic_CXX \ |
| 20421 | module_cmds_CXX \ |
| 20422 | module_expsym_cmds_CXX \ |
| 20423 | lt_cv_prog_compiler_c_o_CXX \ |
| 20424 | exclude_expsyms_CXX \ |
| 20425 | include_expsyms_CXX; do |
| 20426 | |
| 20427 | case $var in |
| 20428 | old_archive_cmds_CXX | \ |
| 20429 | old_archive_from_new_cmds_CXX | \ |
| 20430 | archive_cmds_CXX | \ |
| 20431 | archive_expsym_cmds_CXX | \ |
| 20432 | module_cmds_CXX | \ |
| 20433 | module_expsym_cmds_CXX | \ |
| 20434 | old_archive_from_expsyms_cmds_CXX | \ |
| 20435 | export_symbols_cmds_CXX | \ |
| 20436 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 20437 | postinstall_cmds | postuninstall_cmds | \ |
| 20438 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 20439 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 20440 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20441 | 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] | 20442 | ;; |
| 20443 | *) |
| 20444 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 20445 | ;; |
| 20446 | esac |
| 20447 | done |
| 20448 | |
| 20449 | case $lt_echo in |
| 20450 | *'\$0 --fallback-echo"') |
| 20451 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 20452 | ;; |
| 20453 | esac |
| 20454 | |
| 20455 | cfgfile="$ofile" |
| 20456 | |
| 20457 | cat <<__EOF__ >> "$cfgfile" |
| 20458 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 20459 | |
| 20460 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20461 | |
| 20462 | # Shell to use when invoking shell scripts. |
| 20463 | SHELL=$lt_SHELL |
| 20464 | |
| 20465 | # Whether or not to build shared libraries. |
| 20466 | build_libtool_libs=$enable_shared |
| 20467 | |
| 20468 | # Whether or not to build static libraries. |
| 20469 | build_old_libs=$enable_static |
| 20470 | |
| 20471 | # Whether or not to add -lc for building shared libraries. |
| 20472 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 20473 | |
| 20474 | # Whether or not to disallow shared libs when runtime libs are static |
| 20475 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 20476 | |
| 20477 | # Whether or not to optimize for fast installation. |
| 20478 | fast_install=$enable_fast_install |
| 20479 | |
| 20480 | # The host system. |
| 20481 | host_alias=$host_alias |
| 20482 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20483 | host_os=$host_os |
| 20484 | |
| 20485 | # The build system. |
| 20486 | build_alias=$build_alias |
| 20487 | build=$build |
| 20488 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20489 | |
| 20490 | # An echo program that does not interpret backslashes. |
| 20491 | echo=$lt_echo |
| 20492 | |
| 20493 | # The archiver. |
| 20494 | AR=$lt_AR |
| 20495 | AR_FLAGS=$lt_AR_FLAGS |
| 20496 | |
| 20497 | # A C compiler. |
| 20498 | LTCC=$lt_LTCC |
| 20499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20500 | # LTCC compiler flags. |
| 20501 | LTCFLAGS=$lt_LTCFLAGS |
| 20502 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20503 | # A language-specific compiler. |
| 20504 | CC=$lt_compiler_CXX |
| 20505 | |
| 20506 | # Is the compiler the GNU C compiler? |
| 20507 | with_gcc=$GCC_CXX |
| 20508 | |
| 20509 | # An ERE matcher. |
| 20510 | EGREP=$lt_EGREP |
| 20511 | |
| 20512 | # The linker used to build libraries. |
| 20513 | LD=$lt_LD_CXX |
| 20514 | |
| 20515 | # Whether we need hard or soft links. |
| 20516 | LN_S=$lt_LN_S |
| 20517 | |
| 20518 | # A BSD-compatible nm program. |
| 20519 | NM=$lt_NM |
| 20520 | |
| 20521 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20522 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20523 | |
| 20524 | # Used to examine libraries when file_magic_cmd begins "file" |
| 20525 | MAGIC_CMD=$MAGIC_CMD |
| 20526 | |
| 20527 | # Used on cygwin: DLL creation program. |
| 20528 | DLLTOOL="$DLLTOOL" |
| 20529 | |
| 20530 | # Used on cygwin: object dumper. |
| 20531 | OBJDUMP="$OBJDUMP" |
| 20532 | |
| 20533 | # Used on cygwin: assembler. |
| 20534 | AS="$AS" |
| 20535 | |
| 20536 | # The name of the directory that contains temporary libtool files. |
| 20537 | objdir=$objdir |
| 20538 | |
| 20539 | # How to create reloadable object files. |
| 20540 | reload_flag=$lt_reload_flag |
| 20541 | reload_cmds=$lt_reload_cmds |
| 20542 | |
| 20543 | # How to pass a linker flag through the compiler. |
| 20544 | wl=$lt_lt_prog_compiler_wl_CXX |
| 20545 | |
| 20546 | # Object file suffix (normally "o"). |
| 20547 | objext="$ac_objext" |
| 20548 | |
| 20549 | # Old archive suffix (normally "a"). |
| 20550 | libext="$libext" |
| 20551 | |
| 20552 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20553 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20554 | |
| 20555 | # Executable file suffix (normally ""). |
| 20556 | exeext="$exeext" |
| 20557 | |
| 20558 | # Additional compiler flags for building library objects. |
| 20559 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 20560 | pic_mode=$pic_mode |
| 20561 | |
| 20562 | # What is the maximum length of a command? |
| 20563 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 20564 | |
| 20565 | # Does compiler simultaneously support -c and -o options? |
| 20566 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 20567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20568 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20569 | need_locks=$lt_need_locks |
| 20570 | |
| 20571 | # Do we need the lib prefix for modules? |
| 20572 | need_lib_prefix=$need_lib_prefix |
| 20573 | |
| 20574 | # Do we need a version for libraries? |
| 20575 | need_version=$need_version |
| 20576 | |
| 20577 | # Whether dlopen is supported. |
| 20578 | dlopen_support=$enable_dlopen |
| 20579 | |
| 20580 | # Whether dlopen of programs is supported. |
| 20581 | dlopen_self=$enable_dlopen_self |
| 20582 | |
| 20583 | # Whether dlopen of statically linked programs is supported. |
| 20584 | dlopen_self_static=$enable_dlopen_self_static |
| 20585 | |
| 20586 | # Compiler flag to prevent dynamic linking. |
| 20587 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 20588 | |
| 20589 | # Compiler flag to turn off builtin functions. |
| 20590 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 20591 | |
| 20592 | # Compiler flag to allow reflexive dlopens. |
| 20593 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 20594 | |
| 20595 | # Compiler flag to generate shared objects directly from archives. |
| 20596 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 20597 | |
| 20598 | # Compiler flag to generate thread-safe objects. |
| 20599 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 20600 | |
| 20601 | # Library versioning type. |
| 20602 | version_type=$version_type |
| 20603 | |
| 20604 | # Format of library name prefix. |
| 20605 | libname_spec=$lt_libname_spec |
| 20606 | |
| 20607 | # List of archive names. First name is the real one, the rest are links. |
| 20608 | # The last name is the one that the linker finds with -lNAME. |
| 20609 | library_names_spec=$lt_library_names_spec |
| 20610 | |
| 20611 | # The coded name of the library, if different from the real name. |
| 20612 | soname_spec=$lt_soname_spec |
| 20613 | |
| 20614 | # Commands used to build and install an old-style archive. |
| 20615 | RANLIB=$lt_RANLIB |
| 20616 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 20617 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20618 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20619 | |
| 20620 | # Create an old-style archive from a shared archive. |
| 20621 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 20622 | |
| 20623 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20624 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 20625 | |
| 20626 | # Commands used to build and install a shared archive. |
| 20627 | archive_cmds=$lt_archive_cmds_CXX |
| 20628 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 20629 | postinstall_cmds=$lt_postinstall_cmds |
| 20630 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20631 | |
| 20632 | # Commands used to build a loadable module (assumed same as above if empty) |
| 20633 | module_cmds=$lt_module_cmds_CXX |
| 20634 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 20635 | |
| 20636 | # Commands to strip libraries. |
| 20637 | old_striplib=$lt_old_striplib |
| 20638 | striplib=$lt_striplib |
| 20639 | |
| 20640 | # Dependencies to place before the objects being linked to create a |
| 20641 | # shared library. |
| 20642 | predep_objects=$lt_predep_objects_CXX |
| 20643 | |
| 20644 | # Dependencies to place after the objects being linked to create a |
| 20645 | # shared library. |
| 20646 | postdep_objects=$lt_postdep_objects_CXX |
| 20647 | |
| 20648 | # Dependencies to place before the objects being linked to create a |
| 20649 | # shared library. |
| 20650 | predeps=$lt_predeps_CXX |
| 20651 | |
| 20652 | # Dependencies to place after the objects being linked to create a |
| 20653 | # shared library. |
| 20654 | postdeps=$lt_postdeps_CXX |
| 20655 | |
| 20656 | # The library search path used internally by the compiler when linking |
| 20657 | # a shared library. |
| 20658 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 20659 | |
| 20660 | # Method to check whether dependent libraries are shared objects. |
| 20661 | deplibs_check_method=$lt_deplibs_check_method |
| 20662 | |
| 20663 | # Command to use when deplibs_check_method == file_magic. |
| 20664 | file_magic_cmd=$lt_file_magic_cmd |
| 20665 | |
| 20666 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20667 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 20668 | |
| 20669 | # Flag that forces no undefined symbols. |
| 20670 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 20671 | |
| 20672 | # Commands used to finish a libtool library installation in a directory. |
| 20673 | finish_cmds=$lt_finish_cmds |
| 20674 | |
| 20675 | # Same as above, but a single script fragment to be evaled but not shown. |
| 20676 | finish_eval=$lt_finish_eval |
| 20677 | |
| 20678 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20679 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20680 | |
| 20681 | # Transform the output of nm in a proper C declaration |
| 20682 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20683 | |
| 20684 | # Transform the output of nm in a C name address pair |
| 20685 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20686 | |
| 20687 | # This is the shared library runtime path variable. |
| 20688 | runpath_var=$runpath_var |
| 20689 | |
| 20690 | # This is the shared library path variable. |
| 20691 | shlibpath_var=$shlibpath_var |
| 20692 | |
| 20693 | # Is shlibpath searched before the hard-coded library search path? |
| 20694 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20695 | |
| 20696 | # How to hardcode a shared library path into an executable. |
| 20697 | hardcode_action=$hardcode_action_CXX |
| 20698 | |
| 20699 | # Whether we should hardcode library paths into libraries. |
| 20700 | hardcode_into_libs=$hardcode_into_libs |
| 20701 | |
| 20702 | # Flag to hardcode \$libdir into a binary during linking. |
| 20703 | # This must work even if \$libdir does not exist. |
| 20704 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 20705 | |
| 20706 | # If ld is used when linking, flag to hardcode \$libdir into |
| 20707 | # a binary during linking. This must work even if \$libdir does |
| 20708 | # not exist. |
| 20709 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 20710 | |
| 20711 | # Whether we need a single -rpath flag with a separated argument. |
| 20712 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 20713 | |
| 20714 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 20715 | # resulting binary. |
| 20716 | hardcode_direct=$hardcode_direct_CXX |
| 20717 | |
| 20718 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 20719 | # resulting binary. |
| 20720 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 20721 | |
| 20722 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 20723 | # the resulting binary. |
| 20724 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 20725 | |
| 20726 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 20727 | # and all subsequent libraries and executables linked against it. |
| 20728 | hardcode_automatic=$hardcode_automatic_CXX |
| 20729 | |
| 20730 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20731 | # restored at relink time. |
| 20732 | variables_saved_for_relink="$variables_saved_for_relink" |
| 20733 | |
| 20734 | # Whether libtool must link a program against all its dependency libraries. |
| 20735 | link_all_deplibs=$link_all_deplibs_CXX |
| 20736 | |
| 20737 | # Compile-time system search path for libraries |
| 20738 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20739 | |
| 20740 | # Run-time system search path for libraries |
| 20741 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20742 | |
| 20743 | # Fix the shell variable \$srcfile for the compiler. |
| 20744 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 20745 | |
| 20746 | # Set to yes if exported symbols are required. |
| 20747 | always_export_symbols=$always_export_symbols_CXX |
| 20748 | |
| 20749 | # The commands to list exported symbols. |
| 20750 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 20751 | |
| 20752 | # The commands to extract the exported symbol list from a shared archive. |
| 20753 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20754 | |
| 20755 | # Symbols that should not be listed in the preloaded symbols. |
| 20756 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 20757 | |
| 20758 | # Symbols that must always be exported. |
| 20759 | include_expsyms=$lt_include_expsyms_CXX |
| 20760 | |
| 20761 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 20762 | |
| 20763 | __EOF__ |
| 20764 | |
| 20765 | |
| 20766 | else |
| 20767 | # If there is no Makefile yet, we rely on a make rule to execute |
| 20768 | # `config.status --recheck' to rerun these tests and create the |
| 20769 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20770 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 20771 | if test -f "$ltmain_in"; then |
| 20772 | test -f Makefile && make "$ltmain" |
| 20773 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20774 | fi |
| 20775 | |
| 20776 | |
| 20777 | ac_ext=c |
| 20778 | ac_cpp='$CPP $CPPFLAGS' |
| 20779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20782 | |
| 20783 | CC=$lt_save_CC |
| 20784 | LDCXX=$LD |
| 20785 | LD=$lt_save_LD |
| 20786 | GCC=$lt_save_GCC |
| 20787 | with_gnu_ldcxx=$with_gnu_ld |
| 20788 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20789 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20790 | lt_cv_path_LD=$lt_save_path_LD |
| 20791 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20792 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20793 | |
| 20794 | else |
| 20795 | tagname="" |
| 20796 | fi |
| 20797 | ;; |
| 20798 | |
| 20799 | F77) |
| 20800 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 20801 | |
| 20802 | ac_ext=f |
| 20803 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 20804 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20805 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 20806 | |
| 20807 | |
| 20808 | archive_cmds_need_lc_F77=no |
| 20809 | allow_undefined_flag_F77= |
| 20810 | always_export_symbols_F77=no |
| 20811 | archive_expsym_cmds_F77= |
| 20812 | export_dynamic_flag_spec_F77= |
| 20813 | hardcode_direct_F77=no |
| 20814 | hardcode_libdir_flag_spec_F77= |
| 20815 | hardcode_libdir_flag_spec_ld_F77= |
| 20816 | hardcode_libdir_separator_F77= |
| 20817 | hardcode_minus_L_F77=no |
| 20818 | hardcode_automatic_F77=no |
| 20819 | module_cmds_F77= |
| 20820 | module_expsym_cmds_F77= |
| 20821 | link_all_deplibs_F77=unknown |
| 20822 | old_archive_cmds_F77=$old_archive_cmds |
| 20823 | no_undefined_flag_F77= |
| 20824 | whole_archive_flag_spec_F77= |
| 20825 | enable_shared_with_static_runtimes_F77=no |
| 20826 | |
| 20827 | # Source file extension for f77 test sources. |
| 20828 | ac_ext=f |
| 20829 | |
| 20830 | # Object file extension for compiled f77 test sources. |
| 20831 | objext=o |
| 20832 | objext_F77=$objext |
| 20833 | |
| 20834 | # Code to be used in simple compile tests |
| 20835 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 20836 | |
| 20837 | # Code to be used in simple link tests |
| 20838 | lt_simple_link_test_code=" program t\n end\n" |
| 20839 | |
| 20840 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 20841 | |
| 20842 | # If no C compiler was specified, use CC. |
| 20843 | LTCC=${LTCC-"$CC"} |
| 20844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20845 | # If no C compiler flags were specified, use CFLAGS. |
| 20846 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 20847 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20848 | # Allow CC to be a program name with arguments. |
| 20849 | compiler=$CC |
| 20850 | |
| 20851 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20852 | # save warnings/boilerplate of simple test code |
| 20853 | ac_outfile=conftest.$ac_objext |
| 20854 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 20855 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20856 | _lt_compiler_boilerplate=`cat conftest.err` |
| 20857 | $rm conftest* |
| 20858 | |
| 20859 | ac_outfile=conftest.$ac_objext |
| 20860 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 20861 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 20862 | _lt_linker_boilerplate=`cat conftest.err` |
| 20863 | $rm conftest* |
| 20864 | |
| 20865 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20866 | # Allow CC to be a program name with arguments. |
| 20867 | lt_save_CC="$CC" |
| 20868 | CC=${F77-"f77"} |
| 20869 | compiler=$CC |
| 20870 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20871 | for cc_temp in $compiler""; do |
| 20872 | case $cc_temp in |
| 20873 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20874 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20875 | \-*) ;; |
| 20876 | *) break;; |
| 20877 | esac |
| 20878 | done |
| 20879 | 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] | 20880 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20882 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 20883 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 20884 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 20885 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 20886 | |
| 20887 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 20888 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20889 | test "$can_build_shared" = "no" && enable_shared=no |
| 20890 | |
| 20891 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 20892 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20893 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20894 | aix3*) |
| 20895 | test "$enable_shared" = yes && enable_static=no |
| 20896 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20897 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20898 | postinstall_cmds='$RANLIB $lib' |
| 20899 | fi |
| 20900 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20901 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20902 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 20903 | test "$enable_shared" = yes && enable_static=no |
| 20904 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20905 | ;; |
| 20906 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20907 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 20908 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20910 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 20911 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20912 | # Make sure either enable_shared or enable_static is yes. |
| 20913 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20914 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 20915 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20916 | |
| 20917 | GCC_F77="$G77" |
| 20918 | LD_F77="$LD" |
| 20919 | |
| 20920 | lt_prog_compiler_wl_F77= |
| 20921 | lt_prog_compiler_pic_F77= |
| 20922 | lt_prog_compiler_static_F77= |
| 20923 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20924 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20925 | 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] | 20926 | |
| 20927 | if test "$GCC" = yes; then |
| 20928 | lt_prog_compiler_wl_F77='-Wl,' |
| 20929 | lt_prog_compiler_static_F77='-static' |
| 20930 | |
| 20931 | case $host_os in |
| 20932 | aix*) |
| 20933 | # All AIX code is PIC. |
| 20934 | if test "$host_cpu" = ia64; then |
| 20935 | # AIX 5 now supports IA64 processor |
| 20936 | lt_prog_compiler_static_F77='-Bstatic' |
| 20937 | fi |
| 20938 | ;; |
| 20939 | |
| 20940 | amigaos*) |
| 20941 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20942 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20943 | # like `-m68040'. |
| 20944 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20945 | ;; |
| 20946 | |
| 20947 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20948 | # PIC is the default for these OSes. |
| 20949 | ;; |
| 20950 | |
| 20951 | mingw* | pw32* | os2*) |
| 20952 | # This hack is so that the source file can tell whether it is being |
| 20953 | # built for inclusion in a dll (and should export symbols for example). |
| 20954 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20955 | ;; |
| 20956 | |
| 20957 | darwin* | rhapsody*) |
| 20958 | # PIC is the default on this platform |
| 20959 | # Common symbols not allowed in MH_DYLIB files |
| 20960 | lt_prog_compiler_pic_F77='-fno-common' |
| 20961 | ;; |
| 20962 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20963 | interix3*) |
| 20964 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20965 | # Instead, we relocate shared libraries at runtime. |
| 20966 | ;; |
| 20967 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20968 | msdosdjgpp*) |
| 20969 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20970 | # on systems that don't support them. |
| 20971 | lt_prog_compiler_can_build_shared_F77=no |
| 20972 | enable_shared=no |
| 20973 | ;; |
| 20974 | |
| 20975 | sysv4*MP*) |
| 20976 | if test -d /usr/nec; then |
| 20977 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20978 | fi |
| 20979 | ;; |
| 20980 | |
| 20981 | hpux*) |
| 20982 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20983 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20984 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20985 | hppa*64*|ia64*) |
| 20986 | # +Z the default |
| 20987 | ;; |
| 20988 | *) |
| 20989 | lt_prog_compiler_pic_F77='-fPIC' |
| 20990 | ;; |
| 20991 | esac |
| 20992 | ;; |
| 20993 | |
| 20994 | *) |
| 20995 | lt_prog_compiler_pic_F77='-fPIC' |
| 20996 | ;; |
| 20997 | esac |
| 20998 | else |
| 20999 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 21000 | case $host_os in |
| 21001 | aix*) |
| 21002 | lt_prog_compiler_wl_F77='-Wl,' |
| 21003 | if test "$host_cpu" = ia64; then |
| 21004 | # AIX 5 now supports IA64 processor |
| 21005 | lt_prog_compiler_static_F77='-Bstatic' |
| 21006 | else |
| 21007 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 21008 | fi |
| 21009 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21010 | darwin*) |
| 21011 | # PIC is the default on this platform |
| 21012 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21013 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21014 | xlc*) |
| 21015 | lt_prog_compiler_pic_F77='-qnocommon' |
| 21016 | lt_prog_compiler_wl_F77='-Wl,' |
| 21017 | ;; |
| 21018 | esac |
| 21019 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21020 | |
| 21021 | mingw* | pw32* | os2*) |
| 21022 | # This hack is so that the source file can tell whether it is being |
| 21023 | # built for inclusion in a dll (and should export symbols for example). |
| 21024 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 21025 | ;; |
| 21026 | |
| 21027 | hpux9* | hpux10* | hpux11*) |
| 21028 | lt_prog_compiler_wl_F77='-Wl,' |
| 21029 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 21030 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21031 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21032 | hppa*64*|ia64*) |
| 21033 | # +Z the default |
| 21034 | ;; |
| 21035 | *) |
| 21036 | lt_prog_compiler_pic_F77='+Z' |
| 21037 | ;; |
| 21038 | esac |
| 21039 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 21040 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 21041 | ;; |
| 21042 | |
| 21043 | irix5* | irix6* | nonstopux*) |
| 21044 | lt_prog_compiler_wl_F77='-Wl,' |
| 21045 | # PIC (with -KPIC) is the default. |
| 21046 | lt_prog_compiler_static_F77='-non_shared' |
| 21047 | ;; |
| 21048 | |
| 21049 | newsos6) |
| 21050 | lt_prog_compiler_pic_F77='-KPIC' |
| 21051 | lt_prog_compiler_static_F77='-Bstatic' |
| 21052 | ;; |
| 21053 | |
| 21054 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21055 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21056 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21057 | lt_prog_compiler_wl_F77='-Wl,' |
| 21058 | lt_prog_compiler_pic_F77='-KPIC' |
| 21059 | lt_prog_compiler_static_F77='-static' |
| 21060 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21061 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 21062 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 21063 | # which looks to be a dead project) |
| 21064 | lt_prog_compiler_wl_F77='-Wl,' |
| 21065 | lt_prog_compiler_pic_F77='-fpic' |
| 21066 | lt_prog_compiler_static_F77='-Bstatic' |
| 21067 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21068 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21069 | lt_prog_compiler_wl_F77='-Wl,' |
| 21070 | # All Alpha code is PIC. |
| 21071 | lt_prog_compiler_static_F77='-non_shared' |
| 21072 | ;; |
| 21073 | esac |
| 21074 | ;; |
| 21075 | |
| 21076 | osf3* | osf4* | osf5*) |
| 21077 | lt_prog_compiler_wl_F77='-Wl,' |
| 21078 | # All OSF/1 code is PIC. |
| 21079 | lt_prog_compiler_static_F77='-non_shared' |
| 21080 | ;; |
| 21081 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21082 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21083 | lt_prog_compiler_pic_F77='-KPIC' |
| 21084 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21085 | case $cc_basename in |
| 21086 | f77* | f90* | f95*) |
| 21087 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 21088 | *) |
| 21089 | lt_prog_compiler_wl_F77='-Wl,';; |
| 21090 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21091 | ;; |
| 21092 | |
| 21093 | sunos4*) |
| 21094 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 21095 | lt_prog_compiler_pic_F77='-PIC' |
| 21096 | lt_prog_compiler_static_F77='-Bstatic' |
| 21097 | ;; |
| 21098 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21099 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21100 | lt_prog_compiler_wl_F77='-Wl,' |
| 21101 | lt_prog_compiler_pic_F77='-KPIC' |
| 21102 | lt_prog_compiler_static_F77='-Bstatic' |
| 21103 | ;; |
| 21104 | |
| 21105 | sysv4*MP*) |
| 21106 | if test -d /usr/nec ;then |
| 21107 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 21108 | lt_prog_compiler_static_F77='-Bstatic' |
| 21109 | fi |
| 21110 | ;; |
| 21111 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21112 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 21113 | lt_prog_compiler_wl_F77='-Wl,' |
| 21114 | lt_prog_compiler_pic_F77='-KPIC' |
| 21115 | lt_prog_compiler_static_F77='-Bstatic' |
| 21116 | ;; |
| 21117 | |
| 21118 | unicos*) |
| 21119 | lt_prog_compiler_wl_F77='-Wl,' |
| 21120 | lt_prog_compiler_can_build_shared_F77=no |
| 21121 | ;; |
| 21122 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21123 | uts4*) |
| 21124 | lt_prog_compiler_pic_F77='-pic' |
| 21125 | lt_prog_compiler_static_F77='-Bstatic' |
| 21126 | ;; |
| 21127 | |
| 21128 | *) |
| 21129 | lt_prog_compiler_can_build_shared_F77=no |
| 21130 | ;; |
| 21131 | esac |
| 21132 | fi |
| 21133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21134 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 21135 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21136 | |
| 21137 | # |
| 21138 | # Check to make sure the PIC flag actually works. |
| 21139 | # |
| 21140 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21141 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21142 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 21143 | 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] | 21144 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 21145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21146 | else |
| 21147 | lt_prog_compiler_pic_works_F77=no |
| 21148 | ac_outfile=conftest.$ac_objext |
| 21149 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21150 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 21151 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21152 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21153 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21154 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21155 | # The option is referenced via a variable to avoid confusing sed. |
| 21156 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21157 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21158 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21159 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 21160 | (eval echo "\"\$as_me:21160: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21161 | (eval "$lt_compile" 2>conftest.err) |
| 21162 | ac_status=$? |
| 21163 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 21164 | echo "$as_me:21164: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21165 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 21166 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21167 | # So say no if there are warnings other than the usual output. |
| 21168 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 21169 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21170 | 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] | 21171 | lt_prog_compiler_pic_works_F77=yes |
| 21172 | fi |
| 21173 | fi |
| 21174 | $rm conftest* |
| 21175 | |
| 21176 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21177 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 21178 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21179 | |
| 21180 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 21181 | case $lt_prog_compiler_pic_F77 in |
| 21182 | "" | " "*) ;; |
| 21183 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 21184 | esac |
| 21185 | else |
| 21186 | lt_prog_compiler_pic_F77= |
| 21187 | lt_prog_compiler_can_build_shared_F77=no |
| 21188 | fi |
| 21189 | |
| 21190 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21191 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21192 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 21193 | *djgpp*) |
| 21194 | lt_prog_compiler_pic_F77= |
| 21195 | ;; |
| 21196 | *) |
| 21197 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 21198 | ;; |
| 21199 | esac |
| 21200 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21201 | # |
| 21202 | # Check to make sure the static flag actually works. |
| 21203 | # |
| 21204 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 21205 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 21206 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 21207 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 21208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21209 | else |
| 21210 | lt_prog_compiler_static_works_F77=no |
| 21211 | save_LDFLAGS="$LDFLAGS" |
| 21212 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 21213 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 21214 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 21215 | # The linker can only warn and ignore the option if not recognized |
| 21216 | # So say no if there are warnings |
| 21217 | if test -s conftest.err; then |
| 21218 | # Append any errors to the config.log. |
| 21219 | cat conftest.err 1>&5 |
| 21220 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 21221 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 21222 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 21223 | lt_prog_compiler_static_works_F77=yes |
| 21224 | fi |
| 21225 | else |
| 21226 | lt_prog_compiler_static_works_F77=yes |
| 21227 | fi |
| 21228 | fi |
| 21229 | $rm conftest* |
| 21230 | LDFLAGS="$save_LDFLAGS" |
| 21231 | |
| 21232 | fi |
| 21233 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 21234 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 21235 | |
| 21236 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 21237 | : |
| 21238 | else |
| 21239 | lt_prog_compiler_static_F77= |
| 21240 | fi |
| 21241 | |
| 21242 | |
| 21243 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 21244 | 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] | 21245 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 21246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21247 | else |
| 21248 | lt_cv_prog_compiler_c_o_F77=no |
| 21249 | $rm -r conftest 2>/dev/null |
| 21250 | mkdir conftest |
| 21251 | cd conftest |
| 21252 | mkdir out |
| 21253 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21254 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21255 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 21256 | # Insert the option either (1) after the last *FLAGS variable, or |
| 21257 | # (2) before a word containing "conftest.", or (3) at the end. |
| 21258 | # Note that $ac_compile itself does not contain backslashes and begins |
| 21259 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 21260 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21261 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21262 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 21263 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 21264 | (eval echo "\"\$as_me:21264: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21265 | (eval "$lt_compile" 2>out/conftest.err) |
| 21266 | ac_status=$? |
| 21267 | cat out/conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 21268 | echo "$as_me:21268: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21269 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 21270 | then |
| 21271 | # The compiler can only warn and ignore the option if not recognized |
| 21272 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21273 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 21274 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 21275 | 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] | 21276 | lt_cv_prog_compiler_c_o_F77=yes |
| 21277 | fi |
| 21278 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21279 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21280 | $rm conftest* |
| 21281 | # SGI C++ compiler will create directory out/ii_files/ for |
| 21282 | # template instantiation |
| 21283 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 21284 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21285 | cd .. |
| 21286 | rmdir conftest |
| 21287 | $rm conftest* |
| 21288 | |
| 21289 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21290 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 21291 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21292 | |
| 21293 | |
| 21294 | hard_links="nottested" |
| 21295 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 21296 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21297 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 21298 | 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] | 21299 | hard_links=yes |
| 21300 | $rm conftest* |
| 21301 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 21302 | touch conftest.a |
| 21303 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 21304 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21305 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 21306 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21307 | if test "$hard_links" = no; then |
| 21308 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 21309 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 21310 | need_locks=warn |
| 21311 | fi |
| 21312 | else |
| 21313 | need_locks=no |
| 21314 | fi |
| 21315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21316 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 21317 | 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] | 21318 | |
| 21319 | runpath_var= |
| 21320 | allow_undefined_flag_F77= |
| 21321 | enable_shared_with_static_runtimes_F77=no |
| 21322 | archive_cmds_F77= |
| 21323 | archive_expsym_cmds_F77= |
| 21324 | old_archive_From_new_cmds_F77= |
| 21325 | old_archive_from_expsyms_cmds_F77= |
| 21326 | export_dynamic_flag_spec_F77= |
| 21327 | whole_archive_flag_spec_F77= |
| 21328 | thread_safe_flag_spec_F77= |
| 21329 | hardcode_libdir_flag_spec_F77= |
| 21330 | hardcode_libdir_flag_spec_ld_F77= |
| 21331 | hardcode_libdir_separator_F77= |
| 21332 | hardcode_direct_F77=no |
| 21333 | hardcode_minus_L_F77=no |
| 21334 | hardcode_shlibpath_var_F77=unsupported |
| 21335 | link_all_deplibs_F77=unknown |
| 21336 | hardcode_automatic_F77=no |
| 21337 | module_cmds_F77= |
| 21338 | module_expsym_cmds_F77= |
| 21339 | always_export_symbols_F77=no |
| 21340 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 21341 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 21342 | # included in the symbol list |
| 21343 | include_expsyms_F77= |
| 21344 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 21345 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 21346 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 21347 | # as well as any symbol that contains `d'. |
| 21348 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 21349 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 21350 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 21351 | # the symbol is explicitly referenced. Since portable code cannot |
| 21352 | # rely on this symbol name, it's probably fine to never include it in |
| 21353 | # preloaded symbol tables. |
| 21354 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21355 | # Just being paranoid about ensuring that cc_basename is set. |
| 21356 | for cc_temp in $compiler""; do |
| 21357 | case $cc_temp in |
| 21358 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 21359 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 21360 | \-*) ;; |
| 21361 | *) break;; |
| 21362 | esac |
| 21363 | done |
| 21364 | 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] | 21365 | |
| 21366 | case $host_os in |
| 21367 | cygwin* | mingw* | pw32*) |
| 21368 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 21369 | # When not using gcc, we currently assume that we are using |
| 21370 | # Microsoft Visual C++. |
| 21371 | if test "$GCC" != yes; then |
| 21372 | with_gnu_ld=no |
| 21373 | fi |
| 21374 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21375 | interix*) |
| 21376 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 21377 | with_gnu_ld=yes |
| 21378 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21379 | openbsd*) |
| 21380 | with_gnu_ld=no |
| 21381 | ;; |
| 21382 | esac |
| 21383 | |
| 21384 | ld_shlibs_F77=yes |
| 21385 | if test "$with_gnu_ld" = yes; then |
| 21386 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 21387 | wlarc='${wl}' |
| 21388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21389 | # Set some defaults for GNU ld with shared library support. These |
| 21390 | # are reset later if shared libraries are not supported. Putting them |
| 21391 | # here allows them to be overridden if necessary. |
| 21392 | runpath_var=LD_RUN_PATH |
| 21393 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 21394 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 21395 | # ancient GNU ld didn't support --whole-archive et. al. |
| 21396 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 21397 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 21398 | else |
| 21399 | whole_archive_flag_spec_F77= |
| 21400 | fi |
| 21401 | supports_anon_versioning=no |
| 21402 | case `$LD -v 2>/dev/null` in |
| 21403 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 21404 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 21405 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 21406 | *\ 2.11.*) ;; # other 2.11 versions |
| 21407 | *) supports_anon_versioning=yes ;; |
| 21408 | esac |
| 21409 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21410 | # See if GNU ld supports shared libraries. |
| 21411 | case $host_os in |
| 21412 | aix3* | aix4* | aix5*) |
| 21413 | # On AIX/PPC, the GNU linker is very broken |
| 21414 | if test "$host_cpu" != ia64; then |
| 21415 | ld_shlibs_F77=no |
| 21416 | cat <<EOF 1>&2 |
| 21417 | |
| 21418 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 21419 | *** to be unable to reliably create shared libraries on AIX. |
| 21420 | *** Therefore, libtool is disabling shared libraries support. If you |
| 21421 | *** really care for shared libraries, you may want to modify your PATH |
| 21422 | *** so that a non-GNU linker is found, and then restart. |
| 21423 | |
| 21424 | EOF |
| 21425 | fi |
| 21426 | ;; |
| 21427 | |
| 21428 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21429 | 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] | 21430 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21431 | hardcode_minus_L_F77=yes |
| 21432 | |
| 21433 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 21434 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 21435 | # to version 4, is to share data among multiple programs linked |
| 21436 | # with the same dynamic library. Since this doesn't match the |
| 21437 | # behavior of shared libraries on other platforms, we can't use |
| 21438 | # them. |
| 21439 | ld_shlibs_F77=no |
| 21440 | ;; |
| 21441 | |
| 21442 | beos*) |
| 21443 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21444 | allow_undefined_flag_F77=unsupported |
| 21445 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 21446 | # support --undefined. This deserves some investigation. FIXME |
| 21447 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21448 | else |
| 21449 | ld_shlibs_F77=no |
| 21450 | fi |
| 21451 | ;; |
| 21452 | |
| 21453 | cygwin* | mingw* | pw32*) |
| 21454 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 21455 | # as there is no search path for DLLs. |
| 21456 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21457 | allow_undefined_flag_F77=unsupported |
| 21458 | always_export_symbols_F77=no |
| 21459 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21460 | 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] | 21461 | |
| 21462 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21463 | 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] | 21464 | # If the export-symbols file already is a .def file (1st line |
| 21465 | # is EXPORTS), use it as is; otherwise, prepend... |
| 21466 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 21467 | cp $export_symbols $output_objdir/$soname.def; |
| 21468 | else |
| 21469 | echo EXPORTS > $output_objdir/$soname.def; |
| 21470 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21471 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21472 | $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] | 21473 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21474 | ld_shlibs_F77=no |
| 21475 | fi |
| 21476 | ;; |
| 21477 | |
| 21478 | interix3*) |
| 21479 | hardcode_direct_F77=no |
| 21480 | hardcode_shlibpath_var_F77=no |
| 21481 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21482 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21483 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 21484 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 21485 | # default) and relocated if they conflict, which is a slow very memory |
| 21486 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 21487 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 21488 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 21489 | 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' |
| 21490 | 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' |
| 21491 | ;; |
| 21492 | |
| 21493 | linux*) |
| 21494 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21495 | tmp_addflag= |
| 21496 | case $cc_basename,$host_cpu in |
| 21497 | pgcc*) # Portland Group C compiler |
| 21498 | 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' |
| 21499 | tmp_addflag=' $pic_flag' |
| 21500 | ;; |
| 21501 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 21502 | 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' |
| 21503 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 21504 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 21505 | tmp_addflag=' -i_dynamic' ;; |
| 21506 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 21507 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 21508 | ifc* | ifort*) # Intel Fortran compiler |
| 21509 | tmp_addflag=' -nofor_main' ;; |
| 21510 | esac |
| 21511 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21512 | |
| 21513 | if test $supports_anon_versioning = yes; then |
| 21514 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 21515 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 21516 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 21517 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 21518 | fi |
| 21519 | else |
| 21520 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21521 | fi |
| 21522 | ;; |
| 21523 | |
| 21524 | netbsd*) |
| 21525 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21526 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 21527 | wlarc= |
| 21528 | else |
| 21529 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21530 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21531 | fi |
| 21532 | ;; |
| 21533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21534 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21535 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 21536 | ld_shlibs_F77=no |
| 21537 | cat <<EOF 1>&2 |
| 21538 | |
| 21539 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 21540 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 21541 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21542 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 21543 | *** your PATH or compiler configuration so that the native linker is |
| 21544 | *** used, and then restart. |
| 21545 | |
| 21546 | EOF |
| 21547 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21548 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21549 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21550 | else |
| 21551 | ld_shlibs_F77=no |
| 21552 | fi |
| 21553 | ;; |
| 21554 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21555 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 21556 | case `$LD -v 2>&1` in |
| 21557 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 21558 | ld_shlibs_F77=no |
| 21559 | cat <<_LT_EOF 1>&2 |
| 21560 | |
| 21561 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 21562 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 21563 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 21564 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 21565 | *** your PATH or compiler configuration so that the native linker is |
| 21566 | *** used, and then restart. |
| 21567 | |
| 21568 | _LT_EOF |
| 21569 | ;; |
| 21570 | *) |
| 21571 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21572 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 21573 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 21574 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 21575 | else |
| 21576 | ld_shlibs_F77=no |
| 21577 | fi |
| 21578 | ;; |
| 21579 | esac |
| 21580 | ;; |
| 21581 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21582 | sunos4*) |
| 21583 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21584 | wlarc= |
| 21585 | hardcode_direct_F77=yes |
| 21586 | hardcode_shlibpath_var_F77=no |
| 21587 | ;; |
| 21588 | |
| 21589 | *) |
| 21590 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 21591 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 21592 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 21593 | else |
| 21594 | ld_shlibs_F77=no |
| 21595 | fi |
| 21596 | ;; |
| 21597 | esac |
| 21598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21599 | if test "$ld_shlibs_F77" = no; then |
| 21600 | runpath_var= |
| 21601 | hardcode_libdir_flag_spec_F77= |
| 21602 | export_dynamic_flag_spec_F77= |
| 21603 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21604 | fi |
| 21605 | else |
| 21606 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 21607 | case $host_os in |
| 21608 | aix3*) |
| 21609 | allow_undefined_flag_F77=unsupported |
| 21610 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21611 | 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] | 21612 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 21613 | # are no directories specified by -L. |
| 21614 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21615 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21616 | # Neither direct hardcoding nor static linking is supported with a |
| 21617 | # broken collect2. |
| 21618 | hardcode_direct_F77=unsupported |
| 21619 | fi |
| 21620 | ;; |
| 21621 | |
| 21622 | aix4* | aix5*) |
| 21623 | if test "$host_cpu" = ia64; then |
| 21624 | # On IA64, the linker does run time linking by default, so we don't |
| 21625 | # have to do anything special. |
| 21626 | aix_use_runtimelinking=no |
| 21627 | exp_sym_flag='-Bexport' |
| 21628 | no_entry_flag="" |
| 21629 | else |
| 21630 | # If we're using GNU nm, then we don't want the "-C" option. |
| 21631 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 21632 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 21633 | 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' |
| 21634 | else |
| 21635 | 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' |
| 21636 | fi |
| 21637 | aix_use_runtimelinking=no |
| 21638 | |
| 21639 | # Test if we are trying to use run time linking or normal |
| 21640 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 21641 | # need to do runtime linking. |
| 21642 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 21643 | for ld_flag in $LDFLAGS; do |
| 21644 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 21645 | aix_use_runtimelinking=yes |
| 21646 | break |
| 21647 | fi |
| 21648 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21649 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21650 | esac |
| 21651 | |
| 21652 | exp_sym_flag='-bexport' |
| 21653 | no_entry_flag='-bnoentry' |
| 21654 | fi |
| 21655 | |
| 21656 | # When large executables or shared objects are built, AIX ld can |
| 21657 | # have problems creating the table of contents. If linking a library |
| 21658 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 21659 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 21660 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 21661 | |
| 21662 | archive_cmds_F77='' |
| 21663 | hardcode_direct_F77=yes |
| 21664 | hardcode_libdir_separator_F77=':' |
| 21665 | link_all_deplibs_F77=yes |
| 21666 | |
| 21667 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21668 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21669 | # We only want to do this on AIX 4.2 and lower, the check |
| 21670 | # below for broken collect2 doesn't work under 4.3+ |
| 21671 | collect2name=`${CC} -print-prog-name=collect2` |
| 21672 | if test -f "$collect2name" && \ |
| 21673 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 21674 | then |
| 21675 | # We have reworked collect2 |
| 21676 | hardcode_direct_F77=yes |
| 21677 | else |
| 21678 | # We have old collect2 |
| 21679 | hardcode_direct_F77=unsupported |
| 21680 | # It fails to find uninstalled libraries when the uninstalled |
| 21681 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 21682 | # to unsupported forces relinking |
| 21683 | hardcode_minus_L_F77=yes |
| 21684 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21685 | hardcode_libdir_separator_F77= |
| 21686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21687 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21688 | esac |
| 21689 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21690 | if test "$aix_use_runtimelinking" = yes; then |
| 21691 | shared_flag="$shared_flag "'${wl}-G' |
| 21692 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21693 | else |
| 21694 | # not using gcc |
| 21695 | if test "$host_cpu" = ia64; then |
| 21696 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 21697 | # chokes on -Wl,-G. The following line is correct: |
| 21698 | shared_flag='-G' |
| 21699 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21700 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21701 | shared_flag='${wl}-G' |
| 21702 | else |
| 21703 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21704 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21705 | fi |
| 21706 | fi |
| 21707 | |
| 21708 | # It seems that -bexpall does not export symbols beginning with |
| 21709 | # underscore (_), so it is better to generate a list of symbols to export. |
| 21710 | always_export_symbols_F77=yes |
| 21711 | if test "$aix_use_runtimelinking" = yes; then |
| 21712 | # Warning - without using the other runtime loading flags (-brtl), |
| 21713 | # -berok will link without error, but may produce a broken library. |
| 21714 | allow_undefined_flag_F77='-berok' |
| 21715 | # Determine the default libpath from the value encoded in an empty executable. |
| 21716 | cat >conftest.$ac_ext <<_ACEOF |
| 21717 | program main |
| 21718 | |
| 21719 | end |
| 21720 | _ACEOF |
| 21721 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21722 | if { (ac_try="$ac_link" |
| 21723 | case "(($ac_try" in |
| 21724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21725 | *) ac_try_echo=$ac_try;; |
| 21726 | esac |
| 21727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21728 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21729 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21731 | rm -f conftest.er1 |
| 21732 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21734 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21735 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21736 | { (case "(($ac_try" in |
| 21737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21738 | *) ac_try_echo=$ac_try;; |
| 21739 | esac |
| 21740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21741 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21742 | ac_status=$? |
| 21743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21744 | (exit $ac_status); }; } && |
| 21745 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21752 | ac_status=$? |
| 21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21754 | (exit $ac_status); }; }; then |
| 21755 | |
| 21756 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21757 | }'` |
| 21758 | # Check for a 64-bit object if we didn't find anything. |
| 21759 | 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; } |
| 21760 | }'`; fi |
| 21761 | else |
| 21762 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21764 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21767 | |
| 21768 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21769 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21770 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21771 | |
| 21772 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21773 | 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] | 21774 | else |
| 21775 | if test "$host_cpu" = ia64; then |
| 21776 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 21777 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21778 | 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] | 21779 | else |
| 21780 | # Determine the default libpath from the value encoded in an empty executable. |
| 21781 | cat >conftest.$ac_ext <<_ACEOF |
| 21782 | program main |
| 21783 | |
| 21784 | end |
| 21785 | _ACEOF |
| 21786 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21787 | if { (ac_try="$ac_link" |
| 21788 | case "(($ac_try" in |
| 21789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21790 | *) ac_try_echo=$ac_try;; |
| 21791 | esac |
| 21792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21793 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21794 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21796 | rm -f conftest.er1 |
| 21797 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21799 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21800 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 21801 | { (case "(($ac_try" in |
| 21802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 21803 | *) ac_try_echo=$ac_try;; |
| 21804 | esac |
| 21805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 21806 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21807 | ac_status=$? |
| 21808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21809 | (exit $ac_status); }; } && |
| 21810 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21817 | ac_status=$? |
| 21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21819 | (exit $ac_status); }; }; then |
| 21820 | |
| 21821 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 21822 | }'` |
| 21823 | # Check for a 64-bit object if we didn't find anything. |
| 21824 | 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; } |
| 21825 | }'`; fi |
| 21826 | else |
| 21827 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 21828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21829 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21830 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21832 | |
| 21833 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21834 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21835 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 21836 | |
| 21837 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 21838 | # Warning - without using the other run time loading flags, |
| 21839 | # -berok will link without error, but may produce a broken library. |
| 21840 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 21841 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21842 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21843 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21844 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21845 | # This is similar to how AIX traditionally builds its shared libraries. |
| 21846 | 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] | 21847 | fi |
| 21848 | fi |
| 21849 | ;; |
| 21850 | |
| 21851 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21852 | 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] | 21853 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21854 | hardcode_minus_L_F77=yes |
| 21855 | # see comment about different semantics on the GNU ld section |
| 21856 | ld_shlibs_F77=no |
| 21857 | ;; |
| 21858 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21859 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21860 | export_dynamic_flag_spec_F77=-rdynamic |
| 21861 | ;; |
| 21862 | |
| 21863 | cygwin* | mingw* | pw32*) |
| 21864 | # When not using gcc, we currently assume that we are using |
| 21865 | # Microsoft Visual C++. |
| 21866 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 21867 | # no search path for DLLs. |
| 21868 | hardcode_libdir_flag_spec_F77=' ' |
| 21869 | allow_undefined_flag_F77=unsupported |
| 21870 | # Tell ltmain to make .lib files, not .a files. |
| 21871 | libext=lib |
| 21872 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21873 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21874 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21875 | 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] | 21876 | # The linker will automatically build a .lib file if we build a DLL. |
| 21877 | old_archive_From_new_cmds_F77='true' |
| 21878 | # FIXME: Should let the user specify the lib program. |
| 21879 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21880 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21881 | enable_shared_with_static_runtimes_F77=yes |
| 21882 | ;; |
| 21883 | |
| 21884 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21885 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21886 | rhapsody* | darwin1.[012]) |
| 21887 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 21888 | ;; |
| 21889 | *) # Darwin 1.3 on |
| 21890 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 21891 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21892 | else |
| 21893 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 21894 | 10.[012]) |
| 21895 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 21896 | ;; |
| 21897 | 10.*) |
| 21898 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 21899 | ;; |
| 21900 | esac |
| 21901 | fi |
| 21902 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21903 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21904 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21905 | hardcode_direct_F77=no |
| 21906 | hardcode_automatic_F77=yes |
| 21907 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21908 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21909 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21910 | if test "$GCC" = yes ; then |
| 21911 | output_verbose_link_cmd='echo' |
| 21912 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 21913 | 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] | 21914 | # 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] | 21915 | 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}' |
| 21916 | 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] | 21917 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21918 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21919 | xlc*) |
| 21920 | output_verbose_link_cmd='echo' |
| 21921 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 21922 | 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] | 21923 | # 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] | 21924 | 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}' |
| 21925 | 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] | 21926 | ;; |
| 21927 | *) |
| 21928 | ld_shlibs_F77=no |
| 21929 | ;; |
| 21930 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21931 | fi |
| 21932 | ;; |
| 21933 | |
| 21934 | dgux*) |
| 21935 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21936 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21937 | hardcode_shlibpath_var_F77=no |
| 21938 | ;; |
| 21939 | |
| 21940 | freebsd1*) |
| 21941 | ld_shlibs_F77=no |
| 21942 | ;; |
| 21943 | |
| 21944 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 21945 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 21946 | # does not break anything, and helps significantly (at the cost of a little |
| 21947 | # extra space). |
| 21948 | freebsd2.2*) |
| 21949 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 21950 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21951 | hardcode_direct_F77=yes |
| 21952 | hardcode_shlibpath_var_F77=no |
| 21953 | ;; |
| 21954 | |
| 21955 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21956 | freebsd2*) |
| 21957 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21958 | hardcode_direct_F77=yes |
| 21959 | hardcode_minus_L_F77=yes |
| 21960 | hardcode_shlibpath_var_F77=no |
| 21961 | ;; |
| 21962 | |
| 21963 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21964 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21965 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21966 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21967 | hardcode_direct_F77=yes |
| 21968 | hardcode_shlibpath_var_F77=no |
| 21969 | ;; |
| 21970 | |
| 21971 | hpux9*) |
| 21972 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21973 | 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] | 21974 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21975 | 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] | 21976 | fi |
| 21977 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21978 | hardcode_libdir_separator_F77=: |
| 21979 | hardcode_direct_F77=yes |
| 21980 | |
| 21981 | # hardcode_minus_L: Not really in the search PATH, |
| 21982 | # but as the default location of the library. |
| 21983 | hardcode_minus_L_F77=yes |
| 21984 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21985 | ;; |
| 21986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21987 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21988 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21989 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21990 | else |
| 21991 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21992 | fi |
| 21993 | if test "$with_gnu_ld" = no; then |
| 21994 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21995 | hardcode_libdir_separator_F77=: |
| 21996 | |
| 21997 | hardcode_direct_F77=yes |
| 21998 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21999 | |
| 22000 | # hardcode_minus_L: Not really in the search PATH, |
| 22001 | # but as the default location of the library. |
| 22002 | hardcode_minus_L_F77=yes |
| 22003 | fi |
| 22004 | ;; |
| 22005 | |
| 22006 | hpux11*) |
| 22007 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 22008 | case $host_cpu in |
| 22009 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22010 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22011 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22012 | ia64*) |
| 22013 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 22014 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22015 | *) |
| 22016 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 22017 | ;; |
| 22018 | esac |
| 22019 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22020 | case $host_cpu in |
| 22021 | hppa*64*) |
| 22022 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22023 | ;; |
| 22024 | ia64*) |
| 22025 | 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] | 22026 | ;; |
| 22027 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22028 | 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] | 22029 | ;; |
| 22030 | esac |
| 22031 | fi |
| 22032 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22033 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 22034 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22036 | case $host_cpu in |
| 22037 | hppa*64*|ia64*) |
| 22038 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 22039 | hardcode_direct_F77=no |
| 22040 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22041 | ;; |
| 22042 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22043 | hardcode_direct_F77=yes |
| 22044 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22045 | |
| 22046 | # hardcode_minus_L: Not really in the search PATH, |
| 22047 | # but as the default location of the library. |
| 22048 | hardcode_minus_L_F77=yes |
| 22049 | ;; |
| 22050 | esac |
| 22051 | fi |
| 22052 | ;; |
| 22053 | |
| 22054 | irix5* | irix6* | nonstopux*) |
| 22055 | if test "$GCC" = yes; then |
| 22056 | 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' |
| 22057 | else |
| 22058 | 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' |
| 22059 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 22060 | fi |
| 22061 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22062 | hardcode_libdir_separator_F77=: |
| 22063 | link_all_deplibs_F77=yes |
| 22064 | ;; |
| 22065 | |
| 22066 | netbsd*) |
| 22067 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22068 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 22069 | else |
| 22070 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 22071 | fi |
| 22072 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22073 | hardcode_direct_F77=yes |
| 22074 | hardcode_shlibpath_var_F77=no |
| 22075 | ;; |
| 22076 | |
| 22077 | newsos6) |
| 22078 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22079 | hardcode_direct_F77=yes |
| 22080 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22081 | hardcode_libdir_separator_F77=: |
| 22082 | hardcode_shlibpath_var_F77=no |
| 22083 | ;; |
| 22084 | |
| 22085 | openbsd*) |
| 22086 | hardcode_direct_F77=yes |
| 22087 | hardcode_shlibpath_var_F77=no |
| 22088 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22089 | 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] | 22090 | 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] | 22091 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22092 | export_dynamic_flag_spec_F77='${wl}-E' |
| 22093 | else |
| 22094 | case $host_os in |
| 22095 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 22096 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 22097 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22098 | ;; |
| 22099 | *) |
| 22100 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 22101 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 22102 | ;; |
| 22103 | esac |
| 22104 | fi |
| 22105 | ;; |
| 22106 | |
| 22107 | os2*) |
| 22108 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22109 | hardcode_minus_L_F77=yes |
| 22110 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22111 | 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] | 22112 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 22113 | ;; |
| 22114 | |
| 22115 | osf3*) |
| 22116 | if test "$GCC" = yes; then |
| 22117 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22118 | 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' |
| 22119 | else |
| 22120 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22121 | 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' |
| 22122 | fi |
| 22123 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22124 | hardcode_libdir_separator_F77=: |
| 22125 | ;; |
| 22126 | |
| 22127 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 22128 | if test "$GCC" = yes; then |
| 22129 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 22130 | 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' |
| 22131 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 22132 | else |
| 22133 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 22134 | 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] | 22135 | 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] | 22136 | $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] | 22137 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22138 | # Both c and cxx compiler support -rpath directly |
| 22139 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 22140 | fi |
| 22141 | hardcode_libdir_separator_F77=: |
| 22142 | ;; |
| 22143 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22144 | solaris*) |
| 22145 | no_undefined_flag_F77=' -z text' |
| 22146 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22147 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22148 | 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] | 22149 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22150 | $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] | 22151 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22152 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22153 | 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] | 22154 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 22155 | $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] | 22156 | fi |
| 22157 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 22158 | hardcode_shlibpath_var_F77=no |
| 22159 | case $host_os in |
| 22160 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22161 | *) |
| 22162 | # The compiler driver will combine linker options so we |
| 22163 | # cannot just pass the convience library names through |
| 22164 | # without $wl, iff we do not link with $LD. |
| 22165 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 22166 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 22167 | case $wlarc in |
| 22168 | '') |
| 22169 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 22170 | *) |
| 22171 | 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' ;; |
| 22172 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22173 | esac |
| 22174 | link_all_deplibs_F77=yes |
| 22175 | ;; |
| 22176 | |
| 22177 | sunos4*) |
| 22178 | if test "x$host_vendor" = xsequent; then |
| 22179 | # Use $CC to link under sequent, because it throws in some extra .o |
| 22180 | # files that make .init and .fini sections work. |
| 22181 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22182 | else |
| 22183 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 22184 | fi |
| 22185 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22186 | hardcode_direct_F77=yes |
| 22187 | hardcode_minus_L_F77=yes |
| 22188 | hardcode_shlibpath_var_F77=no |
| 22189 | ;; |
| 22190 | |
| 22191 | sysv4) |
| 22192 | case $host_vendor in |
| 22193 | sni) |
| 22194 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22195 | hardcode_direct_F77=yes # is this really true??? |
| 22196 | ;; |
| 22197 | siemens) |
| 22198 | ## LD is ld it makes a PLAMLIB |
| 22199 | ## CC just makes a GrossModule. |
| 22200 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 22201 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 22202 | hardcode_direct_F77=no |
| 22203 | ;; |
| 22204 | motorola) |
| 22205 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22206 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 22207 | ;; |
| 22208 | esac |
| 22209 | runpath_var='LD_RUN_PATH' |
| 22210 | hardcode_shlibpath_var_F77=no |
| 22211 | ;; |
| 22212 | |
| 22213 | sysv4.3*) |
| 22214 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22215 | hardcode_shlibpath_var_F77=no |
| 22216 | export_dynamic_flag_spec_F77='-Bexport' |
| 22217 | ;; |
| 22218 | |
| 22219 | sysv4*MP*) |
| 22220 | if test -d /usr/nec; then |
| 22221 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22222 | hardcode_shlibpath_var_F77=no |
| 22223 | runpath_var=LD_RUN_PATH |
| 22224 | hardcode_runpath_var=yes |
| 22225 | ld_shlibs_F77=yes |
| 22226 | fi |
| 22227 | ;; |
| 22228 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22229 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 22230 | no_undefined_flag_F77='${wl}-z,text' |
| 22231 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22232 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22233 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22234 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22235 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22236 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22237 | 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] | 22238 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22239 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22240 | 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] | 22241 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22242 | ;; |
| 22243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22244 | sysv5* | sco3.2v5* | sco5v6*) |
| 22245 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 22246 | # link with -lc, and that would cause any symbols used from libc to |
| 22247 | # always be unresolved, which means just about no library would |
| 22248 | # ever link correctly. If we're not using GNU ld we use -z text |
| 22249 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 22250 | # as -z defs. |
| 22251 | no_undefined_flag_F77='${wl}-z,text' |
| 22252 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 22253 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22254 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22255 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 22256 | hardcode_libdir_separator_F77=':' |
| 22257 | link_all_deplibs_F77=yes |
| 22258 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22259 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22260 | |
| 22261 | if test "$GCC" = yes; then |
| 22262 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22263 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22264 | else |
| 22265 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22266 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 22267 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22268 | ;; |
| 22269 | |
| 22270 | uts4*) |
| 22271 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 22272 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 22273 | hardcode_shlibpath_var_F77=no |
| 22274 | ;; |
| 22275 | |
| 22276 | *) |
| 22277 | ld_shlibs_F77=no |
| 22278 | ;; |
| 22279 | esac |
| 22280 | fi |
| 22281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22282 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 22283 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22284 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 22285 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22286 | # |
| 22287 | # Do we need to explicitly link libc? |
| 22288 | # |
| 22289 | case "x$archive_cmds_need_lc_F77" in |
| 22290 | x|xyes) |
| 22291 | # Assume -lc should be added |
| 22292 | archive_cmds_need_lc_F77=yes |
| 22293 | |
| 22294 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 22295 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22296 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22297 | # FIXME: we may have to deal with multi-command sequences. |
| 22298 | ;; |
| 22299 | '$CC '*) |
| 22300 | # Test whether the compiler implicitly links with -lc since on some |
| 22301 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 22302 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22303 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 22304 | 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] | 22305 | $rm conftest* |
| 22306 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22307 | |
| 22308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 22309 | (eval $ac_compile) 2>&5 |
| 22310 | ac_status=$? |
| 22311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22312 | (exit $ac_status); } 2>conftest.err; then |
| 22313 | soname=conftest |
| 22314 | lib=conftest |
| 22315 | libobjs=conftest.$ac_objext |
| 22316 | deplibs= |
| 22317 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22318 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22319 | compiler_flags=-v |
| 22320 | linker_flags=-v |
| 22321 | verstring= |
| 22322 | output_objdir=. |
| 22323 | libname=conftest |
| 22324 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 22325 | allow_undefined_flag_F77= |
| 22326 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 22327 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 22328 | ac_status=$? |
| 22329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 22330 | (exit $ac_status); } |
| 22331 | then |
| 22332 | archive_cmds_need_lc_F77=no |
| 22333 | else |
| 22334 | archive_cmds_need_lc_F77=yes |
| 22335 | fi |
| 22336 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 22337 | else |
| 22338 | cat conftest.err 1>&5 |
| 22339 | fi |
| 22340 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22341 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 22342 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22343 | ;; |
| 22344 | esac |
| 22345 | fi |
| 22346 | ;; |
| 22347 | esac |
| 22348 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22349 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 22350 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22351 | library_names_spec= |
| 22352 | libname_spec='lib$name' |
| 22353 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22354 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22355 | postinstall_cmds= |
| 22356 | postuninstall_cmds= |
| 22357 | finish_cmds= |
| 22358 | finish_eval= |
| 22359 | shlibpath_var= |
| 22360 | shlibpath_overrides_runpath=unknown |
| 22361 | version_type=none |
| 22362 | dynamic_linker="$host_os ld.so" |
| 22363 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 22364 | if test "$GCC" = yes; then |
| 22365 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22366 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 22367 | # if the path contains ";" then we assume it to be the separator |
| 22368 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 22369 | # assumed that no part of a normal pathname contains ";" but that should |
| 22370 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 22371 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22372 | else |
| 22373 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22374 | fi |
| 22375 | else |
| 22376 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 22377 | fi |
| 22378 | need_lib_prefix=unknown |
| 22379 | hardcode_into_libs=no |
| 22380 | |
| 22381 | # when you set need_version to no, make sure it does not cause -set_version |
| 22382 | # flags to be left without arguments |
| 22383 | need_version=unknown |
| 22384 | |
| 22385 | case $host_os in |
| 22386 | aix3*) |
| 22387 | version_type=linux |
| 22388 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 22389 | shlibpath_var=LIBPATH |
| 22390 | |
| 22391 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 22392 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22393 | ;; |
| 22394 | |
| 22395 | aix4* | aix5*) |
| 22396 | version_type=linux |
| 22397 | need_lib_prefix=no |
| 22398 | need_version=no |
| 22399 | hardcode_into_libs=yes |
| 22400 | if test "$host_cpu" = ia64; then |
| 22401 | # AIX 5 supports IA64 |
| 22402 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 22403 | shlibpath_var=LD_LIBRARY_PATH |
| 22404 | else |
| 22405 | # With GCC up to 2.95.x, collect2 would create an import file |
| 22406 | # for dependence libraries. The import file would start with |
| 22407 | # the line `#! .'. This would cause the generated library to |
| 22408 | # depend on `.', always an invalid library. This was fixed in |
| 22409 | # development snapshots of GCC prior to 3.0. |
| 22410 | case $host_os in |
| 22411 | aix4 | aix4.[01] | aix4.[01].*) |
| 22412 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 22413 | echo ' yes ' |
| 22414 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 22415 | : |
| 22416 | else |
| 22417 | can_build_shared=no |
| 22418 | fi |
| 22419 | ;; |
| 22420 | esac |
| 22421 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 22422 | # soname into executable. Probably we can add versioning support to |
| 22423 | # collect2, so additional links can be useful in future. |
| 22424 | if test "$aix_use_runtimelinking" = yes; then |
| 22425 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 22426 | # instead of lib<name>.a to let people know that these are not |
| 22427 | # typical AIX shared libraries. |
| 22428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22429 | else |
| 22430 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 22431 | # and later when we are not doing run time linking. |
| 22432 | library_names_spec='${libname}${release}.a $libname.a' |
| 22433 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22434 | fi |
| 22435 | shlibpath_var=LIBPATH |
| 22436 | fi |
| 22437 | ;; |
| 22438 | |
| 22439 | amigaos*) |
| 22440 | library_names_spec='$libname.ixlibrary $libname.a' |
| 22441 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22442 | 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] | 22443 | ;; |
| 22444 | |
| 22445 | beos*) |
| 22446 | library_names_spec='${libname}${shared_ext}' |
| 22447 | dynamic_linker="$host_os ld.so" |
| 22448 | shlibpath_var=LIBRARY_PATH |
| 22449 | ;; |
| 22450 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22451 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22452 | version_type=linux |
| 22453 | need_version=no |
| 22454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22455 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22456 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 22457 | shlibpath_var=LD_LIBRARY_PATH |
| 22458 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 22459 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 22460 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 22461 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 22462 | # libtool to hard-code these into programs |
| 22463 | ;; |
| 22464 | |
| 22465 | cygwin* | mingw* | pw32*) |
| 22466 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22467 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22468 | need_version=no |
| 22469 | need_lib_prefix=no |
| 22470 | |
| 22471 | case $GCC,$host_os in |
| 22472 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 22473 | library_names_spec='$libname.dll.a' |
| 22474 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22475 | postinstall_cmds='base_file=`basename \${file}`~ |
| 22476 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 22477 | dldir=$destdir/`dirname \$dlpath`~ |
| 22478 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22479 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 22480 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 22481 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 22482 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22483 | $rm \$dlpath' |
| 22484 | shlibpath_overrides_runpath=yes |
| 22485 | |
| 22486 | case $host_os in |
| 22487 | cygwin*) |
| 22488 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 22489 | 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] | 22490 | 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] | 22491 | ;; |
| 22492 | mingw*) |
| 22493 | # MinGW DLLs use traditional 'lib' prefix |
| 22494 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 22495 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 22496 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 22497 | # It is most probably a Windows format PATH printed by |
| 22498 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 22499 | # path with ; separators, and with drive letters. We can handle the |
| 22500 | # drive letters (cygwin fileutils understands them), so leave them, |
| 22501 | # especially as we might pass files found there to a mingw objdump, |
| 22502 | # which wouldn't understand a cygwinified path. Ahh. |
| 22503 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 22504 | else |
| 22505 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 22506 | fi |
| 22507 | ;; |
| 22508 | pw32*) |
| 22509 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22510 | 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] | 22511 | ;; |
| 22512 | esac |
| 22513 | ;; |
| 22514 | |
| 22515 | *) |
| 22516 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 22517 | ;; |
| 22518 | esac |
| 22519 | dynamic_linker='Win32 ld.exe' |
| 22520 | # FIXME: first we should search . and the directory the executable is in |
| 22521 | shlibpath_var=PATH |
| 22522 | ;; |
| 22523 | |
| 22524 | darwin* | rhapsody*) |
| 22525 | dynamic_linker="$host_os dyld" |
| 22526 | version_type=darwin |
| 22527 | need_lib_prefix=no |
| 22528 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22529 | 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] | 22530 | soname_spec='${libname}${release}${major}$shared_ext' |
| 22531 | shlibpath_overrides_runpath=yes |
| 22532 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22533 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22534 | # 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] | 22535 | if test "$GCC" = yes; then |
| 22536 | 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"` |
| 22537 | else |
| 22538 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22539 | fi |
| 22540 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 22541 | ;; |
| 22542 | |
| 22543 | dgux*) |
| 22544 | version_type=linux |
| 22545 | need_lib_prefix=no |
| 22546 | need_version=no |
| 22547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 22548 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22549 | shlibpath_var=LD_LIBRARY_PATH |
| 22550 | ;; |
| 22551 | |
| 22552 | freebsd1*) |
| 22553 | dynamic_linker=no |
| 22554 | ;; |
| 22555 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22556 | kfreebsd*-gnu) |
| 22557 | version_type=linux |
| 22558 | need_lib_prefix=no |
| 22559 | need_version=no |
| 22560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22562 | shlibpath_var=LD_LIBRARY_PATH |
| 22563 | shlibpath_overrides_runpath=no |
| 22564 | hardcode_into_libs=yes |
| 22565 | dynamic_linker='GNU ld.so' |
| 22566 | ;; |
| 22567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22568 | freebsd* | dragonfly*) |
| 22569 | # DragonFly does not have aout. When/if they implement a new |
| 22570 | # versioning mechanism, adjust this. |
| 22571 | if test -x /usr/bin/objformat; then |
| 22572 | objformat=`/usr/bin/objformat` |
| 22573 | else |
| 22574 | case $host_os in |
| 22575 | freebsd[123]*) objformat=aout ;; |
| 22576 | *) objformat=elf ;; |
| 22577 | esac |
| 22578 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22579 | version_type=freebsd-$objformat |
| 22580 | case $version_type in |
| 22581 | freebsd-elf*) |
| 22582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22583 | need_version=no |
| 22584 | need_lib_prefix=no |
| 22585 | ;; |
| 22586 | freebsd-*) |
| 22587 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 22588 | need_version=yes |
| 22589 | ;; |
| 22590 | esac |
| 22591 | shlibpath_var=LD_LIBRARY_PATH |
| 22592 | case $host_os in |
| 22593 | freebsd2*) |
| 22594 | shlibpath_overrides_runpath=yes |
| 22595 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22596 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22597 | shlibpath_overrides_runpath=yes |
| 22598 | hardcode_into_libs=yes |
| 22599 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22600 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 22601 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22602 | shlibpath_overrides_runpath=no |
| 22603 | hardcode_into_libs=yes |
| 22604 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22605 | freebsd*) # from 4.6 on |
| 22606 | shlibpath_overrides_runpath=yes |
| 22607 | hardcode_into_libs=yes |
| 22608 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22609 | esac |
| 22610 | ;; |
| 22611 | |
| 22612 | gnu*) |
| 22613 | version_type=linux |
| 22614 | need_lib_prefix=no |
| 22615 | need_version=no |
| 22616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 22617 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22618 | shlibpath_var=LD_LIBRARY_PATH |
| 22619 | hardcode_into_libs=yes |
| 22620 | ;; |
| 22621 | |
| 22622 | hpux9* | hpux10* | hpux11*) |
| 22623 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 22624 | # link against other versions. |
| 22625 | version_type=sunos |
| 22626 | need_lib_prefix=no |
| 22627 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22628 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22629 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22630 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22631 | hardcode_into_libs=yes |
| 22632 | dynamic_linker="$host_os dld.so" |
| 22633 | shlibpath_var=LD_LIBRARY_PATH |
| 22634 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22636 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22637 | if test "X$HPUX_IA64_MODE" = X32; then |
| 22638 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 22639 | else |
| 22640 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 22641 | fi |
| 22642 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22643 | ;; |
| 22644 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22645 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22646 | hardcode_into_libs=yes |
| 22647 | dynamic_linker="$host_os dld.sl" |
| 22648 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 22649 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 22650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22651 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22652 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 22653 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 22654 | ;; |
| 22655 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22656 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22657 | dynamic_linker="$host_os dld.sl" |
| 22658 | shlibpath_var=SHLIB_PATH |
| 22659 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 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 | ;; |
| 22663 | esac |
| 22664 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 22665 | postinstall_cmds='chmod 555 $lib' |
| 22666 | ;; |
| 22667 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22668 | interix3*) |
| 22669 | version_type=linux |
| 22670 | need_lib_prefix=no |
| 22671 | need_version=no |
| 22672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22673 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22674 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 22675 | shlibpath_var=LD_LIBRARY_PATH |
| 22676 | shlibpath_overrides_runpath=no |
| 22677 | hardcode_into_libs=yes |
| 22678 | ;; |
| 22679 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22680 | irix5* | irix6* | nonstopux*) |
| 22681 | case $host_os in |
| 22682 | nonstopux*) version_type=nonstopux ;; |
| 22683 | *) |
| 22684 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 22685 | version_type=linux |
| 22686 | else |
| 22687 | version_type=irix |
| 22688 | fi ;; |
| 22689 | esac |
| 22690 | need_lib_prefix=no |
| 22691 | need_version=no |
| 22692 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22694 | case $host_os in |
| 22695 | irix5* | nonstopux*) |
| 22696 | libsuff= shlibsuff= |
| 22697 | ;; |
| 22698 | *) |
| 22699 | case $LD in # libtool.m4 will add one of these switches to LD |
| 22700 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 22701 | libsuff= shlibsuff= libmagic=32-bit;; |
| 22702 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 22703 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 22704 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 22705 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 22706 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 22707 | esac |
| 22708 | ;; |
| 22709 | esac |
| 22710 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 22711 | shlibpath_overrides_runpath=no |
| 22712 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 22713 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 22714 | hardcode_into_libs=yes |
| 22715 | ;; |
| 22716 | |
| 22717 | # No shared lib support for Linux oldld, aout, or coff. |
| 22718 | linux*oldld* | linux*aout* | linux*coff*) |
| 22719 | dynamic_linker=no |
| 22720 | ;; |
| 22721 | |
| 22722 | # This must be Linux ELF. |
| 22723 | linux*) |
| 22724 | version_type=linux |
| 22725 | need_lib_prefix=no |
| 22726 | need_version=no |
| 22727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22728 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 22730 | shlibpath_var=LD_LIBRARY_PATH |
| 22731 | shlibpath_overrides_runpath=no |
| 22732 | # This implies no fast_install, which is unacceptable. |
| 22733 | # Some rework will be needed to allow for fast_install |
| 22734 | # before this can be enabled. |
| 22735 | hardcode_into_libs=yes |
| 22736 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22737 | # Append ld.so.conf contents to the search path |
| 22738 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22739 | 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] | 22740 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 22741 | fi |
| 22742 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22743 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 22744 | # powerpc, because MkLinux only supported shared libraries with the |
| 22745 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 22746 | # most powerpc-linux boxes support dynamic linking these days and |
| 22747 | # people can always --disable-shared, the test was removed, and we |
| 22748 | # assume the GNU/Linux dynamic linker is in use. |
| 22749 | dynamic_linker='GNU/Linux ld.so' |
| 22750 | ;; |
| 22751 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22752 | knetbsd*-gnu) |
| 22753 | version_type=linux |
| 22754 | need_lib_prefix=no |
| 22755 | need_version=no |
| 22756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 22757 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22758 | shlibpath_var=LD_LIBRARY_PATH |
| 22759 | shlibpath_overrides_runpath=no |
| 22760 | hardcode_into_libs=yes |
| 22761 | dynamic_linker='GNU ld.so' |
| 22762 | ;; |
| 22763 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22764 | netbsd*) |
| 22765 | version_type=sunos |
| 22766 | need_lib_prefix=no |
| 22767 | need_version=no |
| 22768 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 22769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22770 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22771 | dynamic_linker='NetBSD (a.out) ld.so' |
| 22772 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22773 | 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] | 22774 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22775 | dynamic_linker='NetBSD ld.elf_so' |
| 22776 | fi |
| 22777 | shlibpath_var=LD_LIBRARY_PATH |
| 22778 | shlibpath_overrides_runpath=yes |
| 22779 | hardcode_into_libs=yes |
| 22780 | ;; |
| 22781 | |
| 22782 | newsos6) |
| 22783 | version_type=linux |
| 22784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22785 | shlibpath_var=LD_LIBRARY_PATH |
| 22786 | shlibpath_overrides_runpath=yes |
| 22787 | ;; |
| 22788 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22789 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22790 | version_type=linux |
| 22791 | need_lib_prefix=no |
| 22792 | need_version=no |
| 22793 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22794 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22795 | shlibpath_var=LD_LIBRARY_PATH |
| 22796 | shlibpath_overrides_runpath=yes |
| 22797 | ;; |
| 22798 | |
| 22799 | openbsd*) |
| 22800 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22801 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22802 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22803 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 22804 | case $host_os in |
| 22805 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 22806 | *) need_version=no ;; |
| 22807 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22808 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22809 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 22810 | shlibpath_var=LD_LIBRARY_PATH |
| 22811 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 22812 | case $host_os in |
| 22813 | openbsd2.[89] | openbsd2.[89].*) |
| 22814 | shlibpath_overrides_runpath=no |
| 22815 | ;; |
| 22816 | *) |
| 22817 | shlibpath_overrides_runpath=yes |
| 22818 | ;; |
| 22819 | esac |
| 22820 | else |
| 22821 | shlibpath_overrides_runpath=yes |
| 22822 | fi |
| 22823 | ;; |
| 22824 | |
| 22825 | os2*) |
| 22826 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22827 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22828 | need_lib_prefix=no |
| 22829 | library_names_spec='$libname${shared_ext} $libname.a' |
| 22830 | dynamic_linker='OS/2 ld.exe' |
| 22831 | shlibpath_var=LIBPATH |
| 22832 | ;; |
| 22833 | |
| 22834 | osf3* | osf4* | osf5*) |
| 22835 | version_type=osf |
| 22836 | need_lib_prefix=no |
| 22837 | need_version=no |
| 22838 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22839 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22840 | shlibpath_var=LD_LIBRARY_PATH |
| 22841 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 22842 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 22843 | ;; |
| 22844 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22845 | solaris*) |
| 22846 | version_type=linux |
| 22847 | need_lib_prefix=no |
| 22848 | need_version=no |
| 22849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22850 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22851 | shlibpath_var=LD_LIBRARY_PATH |
| 22852 | shlibpath_overrides_runpath=yes |
| 22853 | hardcode_into_libs=yes |
| 22854 | # ldd complains unless libraries are executable |
| 22855 | postinstall_cmds='chmod +x $lib' |
| 22856 | ;; |
| 22857 | |
| 22858 | sunos4*) |
| 22859 | version_type=sunos |
| 22860 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 22861 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 22862 | shlibpath_var=LD_LIBRARY_PATH |
| 22863 | shlibpath_overrides_runpath=yes |
| 22864 | if test "$with_gnu_ld" = yes; then |
| 22865 | need_lib_prefix=no |
| 22866 | fi |
| 22867 | need_version=yes |
| 22868 | ;; |
| 22869 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22870 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22871 | version_type=linux |
| 22872 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22873 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22874 | shlibpath_var=LD_LIBRARY_PATH |
| 22875 | case $host_vendor in |
| 22876 | sni) |
| 22877 | shlibpath_overrides_runpath=no |
| 22878 | need_lib_prefix=no |
| 22879 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 22880 | runpath_var=LD_RUN_PATH |
| 22881 | ;; |
| 22882 | siemens) |
| 22883 | need_lib_prefix=no |
| 22884 | ;; |
| 22885 | motorola) |
| 22886 | need_lib_prefix=no |
| 22887 | need_version=no |
| 22888 | shlibpath_overrides_runpath=no |
| 22889 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 22890 | ;; |
| 22891 | esac |
| 22892 | ;; |
| 22893 | |
| 22894 | sysv4*MP*) |
| 22895 | if test -d /usr/nec ;then |
| 22896 | version_type=linux |
| 22897 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 22898 | soname_spec='$libname${shared_ext}.$major' |
| 22899 | shlibpath_var=LD_LIBRARY_PATH |
| 22900 | fi |
| 22901 | ;; |
| 22902 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22903 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 22904 | version_type=freebsd-elf |
| 22905 | need_lib_prefix=no |
| 22906 | need_version=no |
| 22907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 22908 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22909 | shlibpath_var=LD_LIBRARY_PATH |
| 22910 | hardcode_into_libs=yes |
| 22911 | if test "$with_gnu_ld" = yes; then |
| 22912 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 22913 | shlibpath_overrides_runpath=no |
| 22914 | else |
| 22915 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 22916 | shlibpath_overrides_runpath=yes |
| 22917 | case $host_os in |
| 22918 | sco3.2v5*) |
| 22919 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 22920 | ;; |
| 22921 | esac |
| 22922 | fi |
| 22923 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 22924 | ;; |
| 22925 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22926 | uts4*) |
| 22927 | version_type=linux |
| 22928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 22929 | soname_spec='${libname}${release}${shared_ext}$major' |
| 22930 | shlibpath_var=LD_LIBRARY_PATH |
| 22931 | ;; |
| 22932 | |
| 22933 | *) |
| 22934 | dynamic_linker=no |
| 22935 | ;; |
| 22936 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22937 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 22938 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22939 | test "$dynamic_linker" = no && can_build_shared=no |
| 22940 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22941 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 22942 | if test "$GCC" = yes; then |
| 22943 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 22944 | fi |
| 22945 | |
| 22946 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 22947 | 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] | 22948 | hardcode_action_F77= |
| 22949 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 22950 | test -n "$runpath_var_F77" || \ |
| 22951 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22952 | |
| 22953 | # We can hardcode non-existant directories. |
| 22954 | if test "$hardcode_direct_F77" != no && |
| 22955 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22956 | # have to relink, otherwise we might link with an installed library |
| 22957 | # when we should be linking with a yet-to-be-installed one |
| 22958 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22959 | test "$hardcode_minus_L_F77" != no; then |
| 22960 | # Linking always hardcodes the temporary library directory. |
| 22961 | hardcode_action_F77=relink |
| 22962 | else |
| 22963 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22964 | hardcode_action_F77=immediate |
| 22965 | fi |
| 22966 | else |
| 22967 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22968 | # directories. |
| 22969 | hardcode_action_F77=unsupported |
| 22970 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22971 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22972 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22973 | |
| 22974 | if test "$hardcode_action_F77" = relink; then |
| 22975 | # Fast installation is not supported |
| 22976 | enable_fast_install=no |
| 22977 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22978 | test "$enable_shared" = no; then |
| 22979 | # Fast installation is not necessary |
| 22980 | enable_fast_install=needless |
| 22981 | fi |
| 22982 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22983 | |
| 22984 | # The else clause should only fire when bootstrapping the |
| 22985 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22986 | # with your package, and you will get complaints that there are |
| 22987 | # no rules to generate ltmain.sh. |
| 22988 | if test -f "$ltmain"; then |
| 22989 | # See if we are running on zsh, and set the options which allow our commands through |
| 22990 | # without removal of \ escapes. |
| 22991 | if test -n "${ZSH_VERSION+set}" ; then |
| 22992 | setopt NO_GLOB_SUBST |
| 22993 | fi |
| 22994 | # Now quote all the things that may contain metacharacters while being |
| 22995 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 22996 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22997 | 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] | 22998 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22999 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 23000 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 23001 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 23002 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 23003 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 23004 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 23005 | old_postinstall_cmds old_postuninstall_cmds \ |
| 23006 | compiler_F77 \ |
| 23007 | CC_F77 \ |
| 23008 | LD_F77 \ |
| 23009 | lt_prog_compiler_wl_F77 \ |
| 23010 | lt_prog_compiler_pic_F77 \ |
| 23011 | lt_prog_compiler_static_F77 \ |
| 23012 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 23013 | export_dynamic_flag_spec_F77 \ |
| 23014 | thread_safe_flag_spec_F77 \ |
| 23015 | whole_archive_flag_spec_F77 \ |
| 23016 | enable_shared_with_static_runtimes_F77 \ |
| 23017 | old_archive_cmds_F77 \ |
| 23018 | old_archive_from_new_cmds_F77 \ |
| 23019 | predep_objects_F77 \ |
| 23020 | postdep_objects_F77 \ |
| 23021 | predeps_F77 \ |
| 23022 | postdeps_F77 \ |
| 23023 | compiler_lib_search_path_F77 \ |
| 23024 | archive_cmds_F77 \ |
| 23025 | archive_expsym_cmds_F77 \ |
| 23026 | postinstall_cmds_F77 \ |
| 23027 | postuninstall_cmds_F77 \ |
| 23028 | old_archive_from_expsyms_cmds_F77 \ |
| 23029 | allow_undefined_flag_F77 \ |
| 23030 | no_undefined_flag_F77 \ |
| 23031 | export_symbols_cmds_F77 \ |
| 23032 | hardcode_libdir_flag_spec_F77 \ |
| 23033 | hardcode_libdir_flag_spec_ld_F77 \ |
| 23034 | hardcode_libdir_separator_F77 \ |
| 23035 | hardcode_automatic_F77 \ |
| 23036 | module_cmds_F77 \ |
| 23037 | module_expsym_cmds_F77 \ |
| 23038 | lt_cv_prog_compiler_c_o_F77 \ |
| 23039 | exclude_expsyms_F77 \ |
| 23040 | include_expsyms_F77; do |
| 23041 | |
| 23042 | case $var in |
| 23043 | old_archive_cmds_F77 | \ |
| 23044 | old_archive_from_new_cmds_F77 | \ |
| 23045 | archive_cmds_F77 | \ |
| 23046 | archive_expsym_cmds_F77 | \ |
| 23047 | module_cmds_F77 | \ |
| 23048 | module_expsym_cmds_F77 | \ |
| 23049 | old_archive_from_expsyms_cmds_F77 | \ |
| 23050 | export_symbols_cmds_F77 | \ |
| 23051 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 23052 | postinstall_cmds | postuninstall_cmds | \ |
| 23053 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 23054 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 23055 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23056 | 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] | 23057 | ;; |
| 23058 | *) |
| 23059 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 23060 | ;; |
| 23061 | esac |
| 23062 | done |
| 23063 | |
| 23064 | case $lt_echo in |
| 23065 | *'\$0 --fallback-echo"') |
| 23066 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 23067 | ;; |
| 23068 | esac |
| 23069 | |
| 23070 | cfgfile="$ofile" |
| 23071 | |
| 23072 | cat <<__EOF__ >> "$cfgfile" |
| 23073 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 23074 | |
| 23075 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 23076 | |
| 23077 | # Shell to use when invoking shell scripts. |
| 23078 | SHELL=$lt_SHELL |
| 23079 | |
| 23080 | # Whether or not to build shared libraries. |
| 23081 | build_libtool_libs=$enable_shared |
| 23082 | |
| 23083 | # Whether or not to build static libraries. |
| 23084 | build_old_libs=$enable_static |
| 23085 | |
| 23086 | # Whether or not to add -lc for building shared libraries. |
| 23087 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 23088 | |
| 23089 | # Whether or not to disallow shared libs when runtime libs are static |
| 23090 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 23091 | |
| 23092 | # Whether or not to optimize for fast installation. |
| 23093 | fast_install=$enable_fast_install |
| 23094 | |
| 23095 | # The host system. |
| 23096 | host_alias=$host_alias |
| 23097 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23098 | host_os=$host_os |
| 23099 | |
| 23100 | # The build system. |
| 23101 | build_alias=$build_alias |
| 23102 | build=$build |
| 23103 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23104 | |
| 23105 | # An echo program that does not interpret backslashes. |
| 23106 | echo=$lt_echo |
| 23107 | |
| 23108 | # The archiver. |
| 23109 | AR=$lt_AR |
| 23110 | AR_FLAGS=$lt_AR_FLAGS |
| 23111 | |
| 23112 | # A C compiler. |
| 23113 | LTCC=$lt_LTCC |
| 23114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23115 | # LTCC compiler flags. |
| 23116 | LTCFLAGS=$lt_LTCFLAGS |
| 23117 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23118 | # A language-specific compiler. |
| 23119 | CC=$lt_compiler_F77 |
| 23120 | |
| 23121 | # Is the compiler the GNU C compiler? |
| 23122 | with_gcc=$GCC_F77 |
| 23123 | |
| 23124 | # An ERE matcher. |
| 23125 | EGREP=$lt_EGREP |
| 23126 | |
| 23127 | # The linker used to build libraries. |
| 23128 | LD=$lt_LD_F77 |
| 23129 | |
| 23130 | # Whether we need hard or soft links. |
| 23131 | LN_S=$lt_LN_S |
| 23132 | |
| 23133 | # A BSD-compatible nm program. |
| 23134 | NM=$lt_NM |
| 23135 | |
| 23136 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23137 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23138 | |
| 23139 | # Used to examine libraries when file_magic_cmd begins "file" |
| 23140 | MAGIC_CMD=$MAGIC_CMD |
| 23141 | |
| 23142 | # Used on cygwin: DLL creation program. |
| 23143 | DLLTOOL="$DLLTOOL" |
| 23144 | |
| 23145 | # Used on cygwin: object dumper. |
| 23146 | OBJDUMP="$OBJDUMP" |
| 23147 | |
| 23148 | # Used on cygwin: assembler. |
| 23149 | AS="$AS" |
| 23150 | |
| 23151 | # The name of the directory that contains temporary libtool files. |
| 23152 | objdir=$objdir |
| 23153 | |
| 23154 | # How to create reloadable object files. |
| 23155 | reload_flag=$lt_reload_flag |
| 23156 | reload_cmds=$lt_reload_cmds |
| 23157 | |
| 23158 | # How to pass a linker flag through the compiler. |
| 23159 | wl=$lt_lt_prog_compiler_wl_F77 |
| 23160 | |
| 23161 | # Object file suffix (normally "o"). |
| 23162 | objext="$ac_objext" |
| 23163 | |
| 23164 | # Old archive suffix (normally "a"). |
| 23165 | libext="$libext" |
| 23166 | |
| 23167 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23168 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23169 | |
| 23170 | # Executable file suffix (normally ""). |
| 23171 | exeext="$exeext" |
| 23172 | |
| 23173 | # Additional compiler flags for building library objects. |
| 23174 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 23175 | pic_mode=$pic_mode |
| 23176 | |
| 23177 | # What is the maximum length of a command? |
| 23178 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 23179 | |
| 23180 | # Does compiler simultaneously support -c and -o options? |
| 23181 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 23182 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23183 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23184 | need_locks=$lt_need_locks |
| 23185 | |
| 23186 | # Do we need the lib prefix for modules? |
| 23187 | need_lib_prefix=$need_lib_prefix |
| 23188 | |
| 23189 | # Do we need a version for libraries? |
| 23190 | need_version=$need_version |
| 23191 | |
| 23192 | # Whether dlopen is supported. |
| 23193 | dlopen_support=$enable_dlopen |
| 23194 | |
| 23195 | # Whether dlopen of programs is supported. |
| 23196 | dlopen_self=$enable_dlopen_self |
| 23197 | |
| 23198 | # Whether dlopen of statically linked programs is supported. |
| 23199 | dlopen_self_static=$enable_dlopen_self_static |
| 23200 | |
| 23201 | # Compiler flag to prevent dynamic linking. |
| 23202 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 23203 | |
| 23204 | # Compiler flag to turn off builtin functions. |
| 23205 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 23206 | |
| 23207 | # Compiler flag to allow reflexive dlopens. |
| 23208 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 23209 | |
| 23210 | # Compiler flag to generate shared objects directly from archives. |
| 23211 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 23212 | |
| 23213 | # Compiler flag to generate thread-safe objects. |
| 23214 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 23215 | |
| 23216 | # Library versioning type. |
| 23217 | version_type=$version_type |
| 23218 | |
| 23219 | # Format of library name prefix. |
| 23220 | libname_spec=$lt_libname_spec |
| 23221 | |
| 23222 | # List of archive names. First name is the real one, the rest are links. |
| 23223 | # The last name is the one that the linker finds with -lNAME. |
| 23224 | library_names_spec=$lt_library_names_spec |
| 23225 | |
| 23226 | # The coded name of the library, if different from the real name. |
| 23227 | soname_spec=$lt_soname_spec |
| 23228 | |
| 23229 | # Commands used to build and install an old-style archive. |
| 23230 | RANLIB=$lt_RANLIB |
| 23231 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 23232 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 23233 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 23234 | |
| 23235 | # Create an old-style archive from a shared archive. |
| 23236 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 23237 | |
| 23238 | # Create a temporary old-style archive to link instead of a shared archive. |
| 23239 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 23240 | |
| 23241 | # Commands used to build and install a shared archive. |
| 23242 | archive_cmds=$lt_archive_cmds_F77 |
| 23243 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 23244 | postinstall_cmds=$lt_postinstall_cmds |
| 23245 | postuninstall_cmds=$lt_postuninstall_cmds |
| 23246 | |
| 23247 | # Commands used to build a loadable module (assumed same as above if empty) |
| 23248 | module_cmds=$lt_module_cmds_F77 |
| 23249 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 23250 | |
| 23251 | # Commands to strip libraries. |
| 23252 | old_striplib=$lt_old_striplib |
| 23253 | striplib=$lt_striplib |
| 23254 | |
| 23255 | # Dependencies to place before the objects being linked to create a |
| 23256 | # shared library. |
| 23257 | predep_objects=$lt_predep_objects_F77 |
| 23258 | |
| 23259 | # Dependencies to place after the objects being linked to create a |
| 23260 | # shared library. |
| 23261 | postdep_objects=$lt_postdep_objects_F77 |
| 23262 | |
| 23263 | # Dependencies to place before the objects being linked to create a |
| 23264 | # shared library. |
| 23265 | predeps=$lt_predeps_F77 |
| 23266 | |
| 23267 | # Dependencies to place after the objects being linked to create a |
| 23268 | # shared library. |
| 23269 | postdeps=$lt_postdeps_F77 |
| 23270 | |
| 23271 | # The library search path used internally by the compiler when linking |
| 23272 | # a shared library. |
| 23273 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 23274 | |
| 23275 | # Method to check whether dependent libraries are shared objects. |
| 23276 | deplibs_check_method=$lt_deplibs_check_method |
| 23277 | |
| 23278 | # Command to use when deplibs_check_method == file_magic. |
| 23279 | file_magic_cmd=$lt_file_magic_cmd |
| 23280 | |
| 23281 | # Flag that allows shared libraries with undefined symbols to be built. |
| 23282 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 23283 | |
| 23284 | # Flag that forces no undefined symbols. |
| 23285 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 23286 | |
| 23287 | # Commands used to finish a libtool library installation in a directory. |
| 23288 | finish_cmds=$lt_finish_cmds |
| 23289 | |
| 23290 | # Same as above, but a single script fragment to be evaled but not shown. |
| 23291 | finish_eval=$lt_finish_eval |
| 23292 | |
| 23293 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 23294 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 23295 | |
| 23296 | # Transform the output of nm in a proper C declaration |
| 23297 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 23298 | |
| 23299 | # Transform the output of nm in a C name address pair |
| 23300 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 23301 | |
| 23302 | # This is the shared library runtime path variable. |
| 23303 | runpath_var=$runpath_var |
| 23304 | |
| 23305 | # This is the shared library path variable. |
| 23306 | shlibpath_var=$shlibpath_var |
| 23307 | |
| 23308 | # Is shlibpath searched before the hard-coded library search path? |
| 23309 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 23310 | |
| 23311 | # How to hardcode a shared library path into an executable. |
| 23312 | hardcode_action=$hardcode_action_F77 |
| 23313 | |
| 23314 | # Whether we should hardcode library paths into libraries. |
| 23315 | hardcode_into_libs=$hardcode_into_libs |
| 23316 | |
| 23317 | # Flag to hardcode \$libdir into a binary during linking. |
| 23318 | # This must work even if \$libdir does not exist. |
| 23319 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 23320 | |
| 23321 | # If ld is used when linking, flag to hardcode \$libdir into |
| 23322 | # a binary during linking. This must work even if \$libdir does |
| 23323 | # not exist. |
| 23324 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 23325 | |
| 23326 | # Whether we need a single -rpath flag with a separated argument. |
| 23327 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 23328 | |
| 23329 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 23330 | # resulting binary. |
| 23331 | hardcode_direct=$hardcode_direct_F77 |
| 23332 | |
| 23333 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 23334 | # resulting binary. |
| 23335 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 23336 | |
| 23337 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 23338 | # the resulting binary. |
| 23339 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 23340 | |
| 23341 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 23342 | # and all subsequent libraries and executables linked against it. |
| 23343 | hardcode_automatic=$hardcode_automatic_F77 |
| 23344 | |
| 23345 | # Variables whose values should be saved in libtool wrapper scripts and |
| 23346 | # restored at relink time. |
| 23347 | variables_saved_for_relink="$variables_saved_for_relink" |
| 23348 | |
| 23349 | # Whether libtool must link a program against all its dependency libraries. |
| 23350 | link_all_deplibs=$link_all_deplibs_F77 |
| 23351 | |
| 23352 | # Compile-time system search path for libraries |
| 23353 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 23354 | |
| 23355 | # Run-time system search path for libraries |
| 23356 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 23357 | |
| 23358 | # Fix the shell variable \$srcfile for the compiler. |
| 23359 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 23360 | |
| 23361 | # Set to yes if exported symbols are required. |
| 23362 | always_export_symbols=$always_export_symbols_F77 |
| 23363 | |
| 23364 | # The commands to list exported symbols. |
| 23365 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 23366 | |
| 23367 | # The commands to extract the exported symbol list from a shared archive. |
| 23368 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 23369 | |
| 23370 | # Symbols that should not be listed in the preloaded symbols. |
| 23371 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 23372 | |
| 23373 | # Symbols that must always be exported. |
| 23374 | include_expsyms=$lt_include_expsyms_F77 |
| 23375 | |
| 23376 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 23377 | |
| 23378 | __EOF__ |
| 23379 | |
| 23380 | |
| 23381 | else |
| 23382 | # If there is no Makefile yet, we rely on a make rule to execute |
| 23383 | # `config.status --recheck' to rerun these tests and create the |
| 23384 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23385 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 23386 | if test -f "$ltmain_in"; then |
| 23387 | test -f Makefile && make "$ltmain" |
| 23388 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23389 | fi |
| 23390 | |
| 23391 | |
| 23392 | ac_ext=c |
| 23393 | ac_cpp='$CPP $CPPFLAGS' |
| 23394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23397 | |
| 23398 | CC="$lt_save_CC" |
| 23399 | |
| 23400 | else |
| 23401 | tagname="" |
| 23402 | fi |
| 23403 | ;; |
| 23404 | |
| 23405 | GCJ) |
| 23406 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23407 | ac_ext=c |
| 23408 | ac_cpp='$CPP $CPPFLAGS' |
| 23409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23412 | |
| 23413 | |
| 23414 | # Source file extension for Java test sources. |
| 23415 | ac_ext=java |
| 23416 | |
| 23417 | # Object file extension for compiled Java test sources. |
| 23418 | objext=o |
| 23419 | objext_GCJ=$objext |
| 23420 | |
| 23421 | # Code to be used in simple compile tests |
| 23422 | lt_simple_compile_test_code="class foo {}\n" |
| 23423 | |
| 23424 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23425 | 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] | 23426 | |
| 23427 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 23428 | |
| 23429 | # If no C compiler was specified, use CC. |
| 23430 | LTCC=${LTCC-"$CC"} |
| 23431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23432 | # If no C compiler flags were specified, use CFLAGS. |
| 23433 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 23434 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23435 | # Allow CC to be a program name with arguments. |
| 23436 | compiler=$CC |
| 23437 | |
| 23438 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23439 | # save warnings/boilerplate of simple test code |
| 23440 | ac_outfile=conftest.$ac_objext |
| 23441 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 23442 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23443 | _lt_compiler_boilerplate=`cat conftest.err` |
| 23444 | $rm conftest* |
| 23445 | |
| 23446 | ac_outfile=conftest.$ac_objext |
| 23447 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 23448 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 23449 | _lt_linker_boilerplate=`cat conftest.err` |
| 23450 | $rm conftest* |
| 23451 | |
| 23452 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23453 | # Allow CC to be a program name with arguments. |
| 23454 | lt_save_CC="$CC" |
| 23455 | CC=${GCJ-"gcj"} |
| 23456 | compiler=$CC |
| 23457 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23458 | for cc_temp in $compiler""; do |
| 23459 | case $cc_temp in |
| 23460 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23461 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23462 | \-*) ;; |
| 23463 | *) break;; |
| 23464 | esac |
| 23465 | done |
| 23466 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 23467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23468 | |
| 23469 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 23470 | archive_cmds_need_lc_GCJ=no |
| 23471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23472 | old_archive_cmds_GCJ=$old_archive_cmds |
| 23473 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23474 | |
| 23475 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 23476 | |
| 23477 | if test "$GCC" = yes; then |
| 23478 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 23479 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23481 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 23482 | 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] | 23483 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 23484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23485 | else |
| 23486 | lt_cv_prog_compiler_rtti_exceptions=no |
| 23487 | ac_outfile=conftest.$ac_objext |
| 23488 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23489 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 23490 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23491 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23492 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23493 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23494 | # The option is referenced via a variable to avoid confusing sed. |
| 23495 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23496 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23497 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23498 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23499 | (eval echo "\"\$as_me:23499: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23500 | (eval "$lt_compile" 2>conftest.err) |
| 23501 | ac_status=$? |
| 23502 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23503 | echo "$as_me:23503: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23504 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23505 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23506 | # So say no if there are warnings other than the usual output. |
| 23507 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23508 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23509 | 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] | 23510 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 23511 | fi |
| 23512 | fi |
| 23513 | $rm conftest* |
| 23514 | |
| 23515 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23516 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 23517 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23518 | |
| 23519 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 23520 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 23521 | else |
| 23522 | : |
| 23523 | fi |
| 23524 | |
| 23525 | fi |
| 23526 | |
| 23527 | lt_prog_compiler_wl_GCJ= |
| 23528 | lt_prog_compiler_pic_GCJ= |
| 23529 | lt_prog_compiler_static_GCJ= |
| 23530 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23531 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 23532 | 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] | 23533 | |
| 23534 | if test "$GCC" = yes; then |
| 23535 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23536 | lt_prog_compiler_static_GCJ='-static' |
| 23537 | |
| 23538 | case $host_os in |
| 23539 | aix*) |
| 23540 | # All AIX code is PIC. |
| 23541 | if test "$host_cpu" = ia64; then |
| 23542 | # AIX 5 now supports IA64 processor |
| 23543 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23544 | fi |
| 23545 | ;; |
| 23546 | |
| 23547 | amigaos*) |
| 23548 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 23549 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 23550 | # like `-m68040'. |
| 23551 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 23552 | ;; |
| 23553 | |
| 23554 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 23555 | # PIC is the default for these OSes. |
| 23556 | ;; |
| 23557 | |
| 23558 | mingw* | pw32* | os2*) |
| 23559 | # This hack is so that the source file can tell whether it is being |
| 23560 | # built for inclusion in a dll (and should export symbols for example). |
| 23561 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23562 | ;; |
| 23563 | |
| 23564 | darwin* | rhapsody*) |
| 23565 | # PIC is the default on this platform |
| 23566 | # Common symbols not allowed in MH_DYLIB files |
| 23567 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 23568 | ;; |
| 23569 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23570 | interix3*) |
| 23571 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 23572 | # Instead, we relocate shared libraries at runtime. |
| 23573 | ;; |
| 23574 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23575 | msdosdjgpp*) |
| 23576 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 23577 | # on systems that don't support them. |
| 23578 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23579 | enable_shared=no |
| 23580 | ;; |
| 23581 | |
| 23582 | sysv4*MP*) |
| 23583 | if test -d /usr/nec; then |
| 23584 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 23585 | fi |
| 23586 | ;; |
| 23587 | |
| 23588 | hpux*) |
| 23589 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23590 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23591 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23592 | hppa*64*|ia64*) |
| 23593 | # +Z the default |
| 23594 | ;; |
| 23595 | *) |
| 23596 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23597 | ;; |
| 23598 | esac |
| 23599 | ;; |
| 23600 | |
| 23601 | *) |
| 23602 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 23603 | ;; |
| 23604 | esac |
| 23605 | else |
| 23606 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 23607 | case $host_os in |
| 23608 | aix*) |
| 23609 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23610 | if test "$host_cpu" = ia64; then |
| 23611 | # AIX 5 now supports IA64 processor |
| 23612 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23613 | else |
| 23614 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 23615 | fi |
| 23616 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23617 | darwin*) |
| 23618 | # PIC is the default on this platform |
| 23619 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23620 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23621 | xlc*) |
| 23622 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 23623 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23624 | ;; |
| 23625 | esac |
| 23626 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23627 | |
| 23628 | mingw* | pw32* | os2*) |
| 23629 | # This hack is so that the source file can tell whether it is being |
| 23630 | # built for inclusion in a dll (and should export symbols for example). |
| 23631 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 23632 | ;; |
| 23633 | |
| 23634 | hpux9* | hpux10* | hpux11*) |
| 23635 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23636 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 23637 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23638 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23639 | hppa*64*|ia64*) |
| 23640 | # +Z the default |
| 23641 | ;; |
| 23642 | *) |
| 23643 | lt_prog_compiler_pic_GCJ='+Z' |
| 23644 | ;; |
| 23645 | esac |
| 23646 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 23647 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 23648 | ;; |
| 23649 | |
| 23650 | irix5* | irix6* | nonstopux*) |
| 23651 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23652 | # PIC (with -KPIC) is the default. |
| 23653 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23654 | ;; |
| 23655 | |
| 23656 | newsos6) |
| 23657 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23658 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23659 | ;; |
| 23660 | |
| 23661 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23662 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23663 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23664 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23665 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23666 | lt_prog_compiler_static_GCJ='-static' |
| 23667 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23668 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 23669 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 23670 | # which looks to be a dead project) |
| 23671 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23672 | lt_prog_compiler_pic_GCJ='-fpic' |
| 23673 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23674 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23675 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23676 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23677 | # All Alpha code is PIC. |
| 23678 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23679 | ;; |
| 23680 | esac |
| 23681 | ;; |
| 23682 | |
| 23683 | osf3* | osf4* | osf5*) |
| 23684 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23685 | # All OSF/1 code is PIC. |
| 23686 | lt_prog_compiler_static_GCJ='-non_shared' |
| 23687 | ;; |
| 23688 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23689 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23690 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23691 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23692 | case $cc_basename in |
| 23693 | f77* | f90* | f95*) |
| 23694 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 23695 | *) |
| 23696 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 23697 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23698 | ;; |
| 23699 | |
| 23700 | sunos4*) |
| 23701 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 23702 | lt_prog_compiler_pic_GCJ='-PIC' |
| 23703 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23704 | ;; |
| 23705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23706 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23707 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23708 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23709 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23710 | ;; |
| 23711 | |
| 23712 | sysv4*MP*) |
| 23713 | if test -d /usr/nec ;then |
| 23714 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 23715 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23716 | fi |
| 23717 | ;; |
| 23718 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23719 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 23720 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23721 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 23722 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23723 | ;; |
| 23724 | |
| 23725 | unicos*) |
| 23726 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 23727 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23728 | ;; |
| 23729 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23730 | uts4*) |
| 23731 | lt_prog_compiler_pic_GCJ='-pic' |
| 23732 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 23733 | ;; |
| 23734 | |
| 23735 | *) |
| 23736 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23737 | ;; |
| 23738 | esac |
| 23739 | fi |
| 23740 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23741 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 23742 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23743 | |
| 23744 | # |
| 23745 | # Check to make sure the PIC flag actually works. |
| 23746 | # |
| 23747 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23748 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23749 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 23750 | 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] | 23751 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 23752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23753 | else |
| 23754 | lt_prog_compiler_pic_works_GCJ=no |
| 23755 | ac_outfile=conftest.$ac_objext |
| 23756 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23757 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 23758 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23759 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23760 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23761 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23762 | # The option is referenced via a variable to avoid confusing sed. |
| 23763 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23764 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23765 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23766 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23767 | (eval echo "\"\$as_me:23767: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23768 | (eval "$lt_compile" 2>conftest.err) |
| 23769 | ac_status=$? |
| 23770 | cat conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23771 | echo "$as_me:23771: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23772 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 23773 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23774 | # So say no if there are warnings other than the usual output. |
| 23775 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 23776 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23777 | 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] | 23778 | lt_prog_compiler_pic_works_GCJ=yes |
| 23779 | fi |
| 23780 | fi |
| 23781 | $rm conftest* |
| 23782 | |
| 23783 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23784 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 23785 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23786 | |
| 23787 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 23788 | case $lt_prog_compiler_pic_GCJ in |
| 23789 | "" | " "*) ;; |
| 23790 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 23791 | esac |
| 23792 | else |
| 23793 | lt_prog_compiler_pic_GCJ= |
| 23794 | lt_prog_compiler_can_build_shared_GCJ=no |
| 23795 | fi |
| 23796 | |
| 23797 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23798 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23799 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 23800 | *djgpp*) |
| 23801 | lt_prog_compiler_pic_GCJ= |
| 23802 | ;; |
| 23803 | *) |
| 23804 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 23805 | ;; |
| 23806 | esac |
| 23807 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23808 | # |
| 23809 | # Check to make sure the static flag actually works. |
| 23810 | # |
| 23811 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 23812 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 23813 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 23814 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 23815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23816 | else |
| 23817 | lt_prog_compiler_static_works_GCJ=no |
| 23818 | save_LDFLAGS="$LDFLAGS" |
| 23819 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 23820 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 23821 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 23822 | # The linker can only warn and ignore the option if not recognized |
| 23823 | # So say no if there are warnings |
| 23824 | if test -s conftest.err; then |
| 23825 | # Append any errors to the config.log. |
| 23826 | cat conftest.err 1>&5 |
| 23827 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 23828 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 23829 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 23830 | lt_prog_compiler_static_works_GCJ=yes |
| 23831 | fi |
| 23832 | else |
| 23833 | lt_prog_compiler_static_works_GCJ=yes |
| 23834 | fi |
| 23835 | fi |
| 23836 | $rm conftest* |
| 23837 | LDFLAGS="$save_LDFLAGS" |
| 23838 | |
| 23839 | fi |
| 23840 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 23841 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 23842 | |
| 23843 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 23844 | : |
| 23845 | else |
| 23846 | lt_prog_compiler_static_GCJ= |
| 23847 | fi |
| 23848 | |
| 23849 | |
| 23850 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 23851 | 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] | 23852 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 23853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 23854 | else |
| 23855 | lt_cv_prog_compiler_c_o_GCJ=no |
| 23856 | $rm -r conftest 2>/dev/null |
| 23857 | mkdir conftest |
| 23858 | cd conftest |
| 23859 | mkdir out |
| 23860 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23861 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23862 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 23863 | # Insert the option either (1) after the last *FLAGS variable, or |
| 23864 | # (2) before a word containing "conftest.", or (3) at the end. |
| 23865 | # Note that $ac_compile itself does not contain backslashes and begins |
| 23866 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 23867 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23868 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23869 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 23870 | -e 's:$: $lt_compiler_flag:'` |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23871 | (eval echo "\"\$as_me:23871: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23872 | (eval "$lt_compile" 2>out/conftest.err) |
| 23873 | ac_status=$? |
| 23874 | cat out/conftest.err >&5 |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 23875 | echo "$as_me:23875: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23876 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 23877 | then |
| 23878 | # The compiler can only warn and ignore the option if not recognized |
| 23879 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23880 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 23881 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 23882 | 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] | 23883 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 23884 | fi |
| 23885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23886 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23887 | $rm conftest* |
| 23888 | # SGI C++ compiler will create directory out/ii_files/ for |
| 23889 | # template instantiation |
| 23890 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 23891 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23892 | cd .. |
| 23893 | rmdir conftest |
| 23894 | $rm conftest* |
| 23895 | |
| 23896 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23897 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 23898 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23899 | |
| 23900 | |
| 23901 | hard_links="nottested" |
| 23902 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 23903 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23904 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 23905 | 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] | 23906 | hard_links=yes |
| 23907 | $rm conftest* |
| 23908 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 23909 | touch conftest.a |
| 23910 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 23911 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23912 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 23913 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23914 | if test "$hard_links" = no; then |
| 23915 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 23916 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 23917 | need_locks=warn |
| 23918 | fi |
| 23919 | else |
| 23920 | need_locks=no |
| 23921 | fi |
| 23922 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23923 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 23924 | 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] | 23925 | |
| 23926 | runpath_var= |
| 23927 | allow_undefined_flag_GCJ= |
| 23928 | enable_shared_with_static_runtimes_GCJ=no |
| 23929 | archive_cmds_GCJ= |
| 23930 | archive_expsym_cmds_GCJ= |
| 23931 | old_archive_From_new_cmds_GCJ= |
| 23932 | old_archive_from_expsyms_cmds_GCJ= |
| 23933 | export_dynamic_flag_spec_GCJ= |
| 23934 | whole_archive_flag_spec_GCJ= |
| 23935 | thread_safe_flag_spec_GCJ= |
| 23936 | hardcode_libdir_flag_spec_GCJ= |
| 23937 | hardcode_libdir_flag_spec_ld_GCJ= |
| 23938 | hardcode_libdir_separator_GCJ= |
| 23939 | hardcode_direct_GCJ=no |
| 23940 | hardcode_minus_L_GCJ=no |
| 23941 | hardcode_shlibpath_var_GCJ=unsupported |
| 23942 | link_all_deplibs_GCJ=unknown |
| 23943 | hardcode_automatic_GCJ=no |
| 23944 | module_cmds_GCJ= |
| 23945 | module_expsym_cmds_GCJ= |
| 23946 | always_export_symbols_GCJ=no |
| 23947 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 23948 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 23949 | # included in the symbol list |
| 23950 | include_expsyms_GCJ= |
| 23951 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23952 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23953 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23954 | # as well as any symbol that contains `d'. |
| 23955 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23956 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23957 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23958 | # the symbol is explicitly referenced. Since portable code cannot |
| 23959 | # rely on this symbol name, it's probably fine to never include it in |
| 23960 | # preloaded symbol tables. |
| 23961 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23962 | # Just being paranoid about ensuring that cc_basename is set. |
| 23963 | for cc_temp in $compiler""; do |
| 23964 | case $cc_temp in |
| 23965 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23966 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23967 | \-*) ;; |
| 23968 | *) break;; |
| 23969 | esac |
| 23970 | done |
| 23971 | 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] | 23972 | |
| 23973 | case $host_os in |
| 23974 | cygwin* | mingw* | pw32*) |
| 23975 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23976 | # When not using gcc, we currently assume that we are using |
| 23977 | # Microsoft Visual C++. |
| 23978 | if test "$GCC" != yes; then |
| 23979 | with_gnu_ld=no |
| 23980 | fi |
| 23981 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23982 | interix*) |
| 23983 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23984 | with_gnu_ld=yes |
| 23985 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23986 | openbsd*) |
| 23987 | with_gnu_ld=no |
| 23988 | ;; |
| 23989 | esac |
| 23990 | |
| 23991 | ld_shlibs_GCJ=yes |
| 23992 | if test "$with_gnu_ld" = yes; then |
| 23993 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 23994 | wlarc='${wl}' |
| 23995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23996 | # Set some defaults for GNU ld with shared library support. These |
| 23997 | # are reset later if shared libraries are not supported. Putting them |
| 23998 | # here allows them to be overridden if necessary. |
| 23999 | runpath_var=LD_RUN_PATH |
| 24000 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 24001 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 24002 | # ancient GNU ld didn't support --whole-archive et. al. |
| 24003 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 24004 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 24005 | else |
| 24006 | whole_archive_flag_spec_GCJ= |
| 24007 | fi |
| 24008 | supports_anon_versioning=no |
| 24009 | case `$LD -v 2>/dev/null` in |
| 24010 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 24011 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 24012 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 24013 | *\ 2.11.*) ;; # other 2.11 versions |
| 24014 | *) supports_anon_versioning=yes ;; |
| 24015 | esac |
| 24016 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24017 | # See if GNU ld supports shared libraries. |
| 24018 | case $host_os in |
| 24019 | aix3* | aix4* | aix5*) |
| 24020 | # On AIX/PPC, the GNU linker is very broken |
| 24021 | if test "$host_cpu" != ia64; then |
| 24022 | ld_shlibs_GCJ=no |
| 24023 | cat <<EOF 1>&2 |
| 24024 | |
| 24025 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 24026 | *** to be unable to reliably create shared libraries on AIX. |
| 24027 | *** Therefore, libtool is disabling shared libraries support. If you |
| 24028 | *** really care for shared libraries, you may want to modify your PATH |
| 24029 | *** so that a non-GNU linker is found, and then restart. |
| 24030 | |
| 24031 | EOF |
| 24032 | fi |
| 24033 | ;; |
| 24034 | |
| 24035 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24036 | 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] | 24037 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24038 | hardcode_minus_L_GCJ=yes |
| 24039 | |
| 24040 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 24041 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 24042 | # to version 4, is to share data among multiple programs linked |
| 24043 | # with the same dynamic library. Since this doesn't match the |
| 24044 | # behavior of shared libraries on other platforms, we can't use |
| 24045 | # them. |
| 24046 | ld_shlibs_GCJ=no |
| 24047 | ;; |
| 24048 | |
| 24049 | beos*) |
| 24050 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24051 | allow_undefined_flag_GCJ=unsupported |
| 24052 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 24053 | # support --undefined. This deserves some investigation. FIXME |
| 24054 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24055 | else |
| 24056 | ld_shlibs_GCJ=no |
| 24057 | fi |
| 24058 | ;; |
| 24059 | |
| 24060 | cygwin* | mingw* | pw32*) |
| 24061 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 24062 | # as there is no search path for DLLs. |
| 24063 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24064 | allow_undefined_flag_GCJ=unsupported |
| 24065 | always_export_symbols_GCJ=no |
| 24066 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24067 | 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] | 24068 | |
| 24069 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24070 | 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] | 24071 | # If the export-symbols file already is a .def file (1st line |
| 24072 | # is EXPORTS), use it as is; otherwise, prepend... |
| 24073 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 24074 | cp $export_symbols $output_objdir/$soname.def; |
| 24075 | else |
| 24076 | echo EXPORTS > $output_objdir/$soname.def; |
| 24077 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24078 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24079 | $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] | 24080 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24081 | ld_shlibs_GCJ=no |
| 24082 | fi |
| 24083 | ;; |
| 24084 | |
| 24085 | interix3*) |
| 24086 | hardcode_direct_GCJ=no |
| 24087 | hardcode_shlibpath_var_GCJ=no |
| 24088 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24089 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24090 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 24091 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 24092 | # default) and relocated if they conflict, which is a slow very memory |
| 24093 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 24094 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 24095 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 24096 | 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' |
| 24097 | 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' |
| 24098 | ;; |
| 24099 | |
| 24100 | linux*) |
| 24101 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24102 | tmp_addflag= |
| 24103 | case $cc_basename,$host_cpu in |
| 24104 | pgcc*) # Portland Group C compiler |
| 24105 | 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' |
| 24106 | tmp_addflag=' $pic_flag' |
| 24107 | ;; |
| 24108 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 24109 | 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' |
| 24110 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 24111 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 24112 | tmp_addflag=' -i_dynamic' ;; |
| 24113 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 24114 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 24115 | ifc* | ifort*) # Intel Fortran compiler |
| 24116 | tmp_addflag=' -nofor_main' ;; |
| 24117 | esac |
| 24118 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24119 | |
| 24120 | if test $supports_anon_versioning = yes; then |
| 24121 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 24122 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 24123 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 24124 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 24125 | fi |
| 24126 | else |
| 24127 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24128 | fi |
| 24129 | ;; |
| 24130 | |
| 24131 | netbsd*) |
| 24132 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24133 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 24134 | wlarc= |
| 24135 | else |
| 24136 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24137 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24138 | fi |
| 24139 | ;; |
| 24140 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24141 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24142 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 24143 | ld_shlibs_GCJ=no |
| 24144 | cat <<EOF 1>&2 |
| 24145 | |
| 24146 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 24147 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 24148 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24149 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 24150 | *** your PATH or compiler configuration so that the native linker is |
| 24151 | *** used, and then restart. |
| 24152 | |
| 24153 | EOF |
| 24154 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24155 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24156 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24157 | else |
| 24158 | ld_shlibs_GCJ=no |
| 24159 | fi |
| 24160 | ;; |
| 24161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24162 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 24163 | case `$LD -v 2>&1` in |
| 24164 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 24165 | ld_shlibs_GCJ=no |
| 24166 | cat <<_LT_EOF 1>&2 |
| 24167 | |
| 24168 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 24169 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 24170 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 24171 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 24172 | *** your PATH or compiler configuration so that the native linker is |
| 24173 | *** used, and then restart. |
| 24174 | |
| 24175 | _LT_EOF |
| 24176 | ;; |
| 24177 | *) |
| 24178 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24179 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 24180 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 24181 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 24182 | else |
| 24183 | ld_shlibs_GCJ=no |
| 24184 | fi |
| 24185 | ;; |
| 24186 | esac |
| 24187 | ;; |
| 24188 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24189 | sunos4*) |
| 24190 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24191 | wlarc= |
| 24192 | hardcode_direct_GCJ=yes |
| 24193 | hardcode_shlibpath_var_GCJ=no |
| 24194 | ;; |
| 24195 | |
| 24196 | *) |
| 24197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 24198 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 24199 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 24200 | else |
| 24201 | ld_shlibs_GCJ=no |
| 24202 | fi |
| 24203 | ;; |
| 24204 | esac |
| 24205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24206 | if test "$ld_shlibs_GCJ" = no; then |
| 24207 | runpath_var= |
| 24208 | hardcode_libdir_flag_spec_GCJ= |
| 24209 | export_dynamic_flag_spec_GCJ= |
| 24210 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24211 | fi |
| 24212 | else |
| 24213 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 24214 | case $host_os in |
| 24215 | aix3*) |
| 24216 | allow_undefined_flag_GCJ=unsupported |
| 24217 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24218 | 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] | 24219 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 24220 | # are no directories specified by -L. |
| 24221 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24222 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24223 | # Neither direct hardcoding nor static linking is supported with a |
| 24224 | # broken collect2. |
| 24225 | hardcode_direct_GCJ=unsupported |
| 24226 | fi |
| 24227 | ;; |
| 24228 | |
| 24229 | aix4* | aix5*) |
| 24230 | if test "$host_cpu" = ia64; then |
| 24231 | # On IA64, the linker does run time linking by default, so we don't |
| 24232 | # have to do anything special. |
| 24233 | aix_use_runtimelinking=no |
| 24234 | exp_sym_flag='-Bexport' |
| 24235 | no_entry_flag="" |
| 24236 | else |
| 24237 | # If we're using GNU nm, then we don't want the "-C" option. |
| 24238 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 24239 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 24240 | 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' |
| 24241 | else |
| 24242 | 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' |
| 24243 | fi |
| 24244 | aix_use_runtimelinking=no |
| 24245 | |
| 24246 | # Test if we are trying to use run time linking or normal |
| 24247 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 24248 | # need to do runtime linking. |
| 24249 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 24250 | for ld_flag in $LDFLAGS; do |
| 24251 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 24252 | aix_use_runtimelinking=yes |
| 24253 | break |
| 24254 | fi |
| 24255 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24256 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24257 | esac |
| 24258 | |
| 24259 | exp_sym_flag='-bexport' |
| 24260 | no_entry_flag='-bnoentry' |
| 24261 | fi |
| 24262 | |
| 24263 | # When large executables or shared objects are built, AIX ld can |
| 24264 | # have problems creating the table of contents. If linking a library |
| 24265 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 24266 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 24267 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 24268 | |
| 24269 | archive_cmds_GCJ='' |
| 24270 | hardcode_direct_GCJ=yes |
| 24271 | hardcode_libdir_separator_GCJ=':' |
| 24272 | link_all_deplibs_GCJ=yes |
| 24273 | |
| 24274 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24275 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24276 | # We only want to do this on AIX 4.2 and lower, the check |
| 24277 | # below for broken collect2 doesn't work under 4.3+ |
| 24278 | collect2name=`${CC} -print-prog-name=collect2` |
| 24279 | if test -f "$collect2name" && \ |
| 24280 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 24281 | then |
| 24282 | # We have reworked collect2 |
| 24283 | hardcode_direct_GCJ=yes |
| 24284 | else |
| 24285 | # We have old collect2 |
| 24286 | hardcode_direct_GCJ=unsupported |
| 24287 | # It fails to find uninstalled libraries when the uninstalled |
| 24288 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 24289 | # to unsupported forces relinking |
| 24290 | hardcode_minus_L_GCJ=yes |
| 24291 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24292 | hardcode_libdir_separator_GCJ= |
| 24293 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24294 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24295 | esac |
| 24296 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24297 | if test "$aix_use_runtimelinking" = yes; then |
| 24298 | shared_flag="$shared_flag "'${wl}-G' |
| 24299 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24300 | else |
| 24301 | # not using gcc |
| 24302 | if test "$host_cpu" = ia64; then |
| 24303 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 24304 | # chokes on -Wl,-G. The following line is correct: |
| 24305 | shared_flag='-G' |
| 24306 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24307 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24308 | shared_flag='${wl}-G' |
| 24309 | else |
| 24310 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24311 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24312 | fi |
| 24313 | fi |
| 24314 | |
| 24315 | # It seems that -bexpall does not export symbols beginning with |
| 24316 | # underscore (_), so it is better to generate a list of symbols to export. |
| 24317 | always_export_symbols_GCJ=yes |
| 24318 | if test "$aix_use_runtimelinking" = yes; then |
| 24319 | # Warning - without using the other runtime loading flags (-brtl), |
| 24320 | # -berok will link without error, but may produce a broken library. |
| 24321 | allow_undefined_flag_GCJ='-berok' |
| 24322 | # Determine the default libpath from the value encoded in an empty executable. |
| 24323 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24324 | /* confdefs.h. */ |
| 24325 | _ACEOF |
| 24326 | cat confdefs.h >>conftest.$ac_ext |
| 24327 | cat >>conftest.$ac_ext <<_ACEOF |
| 24328 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24329 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24330 | int |
| 24331 | main () |
| 24332 | { |
| 24333 | |
| 24334 | ; |
| 24335 | return 0; |
| 24336 | } |
| 24337 | _ACEOF |
| 24338 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24339 | if { (ac_try="$ac_link" |
| 24340 | case "(($ac_try" in |
| 24341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24342 | *) ac_try_echo=$ac_try;; |
| 24343 | esac |
| 24344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24345 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24346 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24347 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24348 | rm -f conftest.er1 |
| 24349 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24351 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24353 | { (case "(($ac_try" in |
| 24354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24355 | *) ac_try_echo=$ac_try;; |
| 24356 | esac |
| 24357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24358 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24359 | ac_status=$? |
| 24360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24361 | (exit $ac_status); }; } && |
| 24362 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24369 | ac_status=$? |
| 24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24371 | (exit $ac_status); }; }; then |
| 24372 | |
| 24373 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24374 | }'` |
| 24375 | # Check for a 64-bit object if we didn't find anything. |
| 24376 | 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; } |
| 24377 | }'`; fi |
| 24378 | else |
| 24379 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24382 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24384 | |
| 24385 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24386 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24387 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24388 | |
| 24389 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24390 | 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] | 24391 | else |
| 24392 | if test "$host_cpu" = ia64; then |
| 24393 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 24394 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24395 | 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] | 24396 | else |
| 24397 | # Determine the default libpath from the value encoded in an empty executable. |
| 24398 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24399 | /* confdefs.h. */ |
| 24400 | _ACEOF |
| 24401 | cat confdefs.h >>conftest.$ac_ext |
| 24402 | cat >>conftest.$ac_ext <<_ACEOF |
| 24403 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24404 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24405 | int |
| 24406 | main () |
| 24407 | { |
| 24408 | |
| 24409 | ; |
| 24410 | return 0; |
| 24411 | } |
| 24412 | _ACEOF |
| 24413 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24414 | if { (ac_try="$ac_link" |
| 24415 | case "(($ac_try" in |
| 24416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24417 | *) ac_try_echo=$ac_try;; |
| 24418 | esac |
| 24419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24420 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24421 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 24423 | rm -f conftest.er1 |
| 24424 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24426 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 24428 | { (case "(($ac_try" in |
| 24429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 24430 | *) ac_try_echo=$ac_try;; |
| 24431 | esac |
| 24432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 24433 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24434 | ac_status=$? |
| 24435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24436 | (exit $ac_status); }; } && |
| 24437 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24444 | ac_status=$? |
| 24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24446 | (exit $ac_status); }; }; then |
| 24447 | |
| 24448 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 24449 | }'` |
| 24450 | # Check for a 64-bit object if we didn't find anything. |
| 24451 | 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; } |
| 24452 | }'`; fi |
| 24453 | else |
| 24454 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 24455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 24456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24457 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24458 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24459 | |
| 24460 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24461 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24462 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 24463 | |
| 24464 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 24465 | # Warning - without using the other run time loading flags, |
| 24466 | # -berok will link without error, but may produce a broken library. |
| 24467 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 24468 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24469 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24470 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24471 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24472 | # This is similar to how AIX traditionally builds its shared libraries. |
| 24473 | 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] | 24474 | fi |
| 24475 | fi |
| 24476 | ;; |
| 24477 | |
| 24478 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24479 | 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] | 24480 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24481 | hardcode_minus_L_GCJ=yes |
| 24482 | # see comment about different semantics on the GNU ld section |
| 24483 | ld_shlibs_GCJ=no |
| 24484 | ;; |
| 24485 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24486 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24487 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 24488 | ;; |
| 24489 | |
| 24490 | cygwin* | mingw* | pw32*) |
| 24491 | # When not using gcc, we currently assume that we are using |
| 24492 | # Microsoft Visual C++. |
| 24493 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 24494 | # no search path for DLLs. |
| 24495 | hardcode_libdir_flag_spec_GCJ=' ' |
| 24496 | allow_undefined_flag_GCJ=unsupported |
| 24497 | # Tell ltmain to make .lib files, not .a files. |
| 24498 | libext=lib |
| 24499 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24500 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24501 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24502 | 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] | 24503 | # The linker will automatically build a .lib file if we build a DLL. |
| 24504 | old_archive_From_new_cmds_GCJ='true' |
| 24505 | # FIXME: Should let the user specify the lib program. |
| 24506 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24507 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24508 | enable_shared_with_static_runtimes_GCJ=yes |
| 24509 | ;; |
| 24510 | |
| 24511 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24512 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24513 | rhapsody* | darwin1.[012]) |
| 24514 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 24515 | ;; |
| 24516 | *) # Darwin 1.3 on |
| 24517 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 24518 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24519 | else |
| 24520 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 24521 | 10.[012]) |
| 24522 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 24523 | ;; |
| 24524 | 10.*) |
| 24525 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 24526 | ;; |
| 24527 | esac |
| 24528 | fi |
| 24529 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24530 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24531 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24532 | hardcode_direct_GCJ=no |
| 24533 | hardcode_automatic_GCJ=yes |
| 24534 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24535 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24536 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24537 | if test "$GCC" = yes ; then |
| 24538 | output_verbose_link_cmd='echo' |
| 24539 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 24540 | 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] | 24541 | # 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] | 24542 | 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}' |
| 24543 | 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] | 24544 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24545 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24546 | xlc*) |
| 24547 | output_verbose_link_cmd='echo' |
| 24548 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 24549 | 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] | 24550 | # 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] | 24551 | 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}' |
| 24552 | 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] | 24553 | ;; |
| 24554 | *) |
| 24555 | ld_shlibs_GCJ=no |
| 24556 | ;; |
| 24557 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24558 | fi |
| 24559 | ;; |
| 24560 | |
| 24561 | dgux*) |
| 24562 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24563 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24564 | hardcode_shlibpath_var_GCJ=no |
| 24565 | ;; |
| 24566 | |
| 24567 | freebsd1*) |
| 24568 | ld_shlibs_GCJ=no |
| 24569 | ;; |
| 24570 | |
| 24571 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 24572 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 24573 | # does not break anything, and helps significantly (at the cost of a little |
| 24574 | # extra space). |
| 24575 | freebsd2.2*) |
| 24576 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 24577 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24578 | hardcode_direct_GCJ=yes |
| 24579 | hardcode_shlibpath_var_GCJ=no |
| 24580 | ;; |
| 24581 | |
| 24582 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 24583 | freebsd2*) |
| 24584 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24585 | hardcode_direct_GCJ=yes |
| 24586 | hardcode_minus_L_GCJ=yes |
| 24587 | hardcode_shlibpath_var_GCJ=no |
| 24588 | ;; |
| 24589 | |
| 24590 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24591 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24592 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 24593 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24594 | hardcode_direct_GCJ=yes |
| 24595 | hardcode_shlibpath_var_GCJ=no |
| 24596 | ;; |
| 24597 | |
| 24598 | hpux9*) |
| 24599 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24600 | 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] | 24601 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24602 | 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] | 24603 | fi |
| 24604 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24605 | hardcode_libdir_separator_GCJ=: |
| 24606 | hardcode_direct_GCJ=yes |
| 24607 | |
| 24608 | # hardcode_minus_L: Not really in the search PATH, |
| 24609 | # but as the default location of the library. |
| 24610 | hardcode_minus_L_GCJ=yes |
| 24611 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24612 | ;; |
| 24613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24614 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24615 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24616 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24617 | else |
| 24618 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 24619 | fi |
| 24620 | if test "$with_gnu_ld" = no; then |
| 24621 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24622 | hardcode_libdir_separator_GCJ=: |
| 24623 | |
| 24624 | hardcode_direct_GCJ=yes |
| 24625 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24626 | |
| 24627 | # hardcode_minus_L: Not really in the search PATH, |
| 24628 | # but as the default location of the library. |
| 24629 | hardcode_minus_L_GCJ=yes |
| 24630 | fi |
| 24631 | ;; |
| 24632 | |
| 24633 | hpux11*) |
| 24634 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 24635 | case $host_cpu in |
| 24636 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24637 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24638 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24639 | ia64*) |
| 24640 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 24641 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24642 | *) |
| 24643 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 24644 | ;; |
| 24645 | esac |
| 24646 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24647 | case $host_cpu in |
| 24648 | hppa*64*) |
| 24649 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24650 | ;; |
| 24651 | ia64*) |
| 24652 | 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] | 24653 | ;; |
| 24654 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24655 | 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] | 24656 | ;; |
| 24657 | esac |
| 24658 | fi |
| 24659 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24660 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 24661 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24662 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24663 | case $host_cpu in |
| 24664 | hppa*64*|ia64*) |
| 24665 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 24666 | hardcode_direct_GCJ=no |
| 24667 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24668 | ;; |
| 24669 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24670 | hardcode_direct_GCJ=yes |
| 24671 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24672 | |
| 24673 | # hardcode_minus_L: Not really in the search PATH, |
| 24674 | # but as the default location of the library. |
| 24675 | hardcode_minus_L_GCJ=yes |
| 24676 | ;; |
| 24677 | esac |
| 24678 | fi |
| 24679 | ;; |
| 24680 | |
| 24681 | irix5* | irix6* | nonstopux*) |
| 24682 | if test "$GCC" = yes; then |
| 24683 | 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' |
| 24684 | else |
| 24685 | 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' |
| 24686 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 24687 | fi |
| 24688 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24689 | hardcode_libdir_separator_GCJ=: |
| 24690 | link_all_deplibs_GCJ=yes |
| 24691 | ;; |
| 24692 | |
| 24693 | netbsd*) |
| 24694 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24695 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 24696 | else |
| 24697 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 24698 | fi |
| 24699 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24700 | hardcode_direct_GCJ=yes |
| 24701 | hardcode_shlibpath_var_GCJ=no |
| 24702 | ;; |
| 24703 | |
| 24704 | newsos6) |
| 24705 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24706 | hardcode_direct_GCJ=yes |
| 24707 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24708 | hardcode_libdir_separator_GCJ=: |
| 24709 | hardcode_shlibpath_var_GCJ=no |
| 24710 | ;; |
| 24711 | |
| 24712 | openbsd*) |
| 24713 | hardcode_direct_GCJ=yes |
| 24714 | hardcode_shlibpath_var_GCJ=no |
| 24715 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24716 | 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] | 24717 | 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] | 24718 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24719 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 24720 | else |
| 24721 | case $host_os in |
| 24722 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 24723 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 24724 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24725 | ;; |
| 24726 | *) |
| 24727 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 24728 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 24729 | ;; |
| 24730 | esac |
| 24731 | fi |
| 24732 | ;; |
| 24733 | |
| 24734 | os2*) |
| 24735 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24736 | hardcode_minus_L_GCJ=yes |
| 24737 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24738 | 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] | 24739 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 24740 | ;; |
| 24741 | |
| 24742 | osf3*) |
| 24743 | if test "$GCC" = yes; then |
| 24744 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24745 | 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' |
| 24746 | else |
| 24747 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24748 | 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' |
| 24749 | fi |
| 24750 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24751 | hardcode_libdir_separator_GCJ=: |
| 24752 | ;; |
| 24753 | |
| 24754 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 24755 | if test "$GCC" = yes; then |
| 24756 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 24757 | 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' |
| 24758 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 24759 | else |
| 24760 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 24761 | 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] | 24762 | 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] | 24763 | $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] | 24764 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24765 | # Both c and cxx compiler support -rpath directly |
| 24766 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 24767 | fi |
| 24768 | hardcode_libdir_separator_GCJ=: |
| 24769 | ;; |
| 24770 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24771 | solaris*) |
| 24772 | no_undefined_flag_GCJ=' -z text' |
| 24773 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24774 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24775 | 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] | 24776 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24777 | $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] | 24778 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24779 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24780 | 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] | 24781 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 24782 | $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] | 24783 | fi |
| 24784 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 24785 | hardcode_shlibpath_var_GCJ=no |
| 24786 | case $host_os in |
| 24787 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24788 | *) |
| 24789 | # The compiler driver will combine linker options so we |
| 24790 | # cannot just pass the convience library names through |
| 24791 | # without $wl, iff we do not link with $LD. |
| 24792 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 24793 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 24794 | case $wlarc in |
| 24795 | '') |
| 24796 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 24797 | *) |
| 24798 | 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' ;; |
| 24799 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24800 | esac |
| 24801 | link_all_deplibs_GCJ=yes |
| 24802 | ;; |
| 24803 | |
| 24804 | sunos4*) |
| 24805 | if test "x$host_vendor" = xsequent; then |
| 24806 | # Use $CC to link under sequent, because it throws in some extra .o |
| 24807 | # files that make .init and .fini sections work. |
| 24808 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24809 | else |
| 24810 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 24811 | fi |
| 24812 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24813 | hardcode_direct_GCJ=yes |
| 24814 | hardcode_minus_L_GCJ=yes |
| 24815 | hardcode_shlibpath_var_GCJ=no |
| 24816 | ;; |
| 24817 | |
| 24818 | sysv4) |
| 24819 | case $host_vendor in |
| 24820 | sni) |
| 24821 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24822 | hardcode_direct_GCJ=yes # is this really true??? |
| 24823 | ;; |
| 24824 | siemens) |
| 24825 | ## LD is ld it makes a PLAMLIB |
| 24826 | ## CC just makes a GrossModule. |
| 24827 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 24828 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 24829 | hardcode_direct_GCJ=no |
| 24830 | ;; |
| 24831 | motorola) |
| 24832 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24833 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 24834 | ;; |
| 24835 | esac |
| 24836 | runpath_var='LD_RUN_PATH' |
| 24837 | hardcode_shlibpath_var_GCJ=no |
| 24838 | ;; |
| 24839 | |
| 24840 | sysv4.3*) |
| 24841 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24842 | hardcode_shlibpath_var_GCJ=no |
| 24843 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 24844 | ;; |
| 24845 | |
| 24846 | sysv4*MP*) |
| 24847 | if test -d /usr/nec; then |
| 24848 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24849 | hardcode_shlibpath_var_GCJ=no |
| 24850 | runpath_var=LD_RUN_PATH |
| 24851 | hardcode_runpath_var=yes |
| 24852 | ld_shlibs_GCJ=yes |
| 24853 | fi |
| 24854 | ;; |
| 24855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24856 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 24857 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24858 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24859 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24860 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24861 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24862 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24863 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24864 | 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] | 24865 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24866 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24867 | 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] | 24868 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24869 | ;; |
| 24870 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24871 | sysv5* | sco3.2v5* | sco5v6*) |
| 24872 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 24873 | # link with -lc, and that would cause any symbols used from libc to |
| 24874 | # always be unresolved, which means just about no library would |
| 24875 | # ever link correctly. If we're not using GNU ld we use -z text |
| 24876 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 24877 | # as -z defs. |
| 24878 | no_undefined_flag_GCJ='${wl}-z,text' |
| 24879 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 24880 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24881 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24882 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 24883 | hardcode_libdir_separator_GCJ=':' |
| 24884 | link_all_deplibs_GCJ=yes |
| 24885 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24886 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24887 | |
| 24888 | if test "$GCC" = yes; then |
| 24889 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24890 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24891 | else |
| 24892 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24893 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 24894 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24895 | ;; |
| 24896 | |
| 24897 | uts4*) |
| 24898 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 24899 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 24900 | hardcode_shlibpath_var_GCJ=no |
| 24901 | ;; |
| 24902 | |
| 24903 | *) |
| 24904 | ld_shlibs_GCJ=no |
| 24905 | ;; |
| 24906 | esac |
| 24907 | fi |
| 24908 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24909 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 24910 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24911 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 24912 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24913 | # |
| 24914 | # Do we need to explicitly link libc? |
| 24915 | # |
| 24916 | case "x$archive_cmds_need_lc_GCJ" in |
| 24917 | x|xyes) |
| 24918 | # Assume -lc should be added |
| 24919 | archive_cmds_need_lc_GCJ=yes |
| 24920 | |
| 24921 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 24922 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24923 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24924 | # FIXME: we may have to deal with multi-command sequences. |
| 24925 | ;; |
| 24926 | '$CC '*) |
| 24927 | # Test whether the compiler implicitly links with -lc since on some |
| 24928 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 24929 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24930 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 24931 | 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] | 24932 | $rm conftest* |
| 24933 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 24934 | |
| 24935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 24936 | (eval $ac_compile) 2>&5 |
| 24937 | ac_status=$? |
| 24938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24939 | (exit $ac_status); } 2>conftest.err; then |
| 24940 | soname=conftest |
| 24941 | lib=conftest |
| 24942 | libobjs=conftest.$ac_objext |
| 24943 | deplibs= |
| 24944 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24945 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24946 | compiler_flags=-v |
| 24947 | linker_flags=-v |
| 24948 | verstring= |
| 24949 | output_objdir=. |
| 24950 | libname=conftest |
| 24951 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 24952 | allow_undefined_flag_GCJ= |
| 24953 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 24954 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 24955 | ac_status=$? |
| 24956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 24957 | (exit $ac_status); } |
| 24958 | then |
| 24959 | archive_cmds_need_lc_GCJ=no |
| 24960 | else |
| 24961 | archive_cmds_need_lc_GCJ=yes |
| 24962 | fi |
| 24963 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 24964 | else |
| 24965 | cat conftest.err 1>&5 |
| 24966 | fi |
| 24967 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24968 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 24969 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24970 | ;; |
| 24971 | esac |
| 24972 | fi |
| 24973 | ;; |
| 24974 | esac |
| 24975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24976 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 24977 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24978 | library_names_spec= |
| 24979 | libname_spec='lib$name' |
| 24980 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24981 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24982 | postinstall_cmds= |
| 24983 | postuninstall_cmds= |
| 24984 | finish_cmds= |
| 24985 | finish_eval= |
| 24986 | shlibpath_var= |
| 24987 | shlibpath_overrides_runpath=unknown |
| 24988 | version_type=none |
| 24989 | dynamic_linker="$host_os ld.so" |
| 24990 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 24991 | if test "$GCC" = yes; then |
| 24992 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24993 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 24994 | # if the path contains ";" then we assume it to be the separator |
| 24995 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 24996 | # assumed that no part of a normal pathname contains ";" but that should |
| 24997 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 24998 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24999 | else |
| 25000 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25001 | fi |
| 25002 | else |
| 25003 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 25004 | fi |
| 25005 | need_lib_prefix=unknown |
| 25006 | hardcode_into_libs=no |
| 25007 | |
| 25008 | # when you set need_version to no, make sure it does not cause -set_version |
| 25009 | # flags to be left without arguments |
| 25010 | need_version=unknown |
| 25011 | |
| 25012 | case $host_os in |
| 25013 | aix3*) |
| 25014 | version_type=linux |
| 25015 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 25016 | shlibpath_var=LIBPATH |
| 25017 | |
| 25018 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 25019 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25020 | ;; |
| 25021 | |
| 25022 | aix4* | aix5*) |
| 25023 | version_type=linux |
| 25024 | need_lib_prefix=no |
| 25025 | need_version=no |
| 25026 | hardcode_into_libs=yes |
| 25027 | if test "$host_cpu" = ia64; then |
| 25028 | # AIX 5 supports IA64 |
| 25029 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 25030 | shlibpath_var=LD_LIBRARY_PATH |
| 25031 | else |
| 25032 | # With GCC up to 2.95.x, collect2 would create an import file |
| 25033 | # for dependence libraries. The import file would start with |
| 25034 | # the line `#! .'. This would cause the generated library to |
| 25035 | # depend on `.', always an invalid library. This was fixed in |
| 25036 | # development snapshots of GCC prior to 3.0. |
| 25037 | case $host_os in |
| 25038 | aix4 | aix4.[01] | aix4.[01].*) |
| 25039 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 25040 | echo ' yes ' |
| 25041 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 25042 | : |
| 25043 | else |
| 25044 | can_build_shared=no |
| 25045 | fi |
| 25046 | ;; |
| 25047 | esac |
| 25048 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 25049 | # soname into executable. Probably we can add versioning support to |
| 25050 | # collect2, so additional links can be useful in future. |
| 25051 | if test "$aix_use_runtimelinking" = yes; then |
| 25052 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 25053 | # instead of lib<name>.a to let people know that these are not |
| 25054 | # typical AIX shared libraries. |
| 25055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25056 | else |
| 25057 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 25058 | # and later when we are not doing run time linking. |
| 25059 | library_names_spec='${libname}${release}.a $libname.a' |
| 25060 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25061 | fi |
| 25062 | shlibpath_var=LIBPATH |
| 25063 | fi |
| 25064 | ;; |
| 25065 | |
| 25066 | amigaos*) |
| 25067 | library_names_spec='$libname.ixlibrary $libname.a' |
| 25068 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25069 | 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] | 25070 | ;; |
| 25071 | |
| 25072 | beos*) |
| 25073 | library_names_spec='${libname}${shared_ext}' |
| 25074 | dynamic_linker="$host_os ld.so" |
| 25075 | shlibpath_var=LIBRARY_PATH |
| 25076 | ;; |
| 25077 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25078 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25079 | version_type=linux |
| 25080 | need_version=no |
| 25081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25083 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 25084 | shlibpath_var=LD_LIBRARY_PATH |
| 25085 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 25086 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 25087 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 25088 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 25089 | # libtool to hard-code these into programs |
| 25090 | ;; |
| 25091 | |
| 25092 | cygwin* | mingw* | pw32*) |
| 25093 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25094 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25095 | need_version=no |
| 25096 | need_lib_prefix=no |
| 25097 | |
| 25098 | case $GCC,$host_os in |
| 25099 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 25100 | library_names_spec='$libname.dll.a' |
| 25101 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25102 | postinstall_cmds='base_file=`basename \${file}`~ |
| 25103 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 25104 | dldir=$destdir/`dirname \$dlpath`~ |
| 25105 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25106 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 25107 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 25108 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 25109 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25110 | $rm \$dlpath' |
| 25111 | shlibpath_overrides_runpath=yes |
| 25112 | |
| 25113 | case $host_os in |
| 25114 | cygwin*) |
| 25115 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 25116 | 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] | 25117 | 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] | 25118 | ;; |
| 25119 | mingw*) |
| 25120 | # MinGW DLLs use traditional 'lib' prefix |
| 25121 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 25122 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 25123 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 25124 | # It is most probably a Windows format PATH printed by |
| 25125 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 25126 | # path with ; separators, and with drive letters. We can handle the |
| 25127 | # drive letters (cygwin fileutils understands them), so leave them, |
| 25128 | # especially as we might pass files found there to a mingw objdump, |
| 25129 | # which wouldn't understand a cygwinified path. Ahh. |
| 25130 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 25131 | else |
| 25132 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 25133 | fi |
| 25134 | ;; |
| 25135 | pw32*) |
| 25136 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25137 | 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] | 25138 | ;; |
| 25139 | esac |
| 25140 | ;; |
| 25141 | |
| 25142 | *) |
| 25143 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 25144 | ;; |
| 25145 | esac |
| 25146 | dynamic_linker='Win32 ld.exe' |
| 25147 | # FIXME: first we should search . and the directory the executable is in |
| 25148 | shlibpath_var=PATH |
| 25149 | ;; |
| 25150 | |
| 25151 | darwin* | rhapsody*) |
| 25152 | dynamic_linker="$host_os dyld" |
| 25153 | version_type=darwin |
| 25154 | need_lib_prefix=no |
| 25155 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25156 | 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] | 25157 | soname_spec='${libname}${release}${major}$shared_ext' |
| 25158 | shlibpath_overrides_runpath=yes |
| 25159 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25160 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25161 | # 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] | 25162 | if test "$GCC" = yes; then |
| 25163 | 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"` |
| 25164 | else |
| 25165 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25166 | fi |
| 25167 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 25168 | ;; |
| 25169 | |
| 25170 | dgux*) |
| 25171 | version_type=linux |
| 25172 | need_lib_prefix=no |
| 25173 | need_version=no |
| 25174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 25175 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25176 | shlibpath_var=LD_LIBRARY_PATH |
| 25177 | ;; |
| 25178 | |
| 25179 | freebsd1*) |
| 25180 | dynamic_linker=no |
| 25181 | ;; |
| 25182 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25183 | kfreebsd*-gnu) |
| 25184 | version_type=linux |
| 25185 | need_lib_prefix=no |
| 25186 | need_version=no |
| 25187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25189 | shlibpath_var=LD_LIBRARY_PATH |
| 25190 | shlibpath_overrides_runpath=no |
| 25191 | hardcode_into_libs=yes |
| 25192 | dynamic_linker='GNU ld.so' |
| 25193 | ;; |
| 25194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25195 | freebsd* | dragonfly*) |
| 25196 | # DragonFly does not have aout. When/if they implement a new |
| 25197 | # versioning mechanism, adjust this. |
| 25198 | if test -x /usr/bin/objformat; then |
| 25199 | objformat=`/usr/bin/objformat` |
| 25200 | else |
| 25201 | case $host_os in |
| 25202 | freebsd[123]*) objformat=aout ;; |
| 25203 | *) objformat=elf ;; |
| 25204 | esac |
| 25205 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25206 | version_type=freebsd-$objformat |
| 25207 | case $version_type in |
| 25208 | freebsd-elf*) |
| 25209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25210 | need_version=no |
| 25211 | need_lib_prefix=no |
| 25212 | ;; |
| 25213 | freebsd-*) |
| 25214 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 25215 | need_version=yes |
| 25216 | ;; |
| 25217 | esac |
| 25218 | shlibpath_var=LD_LIBRARY_PATH |
| 25219 | case $host_os in |
| 25220 | freebsd2*) |
| 25221 | shlibpath_overrides_runpath=yes |
| 25222 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25223 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25224 | shlibpath_overrides_runpath=yes |
| 25225 | hardcode_into_libs=yes |
| 25226 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25227 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 25228 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25229 | shlibpath_overrides_runpath=no |
| 25230 | hardcode_into_libs=yes |
| 25231 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25232 | freebsd*) # from 4.6 on |
| 25233 | shlibpath_overrides_runpath=yes |
| 25234 | hardcode_into_libs=yes |
| 25235 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25236 | esac |
| 25237 | ;; |
| 25238 | |
| 25239 | gnu*) |
| 25240 | version_type=linux |
| 25241 | need_lib_prefix=no |
| 25242 | need_version=no |
| 25243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 25244 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25245 | shlibpath_var=LD_LIBRARY_PATH |
| 25246 | hardcode_into_libs=yes |
| 25247 | ;; |
| 25248 | |
| 25249 | hpux9* | hpux10* | hpux11*) |
| 25250 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 25251 | # link against other versions. |
| 25252 | version_type=sunos |
| 25253 | need_lib_prefix=no |
| 25254 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25255 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25256 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25257 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25258 | hardcode_into_libs=yes |
| 25259 | dynamic_linker="$host_os dld.so" |
| 25260 | shlibpath_var=LD_LIBRARY_PATH |
| 25261 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25264 | if test "X$HPUX_IA64_MODE" = X32; then |
| 25265 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 25266 | else |
| 25267 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 25268 | fi |
| 25269 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25270 | ;; |
| 25271 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25272 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25273 | hardcode_into_libs=yes |
| 25274 | dynamic_linker="$host_os dld.sl" |
| 25275 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 25276 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 25277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25278 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25279 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 25280 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 25281 | ;; |
| 25282 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25283 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25284 | dynamic_linker="$host_os dld.sl" |
| 25285 | shlibpath_var=SHLIB_PATH |
| 25286 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 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 | ;; |
| 25290 | esac |
| 25291 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 25292 | postinstall_cmds='chmod 555 $lib' |
| 25293 | ;; |
| 25294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25295 | interix3*) |
| 25296 | version_type=linux |
| 25297 | need_lib_prefix=no |
| 25298 | need_version=no |
| 25299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25300 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25301 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 25302 | shlibpath_var=LD_LIBRARY_PATH |
| 25303 | shlibpath_overrides_runpath=no |
| 25304 | hardcode_into_libs=yes |
| 25305 | ;; |
| 25306 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25307 | irix5* | irix6* | nonstopux*) |
| 25308 | case $host_os in |
| 25309 | nonstopux*) version_type=nonstopux ;; |
| 25310 | *) |
| 25311 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 25312 | version_type=linux |
| 25313 | else |
| 25314 | version_type=irix |
| 25315 | fi ;; |
| 25316 | esac |
| 25317 | need_lib_prefix=no |
| 25318 | need_version=no |
| 25319 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25321 | case $host_os in |
| 25322 | irix5* | nonstopux*) |
| 25323 | libsuff= shlibsuff= |
| 25324 | ;; |
| 25325 | *) |
| 25326 | case $LD in # libtool.m4 will add one of these switches to LD |
| 25327 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 25328 | libsuff= shlibsuff= libmagic=32-bit;; |
| 25329 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 25330 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 25331 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 25332 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 25333 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 25334 | esac |
| 25335 | ;; |
| 25336 | esac |
| 25337 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 25338 | shlibpath_overrides_runpath=no |
| 25339 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 25340 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 25341 | hardcode_into_libs=yes |
| 25342 | ;; |
| 25343 | |
| 25344 | # No shared lib support for Linux oldld, aout, or coff. |
| 25345 | linux*oldld* | linux*aout* | linux*coff*) |
| 25346 | dynamic_linker=no |
| 25347 | ;; |
| 25348 | |
| 25349 | # This must be Linux ELF. |
| 25350 | linux*) |
| 25351 | version_type=linux |
| 25352 | need_lib_prefix=no |
| 25353 | need_version=no |
| 25354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25356 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 25357 | shlibpath_var=LD_LIBRARY_PATH |
| 25358 | shlibpath_overrides_runpath=no |
| 25359 | # This implies no fast_install, which is unacceptable. |
| 25360 | # Some rework will be needed to allow for fast_install |
| 25361 | # before this can be enabled. |
| 25362 | hardcode_into_libs=yes |
| 25363 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25364 | # Append ld.so.conf contents to the search path |
| 25365 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25366 | 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] | 25367 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 25368 | fi |
| 25369 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25370 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 25371 | # powerpc, because MkLinux only supported shared libraries with the |
| 25372 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 25373 | # most powerpc-linux boxes support dynamic linking these days and |
| 25374 | # people can always --disable-shared, the test was removed, and we |
| 25375 | # assume the GNU/Linux dynamic linker is in use. |
| 25376 | dynamic_linker='GNU/Linux ld.so' |
| 25377 | ;; |
| 25378 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25379 | knetbsd*-gnu) |
| 25380 | version_type=linux |
| 25381 | need_lib_prefix=no |
| 25382 | need_version=no |
| 25383 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 25384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25385 | shlibpath_var=LD_LIBRARY_PATH |
| 25386 | shlibpath_overrides_runpath=no |
| 25387 | hardcode_into_libs=yes |
| 25388 | dynamic_linker='GNU ld.so' |
| 25389 | ;; |
| 25390 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25391 | netbsd*) |
| 25392 | version_type=sunos |
| 25393 | need_lib_prefix=no |
| 25394 | need_version=no |
| 25395 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 25396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25398 | dynamic_linker='NetBSD (a.out) ld.so' |
| 25399 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25400 | 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] | 25401 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25402 | dynamic_linker='NetBSD ld.elf_so' |
| 25403 | fi |
| 25404 | shlibpath_var=LD_LIBRARY_PATH |
| 25405 | shlibpath_overrides_runpath=yes |
| 25406 | hardcode_into_libs=yes |
| 25407 | ;; |
| 25408 | |
| 25409 | newsos6) |
| 25410 | version_type=linux |
| 25411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25412 | shlibpath_var=LD_LIBRARY_PATH |
| 25413 | shlibpath_overrides_runpath=yes |
| 25414 | ;; |
| 25415 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25416 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25417 | version_type=linux |
| 25418 | need_lib_prefix=no |
| 25419 | need_version=no |
| 25420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25422 | shlibpath_var=LD_LIBRARY_PATH |
| 25423 | shlibpath_overrides_runpath=yes |
| 25424 | ;; |
| 25425 | |
| 25426 | openbsd*) |
| 25427 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25428 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25429 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25430 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 25431 | case $host_os in |
| 25432 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 25433 | *) need_version=no ;; |
| 25434 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25435 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25436 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 25437 | shlibpath_var=LD_LIBRARY_PATH |
| 25438 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 25439 | case $host_os in |
| 25440 | openbsd2.[89] | openbsd2.[89].*) |
| 25441 | shlibpath_overrides_runpath=no |
| 25442 | ;; |
| 25443 | *) |
| 25444 | shlibpath_overrides_runpath=yes |
| 25445 | ;; |
| 25446 | esac |
| 25447 | else |
| 25448 | shlibpath_overrides_runpath=yes |
| 25449 | fi |
| 25450 | ;; |
| 25451 | |
| 25452 | os2*) |
| 25453 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25454 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25455 | need_lib_prefix=no |
| 25456 | library_names_spec='$libname${shared_ext} $libname.a' |
| 25457 | dynamic_linker='OS/2 ld.exe' |
| 25458 | shlibpath_var=LIBPATH |
| 25459 | ;; |
| 25460 | |
| 25461 | osf3* | osf4* | osf5*) |
| 25462 | version_type=osf |
| 25463 | need_lib_prefix=no |
| 25464 | need_version=no |
| 25465 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25467 | shlibpath_var=LD_LIBRARY_PATH |
| 25468 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 25469 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 25470 | ;; |
| 25471 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25472 | solaris*) |
| 25473 | version_type=linux |
| 25474 | need_lib_prefix=no |
| 25475 | need_version=no |
| 25476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25477 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25478 | shlibpath_var=LD_LIBRARY_PATH |
| 25479 | shlibpath_overrides_runpath=yes |
| 25480 | hardcode_into_libs=yes |
| 25481 | # ldd complains unless libraries are executable |
| 25482 | postinstall_cmds='chmod +x $lib' |
| 25483 | ;; |
| 25484 | |
| 25485 | sunos4*) |
| 25486 | version_type=sunos |
| 25487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 25488 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 25489 | shlibpath_var=LD_LIBRARY_PATH |
| 25490 | shlibpath_overrides_runpath=yes |
| 25491 | if test "$with_gnu_ld" = yes; then |
| 25492 | need_lib_prefix=no |
| 25493 | fi |
| 25494 | need_version=yes |
| 25495 | ;; |
| 25496 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25497 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25498 | version_type=linux |
| 25499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25500 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25501 | shlibpath_var=LD_LIBRARY_PATH |
| 25502 | case $host_vendor in |
| 25503 | sni) |
| 25504 | shlibpath_overrides_runpath=no |
| 25505 | need_lib_prefix=no |
| 25506 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 25507 | runpath_var=LD_RUN_PATH |
| 25508 | ;; |
| 25509 | siemens) |
| 25510 | need_lib_prefix=no |
| 25511 | ;; |
| 25512 | motorola) |
| 25513 | need_lib_prefix=no |
| 25514 | need_version=no |
| 25515 | shlibpath_overrides_runpath=no |
| 25516 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 25517 | ;; |
| 25518 | esac |
| 25519 | ;; |
| 25520 | |
| 25521 | sysv4*MP*) |
| 25522 | if test -d /usr/nec ;then |
| 25523 | version_type=linux |
| 25524 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 25525 | soname_spec='$libname${shared_ext}.$major' |
| 25526 | shlibpath_var=LD_LIBRARY_PATH |
| 25527 | fi |
| 25528 | ;; |
| 25529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25530 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 25531 | version_type=freebsd-elf |
| 25532 | need_lib_prefix=no |
| 25533 | need_version=no |
| 25534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 25535 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25536 | shlibpath_var=LD_LIBRARY_PATH |
| 25537 | hardcode_into_libs=yes |
| 25538 | if test "$with_gnu_ld" = yes; then |
| 25539 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 25540 | shlibpath_overrides_runpath=no |
| 25541 | else |
| 25542 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 25543 | shlibpath_overrides_runpath=yes |
| 25544 | case $host_os in |
| 25545 | sco3.2v5*) |
| 25546 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 25547 | ;; |
| 25548 | esac |
| 25549 | fi |
| 25550 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 25551 | ;; |
| 25552 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25553 | uts4*) |
| 25554 | version_type=linux |
| 25555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 25556 | soname_spec='${libname}${release}${shared_ext}$major' |
| 25557 | shlibpath_var=LD_LIBRARY_PATH |
| 25558 | ;; |
| 25559 | |
| 25560 | *) |
| 25561 | dynamic_linker=no |
| 25562 | ;; |
| 25563 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25564 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 25565 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25566 | test "$dynamic_linker" = no && can_build_shared=no |
| 25567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25568 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 25569 | if test "$GCC" = yes; then |
| 25570 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 25571 | fi |
| 25572 | |
| 25573 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 25574 | 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] | 25575 | hardcode_action_GCJ= |
| 25576 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 25577 | test -n "$runpath_var_GCJ" || \ |
| 25578 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 25579 | |
| 25580 | # We can hardcode non-existant directories. |
| 25581 | if test "$hardcode_direct_GCJ" != no && |
| 25582 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 25583 | # have to relink, otherwise we might link with an installed library |
| 25584 | # when we should be linking with a yet-to-be-installed one |
| 25585 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 25586 | test "$hardcode_minus_L_GCJ" != no; then |
| 25587 | # Linking always hardcodes the temporary library directory. |
| 25588 | hardcode_action_GCJ=relink |
| 25589 | else |
| 25590 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 25591 | hardcode_action_GCJ=immediate |
| 25592 | fi |
| 25593 | else |
| 25594 | # We cannot hardcode anything, or else we can only hardcode existing |
| 25595 | # directories. |
| 25596 | hardcode_action_GCJ=unsupported |
| 25597 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25598 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 25599 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25600 | |
| 25601 | if test "$hardcode_action_GCJ" = relink; then |
| 25602 | # Fast installation is not supported |
| 25603 | enable_fast_install=no |
| 25604 | elif test "$shlibpath_overrides_runpath" = yes || |
| 25605 | test "$enable_shared" = no; then |
| 25606 | # Fast installation is not necessary |
| 25607 | enable_fast_install=needless |
| 25608 | fi |
| 25609 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25610 | |
| 25611 | # The else clause should only fire when bootstrapping the |
| 25612 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25613 | # with your package, and you will get complaints that there are |
| 25614 | # no rules to generate ltmain.sh. |
| 25615 | if test -f "$ltmain"; then |
| 25616 | # See if we are running on zsh, and set the options which allow our commands through |
| 25617 | # without removal of \ escapes. |
| 25618 | if test -n "${ZSH_VERSION+set}" ; then |
| 25619 | setopt NO_GLOB_SUBST |
| 25620 | fi |
| 25621 | # Now quote all the things that may contain metacharacters while being |
| 25622 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25623 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25624 | 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] | 25625 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25626 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25627 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25628 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25629 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25630 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25631 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25632 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25633 | compiler_GCJ \ |
| 25634 | CC_GCJ \ |
| 25635 | LD_GCJ \ |
| 25636 | lt_prog_compiler_wl_GCJ \ |
| 25637 | lt_prog_compiler_pic_GCJ \ |
| 25638 | lt_prog_compiler_static_GCJ \ |
| 25639 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 25640 | export_dynamic_flag_spec_GCJ \ |
| 25641 | thread_safe_flag_spec_GCJ \ |
| 25642 | whole_archive_flag_spec_GCJ \ |
| 25643 | enable_shared_with_static_runtimes_GCJ \ |
| 25644 | old_archive_cmds_GCJ \ |
| 25645 | old_archive_from_new_cmds_GCJ \ |
| 25646 | predep_objects_GCJ \ |
| 25647 | postdep_objects_GCJ \ |
| 25648 | predeps_GCJ \ |
| 25649 | postdeps_GCJ \ |
| 25650 | compiler_lib_search_path_GCJ \ |
| 25651 | archive_cmds_GCJ \ |
| 25652 | archive_expsym_cmds_GCJ \ |
| 25653 | postinstall_cmds_GCJ \ |
| 25654 | postuninstall_cmds_GCJ \ |
| 25655 | old_archive_from_expsyms_cmds_GCJ \ |
| 25656 | allow_undefined_flag_GCJ \ |
| 25657 | no_undefined_flag_GCJ \ |
| 25658 | export_symbols_cmds_GCJ \ |
| 25659 | hardcode_libdir_flag_spec_GCJ \ |
| 25660 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 25661 | hardcode_libdir_separator_GCJ \ |
| 25662 | hardcode_automatic_GCJ \ |
| 25663 | module_cmds_GCJ \ |
| 25664 | module_expsym_cmds_GCJ \ |
| 25665 | lt_cv_prog_compiler_c_o_GCJ \ |
| 25666 | exclude_expsyms_GCJ \ |
| 25667 | include_expsyms_GCJ; do |
| 25668 | |
| 25669 | case $var in |
| 25670 | old_archive_cmds_GCJ | \ |
| 25671 | old_archive_from_new_cmds_GCJ | \ |
| 25672 | archive_cmds_GCJ | \ |
| 25673 | archive_expsym_cmds_GCJ | \ |
| 25674 | module_cmds_GCJ | \ |
| 25675 | module_expsym_cmds_GCJ | \ |
| 25676 | old_archive_from_expsyms_cmds_GCJ | \ |
| 25677 | export_symbols_cmds_GCJ | \ |
| 25678 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25679 | postinstall_cmds | postuninstall_cmds | \ |
| 25680 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25681 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25682 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25683 | 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] | 25684 | ;; |
| 25685 | *) |
| 25686 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25687 | ;; |
| 25688 | esac |
| 25689 | done |
| 25690 | |
| 25691 | case $lt_echo in |
| 25692 | *'\$0 --fallback-echo"') |
| 25693 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25694 | ;; |
| 25695 | esac |
| 25696 | |
| 25697 | cfgfile="$ofile" |
| 25698 | |
| 25699 | cat <<__EOF__ >> "$cfgfile" |
| 25700 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25701 | |
| 25702 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25703 | |
| 25704 | # Shell to use when invoking shell scripts. |
| 25705 | SHELL=$lt_SHELL |
| 25706 | |
| 25707 | # Whether or not to build shared libraries. |
| 25708 | build_libtool_libs=$enable_shared |
| 25709 | |
| 25710 | # Whether or not to build static libraries. |
| 25711 | build_old_libs=$enable_static |
| 25712 | |
| 25713 | # Whether or not to add -lc for building shared libraries. |
| 25714 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 25715 | |
| 25716 | # Whether or not to disallow shared libs when runtime libs are static |
| 25717 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 25718 | |
| 25719 | # Whether or not to optimize for fast installation. |
| 25720 | fast_install=$enable_fast_install |
| 25721 | |
| 25722 | # The host system. |
| 25723 | host_alias=$host_alias |
| 25724 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25725 | host_os=$host_os |
| 25726 | |
| 25727 | # The build system. |
| 25728 | build_alias=$build_alias |
| 25729 | build=$build |
| 25730 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25731 | |
| 25732 | # An echo program that does not interpret backslashes. |
| 25733 | echo=$lt_echo |
| 25734 | |
| 25735 | # The archiver. |
| 25736 | AR=$lt_AR |
| 25737 | AR_FLAGS=$lt_AR_FLAGS |
| 25738 | |
| 25739 | # A C compiler. |
| 25740 | LTCC=$lt_LTCC |
| 25741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25742 | # LTCC compiler flags. |
| 25743 | LTCFLAGS=$lt_LTCFLAGS |
| 25744 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25745 | # A language-specific compiler. |
| 25746 | CC=$lt_compiler_GCJ |
| 25747 | |
| 25748 | # Is the compiler the GNU C compiler? |
| 25749 | with_gcc=$GCC_GCJ |
| 25750 | |
| 25751 | # An ERE matcher. |
| 25752 | EGREP=$lt_EGREP |
| 25753 | |
| 25754 | # The linker used to build libraries. |
| 25755 | LD=$lt_LD_GCJ |
| 25756 | |
| 25757 | # Whether we need hard or soft links. |
| 25758 | LN_S=$lt_LN_S |
| 25759 | |
| 25760 | # A BSD-compatible nm program. |
| 25761 | NM=$lt_NM |
| 25762 | |
| 25763 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25764 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25765 | |
| 25766 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25767 | MAGIC_CMD=$MAGIC_CMD |
| 25768 | |
| 25769 | # Used on cygwin: DLL creation program. |
| 25770 | DLLTOOL="$DLLTOOL" |
| 25771 | |
| 25772 | # Used on cygwin: object dumper. |
| 25773 | OBJDUMP="$OBJDUMP" |
| 25774 | |
| 25775 | # Used on cygwin: assembler. |
| 25776 | AS="$AS" |
| 25777 | |
| 25778 | # The name of the directory that contains temporary libtool files. |
| 25779 | objdir=$objdir |
| 25780 | |
| 25781 | # How to create reloadable object files. |
| 25782 | reload_flag=$lt_reload_flag |
| 25783 | reload_cmds=$lt_reload_cmds |
| 25784 | |
| 25785 | # How to pass a linker flag through the compiler. |
| 25786 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 25787 | |
| 25788 | # Object file suffix (normally "o"). |
| 25789 | objext="$ac_objext" |
| 25790 | |
| 25791 | # Old archive suffix (normally "a"). |
| 25792 | libext="$libext" |
| 25793 | |
| 25794 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25795 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25796 | |
| 25797 | # Executable file suffix (normally ""). |
| 25798 | exeext="$exeext" |
| 25799 | |
| 25800 | # Additional compiler flags for building library objects. |
| 25801 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 25802 | pic_mode=$pic_mode |
| 25803 | |
| 25804 | # What is the maximum length of a command? |
| 25805 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25806 | |
| 25807 | # Does compiler simultaneously support -c and -o options? |
| 25808 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 25809 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25810 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25811 | need_locks=$lt_need_locks |
| 25812 | |
| 25813 | # Do we need the lib prefix for modules? |
| 25814 | need_lib_prefix=$need_lib_prefix |
| 25815 | |
| 25816 | # Do we need a version for libraries? |
| 25817 | need_version=$need_version |
| 25818 | |
| 25819 | # Whether dlopen is supported. |
| 25820 | dlopen_support=$enable_dlopen |
| 25821 | |
| 25822 | # Whether dlopen of programs is supported. |
| 25823 | dlopen_self=$enable_dlopen_self |
| 25824 | |
| 25825 | # Whether dlopen of statically linked programs is supported. |
| 25826 | dlopen_self_static=$enable_dlopen_self_static |
| 25827 | |
| 25828 | # Compiler flag to prevent dynamic linking. |
| 25829 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 25830 | |
| 25831 | # Compiler flag to turn off builtin functions. |
| 25832 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 25833 | |
| 25834 | # Compiler flag to allow reflexive dlopens. |
| 25835 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 25836 | |
| 25837 | # Compiler flag to generate shared objects directly from archives. |
| 25838 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 25839 | |
| 25840 | # Compiler flag to generate thread-safe objects. |
| 25841 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 25842 | |
| 25843 | # Library versioning type. |
| 25844 | version_type=$version_type |
| 25845 | |
| 25846 | # Format of library name prefix. |
| 25847 | libname_spec=$lt_libname_spec |
| 25848 | |
| 25849 | # List of archive names. First name is the real one, the rest are links. |
| 25850 | # The last name is the one that the linker finds with -lNAME. |
| 25851 | library_names_spec=$lt_library_names_spec |
| 25852 | |
| 25853 | # The coded name of the library, if different from the real name. |
| 25854 | soname_spec=$lt_soname_spec |
| 25855 | |
| 25856 | # Commands used to build and install an old-style archive. |
| 25857 | RANLIB=$lt_RANLIB |
| 25858 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 25859 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25860 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25861 | |
| 25862 | # Create an old-style archive from a shared archive. |
| 25863 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 25864 | |
| 25865 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25866 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 25867 | |
| 25868 | # Commands used to build and install a shared archive. |
| 25869 | archive_cmds=$lt_archive_cmds_GCJ |
| 25870 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 25871 | postinstall_cmds=$lt_postinstall_cmds |
| 25872 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25873 | |
| 25874 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25875 | module_cmds=$lt_module_cmds_GCJ |
| 25876 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 25877 | |
| 25878 | # Commands to strip libraries. |
| 25879 | old_striplib=$lt_old_striplib |
| 25880 | striplib=$lt_striplib |
| 25881 | |
| 25882 | # Dependencies to place before the objects being linked to create a |
| 25883 | # shared library. |
| 25884 | predep_objects=$lt_predep_objects_GCJ |
| 25885 | |
| 25886 | # Dependencies to place after the objects being linked to create a |
| 25887 | # shared library. |
| 25888 | postdep_objects=$lt_postdep_objects_GCJ |
| 25889 | |
| 25890 | # Dependencies to place before the objects being linked to create a |
| 25891 | # shared library. |
| 25892 | predeps=$lt_predeps_GCJ |
| 25893 | |
| 25894 | # Dependencies to place after the objects being linked to create a |
| 25895 | # shared library. |
| 25896 | postdeps=$lt_postdeps_GCJ |
| 25897 | |
| 25898 | # The library search path used internally by the compiler when linking |
| 25899 | # a shared library. |
| 25900 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 25901 | |
| 25902 | # Method to check whether dependent libraries are shared objects. |
| 25903 | deplibs_check_method=$lt_deplibs_check_method |
| 25904 | |
| 25905 | # Command to use when deplibs_check_method == file_magic. |
| 25906 | file_magic_cmd=$lt_file_magic_cmd |
| 25907 | |
| 25908 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25909 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 25910 | |
| 25911 | # Flag that forces no undefined symbols. |
| 25912 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 25913 | |
| 25914 | # Commands used to finish a libtool library installation in a directory. |
| 25915 | finish_cmds=$lt_finish_cmds |
| 25916 | |
| 25917 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25918 | finish_eval=$lt_finish_eval |
| 25919 | |
| 25920 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25921 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25922 | |
| 25923 | # Transform the output of nm in a proper C declaration |
| 25924 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25925 | |
| 25926 | # Transform the output of nm in a C name address pair |
| 25927 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25928 | |
| 25929 | # This is the shared library runtime path variable. |
| 25930 | runpath_var=$runpath_var |
| 25931 | |
| 25932 | # This is the shared library path variable. |
| 25933 | shlibpath_var=$shlibpath_var |
| 25934 | |
| 25935 | # Is shlibpath searched before the hard-coded library search path? |
| 25936 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25937 | |
| 25938 | # How to hardcode a shared library path into an executable. |
| 25939 | hardcode_action=$hardcode_action_GCJ |
| 25940 | |
| 25941 | # Whether we should hardcode library paths into libraries. |
| 25942 | hardcode_into_libs=$hardcode_into_libs |
| 25943 | |
| 25944 | # Flag to hardcode \$libdir into a binary during linking. |
| 25945 | # This must work even if \$libdir does not exist. |
| 25946 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 25947 | |
| 25948 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25949 | # a binary during linking. This must work even if \$libdir does |
| 25950 | # not exist. |
| 25951 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 25952 | |
| 25953 | # Whether we need a single -rpath flag with a separated argument. |
| 25954 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 25955 | |
| 25956 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25957 | # resulting binary. |
| 25958 | hardcode_direct=$hardcode_direct_GCJ |
| 25959 | |
| 25960 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25961 | # resulting binary. |
| 25962 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 25963 | |
| 25964 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25965 | # the resulting binary. |
| 25966 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 25967 | |
| 25968 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25969 | # and all subsequent libraries and executables linked against it. |
| 25970 | hardcode_automatic=$hardcode_automatic_GCJ |
| 25971 | |
| 25972 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25973 | # restored at relink time. |
| 25974 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25975 | |
| 25976 | # Whether libtool must link a program against all its dependency libraries. |
| 25977 | link_all_deplibs=$link_all_deplibs_GCJ |
| 25978 | |
| 25979 | # Compile-time system search path for libraries |
| 25980 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25981 | |
| 25982 | # Run-time system search path for libraries |
| 25983 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25984 | |
| 25985 | # Fix the shell variable \$srcfile for the compiler. |
| 25986 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25987 | |
| 25988 | # Set to yes if exported symbols are required. |
| 25989 | always_export_symbols=$always_export_symbols_GCJ |
| 25990 | |
| 25991 | # The commands to list exported symbols. |
| 25992 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 25993 | |
| 25994 | # The commands to extract the exported symbol list from a shared archive. |
| 25995 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25996 | |
| 25997 | # Symbols that should not be listed in the preloaded symbols. |
| 25998 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 25999 | |
| 26000 | # Symbols that must always be exported. |
| 26001 | include_expsyms=$lt_include_expsyms_GCJ |
| 26002 | |
| 26003 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26004 | |
| 26005 | __EOF__ |
| 26006 | |
| 26007 | |
| 26008 | else |
| 26009 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26010 | # `config.status --recheck' to rerun these tests and create the |
| 26011 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26012 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26013 | if test -f "$ltmain_in"; then |
| 26014 | test -f Makefile && make "$ltmain" |
| 26015 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26016 | fi |
| 26017 | |
| 26018 | |
| 26019 | ac_ext=c |
| 26020 | ac_cpp='$CPP $CPPFLAGS' |
| 26021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26024 | |
| 26025 | CC="$lt_save_CC" |
| 26026 | |
| 26027 | else |
| 26028 | tagname="" |
| 26029 | fi |
| 26030 | ;; |
| 26031 | |
| 26032 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26033 | ac_ext=c |
| 26034 | ac_cpp='$CPP $CPPFLAGS' |
| 26035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26038 | |
| 26039 | |
| 26040 | # Source file extension for RC test sources. |
| 26041 | ac_ext=rc |
| 26042 | |
| 26043 | # Object file extension for compiled RC test sources. |
| 26044 | objext=o |
| 26045 | objext_RC=$objext |
| 26046 | |
| 26047 | # Code to be used in simple compile tests |
| 26048 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 26049 | |
| 26050 | # Code to be used in simple link tests |
| 26051 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 26052 | |
| 26053 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 26054 | |
| 26055 | # If no C compiler was specified, use CC. |
| 26056 | LTCC=${LTCC-"$CC"} |
| 26057 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26058 | # If no C compiler flags were specified, use CFLAGS. |
| 26059 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 26060 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26061 | # Allow CC to be a program name with arguments. |
| 26062 | compiler=$CC |
| 26063 | |
| 26064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26065 | # save warnings/boilerplate of simple test code |
| 26066 | ac_outfile=conftest.$ac_objext |
| 26067 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 26068 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26069 | _lt_compiler_boilerplate=`cat conftest.err` |
| 26070 | $rm conftest* |
| 26071 | |
| 26072 | ac_outfile=conftest.$ac_objext |
| 26073 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 26074 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 26075 | _lt_linker_boilerplate=`cat conftest.err` |
| 26076 | $rm conftest* |
| 26077 | |
| 26078 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26079 | # Allow CC to be a program name with arguments. |
| 26080 | lt_save_CC="$CC" |
| 26081 | CC=${RC-"windres"} |
| 26082 | compiler=$CC |
| 26083 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26084 | for cc_temp in $compiler""; do |
| 26085 | case $cc_temp in |
| 26086 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 26087 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 26088 | \-*) ;; |
| 26089 | *) break;; |
| 26090 | esac |
| 26091 | done |
| 26092 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 26093 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26094 | lt_cv_prog_compiler_c_o_RC=yes |
| 26095 | |
| 26096 | # The else clause should only fire when bootstrapping the |
| 26097 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 26098 | # with your package, and you will get complaints that there are |
| 26099 | # no rules to generate ltmain.sh. |
| 26100 | if test -f "$ltmain"; then |
| 26101 | # See if we are running on zsh, and set the options which allow our commands through |
| 26102 | # without removal of \ escapes. |
| 26103 | if test -n "${ZSH_VERSION+set}" ; then |
| 26104 | setopt NO_GLOB_SUBST |
| 26105 | fi |
| 26106 | # Now quote all the things that may contain metacharacters while being |
| 26107 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 26108 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26109 | 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] | 26110 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26111 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 26112 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 26113 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 26114 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 26115 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 26116 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 26117 | old_postinstall_cmds old_postuninstall_cmds \ |
| 26118 | compiler_RC \ |
| 26119 | CC_RC \ |
| 26120 | LD_RC \ |
| 26121 | lt_prog_compiler_wl_RC \ |
| 26122 | lt_prog_compiler_pic_RC \ |
| 26123 | lt_prog_compiler_static_RC \ |
| 26124 | lt_prog_compiler_no_builtin_flag_RC \ |
| 26125 | export_dynamic_flag_spec_RC \ |
| 26126 | thread_safe_flag_spec_RC \ |
| 26127 | whole_archive_flag_spec_RC \ |
| 26128 | enable_shared_with_static_runtimes_RC \ |
| 26129 | old_archive_cmds_RC \ |
| 26130 | old_archive_from_new_cmds_RC \ |
| 26131 | predep_objects_RC \ |
| 26132 | postdep_objects_RC \ |
| 26133 | predeps_RC \ |
| 26134 | postdeps_RC \ |
| 26135 | compiler_lib_search_path_RC \ |
| 26136 | archive_cmds_RC \ |
| 26137 | archive_expsym_cmds_RC \ |
| 26138 | postinstall_cmds_RC \ |
| 26139 | postuninstall_cmds_RC \ |
| 26140 | old_archive_from_expsyms_cmds_RC \ |
| 26141 | allow_undefined_flag_RC \ |
| 26142 | no_undefined_flag_RC \ |
| 26143 | export_symbols_cmds_RC \ |
| 26144 | hardcode_libdir_flag_spec_RC \ |
| 26145 | hardcode_libdir_flag_spec_ld_RC \ |
| 26146 | hardcode_libdir_separator_RC \ |
| 26147 | hardcode_automatic_RC \ |
| 26148 | module_cmds_RC \ |
| 26149 | module_expsym_cmds_RC \ |
| 26150 | lt_cv_prog_compiler_c_o_RC \ |
| 26151 | exclude_expsyms_RC \ |
| 26152 | include_expsyms_RC; do |
| 26153 | |
| 26154 | case $var in |
| 26155 | old_archive_cmds_RC | \ |
| 26156 | old_archive_from_new_cmds_RC | \ |
| 26157 | archive_cmds_RC | \ |
| 26158 | archive_expsym_cmds_RC | \ |
| 26159 | module_cmds_RC | \ |
| 26160 | module_expsym_cmds_RC | \ |
| 26161 | old_archive_from_expsyms_cmds_RC | \ |
| 26162 | export_symbols_cmds_RC | \ |
| 26163 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 26164 | postinstall_cmds | postuninstall_cmds | \ |
| 26165 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 26166 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 26167 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26168 | 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] | 26169 | ;; |
| 26170 | *) |
| 26171 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 26172 | ;; |
| 26173 | esac |
| 26174 | done |
| 26175 | |
| 26176 | case $lt_echo in |
| 26177 | *'\$0 --fallback-echo"') |
| 26178 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 26179 | ;; |
| 26180 | esac |
| 26181 | |
| 26182 | cfgfile="$ofile" |
| 26183 | |
| 26184 | cat <<__EOF__ >> "$cfgfile" |
| 26185 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 26186 | |
| 26187 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 26188 | |
| 26189 | # Shell to use when invoking shell scripts. |
| 26190 | SHELL=$lt_SHELL |
| 26191 | |
| 26192 | # Whether or not to build shared libraries. |
| 26193 | build_libtool_libs=$enable_shared |
| 26194 | |
| 26195 | # Whether or not to build static libraries. |
| 26196 | build_old_libs=$enable_static |
| 26197 | |
| 26198 | # Whether or not to add -lc for building shared libraries. |
| 26199 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 26200 | |
| 26201 | # Whether or not to disallow shared libs when runtime libs are static |
| 26202 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 26203 | |
| 26204 | # Whether or not to optimize for fast installation. |
| 26205 | fast_install=$enable_fast_install |
| 26206 | |
| 26207 | # The host system. |
| 26208 | host_alias=$host_alias |
| 26209 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26210 | host_os=$host_os |
| 26211 | |
| 26212 | # The build system. |
| 26213 | build_alias=$build_alias |
| 26214 | build=$build |
| 26215 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26216 | |
| 26217 | # An echo program that does not interpret backslashes. |
| 26218 | echo=$lt_echo |
| 26219 | |
| 26220 | # The archiver. |
| 26221 | AR=$lt_AR |
| 26222 | AR_FLAGS=$lt_AR_FLAGS |
| 26223 | |
| 26224 | # A C compiler. |
| 26225 | LTCC=$lt_LTCC |
| 26226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26227 | # LTCC compiler flags. |
| 26228 | LTCFLAGS=$lt_LTCFLAGS |
| 26229 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26230 | # A language-specific compiler. |
| 26231 | CC=$lt_compiler_RC |
| 26232 | |
| 26233 | # Is the compiler the GNU C compiler? |
| 26234 | with_gcc=$GCC_RC |
| 26235 | |
| 26236 | # An ERE matcher. |
| 26237 | EGREP=$lt_EGREP |
| 26238 | |
| 26239 | # The linker used to build libraries. |
| 26240 | LD=$lt_LD_RC |
| 26241 | |
| 26242 | # Whether we need hard or soft links. |
| 26243 | LN_S=$lt_LN_S |
| 26244 | |
| 26245 | # A BSD-compatible nm program. |
| 26246 | NM=$lt_NM |
| 26247 | |
| 26248 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26249 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26250 | |
| 26251 | # Used to examine libraries when file_magic_cmd begins "file" |
| 26252 | MAGIC_CMD=$MAGIC_CMD |
| 26253 | |
| 26254 | # Used on cygwin: DLL creation program. |
| 26255 | DLLTOOL="$DLLTOOL" |
| 26256 | |
| 26257 | # Used on cygwin: object dumper. |
| 26258 | OBJDUMP="$OBJDUMP" |
| 26259 | |
| 26260 | # Used on cygwin: assembler. |
| 26261 | AS="$AS" |
| 26262 | |
| 26263 | # The name of the directory that contains temporary libtool files. |
| 26264 | objdir=$objdir |
| 26265 | |
| 26266 | # How to create reloadable object files. |
| 26267 | reload_flag=$lt_reload_flag |
| 26268 | reload_cmds=$lt_reload_cmds |
| 26269 | |
| 26270 | # How to pass a linker flag through the compiler. |
| 26271 | wl=$lt_lt_prog_compiler_wl_RC |
| 26272 | |
| 26273 | # Object file suffix (normally "o"). |
| 26274 | objext="$ac_objext" |
| 26275 | |
| 26276 | # Old archive suffix (normally "a"). |
| 26277 | libext="$libext" |
| 26278 | |
| 26279 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26280 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26281 | |
| 26282 | # Executable file suffix (normally ""). |
| 26283 | exeext="$exeext" |
| 26284 | |
| 26285 | # Additional compiler flags for building library objects. |
| 26286 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 26287 | pic_mode=$pic_mode |
| 26288 | |
| 26289 | # What is the maximum length of a command? |
| 26290 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 26291 | |
| 26292 | # Does compiler simultaneously support -c and -o options? |
| 26293 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 26294 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26295 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26296 | need_locks=$lt_need_locks |
| 26297 | |
| 26298 | # Do we need the lib prefix for modules? |
| 26299 | need_lib_prefix=$need_lib_prefix |
| 26300 | |
| 26301 | # Do we need a version for libraries? |
| 26302 | need_version=$need_version |
| 26303 | |
| 26304 | # Whether dlopen is supported. |
| 26305 | dlopen_support=$enable_dlopen |
| 26306 | |
| 26307 | # Whether dlopen of programs is supported. |
| 26308 | dlopen_self=$enable_dlopen_self |
| 26309 | |
| 26310 | # Whether dlopen of statically linked programs is supported. |
| 26311 | dlopen_self_static=$enable_dlopen_self_static |
| 26312 | |
| 26313 | # Compiler flag to prevent dynamic linking. |
| 26314 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 26315 | |
| 26316 | # Compiler flag to turn off builtin functions. |
| 26317 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 26318 | |
| 26319 | # Compiler flag to allow reflexive dlopens. |
| 26320 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 26321 | |
| 26322 | # Compiler flag to generate shared objects directly from archives. |
| 26323 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 26324 | |
| 26325 | # Compiler flag to generate thread-safe objects. |
| 26326 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 26327 | |
| 26328 | # Library versioning type. |
| 26329 | version_type=$version_type |
| 26330 | |
| 26331 | # Format of library name prefix. |
| 26332 | libname_spec=$lt_libname_spec |
| 26333 | |
| 26334 | # List of archive names. First name is the real one, the rest are links. |
| 26335 | # The last name is the one that the linker finds with -lNAME. |
| 26336 | library_names_spec=$lt_library_names_spec |
| 26337 | |
| 26338 | # The coded name of the library, if different from the real name. |
| 26339 | soname_spec=$lt_soname_spec |
| 26340 | |
| 26341 | # Commands used to build and install an old-style archive. |
| 26342 | RANLIB=$lt_RANLIB |
| 26343 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 26344 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 26345 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 26346 | |
| 26347 | # Create an old-style archive from a shared archive. |
| 26348 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 26349 | |
| 26350 | # Create a temporary old-style archive to link instead of a shared archive. |
| 26351 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 26352 | |
| 26353 | # Commands used to build and install a shared archive. |
| 26354 | archive_cmds=$lt_archive_cmds_RC |
| 26355 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 26356 | postinstall_cmds=$lt_postinstall_cmds |
| 26357 | postuninstall_cmds=$lt_postuninstall_cmds |
| 26358 | |
| 26359 | # Commands used to build a loadable module (assumed same as above if empty) |
| 26360 | module_cmds=$lt_module_cmds_RC |
| 26361 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 26362 | |
| 26363 | # Commands to strip libraries. |
| 26364 | old_striplib=$lt_old_striplib |
| 26365 | striplib=$lt_striplib |
| 26366 | |
| 26367 | # Dependencies to place before the objects being linked to create a |
| 26368 | # shared library. |
| 26369 | predep_objects=$lt_predep_objects_RC |
| 26370 | |
| 26371 | # Dependencies to place after the objects being linked to create a |
| 26372 | # shared library. |
| 26373 | postdep_objects=$lt_postdep_objects_RC |
| 26374 | |
| 26375 | # Dependencies to place before the objects being linked to create a |
| 26376 | # shared library. |
| 26377 | predeps=$lt_predeps_RC |
| 26378 | |
| 26379 | # Dependencies to place after the objects being linked to create a |
| 26380 | # shared library. |
| 26381 | postdeps=$lt_postdeps_RC |
| 26382 | |
| 26383 | # The library search path used internally by the compiler when linking |
| 26384 | # a shared library. |
| 26385 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 26386 | |
| 26387 | # Method to check whether dependent libraries are shared objects. |
| 26388 | deplibs_check_method=$lt_deplibs_check_method |
| 26389 | |
| 26390 | # Command to use when deplibs_check_method == file_magic. |
| 26391 | file_magic_cmd=$lt_file_magic_cmd |
| 26392 | |
| 26393 | # Flag that allows shared libraries with undefined symbols to be built. |
| 26394 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 26395 | |
| 26396 | # Flag that forces no undefined symbols. |
| 26397 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 26398 | |
| 26399 | # Commands used to finish a libtool library installation in a directory. |
| 26400 | finish_cmds=$lt_finish_cmds |
| 26401 | |
| 26402 | # Same as above, but a single script fragment to be evaled but not shown. |
| 26403 | finish_eval=$lt_finish_eval |
| 26404 | |
| 26405 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 26406 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 26407 | |
| 26408 | # Transform the output of nm in a proper C declaration |
| 26409 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 26410 | |
| 26411 | # Transform the output of nm in a C name address pair |
| 26412 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 26413 | |
| 26414 | # This is the shared library runtime path variable. |
| 26415 | runpath_var=$runpath_var |
| 26416 | |
| 26417 | # This is the shared library path variable. |
| 26418 | shlibpath_var=$shlibpath_var |
| 26419 | |
| 26420 | # Is shlibpath searched before the hard-coded library search path? |
| 26421 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 26422 | |
| 26423 | # How to hardcode a shared library path into an executable. |
| 26424 | hardcode_action=$hardcode_action_RC |
| 26425 | |
| 26426 | # Whether we should hardcode library paths into libraries. |
| 26427 | hardcode_into_libs=$hardcode_into_libs |
| 26428 | |
| 26429 | # Flag to hardcode \$libdir into a binary during linking. |
| 26430 | # This must work even if \$libdir does not exist. |
| 26431 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 26432 | |
| 26433 | # If ld is used when linking, flag to hardcode \$libdir into |
| 26434 | # a binary during linking. This must work even if \$libdir does |
| 26435 | # not exist. |
| 26436 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 26437 | |
| 26438 | # Whether we need a single -rpath flag with a separated argument. |
| 26439 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 26440 | |
| 26441 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 26442 | # resulting binary. |
| 26443 | hardcode_direct=$hardcode_direct_RC |
| 26444 | |
| 26445 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 26446 | # resulting binary. |
| 26447 | hardcode_minus_L=$hardcode_minus_L_RC |
| 26448 | |
| 26449 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 26450 | # the resulting binary. |
| 26451 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 26452 | |
| 26453 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 26454 | # and all subsequent libraries and executables linked against it. |
| 26455 | hardcode_automatic=$hardcode_automatic_RC |
| 26456 | |
| 26457 | # Variables whose values should be saved in libtool wrapper scripts and |
| 26458 | # restored at relink time. |
| 26459 | variables_saved_for_relink="$variables_saved_for_relink" |
| 26460 | |
| 26461 | # Whether libtool must link a program against all its dependency libraries. |
| 26462 | link_all_deplibs=$link_all_deplibs_RC |
| 26463 | |
| 26464 | # Compile-time system search path for libraries |
| 26465 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 26466 | |
| 26467 | # Run-time system search path for libraries |
| 26468 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 26469 | |
| 26470 | # Fix the shell variable \$srcfile for the compiler. |
| 26471 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 26472 | |
| 26473 | # Set to yes if exported symbols are required. |
| 26474 | always_export_symbols=$always_export_symbols_RC |
| 26475 | |
| 26476 | # The commands to list exported symbols. |
| 26477 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 26478 | |
| 26479 | # The commands to extract the exported symbol list from a shared archive. |
| 26480 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 26481 | |
| 26482 | # Symbols that should not be listed in the preloaded symbols. |
| 26483 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 26484 | |
| 26485 | # Symbols that must always be exported. |
| 26486 | include_expsyms=$lt_include_expsyms_RC |
| 26487 | |
| 26488 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 26489 | |
| 26490 | __EOF__ |
| 26491 | |
| 26492 | |
| 26493 | else |
| 26494 | # If there is no Makefile yet, we rely on a make rule to execute |
| 26495 | # `config.status --recheck' to rerun these tests and create the |
| 26496 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26497 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 26498 | if test -f "$ltmain_in"; then |
| 26499 | test -f Makefile && make "$ltmain" |
| 26500 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26501 | fi |
| 26502 | |
| 26503 | |
| 26504 | ac_ext=c |
| 26505 | ac_cpp='$CPP $CPPFLAGS' |
| 26506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26509 | |
| 26510 | CC="$lt_save_CC" |
| 26511 | |
| 26512 | ;; |
| 26513 | |
| 26514 | *) |
| 26515 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 26516 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 26517 | { (exit 1); exit 1; }; } |
| 26518 | ;; |
| 26519 | esac |
| 26520 | |
| 26521 | # Append the new tag name to the list of available tags. |
| 26522 | if test -n "$tagname" ; then |
| 26523 | available_tags="$available_tags $tagname" |
| 26524 | fi |
| 26525 | fi |
| 26526 | done |
| 26527 | IFS="$lt_save_ifs" |
| 26528 | |
| 26529 | # Now substitute the updated list of available tags. |
| 26530 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 26531 | mv "${ofile}T" "$ofile" |
| 26532 | chmod +x "$ofile" |
| 26533 | else |
| 26534 | rm -f "${ofile}T" |
| 26535 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 26536 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 26537 | { (exit 1); exit 1; }; } |
| 26538 | fi |
| 26539 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26540 | |
| 26541 | |
| 26542 | |
| 26543 | # This can be used to rebuild libtool when needed |
| 26544 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 26545 | |
| 26546 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26547 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26548 | |
| 26549 | # Prevent multiple expansion |
| 26550 | |
| 26551 | |
| 26552 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 26553 | |
| 26554 | |
| 26555 | |
| 26556 | |
| 26557 | |
| 26558 | |
| 26559 | |
| 26560 | |
| 26561 | |
| 26562 | |
| 26563 | |
| 26564 | |
| 26565 | |
| 26566 | |
| 26567 | |
| 26568 | |
| 26569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26570 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 26571 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 26572 | |
| 26573 | cat >>confdefs.h <<\_ACEOF |
| 26574 | #define CAN_DLOPEN_SELF 1 |
| 26575 | _ACEOF |
| 26576 | |
| 26577 | fi |
| 26578 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26579 | etags_version=`$ETAGS --version 2>&1` |
| 26580 | case "$etags_version" in |
| 26581 | *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;; |
| 26582 | *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;; |
| 26583 | *) ETAGSFLAGS="" ;; |
| 26584 | esac |
| 26585 | ETAGSFLAGS=$ETAGSFLAGS |
| 26586 | |
| 26587 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26588 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26589 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 26590 | LLVMGXX="llvm-g++${EXEEXT}" |
| 26591 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 26592 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26595 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 26596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26597 | else |
| 26598 | case $LLVMGCC in |
| 26599 | [\\/]* | ?:[\\/]*) |
| 26600 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 26601 | ;; |
| 26602 | *) |
| 26603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26604 | for as_dir in $PATH |
| 26605 | do |
| 26606 | IFS=$as_save_IFS |
| 26607 | test -z "$as_dir" && as_dir=. |
| 26608 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26609 | 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] | 26610 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 26611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26612 | break 2 |
| 26613 | fi |
| 26614 | done |
| 26615 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26616 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26617 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26618 | ;; |
| 26619 | esac |
| 26620 | fi |
| 26621 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26622 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26623 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 26624 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26625 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26626 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26627 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26628 | fi |
| 26629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26630 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26631 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 26632 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26633 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 26634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26635 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 26636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26637 | else |
| 26638 | case $LLVMGXX in |
| 26639 | [\\/]* | ?:[\\/]*) |
| 26640 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 26641 | ;; |
| 26642 | *) |
| 26643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26644 | for as_dir in $PATH |
| 26645 | do |
| 26646 | IFS=$as_save_IFS |
| 26647 | test -z "$as_dir" && as_dir=. |
| 26648 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26649 | 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] | 26650 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 26651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26652 | break 2 |
| 26653 | fi |
| 26654 | done |
| 26655 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26656 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26657 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26658 | ;; |
| 26659 | esac |
| 26660 | fi |
| 26661 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26662 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26663 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 26664 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26665 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26666 | { echo "$as_me:$LINENO: result: no" >&5 |
| 26667 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26668 | fi |
| 26669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26670 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26671 | else |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 26672 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 26673 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26674 | LLVMGCC=$LLVMGCC |
| 26675 | |
| 26676 | LLVMGXX=$LLVMGXX |
| 26677 | |
| 26678 | fi |
| 26679 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26680 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 26681 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26682 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26683 | ICC=no |
| 26684 | IXX=no |
| 26685 | case $CC in |
| 26686 | icc*|icpc*) |
| 26687 | ICC=yes |
| 26688 | IXX=yes |
| 26689 | ;; |
| 26690 | *) |
| 26691 | ;; |
| 26692 | esac |
| 26693 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 26694 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 26695 | then |
| 26696 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 26697 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 26698 | { (exit 1); exit 1; }; } |
| 26699 | fi |
| 26700 | |
| 26701 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 26702 | then |
| 26703 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 26704 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 26705 | { (exit 1); exit 1; }; } |
| 26706 | fi |
| 26707 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26708 | if test "$GCC" = "yes" |
| 26709 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 26710 | 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] | 26711 | if test "$gccmajor" -lt "3" |
| 26712 | then |
| 26713 | { { 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] | 26714 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 26715 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 26716 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26717 | fi |
| 26718 | |
| 26719 | if test -z "$llvm_cv_gnu_make_command" |
| 26720 | then |
| 26721 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 26722 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 26723 | { (exit 1); exit 1; }; } |
| 26724 | fi |
| 26725 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26726 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 26727 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26728 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26729 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26731 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 26732 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26733 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 26734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26735 | else |
| 26736 | ac_check_lib_save_LIBS=$LIBS |
| 26737 | LIBS="-lelf $LIBS" |
| 26738 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26739 | /* confdefs.h. */ |
| 26740 | _ACEOF |
| 26741 | cat confdefs.h >>conftest.$ac_ext |
| 26742 | cat >>conftest.$ac_ext <<_ACEOF |
| 26743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26745 | /* Override any GCC internal prototype to avoid an error. |
| 26746 | Use char because int might match the return type of a GCC |
| 26747 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26748 | #ifdef __cplusplus |
| 26749 | extern "C" |
| 26750 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26751 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26752 | int |
| 26753 | main () |
| 26754 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26755 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26756 | ; |
| 26757 | return 0; |
| 26758 | } |
| 26759 | _ACEOF |
| 26760 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26761 | if { (ac_try="$ac_link" |
| 26762 | case "(($ac_try" in |
| 26763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26764 | *) ac_try_echo=$ac_try;; |
| 26765 | esac |
| 26766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26767 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26768 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26769 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26770 | rm -f conftest.er1 |
| 26771 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26773 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26774 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26775 | { (case "(($ac_try" in |
| 26776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26777 | *) ac_try_echo=$ac_try;; |
| 26778 | esac |
| 26779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26780 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26781 | ac_status=$? |
| 26782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26783 | (exit $ac_status); }; } && |
| 26784 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26791 | ac_status=$? |
| 26792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26793 | (exit $ac_status); }; }; then |
| 26794 | ac_cv_lib_elf_elf_begin=yes |
| 26795 | else |
| 26796 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26799 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26801 | |
| 26802 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26803 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26804 | LIBS=$ac_check_lib_save_LIBS |
| 26805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26806 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 26807 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26808 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 26809 | cat >>confdefs.h <<_ACEOF |
| 26810 | #define HAVE_LIBELF 1 |
| 26811 | _ACEOF |
| 26812 | |
| 26813 | LIBS="-lelf $LIBS" |
| 26814 | |
| 26815 | fi |
| 26816 | |
| 26817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26818 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 26819 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26820 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 26821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26822 | else |
| 26823 | ac_check_lib_save_LIBS=$LIBS |
| 26824 | LIBS="-lm $LIBS" |
| 26825 | cat >conftest.$ac_ext <<_ACEOF |
| 26826 | /* confdefs.h. */ |
| 26827 | _ACEOF |
| 26828 | cat confdefs.h >>conftest.$ac_ext |
| 26829 | cat >>conftest.$ac_ext <<_ACEOF |
| 26830 | /* end confdefs.h. */ |
| 26831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26832 | /* Override any GCC internal prototype to avoid an error. |
| 26833 | Use char because int might match the return type of a GCC |
| 26834 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26835 | #ifdef __cplusplus |
| 26836 | extern "C" |
| 26837 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26838 | char sin (); |
| 26839 | int |
| 26840 | main () |
| 26841 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26842 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26843 | ; |
| 26844 | return 0; |
| 26845 | } |
| 26846 | _ACEOF |
| 26847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26848 | if { (ac_try="$ac_link" |
| 26849 | case "(($ac_try" in |
| 26850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26851 | *) ac_try_echo=$ac_try;; |
| 26852 | esac |
| 26853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26854 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26855 | ac_status=$? |
| 26856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26857 | rm -f conftest.er1 |
| 26858 | cat conftest.err >&5 |
| 26859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26860 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26862 | { (case "(($ac_try" in |
| 26863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26864 | *) ac_try_echo=$ac_try;; |
| 26865 | esac |
| 26866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26867 | (eval "$ac_try") 2>&5 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26868 | ac_status=$? |
| 26869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26870 | (exit $ac_status); }; } && |
| 26871 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 26881 | ac_cv_lib_m_sin=yes |
| 26882 | else |
| 26883 | echo "$as_me: failed program was:" >&5 |
| 26884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26885 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26886 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26887 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26888 | |
| 26889 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26890 | conftest$ac_exeext conftest.$ac_ext |
| 26891 | LIBS=$ac_check_lib_save_LIBS |
| 26892 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26893 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 26894 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 26895 | if test $ac_cv_lib_m_sin = yes; then |
| 26896 | cat >>confdefs.h <<_ACEOF |
| 26897 | #define HAVE_LIBM 1 |
| 26898 | _ACEOF |
| 26899 | |
| 26900 | LIBS="-lm $LIBS" |
| 26901 | |
| 26902 | fi |
| 26903 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 26904 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26905 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26906 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 26907 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26908 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26910 | else |
| 26911 | ac_check_lib_save_LIBS=$LIBS |
| 26912 | LIBS="-limagehlp $LIBS" |
| 26913 | cat >conftest.$ac_ext <<_ACEOF |
| 26914 | /* confdefs.h. */ |
| 26915 | _ACEOF |
| 26916 | cat confdefs.h >>conftest.$ac_ext |
| 26917 | cat >>conftest.$ac_ext <<_ACEOF |
| 26918 | /* end confdefs.h. */ |
| 26919 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26920 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26921 | int |
| 26922 | main () |
| 26923 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26924 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26925 | ; |
| 26926 | return 0; |
| 26927 | } |
| 26928 | _ACEOF |
| 26929 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26930 | if { (ac_try="$ac_link" |
| 26931 | case "(($ac_try" in |
| 26932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26933 | *) ac_try_echo=$ac_try;; |
| 26934 | esac |
| 26935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26936 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26937 | ac_status=$? |
| 26938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26939 | rm -f conftest.er1 |
| 26940 | cat conftest.err >&5 |
| 26941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26942 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 26944 | { (case "(($ac_try" in |
| 26945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26946 | *) ac_try_echo=$ac_try;; |
| 26947 | esac |
| 26948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26949 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26950 | ac_status=$? |
| 26951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26952 | (exit $ac_status); }; } && |
| 26953 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26963 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26964 | else |
| 26965 | echo "$as_me: failed program was:" >&5 |
| 26966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26967 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26968 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26969 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26970 | |
| 26971 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26972 | conftest$ac_exeext conftest.$ac_ext |
| 26973 | LIBS=$ac_check_lib_save_LIBS |
| 26974 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26975 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 26976 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26977 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26978 | cat >>confdefs.h <<_ACEOF |
| 26979 | #define HAVE_LIBIMAGEHLP 1 |
| 26980 | _ACEOF |
| 26981 | |
| 26982 | LIBS="-limagehlp $LIBS" |
| 26983 | |
| 26984 | fi |
| 26985 | |
| 26986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26987 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 26988 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26989 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26991 | else |
| 26992 | ac_check_lib_save_LIBS=$LIBS |
| 26993 | LIBS="-lpsapi $LIBS" |
| 26994 | cat >conftest.$ac_ext <<_ACEOF |
| 26995 | /* confdefs.h. */ |
| 26996 | _ACEOF |
| 26997 | cat confdefs.h >>conftest.$ac_ext |
| 26998 | cat >>conftest.$ac_ext <<_ACEOF |
| 26999 | /* end confdefs.h. */ |
| 27000 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27001 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27002 | int |
| 27003 | main () |
| 27004 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27005 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27006 | ; |
| 27007 | return 0; |
| 27008 | } |
| 27009 | _ACEOF |
| 27010 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27011 | if { (ac_try="$ac_link" |
| 27012 | case "(($ac_try" in |
| 27013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27014 | *) ac_try_echo=$ac_try;; |
| 27015 | esac |
| 27016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27017 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27018 | ac_status=$? |
| 27019 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27020 | rm -f conftest.er1 |
| 27021 | cat conftest.err >&5 |
| 27022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27023 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27025 | { (case "(($ac_try" in |
| 27026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27027 | *) ac_try_echo=$ac_try;; |
| 27028 | esac |
| 27029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27030 | (eval "$ac_try") 2>&5 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27031 | ac_status=$? |
| 27032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27033 | (exit $ac_status); }; } && |
| 27034 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27044 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27045 | else |
| 27046 | echo "$as_me: failed program was:" >&5 |
| 27047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27048 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27049 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27050 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27051 | |
| 27052 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27053 | conftest$ac_exeext conftest.$ac_ext |
| 27054 | LIBS=$ac_check_lib_save_LIBS |
| 27055 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27056 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 27057 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 27058 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 27059 | cat >>confdefs.h <<_ACEOF |
| 27060 | #define HAVE_LIBPSAPI 1 |
| 27061 | _ACEOF |
| 27062 | |
| 27063 | LIBS="-lpsapi $LIBS" |
| 27064 | |
| 27065 | fi |
| 27066 | |
| 27067 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27068 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27069 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 27070 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27071 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27073 | else |
| 27074 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27075 | cat >conftest.$ac_ext <<_ACEOF |
| 27076 | /* confdefs.h. */ |
| 27077 | _ACEOF |
| 27078 | cat confdefs.h >>conftest.$ac_ext |
| 27079 | cat >>conftest.$ac_ext <<_ACEOF |
| 27080 | /* end confdefs.h. */ |
| 27081 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27082 | /* Override any GCC internal prototype to avoid an error. |
| 27083 | Use char because int might match the return type of a GCC |
| 27084 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27085 | #ifdef __cplusplus |
| 27086 | extern "C" |
| 27087 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27088 | char lt_dlopen (); |
| 27089 | int |
| 27090 | main () |
| 27091 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27092 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27093 | ; |
| 27094 | return 0; |
| 27095 | } |
| 27096 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27097 | for ac_lib in '' ltdl; do |
| 27098 | if test -z "$ac_lib"; then |
| 27099 | ac_res="none required" |
| 27100 | else |
| 27101 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27102 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27103 | fi |
| 27104 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27105 | if { (ac_try="$ac_link" |
| 27106 | case "(($ac_try" in |
| 27107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27108 | *) ac_try_echo=$ac_try;; |
| 27109 | esac |
| 27110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27111 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27112 | ac_status=$? |
| 27113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27114 | rm -f conftest.er1 |
| 27115 | cat conftest.err >&5 |
| 27116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27117 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27119 | { (case "(($ac_try" in |
| 27120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27121 | *) ac_try_echo=$ac_try;; |
| 27122 | esac |
| 27123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27124 | (eval "$ac_try") 2>&5 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27125 | ac_status=$? |
| 27126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27127 | (exit $ac_status); }; } && |
| 27128 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27138 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27139 | else |
| 27140 | echo "$as_me: failed program was:" >&5 |
| 27141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27142 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27143 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27144 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27145 | |
| 27146 | rm -f core conftest.err conftest.$ac_objext \ |
| 27147 | conftest$ac_exeext |
| 27148 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27149 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27151 | done |
| 27152 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 27153 | : |
| 27154 | else |
| 27155 | ac_cv_search_lt_dlopen=no |
| 27156 | fi |
| 27157 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27158 | LIBS=$ac_func_search_save_LIBS |
| 27159 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27160 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 27161 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 27162 | ac_res=$ac_cv_search_lt_dlopen |
| 27163 | if test "$ac_res" != no; then |
| 27164 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 27165 | |
| 27166 | cat >>confdefs.h <<\_ACEOF |
| 27167 | #define HAVE_LT_DLOPEN 1 |
| 27168 | _ACEOF |
| 27169 | |
| 27170 | else |
| 27171 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 27172 | not be available" >&5 |
| 27173 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 27174 | not be available" >&2;} |
| 27175 | fi |
| 27176 | |
| 27177 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27178 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 27179 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27180 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27182 | else |
| 27183 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27184 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27185 | /* confdefs.h. */ |
| 27186 | _ACEOF |
| 27187 | cat confdefs.h >>conftest.$ac_ext |
| 27188 | cat >>conftest.$ac_ext <<_ACEOF |
| 27189 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27190 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27191 | /* Override any GCC internal prototype to avoid an error. |
| 27192 | Use char because int might match the return type of a GCC |
| 27193 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27194 | #ifdef __cplusplus |
| 27195 | extern "C" |
| 27196 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27197 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27198 | int |
| 27199 | main () |
| 27200 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27201 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27202 | ; |
| 27203 | return 0; |
| 27204 | } |
| 27205 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27206 | for ac_lib in '' dl; do |
| 27207 | if test -z "$ac_lib"; then |
| 27208 | ac_res="none required" |
| 27209 | else |
| 27210 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27211 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27212 | fi |
| 27213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27214 | if { (ac_try="$ac_link" |
| 27215 | case "(($ac_try" in |
| 27216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27217 | *) ac_try_echo=$ac_try;; |
| 27218 | esac |
| 27219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27220 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27221 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27223 | rm -f conftest.er1 |
| 27224 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27226 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27228 | { (case "(($ac_try" in |
| 27229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27230 | *) ac_try_echo=$ac_try;; |
| 27231 | esac |
| 27232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27233 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27234 | ac_status=$? |
| 27235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27236 | (exit $ac_status); }; } && |
| 27237 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27244 | ac_status=$? |
| 27245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27246 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27247 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27248 | else |
| 27249 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27252 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27253 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27254 | |
| 27255 | rm -f core conftest.err conftest.$ac_objext \ |
| 27256 | conftest$ac_exeext |
| 27257 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27258 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27260 | done |
| 27261 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 27262 | : |
| 27263 | else |
| 27264 | ac_cv_search_dlopen=no |
| 27265 | fi |
| 27266 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27267 | LIBS=$ac_func_search_save_LIBS |
| 27268 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27269 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 27270 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 27271 | ac_res=$ac_cv_search_dlopen |
| 27272 | if test "$ac_res" != no; then |
| 27273 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27274 | |
| 27275 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27276 | #define HAVE_DLOPEN 1 |
| 27277 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27278 | |
| 27279 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 27280 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 27281 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27282 | fi |
| 27283 | |
| 27284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27285 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 27286 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27287 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27289 | else |
| 27290 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27291 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27292 | /* confdefs.h. */ |
| 27293 | _ACEOF |
| 27294 | cat confdefs.h >>conftest.$ac_ext |
| 27295 | cat >>conftest.$ac_ext <<_ACEOF |
| 27296 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27297 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27298 | /* Override any GCC internal prototype to avoid an error. |
| 27299 | Use char because int might match the return type of a GCC |
| 27300 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27301 | #ifdef __cplusplus |
| 27302 | extern "C" |
| 27303 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27304 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27305 | int |
| 27306 | main () |
| 27307 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27308 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27309 | ; |
| 27310 | return 0; |
| 27311 | } |
| 27312 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27313 | for ac_lib in '' malloc; do |
| 27314 | if test -z "$ac_lib"; then |
| 27315 | ac_res="none required" |
| 27316 | else |
| 27317 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27318 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27319 | fi |
| 27320 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27321 | if { (ac_try="$ac_link" |
| 27322 | case "(($ac_try" in |
| 27323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27324 | *) ac_try_echo=$ac_try;; |
| 27325 | esac |
| 27326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27327 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27328 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27330 | rm -f conftest.er1 |
| 27331 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27333 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27335 | { (case "(($ac_try" in |
| 27336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27337 | *) ac_try_echo=$ac_try;; |
| 27338 | esac |
| 27339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27340 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27341 | ac_status=$? |
| 27342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27343 | (exit $ac_status); }; } && |
| 27344 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27351 | ac_status=$? |
| 27352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27353 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27354 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27355 | else |
| 27356 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27358 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27359 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27360 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27361 | |
| 27362 | rm -f core conftest.err conftest.$ac_objext \ |
| 27363 | conftest$ac_exeext |
| 27364 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27365 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27366 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27367 | done |
| 27368 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 27369 | : |
| 27370 | else |
| 27371 | ac_cv_search_mallinfo=no |
| 27372 | fi |
| 27373 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27374 | LIBS=$ac_func_search_save_LIBS |
| 27375 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27376 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 27377 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 27378 | ac_res=$ac_cv_search_mallinfo |
| 27379 | if test "$ac_res" != no; then |
| 27380 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 27381 | |
| 27382 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27383 | #define HAVE_MALLINFO 1 |
| 27384 | _ACEOF |
| 27385 | |
| 27386 | fi |
| 27387 | |
| 27388 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27389 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27390 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27391 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 27392 | 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] | 27393 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 27394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27395 | else |
| 27396 | ac_check_lib_save_LIBS=$LIBS |
| 27397 | LIBS="-lpthread $LIBS" |
| 27398 | cat >conftest.$ac_ext <<_ACEOF |
| 27399 | /* confdefs.h. */ |
| 27400 | _ACEOF |
| 27401 | cat confdefs.h >>conftest.$ac_ext |
| 27402 | cat >>conftest.$ac_ext <<_ACEOF |
| 27403 | /* end confdefs.h. */ |
| 27404 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27405 | /* Override any GCC internal prototype to avoid an error. |
| 27406 | Use char because int might match the return type of a GCC |
| 27407 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27408 | #ifdef __cplusplus |
| 27409 | extern "C" |
| 27410 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27411 | char pthread_mutex_init (); |
| 27412 | int |
| 27413 | main () |
| 27414 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27415 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27416 | ; |
| 27417 | return 0; |
| 27418 | } |
| 27419 | _ACEOF |
| 27420 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27421 | if { (ac_try="$ac_link" |
| 27422 | case "(($ac_try" in |
| 27423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27424 | *) ac_try_echo=$ac_try;; |
| 27425 | esac |
| 27426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27427 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27428 | ac_status=$? |
| 27429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27430 | rm -f conftest.er1 |
| 27431 | cat conftest.err >&5 |
| 27432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27433 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27435 | { (case "(($ac_try" in |
| 27436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27437 | *) ac_try_echo=$ac_try;; |
| 27438 | esac |
| 27439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27440 | (eval "$ac_try") 2>&5 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27441 | ac_status=$? |
| 27442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27443 | (exit $ac_status); }; } && |
| 27444 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 27454 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 27455 | else |
| 27456 | echo "$as_me: failed program was:" >&5 |
| 27457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27459 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27460 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27461 | |
| 27462 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27463 | conftest$ac_exeext conftest.$ac_ext |
| 27464 | LIBS=$ac_check_lib_save_LIBS |
| 27465 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27466 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 27467 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 27468 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 27469 | cat >>confdefs.h <<_ACEOF |
| 27470 | #define HAVE_LIBPTHREAD 1 |
| 27471 | _ACEOF |
| 27472 | |
| 27473 | LIBS="-lpthread $LIBS" |
| 27474 | |
| 27475 | fi |
| 27476 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27477 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 27478 | 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] | 27479 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27481 | else |
| 27482 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27483 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27484 | /* confdefs.h. */ |
| 27485 | _ACEOF |
| 27486 | cat confdefs.h >>conftest.$ac_ext |
| 27487 | cat >>conftest.$ac_ext <<_ACEOF |
| 27488 | /* end confdefs.h. */ |
| 27489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27490 | /* Override any GCC internal prototype to avoid an error. |
| 27491 | Use char because int might match the return type of a GCC |
| 27492 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27493 | #ifdef __cplusplus |
| 27494 | extern "C" |
| 27495 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27496 | char pthread_mutex_lock (); |
| 27497 | int |
| 27498 | main () |
| 27499 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27500 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27501 | ; |
| 27502 | return 0; |
| 27503 | } |
| 27504 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27505 | for ac_lib in '' pthread; do |
| 27506 | if test -z "$ac_lib"; then |
| 27507 | ac_res="none required" |
| 27508 | else |
| 27509 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27510 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27511 | fi |
| 27512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27513 | if { (ac_try="$ac_link" |
| 27514 | case "(($ac_try" in |
| 27515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27516 | *) ac_try_echo=$ac_try;; |
| 27517 | esac |
| 27518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27519 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27520 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27522 | rm -f conftest.er1 |
| 27523 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27525 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27527 | { (case "(($ac_try" in |
| 27528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27529 | *) ac_try_echo=$ac_try;; |
| 27530 | esac |
| 27531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27532 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27533 | ac_status=$? |
| 27534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27535 | (exit $ac_status); }; } && |
| 27536 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27543 | ac_status=$? |
| 27544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27545 | (exit $ac_status); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27546 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27547 | else |
| 27548 | echo "$as_me: failed program was:" >&5 |
| 27549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27551 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27552 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27553 | |
| 27554 | rm -f core conftest.err conftest.$ac_objext \ |
| 27555 | conftest$ac_exeext |
| 27556 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27557 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27558 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27559 | done |
| 27560 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 27561 | : |
| 27562 | else |
| 27563 | ac_cv_search_pthread_mutex_lock=no |
| 27564 | fi |
| 27565 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27566 | LIBS=$ac_func_search_save_LIBS |
| 27567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27568 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 27569 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 27570 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 27571 | if test "$ac_res" != no; then |
| 27572 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27573 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 27574 | cat >>confdefs.h <<\_ACEOF |
| 27575 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 27576 | _ACEOF |
| 27577 | |
| 27578 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 27579 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27580 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 27581 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27582 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 27583 | # Check whether --with-udis86 was given. |
| 27584 | if test "${with_udis86+set}" = set; then |
| 27585 | withval=$with_udis86; |
| 27586 | USE_UDIS86=1 |
| 27587 | |
| 27588 | case "$withval" in |
| 27589 | /usr/lib) ;; |
| 27590 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 27591 | esac |
| 27592 | |
| 27593 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 27594 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 27595 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 27596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27597 | else |
| 27598 | ac_check_lib_save_LIBS=$LIBS |
| 27599 | LIBS="-ludis86 $LIBS" |
| 27600 | cat >conftest.$ac_ext <<_ACEOF |
| 27601 | /* confdefs.h. */ |
| 27602 | _ACEOF |
| 27603 | cat confdefs.h >>conftest.$ac_ext |
| 27604 | cat >>conftest.$ac_ext <<_ACEOF |
| 27605 | /* end confdefs.h. */ |
| 27606 | |
| 27607 | /* Override any GCC internal prototype to avoid an error. |
| 27608 | Use char because int might match the return type of a GCC |
| 27609 | builtin and then its argument prototype would still apply. */ |
| 27610 | #ifdef __cplusplus |
| 27611 | extern "C" |
| 27612 | #endif |
| 27613 | char ud_init (); |
| 27614 | int |
| 27615 | main () |
| 27616 | { |
| 27617 | return ud_init (); |
| 27618 | ; |
| 27619 | return 0; |
| 27620 | } |
| 27621 | _ACEOF |
| 27622 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27623 | if { (ac_try="$ac_link" |
| 27624 | case "(($ac_try" in |
| 27625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27626 | *) ac_try_echo=$ac_try;; |
| 27627 | esac |
| 27628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27629 | (eval "$ac_link") 2>conftest.er1 |
| 27630 | ac_status=$? |
| 27631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27632 | rm -f conftest.er1 |
| 27633 | cat conftest.err >&5 |
| 27634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27635 | (exit $ac_status); } && |
| 27636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27637 | { (case "(($ac_try" in |
| 27638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27639 | *) ac_try_echo=$ac_try;; |
| 27640 | esac |
| 27641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27642 | (eval "$ac_try") 2>&5 |
| 27643 | ac_status=$? |
| 27644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27645 | (exit $ac_status); }; } && |
| 27646 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
| 27656 | ac_cv_lib_udis86_ud_init=yes |
| 27657 | else |
| 27658 | echo "$as_me: failed program was:" >&5 |
| 27659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27660 | |
| 27661 | ac_cv_lib_udis86_ud_init=no |
| 27662 | fi |
| 27663 | |
| 27664 | rm -f core conftest.err conftest.$ac_objext \ |
| 27665 | conftest$ac_exeext conftest.$ac_ext |
| 27666 | LIBS=$ac_check_lib_save_LIBS |
| 27667 | fi |
| 27668 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 27669 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 27670 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 27671 | cat >>confdefs.h <<_ACEOF |
| 27672 | #define HAVE_LIBUDIS86 1 |
| 27673 | _ACEOF |
| 27674 | |
| 27675 | LIBS="-ludis86 $LIBS" |
| 27676 | |
| 27677 | else |
| 27678 | |
| 27679 | echo "Error! You need to have libudis86 around." |
| 27680 | exit -1 |
| 27681 | |
| 27682 | fi |
| 27683 | |
| 27684 | |
| 27685 | else |
| 27686 | USE_UDIS86=0 |
| 27687 | |
| 27688 | fi |
| 27689 | |
| 27690 | |
| 27691 | cat >>confdefs.h <<_ACEOF |
| 27692 | #define USE_UDIS86 $USE_UDIS86 |
| 27693 | _ACEOF |
| 27694 | |
| 27695 | |
| 27696 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27697 | |
| 27698 | |
| 27699 | |
| 27700 | |
| 27701 | |
| 27702 | ac_header_dirent=no |
| 27703 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 27704 | 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] | 27705 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 27706 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 27707 | 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] | 27708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27709 | else |
| 27710 | cat >conftest.$ac_ext <<_ACEOF |
| 27711 | /* confdefs.h. */ |
| 27712 | _ACEOF |
| 27713 | cat confdefs.h >>conftest.$ac_ext |
| 27714 | cat >>conftest.$ac_ext <<_ACEOF |
| 27715 | /* end confdefs.h. */ |
| 27716 | #include <sys/types.h> |
| 27717 | #include <$ac_hdr> |
| 27718 | |
| 27719 | int |
| 27720 | main () |
| 27721 | { |
| 27722 | if ((DIR *) 0) |
| 27723 | return 0; |
| 27724 | ; |
| 27725 | return 0; |
| 27726 | } |
| 27727 | _ACEOF |
| 27728 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27729 | if { (ac_try="$ac_compile" |
| 27730 | case "(($ac_try" in |
| 27731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27732 | *) ac_try_echo=$ac_try;; |
| 27733 | esac |
| 27734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27735 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27736 | ac_status=$? |
| 27737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27738 | rm -f conftest.er1 |
| 27739 | cat conftest.err >&5 |
| 27740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27741 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27743 | { (case "(($ac_try" in |
| 27744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27745 | *) ac_try_echo=$ac_try;; |
| 27746 | esac |
| 27747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27748 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27749 | ac_status=$? |
| 27750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27751 | (exit $ac_status); }; } && |
| 27752 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 27762 | eval "$as_ac_Header=yes" |
| 27763 | else |
| 27764 | echo "$as_me: failed program was:" >&5 |
| 27765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27767 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27768 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27769 | |
| 27770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27772 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27773 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27774 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27775 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27776 | cat >>confdefs.h <<_ACEOF |
| 27777 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 27778 | _ACEOF |
| 27779 | |
| 27780 | ac_header_dirent=$ac_hdr; break |
| 27781 | fi |
| 27782 | |
| 27783 | done |
| 27784 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 27785 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27786 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27787 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27788 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27790 | else |
| 27791 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27792 | cat >conftest.$ac_ext <<_ACEOF |
| 27793 | /* confdefs.h. */ |
| 27794 | _ACEOF |
| 27795 | cat confdefs.h >>conftest.$ac_ext |
| 27796 | cat >>conftest.$ac_ext <<_ACEOF |
| 27797 | /* end confdefs.h. */ |
| 27798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27799 | /* Override any GCC internal prototype to avoid an error. |
| 27800 | Use char because int might match the return type of a GCC |
| 27801 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27802 | #ifdef __cplusplus |
| 27803 | extern "C" |
| 27804 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27805 | char opendir (); |
| 27806 | int |
| 27807 | main () |
| 27808 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27809 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27810 | ; |
| 27811 | return 0; |
| 27812 | } |
| 27813 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27814 | for ac_lib in '' dir; do |
| 27815 | if test -z "$ac_lib"; then |
| 27816 | ac_res="none required" |
| 27817 | else |
| 27818 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27819 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27820 | fi |
| 27821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27822 | if { (ac_try="$ac_link" |
| 27823 | case "(($ac_try" in |
| 27824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27825 | *) ac_try_echo=$ac_try;; |
| 27826 | esac |
| 27827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27828 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27829 | ac_status=$? |
| 27830 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27831 | rm -f conftest.er1 |
| 27832 | cat conftest.err >&5 |
| 27833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27834 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27835 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27836 | { (case "(($ac_try" in |
| 27837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27838 | *) ac_try_echo=$ac_try;; |
| 27839 | esac |
| 27840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27841 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27842 | ac_status=$? |
| 27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27844 | (exit $ac_status); }; } && |
| 27845 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27855 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27856 | else |
| 27857 | echo "$as_me: failed program was:" >&5 |
| 27858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27859 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27860 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27861 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27862 | |
| 27863 | rm -f core conftest.err conftest.$ac_objext \ |
| 27864 | conftest$ac_exeext |
| 27865 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27866 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27867 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27868 | done |
| 27869 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27870 | : |
| 27871 | else |
| 27872 | ac_cv_search_opendir=no |
| 27873 | fi |
| 27874 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27875 | LIBS=$ac_func_search_save_LIBS |
| 27876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27877 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27878 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27879 | ac_res=$ac_cv_search_opendir |
| 27880 | if test "$ac_res" != no; then |
| 27881 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27882 | |
| 27883 | fi |
| 27884 | |
| 27885 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27886 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 27887 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27888 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27890 | else |
| 27891 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27892 | cat >conftest.$ac_ext <<_ACEOF |
| 27893 | /* confdefs.h. */ |
| 27894 | _ACEOF |
| 27895 | cat confdefs.h >>conftest.$ac_ext |
| 27896 | cat >>conftest.$ac_ext <<_ACEOF |
| 27897 | /* end confdefs.h. */ |
| 27898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27899 | /* Override any GCC internal prototype to avoid an error. |
| 27900 | Use char because int might match the return type of a GCC |
| 27901 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27902 | #ifdef __cplusplus |
| 27903 | extern "C" |
| 27904 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27905 | char opendir (); |
| 27906 | int |
| 27907 | main () |
| 27908 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27909 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27910 | ; |
| 27911 | return 0; |
| 27912 | } |
| 27913 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27914 | for ac_lib in '' x; do |
| 27915 | if test -z "$ac_lib"; then |
| 27916 | ac_res="none required" |
| 27917 | else |
| 27918 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27919 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27920 | fi |
| 27921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 27922 | if { (ac_try="$ac_link" |
| 27923 | case "(($ac_try" in |
| 27924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27925 | *) ac_try_echo=$ac_try;; |
| 27926 | esac |
| 27927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27928 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27929 | ac_status=$? |
| 27930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27931 | rm -f conftest.er1 |
| 27932 | cat conftest.err >&5 |
| 27933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27934 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 27936 | { (case "(($ac_try" in |
| 27937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27938 | *) ac_try_echo=$ac_try;; |
| 27939 | esac |
| 27940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27941 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27942 | ac_status=$? |
| 27943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27944 | (exit $ac_status); }; } && |
| 27945 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27955 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27956 | else |
| 27957 | echo "$as_me: failed program was:" >&5 |
| 27958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27960 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27962 | |
| 27963 | rm -f core conftest.err conftest.$ac_objext \ |
| 27964 | conftest$ac_exeext |
| 27965 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27966 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27967 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27968 | done |
| 27969 | if test "${ac_cv_search_opendir+set}" = set; then |
| 27970 | : |
| 27971 | else |
| 27972 | ac_cv_search_opendir=no |
| 27973 | fi |
| 27974 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27975 | LIBS=$ac_func_search_save_LIBS |
| 27976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27977 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 27978 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 27979 | ac_res=$ac_cv_search_opendir |
| 27980 | if test "$ac_res" != no; then |
| 27981 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27982 | |
| 27983 | fi |
| 27984 | |
| 27985 | fi |
| 27986 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27987 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 27988 | 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] | 27989 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 27990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27991 | else |
| 27992 | ac_ext=c |
| 27993 | ac_cpp='$CPP $CPPFLAGS' |
| 27994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 27995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 27996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 27997 | |
| 27998 | cat >conftest.$ac_ext <<_ACEOF |
| 27999 | /* confdefs.h. */ |
| 28000 | _ACEOF |
| 28001 | cat confdefs.h >>conftest.$ac_ext |
| 28002 | cat >>conftest.$ac_ext <<_ACEOF |
| 28003 | /* end confdefs.h. */ |
| 28004 | #include <sys/mman.h> |
| 28005 | #include <unistd.h> |
| 28006 | #include <fcntl.h> |
| 28007 | int |
| 28008 | main () |
| 28009 | { |
| 28010 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 28011 | ; |
| 28012 | return 0; |
| 28013 | } |
| 28014 | _ACEOF |
| 28015 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28016 | if { (ac_try="$ac_compile" |
| 28017 | case "(($ac_try" in |
| 28018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28019 | *) ac_try_echo=$ac_try;; |
| 28020 | esac |
| 28021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28022 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28023 | ac_status=$? |
| 28024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28025 | rm -f conftest.er1 |
| 28026 | cat conftest.err >&5 |
| 28027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28028 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28030 | { (case "(($ac_try" in |
| 28031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28032 | *) ac_try_echo=$ac_try;; |
| 28033 | esac |
| 28034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28035 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28036 | ac_status=$? |
| 28037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28038 | (exit $ac_status); }; } && |
| 28039 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 28049 | ac_cv_header_mmap_anon=yes |
| 28050 | else |
| 28051 | echo "$as_me: failed program was:" >&5 |
| 28052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28053 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28054 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28055 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28056 | |
| 28057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28058 | ac_ext=c |
| 28059 | ac_cpp='$CPP $CPPFLAGS' |
| 28060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28063 | |
| 28064 | |
| 28065 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28066 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 28067 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28068 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 28069 | |
| 28070 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 28071 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28072 | _ACEOF |
| 28073 | |
| 28074 | fi |
| 28075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28076 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 28077 | 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] | 28078 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 28079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28080 | else |
| 28081 | cat >conftest.$ac_ext <<_ACEOF |
| 28082 | /* confdefs.h. */ |
| 28083 | _ACEOF |
| 28084 | cat confdefs.h >>conftest.$ac_ext |
| 28085 | cat >>conftest.$ac_ext <<_ACEOF |
| 28086 | /* end confdefs.h. */ |
| 28087 | #include <sys/types.h> |
| 28088 | #include <sys/stat.h> |
| 28089 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28090 | #if defined S_ISBLK && defined S_IFDIR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28091 | # if S_ISBLK (S_IFDIR) |
| 28092 | You lose. |
| 28093 | # endif |
| 28094 | #endif |
| 28095 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28096 | #if defined S_ISBLK && defined S_IFCHR |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28097 | # if S_ISBLK (S_IFCHR) |
| 28098 | You lose. |
| 28099 | # endif |
| 28100 | #endif |
| 28101 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28102 | #if defined S_ISLNK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28103 | # if S_ISLNK (S_IFREG) |
| 28104 | You lose. |
| 28105 | # endif |
| 28106 | #endif |
| 28107 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28108 | #if defined S_ISSOCK && defined S_IFREG |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28109 | # if S_ISSOCK (S_IFREG) |
| 28110 | You lose. |
| 28111 | # endif |
| 28112 | #endif |
| 28113 | |
| 28114 | _ACEOF |
| 28115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 28116 | $EGREP "You lose" >/dev/null 2>&1; then |
| 28117 | ac_cv_header_stat_broken=yes |
| 28118 | else |
| 28119 | ac_cv_header_stat_broken=no |
| 28120 | fi |
| 28121 | rm -f conftest* |
| 28122 | |
| 28123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28124 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 28125 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28126 | if test $ac_cv_header_stat_broken = yes; then |
| 28127 | |
| 28128 | cat >>confdefs.h <<\_ACEOF |
| 28129 | #define STAT_MACROS_BROKEN 1 |
| 28130 | _ACEOF |
| 28131 | |
| 28132 | fi |
| 28133 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28134 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 28135 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28136 | if test "${ac_cv_header_stdc+set}" = set; then |
| 28137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28138 | else |
| 28139 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28140 | /* confdefs.h. */ |
| 28141 | _ACEOF |
| 28142 | cat confdefs.h >>conftest.$ac_ext |
| 28143 | cat >>conftest.$ac_ext <<_ACEOF |
| 28144 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28145 | #include <stdlib.h> |
| 28146 | #include <stdarg.h> |
| 28147 | #include <string.h> |
| 28148 | #include <float.h> |
| 28149 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28150 | int |
| 28151 | main () |
| 28152 | { |
| 28153 | |
| 28154 | ; |
| 28155 | return 0; |
| 28156 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28157 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28158 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28159 | if { (ac_try="$ac_compile" |
| 28160 | case "(($ac_try" in |
| 28161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28162 | *) ac_try_echo=$ac_try;; |
| 28163 | esac |
| 28164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28165 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28166 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28168 | rm -f conftest.er1 |
| 28169 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28171 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28173 | { (case "(($ac_try" in |
| 28174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28175 | *) ac_try_echo=$ac_try;; |
| 28176 | esac |
| 28177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28178 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28179 | ac_status=$? |
| 28180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28181 | (exit $ac_status); }; } && |
| 28182 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28189 | ac_status=$? |
| 28190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28191 | (exit $ac_status); }; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28192 | ac_cv_header_stdc=yes |
| 28193 | else |
| 28194 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28196 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28197 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28198 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28199 | |
| 28200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28201 | |
| 28202 | if test $ac_cv_header_stdc = yes; then |
| 28203 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 28204 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28205 | /* confdefs.h. */ |
| 28206 | _ACEOF |
| 28207 | cat confdefs.h >>conftest.$ac_ext |
| 28208 | cat >>conftest.$ac_ext <<_ACEOF |
| 28209 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28210 | #include <string.h> |
| 28211 | |
| 28212 | _ACEOF |
| 28213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28214 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28215 | : |
| 28216 | else |
| 28217 | ac_cv_header_stdc=no |
| 28218 | fi |
| 28219 | rm -f conftest* |
| 28220 | |
| 28221 | fi |
| 28222 | |
| 28223 | if test $ac_cv_header_stdc = yes; then |
| 28224 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 28225 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28226 | /* confdefs.h. */ |
| 28227 | _ACEOF |
| 28228 | cat confdefs.h >>conftest.$ac_ext |
| 28229 | cat >>conftest.$ac_ext <<_ACEOF |
| 28230 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28231 | #include <stdlib.h> |
| 28232 | |
| 28233 | _ACEOF |
| 28234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28235 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28236 | : |
| 28237 | else |
| 28238 | ac_cv_header_stdc=no |
| 28239 | fi |
| 28240 | rm -f conftest* |
| 28241 | |
| 28242 | fi |
| 28243 | |
| 28244 | if test $ac_cv_header_stdc = yes; then |
| 28245 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 28246 | if test "$cross_compiling" = yes; then |
| 28247 | : |
| 28248 | else |
| 28249 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28250 | /* confdefs.h. */ |
| 28251 | _ACEOF |
| 28252 | cat confdefs.h >>conftest.$ac_ext |
| 28253 | cat >>conftest.$ac_ext <<_ACEOF |
| 28254 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28255 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28256 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28257 | #if ((' ' & 0x0FF) == 0x020) |
| 28258 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 28259 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 28260 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28261 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28262 | (('a' <= (c) && (c) <= 'i') \ |
| 28263 | || ('j' <= (c) && (c) <= 'r') \ |
| 28264 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28265 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 28266 | #endif |
| 28267 | |
| 28268 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 28269 | int |
| 28270 | main () |
| 28271 | { |
| 28272 | int i; |
| 28273 | for (i = 0; i < 256; i++) |
| 28274 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28275 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28276 | return 2; |
| 28277 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28278 | } |
| 28279 | _ACEOF |
| 28280 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28281 | if { (ac_try="$ac_link" |
| 28282 | case "(($ac_try" in |
| 28283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28284 | *) ac_try_echo=$ac_try;; |
| 28285 | esac |
| 28286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28287 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28288 | ac_status=$? |
| 28289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28291 | { (case "(($ac_try" in |
| 28292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28293 | *) ac_try_echo=$ac_try;; |
| 28294 | esac |
| 28295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28296 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28297 | ac_status=$? |
| 28298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28299 | (exit $ac_status); }; }; then |
| 28300 | : |
| 28301 | else |
| 28302 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28303 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28305 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28306 | ( exit $ac_status ) |
| 28307 | ac_cv_header_stdc=no |
| 28308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28309 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28310 | fi |
| 28311 | |
| 28312 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28313 | fi |
| 28314 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28315 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 28316 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28317 | if test $ac_cv_header_stdc = yes; then |
| 28318 | |
| 28319 | cat >>confdefs.h <<\_ACEOF |
| 28320 | #define STDC_HEADERS 1 |
| 28321 | _ACEOF |
| 28322 | |
| 28323 | fi |
| 28324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28325 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 28326 | 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] | 28327 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 28328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28329 | else |
| 28330 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28331 | /* confdefs.h. */ |
| 28332 | _ACEOF |
| 28333 | cat confdefs.h >>conftest.$ac_ext |
| 28334 | cat >>conftest.$ac_ext <<_ACEOF |
| 28335 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28336 | #include <sys/types.h> |
| 28337 | #include <sys/wait.h> |
| 28338 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28339 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28340 | #endif |
| 28341 | #ifndef WIFEXITED |
| 28342 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 28343 | #endif |
| 28344 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28345 | int |
| 28346 | main () |
| 28347 | { |
| 28348 | int s; |
| 28349 | wait (&s); |
| 28350 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 28351 | ; |
| 28352 | return 0; |
| 28353 | } |
| 28354 | _ACEOF |
| 28355 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28356 | if { (ac_try="$ac_compile" |
| 28357 | case "(($ac_try" in |
| 28358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28359 | *) ac_try_echo=$ac_try;; |
| 28360 | esac |
| 28361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28362 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28363 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28365 | rm -f conftest.er1 |
| 28366 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28368 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28370 | { (case "(($ac_try" in |
| 28371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28372 | *) ac_try_echo=$ac_try;; |
| 28373 | esac |
| 28374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28375 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28376 | ac_status=$? |
| 28377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28378 | (exit $ac_status); }; } && |
| 28379 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28386 | ac_status=$? |
| 28387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28388 | (exit $ac_status); }; }; then |
| 28389 | ac_cv_header_sys_wait_h=yes |
| 28390 | else |
| 28391 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28394 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28396 | |
| 28397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28398 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28399 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 28400 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28401 | if test $ac_cv_header_sys_wait_h = yes; then |
| 28402 | |
| 28403 | cat >>confdefs.h <<\_ACEOF |
| 28404 | #define HAVE_SYS_WAIT_H 1 |
| 28405 | _ACEOF |
| 28406 | |
| 28407 | fi |
| 28408 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28409 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 28410 | 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] | 28411 | if test "${ac_cv_header_time+set}" = set; then |
| 28412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28413 | else |
| 28414 | cat >conftest.$ac_ext <<_ACEOF |
| 28415 | /* confdefs.h. */ |
| 28416 | _ACEOF |
| 28417 | cat confdefs.h >>conftest.$ac_ext |
| 28418 | cat >>conftest.$ac_ext <<_ACEOF |
| 28419 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28420 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28421 | #include <sys/time.h> |
| 28422 | #include <time.h> |
| 28423 | |
| 28424 | int |
| 28425 | main () |
| 28426 | { |
| 28427 | if ((struct tm *) 0) |
| 28428 | return 0; |
| 28429 | ; |
| 28430 | return 0; |
| 28431 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28432 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28433 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28434 | if { (ac_try="$ac_compile" |
| 28435 | case "(($ac_try" in |
| 28436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28437 | *) ac_try_echo=$ac_try;; |
| 28438 | esac |
| 28439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28440 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28441 | ac_status=$? |
| 28442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28443 | rm -f conftest.er1 |
| 28444 | cat conftest.err >&5 |
| 28445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28446 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28448 | { (case "(($ac_try" in |
| 28449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28450 | *) ac_try_echo=$ac_try;; |
| 28451 | esac |
| 28452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28453 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28454 | ac_status=$? |
| 28455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28456 | (exit $ac_status); }; } && |
| 28457 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 28467 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28468 | else |
| 28469 | echo "$as_me: failed program was:" >&5 |
| 28470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28472 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28474 | |
| 28475 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28476 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28477 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 28478 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28479 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28480 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28481 | cat >>confdefs.h <<\_ACEOF |
| 28482 | #define TIME_WITH_SYS_TIME 1 |
| 28483 | _ACEOF |
| 28484 | |
| 28485 | fi |
| 28486 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28487 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28488 | |
| 28489 | |
| 28490 | |
| 28491 | |
| 28492 | |
| 28493 | |
| 28494 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 28495 | do |
| 28496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28500 | 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] | 28501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28502 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28505 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28506 | else |
| 28507 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28508 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28510 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28511 | /* confdefs.h. */ |
| 28512 | _ACEOF |
| 28513 | cat confdefs.h >>conftest.$ac_ext |
| 28514 | cat >>conftest.$ac_ext <<_ACEOF |
| 28515 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28516 | $ac_includes_default |
| 28517 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28518 | _ACEOF |
| 28519 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28520 | if { (ac_try="$ac_compile" |
| 28521 | case "(($ac_try" in |
| 28522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28523 | *) ac_try_echo=$ac_try;; |
| 28524 | esac |
| 28525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28526 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28527 | ac_status=$? |
| 28528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28529 | rm -f conftest.er1 |
| 28530 | cat conftest.err >&5 |
| 28531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28532 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28534 | { (case "(($ac_try" in |
| 28535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28536 | *) ac_try_echo=$ac_try;; |
| 28537 | esac |
| 28538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28539 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28540 | ac_status=$? |
| 28541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28542 | (exit $ac_status); }; } && |
| 28543 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28553 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28554 | else |
| 28555 | echo "$as_me: failed program was:" >&5 |
| 28556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28557 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28558 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28559 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28560 | |
| 28561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28563 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28564 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28565 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28568 | cat >conftest.$ac_ext <<_ACEOF |
| 28569 | /* confdefs.h. */ |
| 28570 | _ACEOF |
| 28571 | cat confdefs.h >>conftest.$ac_ext |
| 28572 | cat >>conftest.$ac_ext <<_ACEOF |
| 28573 | /* end confdefs.h. */ |
| 28574 | #include <$ac_header> |
| 28575 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28576 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28577 | case "(($ac_try" in |
| 28578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28579 | *) ac_try_echo=$ac_try;; |
| 28580 | esac |
| 28581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28583 | ac_status=$? |
| 28584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28585 | rm -f conftest.er1 |
| 28586 | cat conftest.err >&5 |
| 28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28588 | (exit $ac_status); } >/dev/null; then |
| 28589 | if test -s conftest.err; then |
| 28590 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28591 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28592 | else |
| 28593 | ac_cpp_err= |
| 28594 | fi |
| 28595 | else |
| 28596 | ac_cpp_err=yes |
| 28597 | fi |
| 28598 | if test -z "$ac_cpp_err"; then |
| 28599 | ac_header_preproc=yes |
| 28600 | else |
| 28601 | echo "$as_me: failed program was:" >&5 |
| 28602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28603 | |
| 28604 | ac_header_preproc=no |
| 28605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28606 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28607 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28608 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28609 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28610 | |
| 28611 | # So? What about this header? |
| 28612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28613 | yes:no: ) |
| 28614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28617 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28618 | ac_header_preproc=yes |
| 28619 | ;; |
| 28620 | no:yes:* ) |
| 28621 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28622 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28623 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28624 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28625 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28626 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28627 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28628 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28631 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28632 | 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] | 28633 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28634 | ## ----------------------------------- ## |
| 28635 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28636 | ## ----------------------------------- ## |
| 28637 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28638 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28639 | ;; |
| 28640 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28643 | 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] | 28644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28645 | else |
| 28646 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28647 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28650 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28651 | |
| 28652 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28654 | cat >>confdefs.h <<_ACEOF |
| 28655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28656 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28657 | |
| 28658 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28659 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28660 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28661 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28662 | |
| 28663 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28664 | |
| 28665 | |
| 28666 | |
| 28667 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28668 | 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] | 28669 | do |
| 28670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28671 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28672 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28674 | 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] | 28675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28676 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28677 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28678 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28679 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28680 | else |
| 28681 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28682 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28684 | cat >conftest.$ac_ext <<_ACEOF |
| 28685 | /* confdefs.h. */ |
| 28686 | _ACEOF |
| 28687 | cat confdefs.h >>conftest.$ac_ext |
| 28688 | cat >>conftest.$ac_ext <<_ACEOF |
| 28689 | /* end confdefs.h. */ |
| 28690 | $ac_includes_default |
| 28691 | #include <$ac_header> |
| 28692 | _ACEOF |
| 28693 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28694 | if { (ac_try="$ac_compile" |
| 28695 | case "(($ac_try" in |
| 28696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28697 | *) ac_try_echo=$ac_try;; |
| 28698 | esac |
| 28699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28700 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28701 | ac_status=$? |
| 28702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28703 | rm -f conftest.er1 |
| 28704 | cat conftest.err >&5 |
| 28705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28706 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28708 | { (case "(($ac_try" in |
| 28709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28710 | *) ac_try_echo=$ac_try;; |
| 28711 | esac |
| 28712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28713 | (eval "$ac_try") 2>&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28714 | ac_status=$? |
| 28715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28716 | (exit $ac_status); }; } && |
| 28717 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 28727 | ac_header_compiler=yes |
| 28728 | else |
| 28729 | echo "$as_me: failed program was:" >&5 |
| 28730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28732 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28734 | |
| 28735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28736 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28737 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28738 | |
| 28739 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28740 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28741 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28742 | cat >conftest.$ac_ext <<_ACEOF |
| 28743 | /* confdefs.h. */ |
| 28744 | _ACEOF |
| 28745 | cat confdefs.h >>conftest.$ac_ext |
| 28746 | cat >>conftest.$ac_ext <<_ACEOF |
| 28747 | /* end confdefs.h. */ |
| 28748 | #include <$ac_header> |
| 28749 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28750 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28751 | case "(($ac_try" in |
| 28752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28753 | *) ac_try_echo=$ac_try;; |
| 28754 | esac |
| 28755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28756 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28757 | ac_status=$? |
| 28758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28759 | rm -f conftest.er1 |
| 28760 | cat conftest.err >&5 |
| 28761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28762 | (exit $ac_status); } >/dev/null; then |
| 28763 | if test -s conftest.err; then |
| 28764 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 28765 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 28766 | else |
| 28767 | ac_cpp_err= |
| 28768 | fi |
| 28769 | else |
| 28770 | ac_cpp_err=yes |
| 28771 | fi |
| 28772 | if test -z "$ac_cpp_err"; then |
| 28773 | ac_header_preproc=yes |
| 28774 | else |
| 28775 | echo "$as_me: failed program was:" >&5 |
| 28776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28777 | |
| 28778 | ac_header_preproc=no |
| 28779 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28780 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28781 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28782 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28783 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28784 | |
| 28785 | # So? What about this header? |
| 28786 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28787 | yes:no: ) |
| 28788 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28789 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28790 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28791 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 28792 | ac_header_preproc=yes |
| 28793 | ;; |
| 28794 | no:yes:* ) |
| 28795 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28796 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28797 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28798 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28799 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28800 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28801 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28802 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28804 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28805 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28806 | 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] | 28807 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28808 | ## ----------------------------------- ## |
| 28809 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28810 | ## ----------------------------------- ## |
| 28811 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28812 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28813 | ;; |
| 28814 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28815 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28817 | 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] | 28818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28819 | else |
| 28820 | eval "$as_ac_Header=\$ac_header_preproc" |
| 28821 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28822 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28823 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28824 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28825 | |
| 28826 | fi |
| 28827 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28828 | cat >>confdefs.h <<_ACEOF |
| 28829 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28830 | _ACEOF |
| 28831 | |
| 28832 | fi |
| 28833 | |
| 28834 | done |
| 28835 | |
| 28836 | |
| 28837 | |
| 28838 | |
| 28839 | |
| 28840 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 28841 | 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] | 28842 | do |
| 28843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28845 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28847 | 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] | 28848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28849 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28850 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28852 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28853 | else |
| 28854 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28855 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 28856 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28857 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28858 | /* confdefs.h. */ |
| 28859 | _ACEOF |
| 28860 | cat confdefs.h >>conftest.$ac_ext |
| 28861 | cat >>conftest.$ac_ext <<_ACEOF |
| 28862 | /* end confdefs.h. */ |
| 28863 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28864 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28865 | _ACEOF |
| 28866 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28867 | if { (ac_try="$ac_compile" |
| 28868 | case "(($ac_try" in |
| 28869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28870 | *) ac_try_echo=$ac_try;; |
| 28871 | esac |
| 28872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28873 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28874 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28876 | rm -f conftest.er1 |
| 28877 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28879 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 28881 | { (case "(($ac_try" in |
| 28882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28883 | *) ac_try_echo=$ac_try;; |
| 28884 | esac |
| 28885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28886 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28887 | ac_status=$? |
| 28888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28889 | (exit $ac_status); }; } && |
| 28890 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28897 | ac_status=$? |
| 28898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28899 | (exit $ac_status); }; }; then |
| 28900 | ac_header_compiler=yes |
| 28901 | else |
| 28902 | echo "$as_me: failed program was:" >&5 |
| 28903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28905 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28907 | |
| 28908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28909 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28910 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28911 | |
| 28912 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28913 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28915 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28916 | /* confdefs.h. */ |
| 28917 | _ACEOF |
| 28918 | cat confdefs.h >>conftest.$ac_ext |
| 28919 | cat >>conftest.$ac_ext <<_ACEOF |
| 28920 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28921 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28922 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28923 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 28924 | case "(($ac_try" in |
| 28925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28926 | *) ac_try_echo=$ac_try;; |
| 28927 | esac |
| 28928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28929 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28930 | ac_status=$? |
| 28931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28932 | rm -f conftest.er1 |
| 28933 | cat conftest.err >&5 |
| 28934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28935 | (exit $ac_status); } >/dev/null; then |
| 28936 | if test -s conftest.err; then |
| 28937 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28938 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28939 | else |
| 28940 | ac_cpp_err= |
| 28941 | fi |
| 28942 | else |
| 28943 | ac_cpp_err=yes |
| 28944 | fi |
| 28945 | if test -z "$ac_cpp_err"; then |
| 28946 | ac_header_preproc=yes |
| 28947 | else |
| 28948 | echo "$as_me: failed program was:" >&5 |
| 28949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28950 | |
| 28951 | ac_header_preproc=no |
| 28952 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28953 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28954 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28955 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28956 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28957 | |
| 28958 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28959 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28960 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28961 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28962 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28964 | 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] | 28965 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 28966 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28967 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28968 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28969 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28970 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28971 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28972 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28973 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28974 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28975 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28977 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28978 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28979 | 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] | 28980 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28981 | ## ----------------------------------- ## |
| 28982 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28983 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28984 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28985 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28986 | ;; |
| 28987 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28988 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28989 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28990 | 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] | 28991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28992 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28993 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28994 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28995 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28996 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28997 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 28998 | |
| 28999 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29001 | cat >>confdefs.h <<_ACEOF |
| 29002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29003 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29004 | |
| 29005 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29006 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29007 | done |
| 29008 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 29009 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29010 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 29011 | |
| 29012 | 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] | 29013 | do |
| 29014 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 29016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29018 | 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] | 29019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29020 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29021 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29022 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29023 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29024 | else |
| 29025 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29026 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 29027 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29028 | cat >conftest.$ac_ext <<_ACEOF |
| 29029 | /* confdefs.h. */ |
| 29030 | _ACEOF |
| 29031 | cat confdefs.h >>conftest.$ac_ext |
| 29032 | cat >>conftest.$ac_ext <<_ACEOF |
| 29033 | /* end confdefs.h. */ |
| 29034 | $ac_includes_default |
| 29035 | #include <$ac_header> |
| 29036 | _ACEOF |
| 29037 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29038 | if { (ac_try="$ac_compile" |
| 29039 | case "(($ac_try" in |
| 29040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29041 | *) ac_try_echo=$ac_try;; |
| 29042 | esac |
| 29043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29044 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29045 | ac_status=$? |
| 29046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29047 | rm -f conftest.er1 |
| 29048 | cat conftest.err >&5 |
| 29049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29050 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29052 | { (case "(($ac_try" in |
| 29053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29054 | *) ac_try_echo=$ac_try;; |
| 29055 | esac |
| 29056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29057 | (eval "$ac_try") 2>&5 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29058 | ac_status=$? |
| 29059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29060 | (exit $ac_status); }; } && |
| 29061 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 29071 | ac_header_compiler=yes |
| 29072 | else |
| 29073 | echo "$as_me: failed program was:" >&5 |
| 29074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29076 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29078 | |
| 29079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29080 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29081 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29082 | |
| 29083 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29084 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 29085 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29086 | cat >conftest.$ac_ext <<_ACEOF |
| 29087 | /* confdefs.h. */ |
| 29088 | _ACEOF |
| 29089 | cat confdefs.h >>conftest.$ac_ext |
| 29090 | cat >>conftest.$ac_ext <<_ACEOF |
| 29091 | /* end confdefs.h. */ |
| 29092 | #include <$ac_header> |
| 29093 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29094 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29095 | case "(($ac_try" in |
| 29096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29097 | *) ac_try_echo=$ac_try;; |
| 29098 | esac |
| 29099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29101 | ac_status=$? |
| 29102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29103 | rm -f conftest.er1 |
| 29104 | cat conftest.err >&5 |
| 29105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29106 | (exit $ac_status); } >/dev/null; then |
| 29107 | if test -s conftest.err; then |
| 29108 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29110 | else |
| 29111 | ac_cpp_err= |
| 29112 | fi |
| 29113 | else |
| 29114 | ac_cpp_err=yes |
| 29115 | fi |
| 29116 | if test -z "$ac_cpp_err"; then |
| 29117 | ac_header_preproc=yes |
| 29118 | else |
| 29119 | echo "$as_me: failed program was:" >&5 |
| 29120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29121 | |
| 29122 | ac_header_preproc=no |
| 29123 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29124 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29125 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29126 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29127 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29128 | |
| 29129 | # So? What about this header? |
| 29130 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29131 | yes:no: ) |
| 29132 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29133 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29134 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 29135 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 29136 | ac_header_preproc=yes |
| 29137 | ;; |
| 29138 | no:yes:* ) |
| 29139 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 29140 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 29141 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 29142 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 29143 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 29144 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 29145 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 29146 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 29148 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 29149 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 29150 | 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] | 29151 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29152 | ## ----------------------------------- ## |
| 29153 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29154 | ## ----------------------------------- ## |
| 29155 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29156 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29157 | ;; |
| 29158 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29159 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 29160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 29161 | 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] | 29162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29163 | else |
| 29164 | eval "$as_ac_Header=\$ac_header_preproc" |
| 29165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29166 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 29167 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29168 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29169 | |
| 29170 | fi |
| 29171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 29172 | cat >>confdefs.h <<_ACEOF |
| 29173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29174 | _ACEOF |
| 29175 | |
| 29176 | fi |
| 29177 | |
| 29178 | done |
| 29179 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29180 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29181 | if test "${ac_cv_header_pthread_h+set}" = set; then |
| 29182 | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 29183 | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 29184 | if test "${ac_cv_header_pthread_h+set}" = set; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29186 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29187 | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 29188 | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29189 | else |
| 29190 | # Is the header compilable? |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29191 | { echo "$as_me:$LINENO: checking pthread.h usability" >&5 |
| 29192 | echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29193 | cat >conftest.$ac_ext <<_ACEOF |
| 29194 | /* confdefs.h. */ |
| 29195 | _ACEOF |
| 29196 | cat confdefs.h >>conftest.$ac_ext |
| 29197 | cat >>conftest.$ac_ext <<_ACEOF |
| 29198 | /* end confdefs.h. */ |
| 29199 | $ac_includes_default |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29200 | #include <pthread.h> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29201 | _ACEOF |
| 29202 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29203 | if { (ac_try="$ac_compile" |
| 29204 | case "(($ac_try" in |
| 29205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29206 | *) ac_try_echo=$ac_try;; |
| 29207 | esac |
| 29208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29209 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29210 | ac_status=$? |
| 29211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29212 | rm -f conftest.er1 |
| 29213 | cat conftest.err >&5 |
| 29214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29215 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29216 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29217 | { (case "(($ac_try" in |
| 29218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29219 | *) ac_try_echo=$ac_try;; |
| 29220 | esac |
| 29221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29222 | (eval "$ac_try") 2>&5 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29223 | ac_status=$? |
| 29224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29225 | (exit $ac_status); }; } && |
| 29226 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 29236 | ac_header_compiler=yes |
| 29237 | else |
| 29238 | echo "$as_me: failed program was:" >&5 |
| 29239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29240 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29241 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29242 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29243 | |
| 29244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29245 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 29246 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29247 | |
| 29248 | # Is the header present? |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29249 | { echo "$as_me:$LINENO: checking pthread.h presence" >&5 |
| 29250 | echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29251 | cat >conftest.$ac_ext <<_ACEOF |
| 29252 | /* confdefs.h. */ |
| 29253 | _ACEOF |
| 29254 | cat confdefs.h >>conftest.$ac_ext |
| 29255 | cat >>conftest.$ac_ext <<_ACEOF |
| 29256 | /* end confdefs.h. */ |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29257 | #include <pthread.h> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29258 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29259 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 29260 | case "(($ac_try" in |
| 29261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29262 | *) ac_try_echo=$ac_try;; |
| 29263 | esac |
| 29264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29265 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29266 | ac_status=$? |
| 29267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29268 | rm -f conftest.er1 |
| 29269 | cat conftest.err >&5 |
| 29270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29271 | (exit $ac_status); } >/dev/null; then |
| 29272 | if test -s conftest.err; then |
| 29273 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 29274 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 29275 | else |
| 29276 | ac_cpp_err= |
| 29277 | fi |
| 29278 | else |
| 29279 | ac_cpp_err=yes |
| 29280 | fi |
| 29281 | if test -z "$ac_cpp_err"; then |
| 29282 | ac_header_preproc=yes |
| 29283 | else |
| 29284 | echo "$as_me: failed program was:" >&5 |
| 29285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29286 | |
| 29287 | ac_header_preproc=no |
| 29288 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29289 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29290 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29291 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 29292 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29293 | |
| 29294 | # So? What about this header? |
| 29295 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 29296 | yes:no: ) |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29297 | { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 29298 | echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 29299 | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5 |
| 29300 | 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] | 29301 | ac_header_preproc=yes |
| 29302 | ;; |
| 29303 | no:yes:* ) |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29304 | { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5 |
| 29305 | echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;} |
| 29306 | { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5 |
| 29307 | echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;} |
| 29308 | { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5 |
| 29309 | echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;} |
| 29310 | { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 29311 | echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 29312 | { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5 |
| 29313 | echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;} |
| 29314 | { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5 |
| 29315 | 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] | 29316 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29317 | ## ----------------------------------- ## |
| 29318 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 29319 | ## ----------------------------------- ## |
| 29320 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29321 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29322 | ;; |
| 29323 | esac |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29324 | { echo "$as_me:$LINENO: checking for pthread.h" >&5 |
| 29325 | echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; } |
| 29326 | if test "${ac_cv_header_pthread_h+set}" = set; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29328 | else |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29329 | ac_cv_header_pthread_h=$ac_header_preproc |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29330 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29331 | { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5 |
| 29332 | echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29333 | |
| 29334 | fi |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29335 | if test $ac_cv_header_pthread_h = yes; then |
| 29336 | HAVE_PTHREAD=1 |
| 29337 | |
| 29338 | else |
| 29339 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29340 | |
| 29341 | fi |
| 29342 | |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 29343 | |
| 29344 | else |
| 29345 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 29346 | |
| 29347 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 29348 | |
| 29349 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29350 | |
| 29351 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 29352 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 29353 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 29354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29355 | else |
| 29356 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29357 | ac_ext=cpp |
| 29358 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29362 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 29363 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 29364 | if test "$cross_compiling" = yes; then |
| 29365 | ac_cv_huge_val_sanity=yes |
| 29366 | else |
| 29367 | cat >conftest.$ac_ext <<_ACEOF |
| 29368 | /* confdefs.h. */ |
| 29369 | _ACEOF |
| 29370 | cat confdefs.h >>conftest.$ac_ext |
| 29371 | cat >>conftest.$ac_ext <<_ACEOF |
| 29372 | /* end confdefs.h. */ |
| 29373 | #include <math.h> |
| 29374 | int |
| 29375 | main () |
| 29376 | { |
| 29377 | double x = HUGE_VAL; return x != x; |
| 29378 | ; |
| 29379 | return 0; |
| 29380 | } |
| 29381 | _ACEOF |
| 29382 | rm -f conftest$ac_exeext |
| 29383 | if { (ac_try="$ac_link" |
| 29384 | case "(($ac_try" in |
| 29385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29386 | *) ac_try_echo=$ac_try;; |
| 29387 | esac |
| 29388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29389 | (eval "$ac_link") 2>&5 |
| 29390 | ac_status=$? |
| 29391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 29393 | { (case "(($ac_try" in |
| 29394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29395 | *) ac_try_echo=$ac_try;; |
| 29396 | esac |
| 29397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29398 | (eval "$ac_try") 2>&5 |
| 29399 | ac_status=$? |
| 29400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29401 | (exit $ac_status); }; }; then |
| 29402 | ac_cv_huge_val_sanity=yes |
| 29403 | else |
| 29404 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29405 | echo "$as_me: failed program was:" >&5 |
| 29406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29407 | |
| 29408 | ( exit $ac_status ) |
| 29409 | ac_cv_huge_val_sanity=no |
| 29410 | fi |
| 29411 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 29412 | fi |
| 29413 | |
| 29414 | |
| 29415 | ac_ext=c |
| 29416 | ac_cpp='$CPP $CPPFLAGS' |
| 29417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29420 | |
| 29421 | |
| 29422 | fi |
| 29423 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 29424 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 29425 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 29426 | |
| 29427 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29428 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 29429 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29430 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 29431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29432 | else |
| 29433 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29434 | /* confdefs.h. */ |
| 29435 | _ACEOF |
| 29436 | cat confdefs.h >>conftest.$ac_ext |
| 29437 | cat >>conftest.$ac_ext <<_ACEOF |
| 29438 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29439 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29440 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29441 | int |
| 29442 | main () |
| 29443 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29444 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29445 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29446 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29447 | return 0; |
| 29448 | ; |
| 29449 | return 0; |
| 29450 | } |
| 29451 | _ACEOF |
| 29452 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29453 | if { (ac_try="$ac_compile" |
| 29454 | case "(($ac_try" in |
| 29455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29456 | *) ac_try_echo=$ac_try;; |
| 29457 | esac |
| 29458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29459 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29460 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29462 | rm -f conftest.er1 |
| 29463 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29465 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29467 | { (case "(($ac_try" in |
| 29468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29469 | *) ac_try_echo=$ac_try;; |
| 29470 | esac |
| 29471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29472 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29473 | ac_status=$? |
| 29474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29475 | (exit $ac_status); }; } && |
| 29476 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29483 | ac_status=$? |
| 29484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29485 | (exit $ac_status); }; }; then |
| 29486 | ac_cv_type_pid_t=yes |
| 29487 | else |
| 29488 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29490 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29491 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29492 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29493 | |
| 29494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29495 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29496 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 29497 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29498 | if test $ac_cv_type_pid_t = yes; then |
| 29499 | : |
| 29500 | else |
| 29501 | |
| 29502 | cat >>confdefs.h <<_ACEOF |
| 29503 | #define pid_t int |
| 29504 | _ACEOF |
| 29505 | |
| 29506 | fi |
| 29507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29508 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 29509 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29510 | if test "${ac_cv_type_size_t+set}" = set; then |
| 29511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29512 | else |
| 29513 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29514 | /* confdefs.h. */ |
| 29515 | _ACEOF |
| 29516 | cat confdefs.h >>conftest.$ac_ext |
| 29517 | cat >>conftest.$ac_ext <<_ACEOF |
| 29518 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29519 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29520 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29521 | int |
| 29522 | main () |
| 29523 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29525 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29526 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29527 | return 0; |
| 29528 | ; |
| 29529 | return 0; |
| 29530 | } |
| 29531 | _ACEOF |
| 29532 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29533 | if { (ac_try="$ac_compile" |
| 29534 | case "(($ac_try" in |
| 29535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29536 | *) ac_try_echo=$ac_try;; |
| 29537 | esac |
| 29538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29539 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29540 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29542 | rm -f conftest.er1 |
| 29543 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29545 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29547 | { (case "(($ac_try" in |
| 29548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29549 | *) ac_try_echo=$ac_try;; |
| 29550 | esac |
| 29551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29552 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29553 | ac_status=$? |
| 29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29555 | (exit $ac_status); }; } && |
| 29556 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29563 | ac_status=$? |
| 29564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29565 | (exit $ac_status); }; }; then |
| 29566 | ac_cv_type_size_t=yes |
| 29567 | else |
| 29568 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29571 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29572 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29573 | |
| 29574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29575 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29576 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 29577 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29578 | if test $ac_cv_type_size_t = yes; then |
| 29579 | : |
| 29580 | else |
| 29581 | |
| 29582 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29583 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29584 | _ACEOF |
| 29585 | |
| 29586 | fi |
| 29587 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29588 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 29589 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29590 | if test "${ac_cv_type_signal+set}" = set; then |
| 29591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29592 | else |
| 29593 | cat >conftest.$ac_ext <<_ACEOF |
| 29594 | /* confdefs.h. */ |
| 29595 | _ACEOF |
| 29596 | cat confdefs.h >>conftest.$ac_ext |
| 29597 | cat >>conftest.$ac_ext <<_ACEOF |
| 29598 | /* end confdefs.h. */ |
| 29599 | #include <sys/types.h> |
| 29600 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29601 | |
| 29602 | int |
| 29603 | main () |
| 29604 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29605 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29606 | ; |
| 29607 | return 0; |
| 29608 | } |
| 29609 | _ACEOF |
| 29610 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29611 | if { (ac_try="$ac_compile" |
| 29612 | case "(($ac_try" in |
| 29613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29614 | *) ac_try_echo=$ac_try;; |
| 29615 | esac |
| 29616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29617 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29618 | ac_status=$? |
| 29619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29620 | rm -f conftest.er1 |
| 29621 | cat conftest.err >&5 |
| 29622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29623 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29625 | { (case "(($ac_try" in |
| 29626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29627 | *) ac_try_echo=$ac_try;; |
| 29628 | esac |
| 29629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29630 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29631 | ac_status=$? |
| 29632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29633 | (exit $ac_status); }; } && |
| 29634 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29644 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29645 | else |
| 29646 | echo "$as_me: failed program was:" >&5 |
| 29647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29648 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29649 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29650 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29651 | |
| 29652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29653 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29654 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 29655 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29656 | |
| 29657 | cat >>confdefs.h <<_ACEOF |
| 29658 | #define RETSIGTYPE $ac_cv_type_signal |
| 29659 | _ACEOF |
| 29660 | |
| 29661 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29662 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 29663 | 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] | 29664 | if test "${ac_cv_struct_tm+set}" = set; then |
| 29665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29666 | else |
| 29667 | cat >conftest.$ac_ext <<_ACEOF |
| 29668 | /* confdefs.h. */ |
| 29669 | _ACEOF |
| 29670 | cat confdefs.h >>conftest.$ac_ext |
| 29671 | cat >>conftest.$ac_ext <<_ACEOF |
| 29672 | /* end confdefs.h. */ |
| 29673 | #include <sys/types.h> |
| 29674 | #include <time.h> |
| 29675 | |
| 29676 | int |
| 29677 | main () |
| 29678 | { |
| 29679 | struct tm *tp; tp->tm_sec; |
| 29680 | ; |
| 29681 | return 0; |
| 29682 | } |
| 29683 | _ACEOF |
| 29684 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29685 | if { (ac_try="$ac_compile" |
| 29686 | case "(($ac_try" in |
| 29687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29688 | *) ac_try_echo=$ac_try;; |
| 29689 | esac |
| 29690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29691 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29692 | ac_status=$? |
| 29693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29694 | rm -f conftest.er1 |
| 29695 | cat conftest.err >&5 |
| 29696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29697 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29699 | { (case "(($ac_try" in |
| 29700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29701 | *) ac_try_echo=$ac_try;; |
| 29702 | esac |
| 29703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29704 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29705 | ac_status=$? |
| 29706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29707 | (exit $ac_status); }; } && |
| 29708 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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); }; }; then |
| 29718 | ac_cv_struct_tm=time.h |
| 29719 | else |
| 29720 | echo "$as_me: failed program was:" >&5 |
| 29721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29722 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29723 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29724 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29725 | |
| 29726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29727 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29728 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 29729 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29730 | if test $ac_cv_struct_tm = sys/time.h; then |
| 29731 | |
| 29732 | cat >>confdefs.h <<\_ACEOF |
| 29733 | #define TM_IN_SYS_TIME 1 |
| 29734 | _ACEOF |
| 29735 | |
| 29736 | fi |
| 29737 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29738 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 29739 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29740 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 29741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29742 | else |
| 29743 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29744 | /* confdefs.h. */ |
| 29745 | _ACEOF |
| 29746 | cat confdefs.h >>conftest.$ac_ext |
| 29747 | cat >>conftest.$ac_ext <<_ACEOF |
| 29748 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29749 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29750 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29751 | int |
| 29752 | main () |
| 29753 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29754 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29755 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29756 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29757 | return 0; |
| 29758 | ; |
| 29759 | return 0; |
| 29760 | } |
| 29761 | _ACEOF |
| 29762 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29763 | if { (ac_try="$ac_compile" |
| 29764 | case "(($ac_try" in |
| 29765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29766 | *) ac_try_echo=$ac_try;; |
| 29767 | esac |
| 29768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29769 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29770 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29772 | rm -f conftest.er1 |
| 29773 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29775 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29777 | { (case "(($ac_try" in |
| 29778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29779 | *) ac_try_echo=$ac_try;; |
| 29780 | esac |
| 29781 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29782 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29783 | ac_status=$? |
| 29784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29785 | (exit $ac_status); }; } && |
| 29786 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29793 | ac_status=$? |
| 29794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29795 | (exit $ac_status); }; }; then |
| 29796 | ac_cv_type_int64_t=yes |
| 29797 | else |
| 29798 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29800 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29801 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29802 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29803 | |
| 29804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29805 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29806 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 29807 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29808 | if test $ac_cv_type_int64_t = yes; then |
| 29809 | |
| 29810 | cat >>confdefs.h <<_ACEOF |
| 29811 | #define HAVE_INT64_T 1 |
| 29812 | _ACEOF |
| 29813 | |
| 29814 | |
| 29815 | else |
| 29816 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 29817 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 29818 | { (exit 1); exit 1; }; } |
| 29819 | fi |
| 29820 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29821 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 29822 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29823 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 29824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29825 | else |
| 29826 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29827 | /* confdefs.h. */ |
| 29828 | _ACEOF |
| 29829 | cat confdefs.h >>conftest.$ac_ext |
| 29830 | cat >>conftest.$ac_ext <<_ACEOF |
| 29831 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29832 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29833 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29834 | int |
| 29835 | main () |
| 29836 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29837 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29838 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29839 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29840 | return 0; |
| 29841 | ; |
| 29842 | return 0; |
| 29843 | } |
| 29844 | _ACEOF |
| 29845 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29846 | if { (ac_try="$ac_compile" |
| 29847 | case "(($ac_try" in |
| 29848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29849 | *) ac_try_echo=$ac_try;; |
| 29850 | esac |
| 29851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29852 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29853 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29855 | rm -f conftest.er1 |
| 29856 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29858 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29860 | { (case "(($ac_try" in |
| 29861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29862 | *) ac_try_echo=$ac_try;; |
| 29863 | esac |
| 29864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29865 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29866 | ac_status=$? |
| 29867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29868 | (exit $ac_status); }; } && |
| 29869 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29876 | ac_status=$? |
| 29877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29878 | (exit $ac_status); }; }; then |
| 29879 | ac_cv_type_uint64_t=yes |
| 29880 | else |
| 29881 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29883 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29884 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29886 | |
| 29887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29889 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 29890 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29891 | if test $ac_cv_type_uint64_t = yes; then |
| 29892 | |
| 29893 | cat >>confdefs.h <<_ACEOF |
| 29894 | #define HAVE_UINT64_T 1 |
| 29895 | _ACEOF |
| 29896 | |
| 29897 | |
| 29898 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29899 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 29900 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29901 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 29902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29903 | else |
| 29904 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29905 | /* confdefs.h. */ |
| 29906 | _ACEOF |
| 29907 | cat confdefs.h >>conftest.$ac_ext |
| 29908 | cat >>conftest.$ac_ext <<_ACEOF |
| 29909 | /* end confdefs.h. */ |
| 29910 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29911 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29912 | int |
| 29913 | main () |
| 29914 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29915 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29916 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29917 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29918 | return 0; |
| 29919 | ; |
| 29920 | return 0; |
| 29921 | } |
| 29922 | _ACEOF |
| 29923 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29924 | if { (ac_try="$ac_compile" |
| 29925 | case "(($ac_try" in |
| 29926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29927 | *) ac_try_echo=$ac_try;; |
| 29928 | esac |
| 29929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29930 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29931 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29933 | rm -f conftest.er1 |
| 29934 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29936 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 29938 | { (case "(($ac_try" in |
| 29939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29940 | *) ac_try_echo=$ac_try;; |
| 29941 | esac |
| 29942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29943 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29944 | ac_status=$? |
| 29945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29946 | (exit $ac_status); }; } && |
| 29947 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29954 | ac_status=$? |
| 29955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29956 | (exit $ac_status); }; }; then |
| 29957 | ac_cv_type_u_int64_t=yes |
| 29958 | else |
| 29959 | echo "$as_me: failed program was:" >&5 |
| 29960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29962 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29963 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29964 | |
| 29965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29966 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29967 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 29968 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29969 | if test $ac_cv_type_u_int64_t = yes; then |
| 29970 | |
| 29971 | cat >>confdefs.h <<_ACEOF |
| 29972 | #define HAVE_U_INT64_T 1 |
| 29973 | _ACEOF |
| 29974 | |
| 29975 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 29976 | else |
| 29977 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 29978 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 29979 | { (exit 1); exit 1; }; } |
| 29980 | fi |
| 29981 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 29982 | fi |
| 29983 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29984 | |
| 29985 | |
| 29986 | |
| 29987 | |
| 29988 | |
| 29989 | |
| 29990 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 29991 | |
| 29992 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29993 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29994 | do |
| 29995 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29996 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29997 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29998 | 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] | 29999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30000 | else |
| 30001 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30002 | /* confdefs.h. */ |
| 30003 | _ACEOF |
| 30004 | cat confdefs.h >>conftest.$ac_ext |
| 30005 | cat >>conftest.$ac_ext <<_ACEOF |
| 30006 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30007 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30008 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30009 | #define $ac_func innocuous_$ac_func |
| 30010 | |
| 30011 | /* System header to define __stub macros and hopefully few prototypes, |
| 30012 | which can conflict with char $ac_func (); below. |
| 30013 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30014 | <limits.h> exists even on freestanding compilers. */ |
| 30015 | |
| 30016 | #ifdef __STDC__ |
| 30017 | # include <limits.h> |
| 30018 | #else |
| 30019 | # include <assert.h> |
| 30020 | #endif |
| 30021 | |
| 30022 | #undef $ac_func |
| 30023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30024 | /* Override any GCC internal prototype to avoid an error. |
| 30025 | Use char because int might match the return type of a GCC |
| 30026 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30027 | #ifdef __cplusplus |
| 30028 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30029 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30030 | char $ac_func (); |
| 30031 | /* The GNU C library defines this for functions which it implements |
| 30032 | to always fail with ENOSYS. Some functions are actually named |
| 30033 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30034 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30035 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30036 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30037 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30038 | int |
| 30039 | main () |
| 30040 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30041 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30042 | ; |
| 30043 | return 0; |
| 30044 | } |
| 30045 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30046 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30047 | if { (ac_try="$ac_link" |
| 30048 | case "(($ac_try" in |
| 30049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30050 | *) ac_try_echo=$ac_try;; |
| 30051 | esac |
| 30052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30053 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30054 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30056 | rm -f conftest.er1 |
| 30057 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30059 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30061 | { (case "(($ac_try" in |
| 30062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30063 | *) ac_try_echo=$ac_try;; |
| 30064 | esac |
| 30065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30066 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30067 | ac_status=$? |
| 30068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30069 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30070 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30077 | ac_status=$? |
| 30078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30079 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30080 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30081 | else |
| 30082 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30084 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30085 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30087 | |
| 30088 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30089 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30091 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30093 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30094 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30095 | cat >>confdefs.h <<_ACEOF |
| 30096 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30097 | _ACEOF |
| 30098 | |
| 30099 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30100 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30101 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30102 | |
| 30103 | |
| 30104 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 30105 | |
| 30106 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 30107 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30108 | for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp |
| 30109 | do |
| 30110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30111 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30113 | 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] | 30114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30115 | else |
| 30116 | cat >conftest.$ac_ext <<_ACEOF |
| 30117 | /* confdefs.h. */ |
| 30118 | _ACEOF |
| 30119 | cat confdefs.h >>conftest.$ac_ext |
| 30120 | cat >>conftest.$ac_ext <<_ACEOF |
| 30121 | /* end confdefs.h. */ |
| 30122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30124 | #define $ac_func innocuous_$ac_func |
| 30125 | |
| 30126 | /* System header to define __stub macros and hopefully few prototypes, |
| 30127 | which can conflict with char $ac_func (); below. |
| 30128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30129 | <limits.h> exists even on freestanding compilers. */ |
| 30130 | |
| 30131 | #ifdef __STDC__ |
| 30132 | # include <limits.h> |
| 30133 | #else |
| 30134 | # include <assert.h> |
| 30135 | #endif |
| 30136 | |
| 30137 | #undef $ac_func |
| 30138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30139 | /* Override any GCC internal prototype to avoid an error. |
| 30140 | Use char because int might match the return type of a GCC |
| 30141 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30142 | #ifdef __cplusplus |
| 30143 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30144 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30145 | char $ac_func (); |
| 30146 | /* The GNU C library defines this for functions which it implements |
| 30147 | to always fail with ENOSYS. Some functions are actually named |
| 30148 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30149 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30150 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30151 | #endif |
| 30152 | |
| 30153 | int |
| 30154 | main () |
| 30155 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30156 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30157 | ; |
| 30158 | return 0; |
| 30159 | } |
| 30160 | _ACEOF |
| 30161 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30162 | if { (ac_try="$ac_link" |
| 30163 | case "(($ac_try" in |
| 30164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30165 | *) ac_try_echo=$ac_try;; |
| 30166 | esac |
| 30167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30168 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30169 | ac_status=$? |
| 30170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30171 | rm -f conftest.er1 |
| 30172 | cat conftest.err >&5 |
| 30173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30174 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30176 | { (case "(($ac_try" in |
| 30177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30178 | *) ac_try_echo=$ac_try;; |
| 30179 | esac |
| 30180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30181 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30182 | ac_status=$? |
| 30183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30184 | (exit $ac_status); }; } && |
| 30185 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30186 | { (case "(($ac_try" in |
| 30187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30188 | *) ac_try_echo=$ac_try;; |
| 30189 | esac |
| 30190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30191 | (eval "$ac_try") 2>&5 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30192 | ac_status=$? |
| 30193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30194 | (exit $ac_status); }; }; then |
| 30195 | eval "$as_ac_var=yes" |
| 30196 | else |
| 30197 | echo "$as_me: failed program was:" >&5 |
| 30198 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30200 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30201 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30202 | |
| 30203 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30204 | conftest$ac_exeext conftest.$ac_ext |
| 30205 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30206 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30207 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30208 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 30209 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30210 | cat >>confdefs.h <<_ACEOF |
| 30211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30212 | _ACEOF |
| 30213 | |
| 30214 | fi |
| 30215 | done |
| 30216 | |
| 30217 | |
| 30218 | |
| 30219 | |
| 30220 | |
| 30221 | |
| 30222 | |
| 30223 | |
| 30224 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30225 | do |
| 30226 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30227 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30229 | 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] | 30230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30231 | else |
| 30232 | cat >conftest.$ac_ext <<_ACEOF |
| 30233 | /* confdefs.h. */ |
| 30234 | _ACEOF |
| 30235 | cat confdefs.h >>conftest.$ac_ext |
| 30236 | cat >>conftest.$ac_ext <<_ACEOF |
| 30237 | /* end confdefs.h. */ |
| 30238 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30239 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30240 | #define $ac_func innocuous_$ac_func |
| 30241 | |
| 30242 | /* System header to define __stub macros and hopefully few prototypes, |
| 30243 | which can conflict with char $ac_func (); below. |
| 30244 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30245 | <limits.h> exists even on freestanding compilers. */ |
| 30246 | |
| 30247 | #ifdef __STDC__ |
| 30248 | # include <limits.h> |
| 30249 | #else |
| 30250 | # include <assert.h> |
| 30251 | #endif |
| 30252 | |
| 30253 | #undef $ac_func |
| 30254 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30255 | /* Override any GCC internal prototype to avoid an error. |
| 30256 | Use char because int might match the return type of a GCC |
| 30257 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30258 | #ifdef __cplusplus |
| 30259 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30260 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30261 | char $ac_func (); |
| 30262 | /* The GNU C library defines this for functions which it implements |
| 30263 | to always fail with ENOSYS. Some functions are actually named |
| 30264 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30265 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30266 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30267 | #endif |
| 30268 | |
| 30269 | int |
| 30270 | main () |
| 30271 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30272 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30273 | ; |
| 30274 | return 0; |
| 30275 | } |
| 30276 | _ACEOF |
| 30277 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30278 | if { (ac_try="$ac_link" |
| 30279 | case "(($ac_try" in |
| 30280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30281 | *) ac_try_echo=$ac_try;; |
| 30282 | esac |
| 30283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30284 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30285 | ac_status=$? |
| 30286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30287 | rm -f conftest.er1 |
| 30288 | cat conftest.err >&5 |
| 30289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30290 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30292 | { (case "(($ac_try" in |
| 30293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30294 | *) ac_try_echo=$ac_try;; |
| 30295 | esac |
| 30296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30297 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30298 | ac_status=$? |
| 30299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30300 | (exit $ac_status); }; } && |
| 30301 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30302 | { (case "(($ac_try" in |
| 30303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30304 | *) ac_try_echo=$ac_try;; |
| 30305 | esac |
| 30306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30307 | (eval "$ac_try") 2>&5 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30308 | ac_status=$? |
| 30309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30310 | (exit $ac_status); }; }; then |
| 30311 | eval "$as_ac_var=yes" |
| 30312 | else |
| 30313 | echo "$as_me: failed program was:" >&5 |
| 30314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30315 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30316 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30317 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30318 | |
| 30319 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30320 | conftest$ac_exeext conftest.$ac_ext |
| 30321 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30322 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30323 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30324 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 30325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30326 | cat >>confdefs.h <<_ACEOF |
| 30327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30328 | _ACEOF |
| 30329 | |
| 30330 | fi |
| 30331 | done |
| 30332 | |
| 30333 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 30334 | |
| 30335 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 30336 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 30337 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30338 | do |
| 30339 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30340 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30341 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30342 | 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] | 30343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30344 | else |
| 30345 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30346 | /* confdefs.h. */ |
| 30347 | _ACEOF |
| 30348 | cat confdefs.h >>conftest.$ac_ext |
| 30349 | cat >>conftest.$ac_ext <<_ACEOF |
| 30350 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30351 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30352 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30353 | #define $ac_func innocuous_$ac_func |
| 30354 | |
| 30355 | /* System header to define __stub macros and hopefully few prototypes, |
| 30356 | which can conflict with char $ac_func (); below. |
| 30357 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30358 | <limits.h> exists even on freestanding compilers. */ |
| 30359 | |
| 30360 | #ifdef __STDC__ |
| 30361 | # include <limits.h> |
| 30362 | #else |
| 30363 | # include <assert.h> |
| 30364 | #endif |
| 30365 | |
| 30366 | #undef $ac_func |
| 30367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30368 | /* Override any GCC internal prototype to avoid an error. |
| 30369 | Use char because int might match the return type of a GCC |
| 30370 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30371 | #ifdef __cplusplus |
| 30372 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30373 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30374 | char $ac_func (); |
| 30375 | /* The GNU C library defines this for functions which it implements |
| 30376 | to always fail with ENOSYS. Some functions are actually named |
| 30377 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30378 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30379 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30380 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30381 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30382 | int |
| 30383 | main () |
| 30384 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30385 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30386 | ; |
| 30387 | return 0; |
| 30388 | } |
| 30389 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30391 | if { (ac_try="$ac_link" |
| 30392 | case "(($ac_try" in |
| 30393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30394 | *) ac_try_echo=$ac_try;; |
| 30395 | esac |
| 30396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30397 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30398 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30400 | rm -f conftest.er1 |
| 30401 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30403 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30405 | { (case "(($ac_try" in |
| 30406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30407 | *) ac_try_echo=$ac_try;; |
| 30408 | esac |
| 30409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30410 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30411 | ac_status=$? |
| 30412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30413 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30414 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30415 | { (case "(($ac_try" in |
| 30416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30417 | *) ac_try_echo=$ac_try;; |
| 30418 | esac |
| 30419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30420 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30421 | ac_status=$? |
| 30422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30423 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30424 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30425 | else |
| 30426 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30428 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30429 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30431 | |
| 30432 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30433 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30435 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30437 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30438 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30439 | cat >>confdefs.h <<_ACEOF |
| 30440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30441 | _ACEOF |
| 30442 | |
| 30443 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30444 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30445 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30446 | |
| 30447 | |
| 30448 | |
| 30449 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 30450 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30451 | do |
| 30452 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30453 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30454 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30455 | 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] | 30456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30457 | else |
| 30458 | cat >conftest.$ac_ext <<_ACEOF |
| 30459 | /* confdefs.h. */ |
| 30460 | _ACEOF |
| 30461 | cat confdefs.h >>conftest.$ac_ext |
| 30462 | cat >>conftest.$ac_ext <<_ACEOF |
| 30463 | /* end confdefs.h. */ |
| 30464 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30465 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30466 | #define $ac_func innocuous_$ac_func |
| 30467 | |
| 30468 | /* System header to define __stub macros and hopefully few prototypes, |
| 30469 | which can conflict with char $ac_func (); below. |
| 30470 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30471 | <limits.h> exists even on freestanding compilers. */ |
| 30472 | |
| 30473 | #ifdef __STDC__ |
| 30474 | # include <limits.h> |
| 30475 | #else |
| 30476 | # include <assert.h> |
| 30477 | #endif |
| 30478 | |
| 30479 | #undef $ac_func |
| 30480 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30481 | /* Override any GCC internal prototype to avoid an error. |
| 30482 | Use char because int might match the return type of a GCC |
| 30483 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30484 | #ifdef __cplusplus |
| 30485 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30486 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30487 | char $ac_func (); |
| 30488 | /* The GNU C library defines this for functions which it implements |
| 30489 | to always fail with ENOSYS. Some functions are actually named |
| 30490 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30491 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30492 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30493 | #endif |
| 30494 | |
| 30495 | int |
| 30496 | main () |
| 30497 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30498 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30499 | ; |
| 30500 | return 0; |
| 30501 | } |
| 30502 | _ACEOF |
| 30503 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30504 | if { (ac_try="$ac_link" |
| 30505 | case "(($ac_try" in |
| 30506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30507 | *) ac_try_echo=$ac_try;; |
| 30508 | esac |
| 30509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30510 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30511 | ac_status=$? |
| 30512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30513 | rm -f conftest.er1 |
| 30514 | cat conftest.err >&5 |
| 30515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30516 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30518 | { (case "(($ac_try" in |
| 30519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30520 | *) ac_try_echo=$ac_try;; |
| 30521 | esac |
| 30522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30523 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30524 | ac_status=$? |
| 30525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30526 | (exit $ac_status); }; } && |
| 30527 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30528 | { (case "(($ac_try" in |
| 30529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30530 | *) ac_try_echo=$ac_try;; |
| 30531 | esac |
| 30532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30533 | (eval "$ac_try") 2>&5 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30534 | ac_status=$? |
| 30535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30536 | (exit $ac_status); }; }; then |
| 30537 | eval "$as_ac_var=yes" |
| 30538 | else |
| 30539 | echo "$as_me: failed program was:" >&5 |
| 30540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30542 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30543 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30544 | |
| 30545 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30546 | conftest$ac_exeext conftest.$ac_ext |
| 30547 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30548 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30549 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30550 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 30551 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30552 | cat >>confdefs.h <<_ACEOF |
| 30553 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 30554 | _ACEOF |
| 30555 | |
| 30556 | fi |
| 30557 | done |
| 30558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30559 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 30560 | 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] | 30561 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30563 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30564 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30565 | ac_cpp='$CPP $CPPFLAGS' |
| 30566 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30567 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30568 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30569 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30570 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30571 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30572 | else |
| 30573 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30574 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30575 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30576 | _ACEOF |
| 30577 | cat confdefs.h >>conftest.$ac_ext |
| 30578 | cat >>conftest.$ac_ext <<_ACEOF |
| 30579 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30580 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30581 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30582 | #include <stdlib.h> |
| 30583 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30584 | int |
| 30585 | main () |
| 30586 | { |
| 30587 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30588 | volatile double A, B; |
| 30589 | char Buffer[100]; |
| 30590 | A = 1; |
| 30591 | A /= 10.0; |
| 30592 | sprintf(Buffer, "%a", A); |
| 30593 | B = atof(Buffer); |
| 30594 | if (A != B) |
| 30595 | return (1); |
| 30596 | if (A != 0x1.999999999999ap-4) |
| 30597 | return (1); |
| 30598 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30599 | ; |
| 30600 | return 0; |
| 30601 | } |
| 30602 | _ACEOF |
| 30603 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30604 | if { (ac_try="$ac_link" |
| 30605 | case "(($ac_try" in |
| 30606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30607 | *) ac_try_echo=$ac_try;; |
| 30608 | esac |
| 30609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30610 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30611 | ac_status=$? |
| 30612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30614 | { (case "(($ac_try" in |
| 30615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30616 | *) ac_try_echo=$ac_try;; |
| 30617 | esac |
| 30618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30619 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30620 | ac_status=$? |
| 30621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30622 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30623 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30624 | else |
| 30625 | echo "$as_me: program exited with status $ac_status" >&5 |
| 30626 | echo "$as_me: failed program was:" >&5 |
| 30627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30628 | |
| 30629 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30630 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30631 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30632 | 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] | 30633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30634 | |
| 30635 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30636 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30637 | ac_cpp='$CPP $CPPFLAGS' |
| 30638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30641 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30642 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30643 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 30644 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 30645 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30646 | |
| 30647 | cat >>confdefs.h <<\_ACEOF |
| 30648 | #define HAVE_PRINTF_A 1 |
| 30649 | _ACEOF |
| 30650 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30651 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 30652 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30653 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 30654 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30655 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 30656 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30657 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30659 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30660 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30661 | /* confdefs.h. */ |
| 30662 | _ACEOF |
| 30663 | cat confdefs.h >>conftest.$ac_ext |
| 30664 | cat >>conftest.$ac_ext <<_ACEOF |
| 30665 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30666 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30667 | int |
| 30668 | main () |
| 30669 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30670 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30671 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30672 | ; |
| 30673 | return 0; |
| 30674 | } |
| 30675 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30676 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30677 | if { (ac_try="$ac_link" |
| 30678 | case "(($ac_try" in |
| 30679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30680 | *) ac_try_echo=$ac_try;; |
| 30681 | esac |
| 30682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30683 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30684 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30686 | rm -f conftest.er1 |
| 30687 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30689 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30691 | { (case "(($ac_try" in |
| 30692 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30693 | *) ac_try_echo=$ac_try;; |
| 30694 | esac |
| 30695 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30696 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30697 | ac_status=$? |
| 30698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30699 | (exit $ac_status); }; } && |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30700 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30701 | { (case "(($ac_try" in |
| 30702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30703 | *) ac_try_echo=$ac_try;; |
| 30704 | esac |
| 30705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30706 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30707 | ac_status=$? |
| 30708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30709 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30710 | ac_cv_working_alloca_h=yes |
| 30711 | else |
| 30712 | echo "$as_me: failed program was:" >&5 |
| 30713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30715 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 30716 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30717 | |
| 30718 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30719 | conftest$ac_exeext conftest.$ac_ext |
| 30720 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30721 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 30722 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30723 | if test $ac_cv_working_alloca_h = yes; then |
| 30724 | |
| 30725 | cat >>confdefs.h <<\_ACEOF |
| 30726 | #define HAVE_ALLOCA_H 1 |
| 30727 | _ACEOF |
| 30728 | |
| 30729 | fi |
| 30730 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30731 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 30732 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30733 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 30734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30735 | else |
| 30736 | cat >conftest.$ac_ext <<_ACEOF |
| 30737 | /* confdefs.h. */ |
| 30738 | _ACEOF |
| 30739 | cat confdefs.h >>conftest.$ac_ext |
| 30740 | cat >>conftest.$ac_ext <<_ACEOF |
| 30741 | /* end confdefs.h. */ |
| 30742 | #ifdef __GNUC__ |
| 30743 | # define alloca __builtin_alloca |
| 30744 | #else |
| 30745 | # ifdef _MSC_VER |
| 30746 | # include <malloc.h> |
| 30747 | # define alloca _alloca |
| 30748 | # else |
| 30749 | # if HAVE_ALLOCA_H |
| 30750 | # include <alloca.h> |
| 30751 | # else |
| 30752 | # ifdef _AIX |
| 30753 | #pragma alloca |
| 30754 | # else |
| 30755 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 30756 | char *alloca (); |
| 30757 | # endif |
| 30758 | # endif |
| 30759 | # endif |
| 30760 | # endif |
| 30761 | #endif |
| 30762 | |
| 30763 | int |
| 30764 | main () |
| 30765 | { |
| 30766 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30767 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30768 | ; |
| 30769 | return 0; |
| 30770 | } |
| 30771 | _ACEOF |
| 30772 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30773 | if { (ac_try="$ac_link" |
| 30774 | case "(($ac_try" in |
| 30775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30776 | *) ac_try_echo=$ac_try;; |
| 30777 | esac |
| 30778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30779 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30780 | ac_status=$? |
| 30781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30782 | rm -f conftest.er1 |
| 30783 | cat conftest.err >&5 |
| 30784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30785 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30787 | { (case "(($ac_try" in |
| 30788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30789 | *) ac_try_echo=$ac_try;; |
| 30790 | esac |
| 30791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30792 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30793 | ac_status=$? |
| 30794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30795 | (exit $ac_status); }; } && |
| 30796 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30797 | { (case "(($ac_try" in |
| 30798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30799 | *) ac_try_echo=$ac_try;; |
| 30800 | esac |
| 30801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30802 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30803 | ac_status=$? |
| 30804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30805 | (exit $ac_status); }; }; then |
| 30806 | ac_cv_func_alloca_works=yes |
| 30807 | else |
| 30808 | echo "$as_me: failed program was:" >&5 |
| 30809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30810 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30811 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30812 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30813 | |
| 30814 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30815 | conftest$ac_exeext conftest.$ac_ext |
| 30816 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30817 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 30818 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30819 | |
| 30820 | if test $ac_cv_func_alloca_works = yes; then |
| 30821 | |
| 30822 | cat >>confdefs.h <<\_ACEOF |
| 30823 | #define HAVE_ALLOCA 1 |
| 30824 | _ACEOF |
| 30825 | |
| 30826 | else |
| 30827 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 30828 | # that cause trouble. Some versions do not even contain alloca or |
| 30829 | # contain a buggy version. If you still want to use their alloca, |
| 30830 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 30831 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30832 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30833 | |
| 30834 | cat >>confdefs.h <<\_ACEOF |
| 30835 | #define C_ALLOCA 1 |
| 30836 | _ACEOF |
| 30837 | |
| 30838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30839 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 30840 | 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] | 30841 | if test "${ac_cv_os_cray+set}" = set; then |
| 30842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30843 | else |
| 30844 | cat >conftest.$ac_ext <<_ACEOF |
| 30845 | /* confdefs.h. */ |
| 30846 | _ACEOF |
| 30847 | cat confdefs.h >>conftest.$ac_ext |
| 30848 | cat >>conftest.$ac_ext <<_ACEOF |
| 30849 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30850 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30851 | webecray |
| 30852 | #else |
| 30853 | wenotbecray |
| 30854 | #endif |
| 30855 | |
| 30856 | _ACEOF |
| 30857 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30858 | $EGREP "webecray" >/dev/null 2>&1; then |
| 30859 | ac_cv_os_cray=yes |
| 30860 | else |
| 30861 | ac_cv_os_cray=no |
| 30862 | fi |
| 30863 | rm -f conftest* |
| 30864 | |
| 30865 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30866 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 30867 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30868 | if test $ac_cv_os_cray = yes; then |
| 30869 | for ac_func in _getb67 GETB67 getb67; do |
| 30870 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30871 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 30872 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 30873 | 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] | 30874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30875 | else |
| 30876 | cat >conftest.$ac_ext <<_ACEOF |
| 30877 | /* confdefs.h. */ |
| 30878 | _ACEOF |
| 30879 | cat confdefs.h >>conftest.$ac_ext |
| 30880 | cat >>conftest.$ac_ext <<_ACEOF |
| 30881 | /* end confdefs.h. */ |
| 30882 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 30883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 30884 | #define $ac_func innocuous_$ac_func |
| 30885 | |
| 30886 | /* System header to define __stub macros and hopefully few prototypes, |
| 30887 | which can conflict with char $ac_func (); below. |
| 30888 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 30889 | <limits.h> exists even on freestanding compilers. */ |
| 30890 | |
| 30891 | #ifdef __STDC__ |
| 30892 | # include <limits.h> |
| 30893 | #else |
| 30894 | # include <assert.h> |
| 30895 | #endif |
| 30896 | |
| 30897 | #undef $ac_func |
| 30898 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30899 | /* Override any GCC internal prototype to avoid an error. |
| 30900 | Use char because int might match the return type of a GCC |
| 30901 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30902 | #ifdef __cplusplus |
| 30903 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30904 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30905 | char $ac_func (); |
| 30906 | /* The GNU C library defines this for functions which it implements |
| 30907 | to always fail with ENOSYS. Some functions are actually named |
| 30908 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30909 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30910 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30911 | #endif |
| 30912 | |
| 30913 | int |
| 30914 | main () |
| 30915 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30916 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30917 | ; |
| 30918 | return 0; |
| 30919 | } |
| 30920 | _ACEOF |
| 30921 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30922 | if { (ac_try="$ac_link" |
| 30923 | case "(($ac_try" in |
| 30924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30925 | *) ac_try_echo=$ac_try;; |
| 30926 | esac |
| 30927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30928 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30929 | ac_status=$? |
| 30930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30931 | rm -f conftest.er1 |
| 30932 | cat conftest.err >&5 |
| 30933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30934 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 30936 | { (case "(($ac_try" in |
| 30937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30938 | *) ac_try_echo=$ac_try;; |
| 30939 | esac |
| 30940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30941 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30942 | ac_status=$? |
| 30943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30944 | (exit $ac_status); }; } && |
| 30945 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30946 | { (case "(($ac_try" in |
| 30947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30948 | *) ac_try_echo=$ac_try;; |
| 30949 | esac |
| 30950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30951 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30952 | ac_status=$? |
| 30953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 30954 | (exit $ac_status); }; }; then |
| 30955 | eval "$as_ac_var=yes" |
| 30956 | else |
| 30957 | echo "$as_me: failed program was:" >&5 |
| 30958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30959 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30960 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30961 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30962 | |
| 30963 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30964 | conftest$ac_exeext conftest.$ac_ext |
| 30965 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30966 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 30967 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 30968 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30969 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 30970 | |
| 30971 | cat >>confdefs.h <<_ACEOF |
| 30972 | #define CRAY_STACKSEG_END $ac_func |
| 30973 | _ACEOF |
| 30974 | |
| 30975 | break |
| 30976 | fi |
| 30977 | |
| 30978 | done |
| 30979 | fi |
| 30980 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30981 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 30982 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30983 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 30984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30985 | else |
| 30986 | if test "$cross_compiling" = yes; then |
| 30987 | ac_cv_c_stack_direction=0 |
| 30988 | else |
| 30989 | cat >conftest.$ac_ext <<_ACEOF |
| 30990 | /* confdefs.h. */ |
| 30991 | _ACEOF |
| 30992 | cat confdefs.h >>conftest.$ac_ext |
| 30993 | cat >>conftest.$ac_ext <<_ACEOF |
| 30994 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30995 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 30996 | int |
| 30997 | find_stack_direction () |
| 30998 | { |
| 30999 | static char *addr = 0; |
| 31000 | auto char dummy; |
| 31001 | if (addr == 0) |
| 31002 | { |
| 31003 | addr = &dummy; |
| 31004 | return find_stack_direction (); |
| 31005 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31006 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31007 | return (&dummy > addr) ? 1 : -1; |
| 31008 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31009 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31010 | int |
| 31011 | main () |
| 31012 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31013 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31014 | } |
| 31015 | _ACEOF |
| 31016 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31017 | if { (ac_try="$ac_link" |
| 31018 | case "(($ac_try" in |
| 31019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31020 | *) ac_try_echo=$ac_try;; |
| 31021 | esac |
| 31022 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31023 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31024 | ac_status=$? |
| 31025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31027 | { (case "(($ac_try" in |
| 31028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31029 | *) ac_try_echo=$ac_try;; |
| 31030 | esac |
| 31031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31032 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31033 | ac_status=$? |
| 31034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31035 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31036 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31037 | else |
| 31038 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31039 | echo "$as_me: failed program was:" >&5 |
| 31040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31041 | |
| 31042 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31043 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31044 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31045 | 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] | 31046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31047 | |
| 31048 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31049 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31050 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 31051 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31052 | |
| 31053 | cat >>confdefs.h <<_ACEOF |
| 31054 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 31055 | _ACEOF |
| 31056 | |
| 31057 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31058 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31059 | |
| 31060 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31061 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 31062 | 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] | 31063 | if test "${ac_cv_func_rand48+set}" = set; then |
| 31064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31065 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31066 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31067 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31071 | |
| 31072 | cat >conftest.$ac_ext <<_ACEOF |
| 31073 | /* confdefs.h. */ |
| 31074 | _ACEOF |
| 31075 | cat confdefs.h >>conftest.$ac_ext |
| 31076 | cat >>conftest.$ac_ext <<_ACEOF |
| 31077 | /* end confdefs.h. */ |
| 31078 | #include <stdlib.h> |
| 31079 | int |
| 31080 | main () |
| 31081 | { |
| 31082 | srand48(0);lrand48();drand48(); |
| 31083 | ; |
| 31084 | return 0; |
| 31085 | } |
| 31086 | _ACEOF |
| 31087 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31088 | if { (ac_try="$ac_compile" |
| 31089 | case "(($ac_try" in |
| 31090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31091 | *) ac_try_echo=$ac_try;; |
| 31092 | esac |
| 31093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31094 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31095 | ac_status=$? |
| 31096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31097 | rm -f conftest.er1 |
| 31098 | cat conftest.err >&5 |
| 31099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31100 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31101 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31102 | { (case "(($ac_try" in |
| 31103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31104 | *) ac_try_echo=$ac_try;; |
| 31105 | esac |
| 31106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31107 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31108 | ac_status=$? |
| 31109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31110 | (exit $ac_status); }; } && |
| 31111 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31112 | { (case "(($ac_try" in |
| 31113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31114 | *) ac_try_echo=$ac_try;; |
| 31115 | esac |
| 31116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31117 | (eval "$ac_try") 2>&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31118 | ac_status=$? |
| 31119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31120 | (exit $ac_status); }; }; then |
| 31121 | ac_cv_func_rand48=yes |
| 31122 | else |
| 31123 | echo "$as_me: failed program was:" >&5 |
| 31124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31125 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31126 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31127 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31128 | |
| 31129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31130 | ac_ext=c |
| 31131 | ac_cpp='$CPP $CPPFLAGS' |
| 31132 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31133 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31134 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31135 | |
| 31136 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31137 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 31138 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31139 | |
| 31140 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 31141 | |
| 31142 | cat >>confdefs.h <<\_ACEOF |
| 31143 | #define HAVE_RAND48 1 |
| 31144 | _ACEOF |
| 31145 | |
| 31146 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 31147 | |
| 31148 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31149 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 31150 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31151 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 31152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31153 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31154 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31155 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31159 | |
| 31160 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31161 | /* confdefs.h. */ |
| 31162 | _ACEOF |
| 31163 | cat confdefs.h >>conftest.$ac_ext |
| 31164 | cat >>conftest.$ac_ext <<_ACEOF |
| 31165 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31166 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31167 | int |
| 31168 | main () |
| 31169 | { |
| 31170 | using namespace Outer::Inner; return i; |
| 31171 | ; |
| 31172 | return 0; |
| 31173 | } |
| 31174 | _ACEOF |
| 31175 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31176 | if { (ac_try="$ac_compile" |
| 31177 | case "(($ac_try" in |
| 31178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31179 | *) ac_try_echo=$ac_try;; |
| 31180 | esac |
| 31181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31182 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31183 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31185 | rm -f conftest.er1 |
| 31186 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31188 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31189 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31190 | { (case "(($ac_try" in |
| 31191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31192 | *) ac_try_echo=$ac_try;; |
| 31193 | esac |
| 31194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31195 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31196 | ac_status=$? |
| 31197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31198 | (exit $ac_status); }; } && |
| 31199 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31200 | { (case "(($ac_try" in |
| 31201 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31202 | *) ac_try_echo=$ac_try;; |
| 31203 | esac |
| 31204 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31205 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31206 | ac_status=$? |
| 31207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31208 | (exit $ac_status); }; }; then |
| 31209 | ac_cv_cxx_namespaces=yes |
| 31210 | else |
| 31211 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31212 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31214 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31215 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31216 | |
| 31217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31218 | ac_ext=c |
| 31219 | ac_cpp='$CPP $CPPFLAGS' |
| 31220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31223 | |
| 31224 | |
| 31225 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31226 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 31227 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31228 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 31229 | |
| 31230 | cat >>confdefs.h <<\_ACEOF |
| 31231 | #define HAVE_NAMESPACES |
| 31232 | _ACEOF |
| 31233 | |
| 31234 | fi |
| 31235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31236 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 31237 | 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] | 31238 | 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] | 31239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31240 | else |
| 31241 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31242 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31243 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31247 | |
| 31248 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31249 | /* confdefs.h. */ |
| 31250 | _ACEOF |
| 31251 | cat confdefs.h >>conftest.$ac_ext |
| 31252 | cat >>conftest.$ac_ext <<_ACEOF |
| 31253 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31254 | #include <ext/hash_map> |
| 31255 | #ifdef HAVE_NAMESPACES |
| 31256 | using namespace std; |
| 31257 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31258 | int |
| 31259 | main () |
| 31260 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31261 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31262 | ; |
| 31263 | return 0; |
| 31264 | } |
| 31265 | _ACEOF |
| 31266 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31267 | if { (ac_try="$ac_compile" |
| 31268 | case "(($ac_try" in |
| 31269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31270 | *) ac_try_echo=$ac_try;; |
| 31271 | esac |
| 31272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31273 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31274 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31276 | rm -f conftest.er1 |
| 31277 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31279 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31280 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31281 | { (case "(($ac_try" in |
| 31282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31283 | *) ac_try_echo=$ac_try;; |
| 31284 | esac |
| 31285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31286 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31287 | ac_status=$? |
| 31288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31289 | (exit $ac_status); }; } && |
| 31290 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31291 | { (case "(($ac_try" in |
| 31292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31293 | *) ac_try_echo=$ac_try;; |
| 31294 | esac |
| 31295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31296 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31297 | ac_status=$? |
| 31298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31299 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31300 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31301 | else |
| 31302 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31304 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31305 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31307 | |
| 31308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31309 | ac_ext=c |
| 31310 | ac_cpp='$CPP $CPPFLAGS' |
| 31311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31314 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31315 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31316 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 31317 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31318 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 31319 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31320 | |
| 31321 | cat >>confdefs.h <<\_ACEOF |
| 31322 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 31323 | _ACEOF |
| 31324 | |
| 31325 | else |
| 31326 | |
| 31327 | cat >>confdefs.h <<\_ACEOF |
| 31328 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 31329 | _ACEOF |
| 31330 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31331 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31332 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31333 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 31334 | 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] | 31335 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 31336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31337 | else |
| 31338 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31339 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31340 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31341 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31342 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31343 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31344 | |
| 31345 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31346 | /* confdefs.h. */ |
| 31347 | _ACEOF |
| 31348 | cat confdefs.h >>conftest.$ac_ext |
| 31349 | cat >>conftest.$ac_ext <<_ACEOF |
| 31350 | /* end confdefs.h. */ |
| 31351 | #include <ext/hash_map> |
| 31352 | #ifdef HAVE_NAMESPACES |
| 31353 | using namespace __gnu_cxx; |
| 31354 | #endif |
| 31355 | int |
| 31356 | main () |
| 31357 | { |
| 31358 | hash_map<int,int> t; |
| 31359 | ; |
| 31360 | return 0; |
| 31361 | } |
| 31362 | _ACEOF |
| 31363 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31364 | if { (ac_try="$ac_compile" |
| 31365 | case "(($ac_try" in |
| 31366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31367 | *) ac_try_echo=$ac_try;; |
| 31368 | esac |
| 31369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31370 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31371 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31372 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31373 | rm -f conftest.er1 |
| 31374 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31376 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31377 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31378 | { (case "(($ac_try" in |
| 31379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31380 | *) ac_try_echo=$ac_try;; |
| 31381 | esac |
| 31382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31383 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31384 | ac_status=$? |
| 31385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31386 | (exit $ac_status); }; } && |
| 31387 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31388 | { (case "(($ac_try" in |
| 31389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31390 | *) ac_try_echo=$ac_try;; |
| 31391 | esac |
| 31392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31393 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31394 | ac_status=$? |
| 31395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31396 | (exit $ac_status); }; }; then |
| 31397 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 31398 | else |
| 31399 | echo "$as_me: failed program was:" >&5 |
| 31400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31401 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31402 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31403 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31404 | |
| 31405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31406 | ac_ext=c |
| 31407 | ac_cpp='$CPP $CPPFLAGS' |
| 31408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31411 | |
| 31412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31413 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 31414 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31415 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 31416 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31417 | |
| 31418 | cat >>confdefs.h <<\_ACEOF |
| 31419 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 31420 | _ACEOF |
| 31421 | |
| 31422 | else |
| 31423 | |
| 31424 | cat >>confdefs.h <<\_ACEOF |
| 31425 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 31426 | _ACEOF |
| 31427 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31428 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31429 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31430 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 31431 | 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] | 31432 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 31433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31434 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31435 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31436 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31437 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31438 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31439 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31440 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31441 | |
| 31442 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31443 | /* confdefs.h. */ |
| 31444 | _ACEOF |
| 31445 | cat confdefs.h >>conftest.$ac_ext |
| 31446 | cat >>conftest.$ac_ext <<_ACEOF |
| 31447 | /* end confdefs.h. */ |
| 31448 | #include <hash_map> |
| 31449 | int |
| 31450 | main () |
| 31451 | { |
| 31452 | hash_map<int,int> t; |
| 31453 | ; |
| 31454 | return 0; |
| 31455 | } |
| 31456 | _ACEOF |
| 31457 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31458 | if { (ac_try="$ac_compile" |
| 31459 | case "(($ac_try" in |
| 31460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31461 | *) ac_try_echo=$ac_try;; |
| 31462 | esac |
| 31463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31464 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31465 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31467 | rm -f conftest.er1 |
| 31468 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31470 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31471 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31472 | { (case "(($ac_try" in |
| 31473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31474 | *) ac_try_echo=$ac_try;; |
| 31475 | esac |
| 31476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31477 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31478 | ac_status=$? |
| 31479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31480 | (exit $ac_status); }; } && |
| 31481 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31482 | { (case "(($ac_try" in |
| 31483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31484 | *) ac_try_echo=$ac_try;; |
| 31485 | esac |
| 31486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31487 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31488 | ac_status=$? |
| 31489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31490 | (exit $ac_status); }; }; then |
| 31491 | ac_cv_cxx_have_global_hash_map=yes |
| 31492 | else |
| 31493 | echo "$as_me: failed program was:" >&5 |
| 31494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31496 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31498 | |
| 31499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31500 | ac_ext=c |
| 31501 | ac_cpp='$CPP $CPPFLAGS' |
| 31502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31505 | |
| 31506 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31507 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 31508 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31509 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 31510 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31511 | |
| 31512 | cat >>confdefs.h <<\_ACEOF |
| 31513 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 31514 | _ACEOF |
| 31515 | |
| 31516 | else |
| 31517 | |
| 31518 | cat >>confdefs.h <<\_ACEOF |
| 31519 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 31520 | _ACEOF |
| 31521 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31522 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31523 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31524 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 31525 | 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] | 31526 | 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] | 31527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31528 | else |
| 31529 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31530 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31531 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31535 | |
| 31536 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31537 | /* confdefs.h. */ |
| 31538 | _ACEOF |
| 31539 | cat confdefs.h >>conftest.$ac_ext |
| 31540 | cat >>conftest.$ac_ext <<_ACEOF |
| 31541 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31542 | #include <ext/hash_set> |
| 31543 | #ifdef HAVE_NAMESPACES |
| 31544 | using namespace std; |
| 31545 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31546 | int |
| 31547 | main () |
| 31548 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31549 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31550 | ; |
| 31551 | return 0; |
| 31552 | } |
| 31553 | _ACEOF |
| 31554 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31555 | if { (ac_try="$ac_compile" |
| 31556 | case "(($ac_try" in |
| 31557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31558 | *) ac_try_echo=$ac_try;; |
| 31559 | esac |
| 31560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31561 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31562 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31564 | rm -f conftest.er1 |
| 31565 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31567 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31568 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31569 | { (case "(($ac_try" in |
| 31570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31571 | *) ac_try_echo=$ac_try;; |
| 31572 | esac |
| 31573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31574 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31575 | ac_status=$? |
| 31576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31577 | (exit $ac_status); }; } && |
| 31578 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31579 | { (case "(($ac_try" in |
| 31580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31581 | *) ac_try_echo=$ac_try;; |
| 31582 | esac |
| 31583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31584 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31585 | ac_status=$? |
| 31586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31587 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31588 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31589 | else |
| 31590 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31592 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31593 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31594 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31595 | |
| 31596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31597 | ac_ext=c |
| 31598 | ac_cpp='$CPP $CPPFLAGS' |
| 31599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31602 | |
| 31603 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31604 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 31605 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31606 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 31607 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31608 | |
| 31609 | cat >>confdefs.h <<\_ACEOF |
| 31610 | #define HAVE_STD_EXT_HASH_SET 1 |
| 31611 | _ACEOF |
| 31612 | |
| 31613 | else |
| 31614 | |
| 31615 | cat >>confdefs.h <<\_ACEOF |
| 31616 | #define HAVE_STD_EXT_HASH_SET 0 |
| 31617 | _ACEOF |
| 31618 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31619 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31620 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31621 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 31622 | 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] | 31623 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 31624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31625 | else |
| 31626 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31627 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31628 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31633 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31634 | /* confdefs.h. */ |
| 31635 | _ACEOF |
| 31636 | cat confdefs.h >>conftest.$ac_ext |
| 31637 | cat >>conftest.$ac_ext <<_ACEOF |
| 31638 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31639 | #include <ext/hash_set> |
| 31640 | #ifdef HAVE_NAMESPACES |
| 31641 | using namespace __gnu_cxx; |
| 31642 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31643 | int |
| 31644 | main () |
| 31645 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31646 | hash_set<int> t; |
| 31647 | ; |
| 31648 | return 0; |
| 31649 | } |
| 31650 | _ACEOF |
| 31651 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31652 | if { (ac_try="$ac_compile" |
| 31653 | case "(($ac_try" in |
| 31654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31655 | *) ac_try_echo=$ac_try;; |
| 31656 | esac |
| 31657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31658 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31659 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31661 | rm -f conftest.er1 |
| 31662 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31664 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31665 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31666 | { (case "(($ac_try" in |
| 31667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31668 | *) ac_try_echo=$ac_try;; |
| 31669 | esac |
| 31670 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31671 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31672 | ac_status=$? |
| 31673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31674 | (exit $ac_status); }; } && |
| 31675 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31676 | { (case "(($ac_try" in |
| 31677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31678 | *) ac_try_echo=$ac_try;; |
| 31679 | esac |
| 31680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31681 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31682 | ac_status=$? |
| 31683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31684 | (exit $ac_status); }; }; then |
| 31685 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 31686 | else |
| 31687 | echo "$as_me: failed program was:" >&5 |
| 31688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31690 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31691 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31692 | |
| 31693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31694 | ac_ext=c |
| 31695 | ac_cpp='$CPP $CPPFLAGS' |
| 31696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31699 | |
| 31700 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31701 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 31702 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31703 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 31704 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31705 | |
| 31706 | cat >>confdefs.h <<\_ACEOF |
| 31707 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 31708 | _ACEOF |
| 31709 | |
| 31710 | else |
| 31711 | |
| 31712 | cat >>confdefs.h <<\_ACEOF |
| 31713 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 31714 | _ACEOF |
| 31715 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31716 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31717 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31718 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 31719 | 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] | 31720 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 31721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31722 | else |
| 31723 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31724 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31725 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31726 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31727 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31728 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31729 | |
| 31730 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31731 | /* confdefs.h. */ |
| 31732 | _ACEOF |
| 31733 | cat confdefs.h >>conftest.$ac_ext |
| 31734 | cat >>conftest.$ac_ext <<_ACEOF |
| 31735 | /* end confdefs.h. */ |
| 31736 | #include <hash_set> |
| 31737 | int |
| 31738 | main () |
| 31739 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31740 | hash_set<int> t; return 0; |
| 31741 | ; |
| 31742 | return 0; |
| 31743 | } |
| 31744 | _ACEOF |
| 31745 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31746 | if { (ac_try="$ac_compile" |
| 31747 | case "(($ac_try" in |
| 31748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31749 | *) ac_try_echo=$ac_try;; |
| 31750 | esac |
| 31751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31752 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31753 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31755 | rm -f conftest.er1 |
| 31756 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31758 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31759 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31760 | { (case "(($ac_try" in |
| 31761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31762 | *) ac_try_echo=$ac_try;; |
| 31763 | esac |
| 31764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31765 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31766 | ac_status=$? |
| 31767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31768 | (exit $ac_status); }; } && |
| 31769 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31770 | { (case "(($ac_try" in |
| 31771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31772 | *) ac_try_echo=$ac_try;; |
| 31773 | esac |
| 31774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31775 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31776 | ac_status=$? |
| 31777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31778 | (exit $ac_status); }; }; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31779 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31780 | else |
| 31781 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31783 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31784 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31785 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31786 | |
| 31787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31788 | ac_ext=c |
| 31789 | ac_cpp='$CPP $CPPFLAGS' |
| 31790 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31791 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31792 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31793 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31794 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31795 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 31796 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31797 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 31798 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 31799 | |
| 31800 | cat >>confdefs.h <<\_ACEOF |
| 31801 | #define HAVE_GLOBAL_HASH_SET 1 |
| 31802 | _ACEOF |
| 31803 | |
| 31804 | else |
| 31805 | |
| 31806 | cat >>confdefs.h <<\_ACEOF |
| 31807 | #define HAVE_GLOBAL_HASH_SET 0 |
| 31808 | _ACEOF |
| 31809 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 31810 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 31811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31812 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 31813 | 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] | 31814 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 31815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31816 | else |
| 31817 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31818 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31819 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31820 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31821 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31822 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31823 | |
| 31824 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31825 | /* confdefs.h. */ |
| 31826 | _ACEOF |
| 31827 | cat confdefs.h >>conftest.$ac_ext |
| 31828 | cat >>conftest.$ac_ext <<_ACEOF |
| 31829 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31830 | #include <iterator> |
| 31831 | #ifdef HAVE_NAMESPACES |
| 31832 | using namespace std; |
| 31833 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31834 | int |
| 31835 | main () |
| 31836 | { |
| 31837 | iterator<int,int,int> t; return 0; |
| 31838 | ; |
| 31839 | return 0; |
| 31840 | } |
| 31841 | _ACEOF |
| 31842 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31843 | if { (ac_try="$ac_compile" |
| 31844 | case "(($ac_try" in |
| 31845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31846 | *) ac_try_echo=$ac_try;; |
| 31847 | esac |
| 31848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31849 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31850 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31852 | rm -f conftest.er1 |
| 31853 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31855 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31857 | { (case "(($ac_try" in |
| 31858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31859 | *) ac_try_echo=$ac_try;; |
| 31860 | esac |
| 31861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31862 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31863 | ac_status=$? |
| 31864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31865 | (exit $ac_status); }; } && |
| 31866 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31867 | { (case "(($ac_try" in |
| 31868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31869 | *) ac_try_echo=$ac_try;; |
| 31870 | esac |
| 31871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31872 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31873 | ac_status=$? |
| 31874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31875 | (exit $ac_status); }; }; then |
| 31876 | ac_cv_cxx_have_std_iterator=yes |
| 31877 | else |
| 31878 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31881 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31882 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31883 | |
| 31884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31885 | ac_ext=c |
| 31886 | ac_cpp='$CPP $CPPFLAGS' |
| 31887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31890 | |
| 31891 | |
| 31892 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31893 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 31894 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31895 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 31896 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31897 | |
| 31898 | cat >>confdefs.h <<\_ACEOF |
| 31899 | #define HAVE_STD_ITERATOR 1 |
| 31900 | _ACEOF |
| 31901 | |
| 31902 | else |
| 31903 | |
| 31904 | cat >>confdefs.h <<\_ACEOF |
| 31905 | #define HAVE_STD_ITERATOR 0 |
| 31906 | _ACEOF |
| 31907 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31908 | fi |
| 31909 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31910 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 31911 | 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] | 31912 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 31913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31914 | else |
| 31915 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31916 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31917 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31918 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31919 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31920 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31921 | |
| 31922 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31923 | /* confdefs.h. */ |
| 31924 | _ACEOF |
| 31925 | cat confdefs.h >>conftest.$ac_ext |
| 31926 | cat >>conftest.$ac_ext <<_ACEOF |
| 31927 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31928 | #include <iterator> |
| 31929 | #ifdef HAVE_NAMESPACES |
| 31930 | using namespace std; |
| 31931 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31932 | int |
| 31933 | main () |
| 31934 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 31935 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31936 | ; |
| 31937 | return 0; |
| 31938 | } |
| 31939 | _ACEOF |
| 31940 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31941 | if { (ac_try="$ac_compile" |
| 31942 | case "(($ac_try" in |
| 31943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31944 | *) ac_try_echo=$ac_try;; |
| 31945 | esac |
| 31946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31947 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31948 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31950 | rm -f conftest.er1 |
| 31951 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31953 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31954 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 31955 | { (case "(($ac_try" in |
| 31956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31957 | *) ac_try_echo=$ac_try;; |
| 31958 | esac |
| 31959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31960 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31961 | ac_status=$? |
| 31962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31963 | (exit $ac_status); }; } && |
| 31964 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31971 | ac_status=$? |
| 31972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31973 | (exit $ac_status); }; }; then |
| 31974 | ac_cv_cxx_have_bi_iterator=yes |
| 31975 | else |
| 31976 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31979 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31980 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31981 | |
| 31982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31983 | ac_ext=c |
| 31984 | ac_cpp='$CPP $CPPFLAGS' |
| 31985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31988 | |
| 31989 | |
| 31990 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31991 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 31992 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 31993 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 31994 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 31995 | |
| 31996 | cat >>confdefs.h <<\_ACEOF |
| 31997 | #define HAVE_BI_ITERATOR 1 |
| 31998 | _ACEOF |
| 31999 | |
| 32000 | else |
| 32001 | |
| 32002 | cat >>confdefs.h <<\_ACEOF |
| 32003 | #define HAVE_BI_ITERATOR 0 |
| 32004 | _ACEOF |
| 32005 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32006 | fi |
| 32007 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32008 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 32009 | 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] | 32010 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 32011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32012 | else |
| 32013 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32014 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32015 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32019 | |
| 32020 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32021 | /* confdefs.h. */ |
| 32022 | _ACEOF |
| 32023 | cat confdefs.h >>conftest.$ac_ext |
| 32024 | cat >>conftest.$ac_ext <<_ACEOF |
| 32025 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32026 | #include <iterator> |
| 32027 | #ifdef HAVE_NAMESPACES |
| 32028 | using namespace std; |
| 32029 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32030 | int |
| 32031 | main () |
| 32032 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 32033 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32034 | ; |
| 32035 | return 0; |
| 32036 | } |
| 32037 | _ACEOF |
| 32038 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32039 | if { (ac_try="$ac_compile" |
| 32040 | case "(($ac_try" in |
| 32041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32042 | *) ac_try_echo=$ac_try;; |
| 32043 | esac |
| 32044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32045 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32046 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32048 | rm -f conftest.er1 |
| 32049 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32051 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32052 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32053 | { (case "(($ac_try" in |
| 32054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32055 | *) ac_try_echo=$ac_try;; |
| 32056 | esac |
| 32057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32058 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32059 | ac_status=$? |
| 32060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32061 | (exit $ac_status); }; } && |
| 32062 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 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_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32069 | ac_status=$? |
| 32070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32071 | (exit $ac_status); }; }; then |
| 32072 | ac_cv_cxx_have_fwd_iterator=yes |
| 32073 | else |
| 32074 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32076 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32077 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32078 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32079 | |
| 32080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32081 | ac_ext=c |
| 32082 | ac_cpp='$CPP $CPPFLAGS' |
| 32083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32086 | |
| 32087 | |
| 32088 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32089 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 32090 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 32091 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 32092 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 32093 | |
| 32094 | cat >>confdefs.h <<\_ACEOF |
| 32095 | #define HAVE_FWD_ITERATOR 1 |
| 32096 | _ACEOF |
| 32097 | |
| 32098 | else |
| 32099 | |
| 32100 | cat >>confdefs.h <<\_ACEOF |
| 32101 | #define HAVE_FWD_ITERATOR 0 |
| 32102 | _ACEOF |
| 32103 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32104 | fi |
| 32105 | |
| 32106 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32107 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 32108 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32109 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 32110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32111 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32112 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32113 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32114 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32115 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32116 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32117 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32118 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32119 | /* confdefs.h. */ |
| 32120 | _ACEOF |
| 32121 | cat confdefs.h >>conftest.$ac_ext |
| 32122 | cat >>conftest.$ac_ext <<_ACEOF |
| 32123 | /* end confdefs.h. */ |
| 32124 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32125 | int |
| 32126 | main () |
| 32127 | { |
| 32128 | float f; isnan(f); |
| 32129 | ; |
| 32130 | return 0; |
| 32131 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32132 | _ACEOF |
| 32133 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32134 | if { (ac_try="$ac_compile" |
| 32135 | case "(($ac_try" in |
| 32136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32137 | *) ac_try_echo=$ac_try;; |
| 32138 | esac |
| 32139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32140 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32141 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32143 | rm -f conftest.er1 |
| 32144 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32146 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32148 | { (case "(($ac_try" in |
| 32149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32150 | *) ac_try_echo=$ac_try;; |
| 32151 | esac |
| 32152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32153 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32154 | ac_status=$? |
| 32155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32156 | (exit $ac_status); }; } && |
| 32157 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32158 | { (case "(($ac_try" in |
| 32159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32160 | *) ac_try_echo=$ac_try;; |
| 32161 | esac |
| 32162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32163 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32164 | ac_status=$? |
| 32165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32166 | (exit $ac_status); }; }; then |
| 32167 | ac_cv_func_isnan_in_math_h=yes |
| 32168 | else |
| 32169 | echo "$as_me: failed program was:" >&5 |
| 32170 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32171 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32172 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32173 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32174 | |
| 32175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32176 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32177 | ac_cpp='$CPP $CPPFLAGS' |
| 32178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32181 | |
| 32182 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32183 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 32184 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32185 | |
| 32186 | |
| 32187 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32188 | |
| 32189 | cat >>confdefs.h <<\_ACEOF |
| 32190 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 32191 | _ACEOF |
| 32192 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32193 | fi |
| 32194 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32195 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 32196 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32197 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 32198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32199 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32200 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32201 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32205 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32206 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32207 | /* confdefs.h. */ |
| 32208 | _ACEOF |
| 32209 | cat confdefs.h >>conftest.$ac_ext |
| 32210 | cat >>conftest.$ac_ext <<_ACEOF |
| 32211 | /* end confdefs.h. */ |
| 32212 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32213 | int |
| 32214 | main () |
| 32215 | { |
| 32216 | float f; isnan(f); |
| 32217 | ; |
| 32218 | return 0; |
| 32219 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32220 | _ACEOF |
| 32221 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32222 | if { (ac_try="$ac_compile" |
| 32223 | case "(($ac_try" in |
| 32224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32225 | *) ac_try_echo=$ac_try;; |
| 32226 | esac |
| 32227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32228 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32229 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32231 | rm -f conftest.er1 |
| 32232 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32234 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32235 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32236 | { (case "(($ac_try" in |
| 32237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32238 | *) ac_try_echo=$ac_try;; |
| 32239 | esac |
| 32240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32241 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32242 | ac_status=$? |
| 32243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32244 | (exit $ac_status); }; } && |
| 32245 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32246 | { (case "(($ac_try" in |
| 32247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32248 | *) ac_try_echo=$ac_try;; |
| 32249 | esac |
| 32250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32251 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32252 | ac_status=$? |
| 32253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32254 | (exit $ac_status); }; }; then |
| 32255 | ac_cv_func_isnan_in_cmath=yes |
| 32256 | else |
| 32257 | echo "$as_me: failed program was:" >&5 |
| 32258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32260 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32261 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32262 | |
| 32263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32264 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32265 | ac_cpp='$CPP $CPPFLAGS' |
| 32266 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32267 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32268 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32269 | |
| 32270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32271 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 32272 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32273 | |
| 32274 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32275 | |
| 32276 | cat >>confdefs.h <<\_ACEOF |
| 32277 | #define HAVE_ISNAN_IN_CMATH 1 |
| 32278 | _ACEOF |
| 32279 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32280 | fi |
| 32281 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32282 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 32283 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32284 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 32285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32286 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32287 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32288 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32289 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32290 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32291 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32292 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32293 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32294 | /* confdefs.h. */ |
| 32295 | _ACEOF |
| 32296 | cat confdefs.h >>conftest.$ac_ext |
| 32297 | cat >>conftest.$ac_ext <<_ACEOF |
| 32298 | /* end confdefs.h. */ |
| 32299 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32300 | int |
| 32301 | main () |
| 32302 | { |
| 32303 | float f; std::isnan(f); |
| 32304 | ; |
| 32305 | return 0; |
| 32306 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32307 | _ACEOF |
| 32308 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32309 | if { (ac_try="$ac_compile" |
| 32310 | case "(($ac_try" in |
| 32311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32312 | *) ac_try_echo=$ac_try;; |
| 32313 | esac |
| 32314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32315 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32316 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32318 | rm -f conftest.er1 |
| 32319 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32321 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32323 | { (case "(($ac_try" in |
| 32324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32325 | *) ac_try_echo=$ac_try;; |
| 32326 | esac |
| 32327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32328 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32329 | ac_status=$? |
| 32330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32331 | (exit $ac_status); }; } && |
| 32332 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32333 | { (case "(($ac_try" in |
| 32334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32335 | *) ac_try_echo=$ac_try;; |
| 32336 | esac |
| 32337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32338 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32339 | ac_status=$? |
| 32340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32341 | (exit $ac_status); }; }; then |
| 32342 | ac_cv_func_std_isnan_in_cmath=yes |
| 32343 | else |
| 32344 | echo "$as_me: failed program was:" >&5 |
| 32345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32346 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32347 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32348 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32349 | |
| 32350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32351 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32352 | ac_cpp='$CPP $CPPFLAGS' |
| 32353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32356 | |
| 32357 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32358 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 32359 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32360 | |
| 32361 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32362 | |
| 32363 | cat >>confdefs.h <<\_ACEOF |
| 32364 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 32365 | _ACEOF |
| 32366 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32367 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 32368 | |
| 32369 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32370 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 32371 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32372 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 32373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32374 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32375 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32376 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32377 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32378 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32379 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32380 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32381 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32382 | /* confdefs.h. */ |
| 32383 | _ACEOF |
| 32384 | cat confdefs.h >>conftest.$ac_ext |
| 32385 | cat >>conftest.$ac_ext <<_ACEOF |
| 32386 | /* end confdefs.h. */ |
| 32387 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32388 | int |
| 32389 | main () |
| 32390 | { |
| 32391 | float f; isinf(f); |
| 32392 | ; |
| 32393 | return 0; |
| 32394 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32395 | _ACEOF |
| 32396 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32397 | if { (ac_try="$ac_compile" |
| 32398 | case "(($ac_try" in |
| 32399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32400 | *) ac_try_echo=$ac_try;; |
| 32401 | esac |
| 32402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32403 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32404 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32406 | rm -f conftest.er1 |
| 32407 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32409 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32411 | { (case "(($ac_try" in |
| 32412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32413 | *) ac_try_echo=$ac_try;; |
| 32414 | esac |
| 32415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32416 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32417 | ac_status=$? |
| 32418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32419 | (exit $ac_status); }; } && |
| 32420 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32421 | { (case "(($ac_try" in |
| 32422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32423 | *) ac_try_echo=$ac_try;; |
| 32424 | esac |
| 32425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32426 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32427 | ac_status=$? |
| 32428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32429 | (exit $ac_status); }; }; then |
| 32430 | ac_cv_func_isinf_in_math_h=yes |
| 32431 | else |
| 32432 | echo "$as_me: failed program was:" >&5 |
| 32433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32435 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32437 | |
| 32438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32439 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32440 | ac_cpp='$CPP $CPPFLAGS' |
| 32441 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32442 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32443 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32444 | |
| 32445 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32446 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 32447 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32448 | |
| 32449 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32450 | |
| 32451 | cat >>confdefs.h <<\_ACEOF |
| 32452 | #define HAVE_ISINF_IN_MATH_H 1 |
| 32453 | _ACEOF |
| 32454 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32455 | fi |
| 32456 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32457 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 32458 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32459 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 32460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32461 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32462 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32463 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32464 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32465 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32466 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32467 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32468 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32469 | /* confdefs.h. */ |
| 32470 | _ACEOF |
| 32471 | cat confdefs.h >>conftest.$ac_ext |
| 32472 | cat >>conftest.$ac_ext <<_ACEOF |
| 32473 | /* end confdefs.h. */ |
| 32474 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32475 | int |
| 32476 | main () |
| 32477 | { |
| 32478 | float f; isinf(f); |
| 32479 | ; |
| 32480 | return 0; |
| 32481 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32482 | _ACEOF |
| 32483 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32484 | if { (ac_try="$ac_compile" |
| 32485 | case "(($ac_try" in |
| 32486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32487 | *) ac_try_echo=$ac_try;; |
| 32488 | esac |
| 32489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32490 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32491 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32492 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32493 | rm -f conftest.er1 |
| 32494 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32496 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32497 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32498 | { (case "(($ac_try" in |
| 32499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32500 | *) ac_try_echo=$ac_try;; |
| 32501 | esac |
| 32502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32503 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32504 | ac_status=$? |
| 32505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32506 | (exit $ac_status); }; } && |
| 32507 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32508 | { (case "(($ac_try" in |
| 32509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32510 | *) ac_try_echo=$ac_try;; |
| 32511 | esac |
| 32512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32513 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32514 | ac_status=$? |
| 32515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32516 | (exit $ac_status); }; }; then |
| 32517 | ac_cv_func_isinf_in_cmath=yes |
| 32518 | else |
| 32519 | echo "$as_me: failed program was:" >&5 |
| 32520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32522 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32523 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32524 | |
| 32525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32526 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32527 | ac_cpp='$CPP $CPPFLAGS' |
| 32528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32531 | |
| 32532 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32533 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 32534 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32535 | |
| 32536 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32537 | |
| 32538 | cat >>confdefs.h <<\_ACEOF |
| 32539 | #define HAVE_ISINF_IN_CMATH 1 |
| 32540 | _ACEOF |
| 32541 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32542 | fi |
| 32543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32544 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 32545 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32546 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 32547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32548 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32549 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32550 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32551 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32552 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32553 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32554 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32555 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32556 | /* confdefs.h. */ |
| 32557 | _ACEOF |
| 32558 | cat confdefs.h >>conftest.$ac_ext |
| 32559 | cat >>conftest.$ac_ext <<_ACEOF |
| 32560 | /* end confdefs.h. */ |
| 32561 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32562 | int |
| 32563 | main () |
| 32564 | { |
| 32565 | float f; std::isinf(f)} |
| 32566 | ; |
| 32567 | return 0; |
| 32568 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32569 | _ACEOF |
| 32570 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32571 | if { (ac_try="$ac_compile" |
| 32572 | case "(($ac_try" in |
| 32573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32574 | *) ac_try_echo=$ac_try;; |
| 32575 | esac |
| 32576 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32577 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32578 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32579 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32580 | rm -f conftest.er1 |
| 32581 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32583 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32584 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32585 | { (case "(($ac_try" in |
| 32586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32587 | *) ac_try_echo=$ac_try;; |
| 32588 | esac |
| 32589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32590 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32591 | ac_status=$? |
| 32592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32593 | (exit $ac_status); }; } && |
| 32594 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32595 | { (case "(($ac_try" in |
| 32596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32597 | *) ac_try_echo=$ac_try;; |
| 32598 | esac |
| 32599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32600 | (eval "$ac_try") 2>&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32601 | ac_status=$? |
| 32602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32603 | (exit $ac_status); }; }; then |
| 32604 | ac_cv_func_std_isinf_in_cmath=yes |
| 32605 | else |
| 32606 | echo "$as_me: failed program was:" >&5 |
| 32607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32608 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32609 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32610 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32611 | |
| 32612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32613 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32614 | ac_cpp='$CPP $CPPFLAGS' |
| 32615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32618 | |
| 32619 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32620 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 32621 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32622 | |
| 32623 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 32624 | |
| 32625 | cat >>confdefs.h <<\_ACEOF |
| 32626 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 32627 | _ACEOF |
| 32628 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32629 | fi |
| 32630 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32631 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 32632 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32633 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 32634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32635 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32636 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32637 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 32638 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32639 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32640 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 32641 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32642 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32643 | /* confdefs.h. */ |
| 32644 | _ACEOF |
| 32645 | cat confdefs.h >>conftest.$ac_ext |
| 32646 | cat >>conftest.$ac_ext <<_ACEOF |
| 32647 | /* end confdefs.h. */ |
| 32648 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32649 | int |
| 32650 | main () |
| 32651 | { |
| 32652 | float f; finite(f); |
| 32653 | ; |
| 32654 | return 0; |
| 32655 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32656 | _ACEOF |
| 32657 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32658 | if { (ac_try="$ac_compile" |
| 32659 | case "(($ac_try" in |
| 32660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32661 | *) ac_try_echo=$ac_try;; |
| 32662 | esac |
| 32663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32664 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32665 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32667 | rm -f conftest.er1 |
| 32668 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32670 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32671 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 32672 | { (case "(($ac_try" in |
| 32673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32674 | *) ac_try_echo=$ac_try;; |
| 32675 | esac |
| 32676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32677 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32678 | ac_status=$? |
| 32679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32680 | (exit $ac_status); }; } && |
| 32681 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32682 | { (case "(($ac_try" in |
| 32683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32684 | *) ac_try_echo=$ac_try;; |
| 32685 | esac |
| 32686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32687 | (eval "$ac_try") 2>&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32688 | ac_status=$? |
| 32689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32690 | (exit $ac_status); }; }; then |
| 32691 | ac_cv_func_finite_in_ieeefp_h=yes |
| 32692 | else |
| 32693 | echo "$as_me: failed program was:" >&5 |
| 32694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32695 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32696 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32697 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32698 | |
| 32699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32700 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32701 | ac_cpp='$CPP $CPPFLAGS' |
| 32702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 32703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 32704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 32705 | |
| 32706 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32707 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 32708 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32709 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32710 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32711 | |
| 32712 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 32713 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 32714 | _ACEOF |
| 32715 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 32716 | fi |
| 32717 | |
| 32718 | |
| 32719 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32720 | |
| 32721 | |
| 32722 | for ac_header in stdlib.h unistd.h |
| 32723 | do |
| 32724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32725 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 32726 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32728 | 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] | 32729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32730 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32731 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32732 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32733 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32734 | else |
| 32735 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32736 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 32737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32738 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32739 | /* confdefs.h. */ |
| 32740 | _ACEOF |
| 32741 | cat confdefs.h >>conftest.$ac_ext |
| 32742 | cat >>conftest.$ac_ext <<_ACEOF |
| 32743 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32744 | $ac_includes_default |
| 32745 | #include <$ac_header> |
| 32746 | _ACEOF |
| 32747 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32748 | if { (ac_try="$ac_compile" |
| 32749 | case "(($ac_try" in |
| 32750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32751 | *) ac_try_echo=$ac_try;; |
| 32752 | esac |
| 32753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32754 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32755 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32757 | rm -f conftest.er1 |
| 32758 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32760 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32762 | { (case "(($ac_try" in |
| 32763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32764 | *) ac_try_echo=$ac_try;; |
| 32765 | esac |
| 32766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32767 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32768 | ac_status=$? |
| 32769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32770 | (exit $ac_status); }; } && |
| 32771 | { ac_try='test -s conftest.$ac_objext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32772 | { (case "(($ac_try" in |
| 32773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32774 | *) ac_try_echo=$ac_try;; |
| 32775 | esac |
| 32776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32777 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32778 | ac_status=$? |
| 32779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32780 | (exit $ac_status); }; }; then |
| 32781 | ac_header_compiler=yes |
| 32782 | else |
| 32783 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32786 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32788 | |
| 32789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32790 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 32791 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32792 | |
| 32793 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32794 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 32795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32796 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32797 | /* confdefs.h. */ |
| 32798 | _ACEOF |
| 32799 | cat confdefs.h >>conftest.$ac_ext |
| 32800 | cat >>conftest.$ac_ext <<_ACEOF |
| 32801 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32802 | #include <$ac_header> |
| 32803 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32804 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 32805 | case "(($ac_try" in |
| 32806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32807 | *) ac_try_echo=$ac_try;; |
| 32808 | esac |
| 32809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32810 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32811 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32812 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32813 | rm -f conftest.er1 |
| 32814 | cat conftest.err >&5 |
| 32815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32816 | (exit $ac_status); } >/dev/null; then |
| 32817 | if test -s conftest.err; then |
| 32818 | ac_cpp_err=$ac_c_preproc_warn_flag |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32819 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32820 | else |
| 32821 | ac_cpp_err= |
| 32822 | fi |
| 32823 | else |
| 32824 | ac_cpp_err=yes |
| 32825 | fi |
| 32826 | if test -z "$ac_cpp_err"; then |
| 32827 | ac_header_preproc=yes |
| 32828 | else |
| 32829 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32831 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32832 | ac_header_preproc=no |
| 32833 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32834 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32835 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32836 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 32837 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32838 | |
| 32839 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 32841 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32842 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 32843 | 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] | 32844 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 32845 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 32846 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32847 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32848 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 32849 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 32850 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32851 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 32852 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 32853 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 32854 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 32855 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 32856 | 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] | 32857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 32858 | 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] | 32859 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 32860 | 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] | 32861 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32862 | ## ----------------------------------- ## |
| 32863 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 32864 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32865 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32866 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32867 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32868 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32869 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 32870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 32871 | 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] | 32872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32873 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32874 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32875 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32876 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 32877 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32878 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32879 | |
| 32880 | fi |
| 32881 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 32882 | cat >>confdefs.h <<_ACEOF |
| 32883 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 32884 | _ACEOF |
| 32885 | |
| 32886 | fi |
| 32887 | |
| 32888 | done |
| 32889 | |
| 32890 | |
| 32891 | for ac_func in getpagesize |
| 32892 | do |
| 32893 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32894 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 32895 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 32896 | 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] | 32897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 32898 | else |
| 32899 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32900 | /* confdefs.h. */ |
| 32901 | _ACEOF |
| 32902 | cat confdefs.h >>conftest.$ac_ext |
| 32903 | cat >>conftest.$ac_ext <<_ACEOF |
| 32904 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32905 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 32906 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 32907 | #define $ac_func innocuous_$ac_func |
| 32908 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32909 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32910 | which can conflict with char $ac_func (); below. |
| 32911 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 32912 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32913 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32914 | #ifdef __STDC__ |
| 32915 | # include <limits.h> |
| 32916 | #else |
| 32917 | # include <assert.h> |
| 32918 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32919 | |
| 32920 | #undef $ac_func |
| 32921 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32922 | /* Override any GCC internal prototype to avoid an error. |
| 32923 | Use char because int might match the return type of a GCC |
| 32924 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32925 | #ifdef __cplusplus |
| 32926 | extern "C" |
| 32927 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32928 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32929 | /* The GNU C library defines this for functions which it implements |
| 32930 | to always fail with ENOSYS. Some functions are actually named |
| 32931 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32932 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32933 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32934 | #endif |
| 32935 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32936 | int |
| 32937 | main () |
| 32938 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32939 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32940 | ; |
| 32941 | return 0; |
| 32942 | } |
| 32943 | _ACEOF |
| 32944 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32945 | if { (ac_try="$ac_link" |
| 32946 | case "(($ac_try" in |
| 32947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32948 | *) ac_try_echo=$ac_try;; |
| 32949 | esac |
| 32950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32951 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32952 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 32954 | rm -f conftest.er1 |
| 32955 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32957 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 32959 | { (case "(($ac_try" in |
| 32960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32961 | *) ac_try_echo=$ac_try;; |
| 32962 | esac |
| 32963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32964 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32965 | ac_status=$? |
| 32966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32967 | (exit $ac_status); }; } && |
| 32968 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32969 | { (case "(($ac_try" in |
| 32970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 32971 | *) ac_try_echo=$ac_try;; |
| 32972 | esac |
| 32973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 32974 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32975 | ac_status=$? |
| 32976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 32977 | (exit $ac_status); }; }; then |
| 32978 | eval "$as_ac_var=yes" |
| 32979 | else |
| 32980 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 32982 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32983 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32984 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32985 | |
| 32986 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32987 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32988 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32989 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 32990 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 32991 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32992 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 32993 | cat >>confdefs.h <<_ACEOF |
| 32994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 32995 | _ACEOF |
| 32996 | |
| 32997 | fi |
| 32998 | done |
| 32999 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33000 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 33001 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33002 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 33003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33004 | else |
| 33005 | if test "$cross_compiling" = yes; then |
| 33006 | ac_cv_func_mmap_fixed_mapped=no |
| 33007 | else |
| 33008 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33009 | /* confdefs.h. */ |
| 33010 | _ACEOF |
| 33011 | cat confdefs.h >>conftest.$ac_ext |
| 33012 | cat >>conftest.$ac_ext <<_ACEOF |
| 33013 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33014 | $ac_includes_default |
| 33015 | /* malloc might have been renamed as rpl_malloc. */ |
| 33016 | #undef malloc |
| 33017 | |
| 33018 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 33019 | Here is a matrix of mmap possibilities: |
| 33020 | mmap private not fixed |
| 33021 | mmap private fixed at somewhere currently unmapped |
| 33022 | mmap private fixed at somewhere already mapped |
| 33023 | mmap shared not fixed |
| 33024 | mmap shared fixed at somewhere currently unmapped |
| 33025 | mmap shared fixed at somewhere already mapped |
| 33026 | For private mappings, we should verify that changes cannot be read() |
| 33027 | back from the file, nor mmap's back from the file at a different |
| 33028 | address. (There have been systems where private was not correctly |
| 33029 | implemented like the infamous i386 svr4.0, and systems where the |
| 33030 | VM page cache was not coherent with the file system buffer cache |
| 33031 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 33032 | For shared mappings, we should conversely verify that changes get |
| 33033 | propagated back to all the places they're supposed to be. |
| 33034 | |
| 33035 | Grep wants private fixed already mapped. |
| 33036 | The main things grep needs to know about mmap are: |
| 33037 | * does it exist and is it safe to write into the mmap'd area |
| 33038 | * how to use it (BSD variants) */ |
| 33039 | |
| 33040 | #include <fcntl.h> |
| 33041 | #include <sys/mman.h> |
| 33042 | |
| 33043 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 33044 | char *malloc (); |
| 33045 | #endif |
| 33046 | |
| 33047 | /* This mess was copied from the GNU getpagesize.h. */ |
| 33048 | #if !HAVE_GETPAGESIZE |
| 33049 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 33050 | # if !HAVE_SYS_PARAM_H |
| 33051 | # define HAVE_SYS_PARAM_H 1 |
| 33052 | # endif |
| 33053 | |
| 33054 | # ifdef _SC_PAGESIZE |
| 33055 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 33056 | # else /* no _SC_PAGESIZE */ |
| 33057 | # if HAVE_SYS_PARAM_H |
| 33058 | # include <sys/param.h> |
| 33059 | # ifdef EXEC_PAGESIZE |
| 33060 | # define getpagesize() EXEC_PAGESIZE |
| 33061 | # else /* no EXEC_PAGESIZE */ |
| 33062 | # ifdef NBPG |
| 33063 | # define getpagesize() NBPG * CLSIZE |
| 33064 | # ifndef CLSIZE |
| 33065 | # define CLSIZE 1 |
| 33066 | # endif /* no CLSIZE */ |
| 33067 | # else /* no NBPG */ |
| 33068 | # ifdef NBPC |
| 33069 | # define getpagesize() NBPC |
| 33070 | # else /* no NBPC */ |
| 33071 | # ifdef PAGESIZE |
| 33072 | # define getpagesize() PAGESIZE |
| 33073 | # endif /* PAGESIZE */ |
| 33074 | # endif /* no NBPC */ |
| 33075 | # endif /* no NBPG */ |
| 33076 | # endif /* no EXEC_PAGESIZE */ |
| 33077 | # else /* no HAVE_SYS_PARAM_H */ |
| 33078 | # define getpagesize() 8192 /* punt totally */ |
| 33079 | # endif /* no HAVE_SYS_PARAM_H */ |
| 33080 | # endif /* no _SC_PAGESIZE */ |
| 33081 | |
| 33082 | #endif /* no HAVE_GETPAGESIZE */ |
| 33083 | |
| 33084 | int |
| 33085 | main () |
| 33086 | { |
| 33087 | char *data, *data2, *data3; |
| 33088 | int i, pagesize; |
| 33089 | int fd; |
| 33090 | |
| 33091 | pagesize = getpagesize (); |
| 33092 | |
| 33093 | /* First, make a file with some known garbage in it. */ |
| 33094 | data = (char *) malloc (pagesize); |
| 33095 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33096 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33097 | for (i = 0; i < pagesize; ++i) |
| 33098 | *(data + i) = rand (); |
| 33099 | umask (0); |
| 33100 | fd = creat ("conftest.mmap", 0600); |
| 33101 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33102 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33103 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33104 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33105 | close (fd); |
| 33106 | |
| 33107 | /* Next, try to mmap the file at a fixed address which already has |
| 33108 | something else allocated at it. If we can, also make sure that |
| 33109 | we see the same garbage. */ |
| 33110 | fd = open ("conftest.mmap", O_RDWR); |
| 33111 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33112 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33113 | data2 = (char *) malloc (2 * pagesize); |
| 33114 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33115 | return 1; |
| 33116 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33117 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33118 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33119 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33120 | for (i = 0; i < pagesize; ++i) |
| 33121 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33122 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33123 | |
| 33124 | /* Finally, make sure that changes to the mapped area do not |
| 33125 | percolate back to the file as seen by read(). (This is a bug on |
| 33126 | some variants of i386 svr4.0.) */ |
| 33127 | for (i = 0; i < pagesize; ++i) |
| 33128 | *(data2 + i) = *(data2 + i) + 1; |
| 33129 | data3 = (char *) malloc (pagesize); |
| 33130 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33131 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33132 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33133 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33134 | for (i = 0; i < pagesize; ++i) |
| 33135 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33136 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33137 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33138 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33139 | } |
| 33140 | _ACEOF |
| 33141 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33142 | if { (ac_try="$ac_link" |
| 33143 | case "(($ac_try" in |
| 33144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33145 | *) ac_try_echo=$ac_try;; |
| 33146 | esac |
| 33147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33148 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33149 | ac_status=$? |
| 33150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33152 | { (case "(($ac_try" in |
| 33153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33154 | *) ac_try_echo=$ac_try;; |
| 33155 | esac |
| 33156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33157 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33158 | ac_status=$? |
| 33159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33160 | (exit $ac_status); }; }; then |
| 33161 | ac_cv_func_mmap_fixed_mapped=yes |
| 33162 | else |
| 33163 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33164 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33166 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33167 | ( exit $ac_status ) |
| 33168 | ac_cv_func_mmap_fixed_mapped=no |
| 33169 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33170 | 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] | 33171 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33172 | |
| 33173 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33174 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33175 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 33176 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33177 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 33178 | |
| 33179 | cat >>confdefs.h <<\_ACEOF |
| 33180 | #define HAVE_MMAP 1 |
| 33181 | _ACEOF |
| 33182 | |
| 33183 | fi |
| 33184 | rm -f conftest.mmap |
| 33185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33186 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
| 33187 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33188 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 33189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33190 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33191 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33192 | ac_cpp='$CPP $CPPFLAGS' |
| 33193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33196 | |
| 33197 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33198 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33199 | else |
| 33200 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33201 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33202 | /* confdefs.h. */ |
| 33203 | _ACEOF |
| 33204 | cat confdefs.h >>conftest.$ac_ext |
| 33205 | cat >>conftest.$ac_ext <<_ACEOF |
| 33206 | /* end confdefs.h. */ |
| 33207 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33208 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33209 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33210 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33211 | |
| 33212 | int |
| 33213 | main () |
| 33214 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33215 | |
| 33216 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33217 | fd = creat ("foo",0777); |
| 33218 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 33219 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 33220 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 33221 | ; |
| 33222 | return 0; |
| 33223 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33224 | _ACEOF |
| 33225 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33226 | if { (ac_try="$ac_link" |
| 33227 | case "(($ac_try" in |
| 33228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33229 | *) ac_try_echo=$ac_try;; |
| 33230 | esac |
| 33231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33232 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33233 | ac_status=$? |
| 33234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33236 | { (case "(($ac_try" in |
| 33237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33238 | *) ac_try_echo=$ac_try;; |
| 33239 | esac |
| 33240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33241 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33242 | ac_status=$? |
| 33243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33244 | (exit $ac_status); }; }; then |
| 33245 | ac_cv_func_mmap_file=yes |
| 33246 | else |
| 33247 | echo "$as_me: program exited with status $ac_status" >&5 |
| 33248 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33250 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33251 | ( exit $ac_status ) |
| 33252 | ac_cv_func_mmap_file=no |
| 33253 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33254 | 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] | 33255 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33256 | |
| 33257 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33258 | ac_ext=c |
| 33259 | ac_cpp='$CPP $CPPFLAGS' |
| 33260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 33261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 33262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 33263 | |
| 33264 | |
| 33265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33266 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 33267 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33268 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 33269 | |
| 33270 | cat >>confdefs.h <<\_ACEOF |
| 33271 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33272 | _ACEOF |
| 33273 | |
| 33274 | MMAP_FILE=yes |
| 33275 | |
| 33276 | fi |
| 33277 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33278 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
| 33279 | 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] | 33280 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 33281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33282 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33283 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33284 | ac_cv_need_dev_zero_for_mmap=yes |
| 33285 | else |
| 33286 | ac_cv_need_dev_zero_for_mmap=no |
| 33287 | fi |
| 33288 | |
| 33289 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33290 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 33291 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 33292 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 33293 | |
| 33294 | cat >>confdefs.h <<\_ACEOF |
| 33295 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 33296 | _ACEOF |
| 33297 | |
| 33298 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33299 | { echo "$as_me:$LINENO: checking for mprotect" >&5 |
| 33300 | echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33301 | if test "${ac_cv_func_mprotect+set}" = set; then |
| 33302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33303 | else |
| 33304 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33305 | /* confdefs.h. */ |
| 33306 | _ACEOF |
| 33307 | cat confdefs.h >>conftest.$ac_ext |
| 33308 | cat >>conftest.$ac_ext <<_ACEOF |
| 33309 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33310 | /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect. |
| 33311 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 33312 | #define mprotect innocuous_mprotect |
| 33313 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33314 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33315 | which can conflict with char mprotect (); below. |
| 33316 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 33317 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33318 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33319 | #ifdef __STDC__ |
| 33320 | # include <limits.h> |
| 33321 | #else |
| 33322 | # include <assert.h> |
| 33323 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33324 | |
| 33325 | #undef mprotect |
| 33326 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33327 | /* Override any GCC internal prototype to avoid an error. |
| 33328 | Use char because int might match the return type of a GCC |
| 33329 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33330 | #ifdef __cplusplus |
| 33331 | extern "C" |
| 33332 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33333 | char mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33334 | /* The GNU C library defines this for functions which it implements |
| 33335 | to always fail with ENOSYS. Some functions are actually named |
| 33336 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33337 | #if defined __stub_mprotect || defined __stub___mprotect |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33338 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33339 | #endif |
| 33340 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33341 | int |
| 33342 | main () |
| 33343 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33344 | return mprotect (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33345 | ; |
| 33346 | return 0; |
| 33347 | } |
| 33348 | _ACEOF |
| 33349 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33350 | if { (ac_try="$ac_link" |
| 33351 | case "(($ac_try" in |
| 33352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33353 | *) ac_try_echo=$ac_try;; |
| 33354 | esac |
| 33355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33356 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33357 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 33359 | rm -f conftest.er1 |
| 33360 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33362 | (exit $ac_status); } && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 33364 | { (case "(($ac_try" in |
| 33365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33366 | *) ac_try_echo=$ac_try;; |
| 33367 | esac |
| 33368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33369 | (eval "$ac_try") 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33370 | ac_status=$? |
| 33371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33372 | (exit $ac_status); }; } && |
| 33373 | { ac_try='test -s conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33374 | { (case "(($ac_try" in |
| 33375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 33376 | *) ac_try_echo=$ac_try;; |
| 33377 | esac |
| 33378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 33379 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33380 | ac_status=$? |
| 33381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 33382 | (exit $ac_status); }; }; then |
| 33383 | ac_cv_func_mprotect=yes |
| 33384 | else |
| 33385 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 33387 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33388 | ac_cv_func_mprotect=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33389 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33390 | |
| 33391 | rm -f core conftest.err conftest.$ac_objext \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33392 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33394 | { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5 |
| 33395 | echo "${ECHO_T}$ac_cv_func_mprotect" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33396 | if test $ac_cv_func_mprotect = yes; then |
| 33397 | : |
| 33398 | else |
| 33399 | { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5 |
| 33400 | echo "$as_me: error: Function mprotect() required but not found" >&2;} |
| 33401 | { (exit 1); exit 1; }; } |
| 33402 | fi |
| 33403 | |
| 33404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33405 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33406 | then |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 33407 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
| 33408 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33409 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33410 | if test "$ac_cv_func_mmap_file" = "no" |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33411 | then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33412 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
| 33413 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 33414 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33415 | |
| 33416 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33417 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 33418 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33419 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 33420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 33421 | else |
| 33422 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33423 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33424 | cp /dev/null conftest.c |
Chris Lattner | 74878f4 | 2006-02-27 05:39:00 +0000 | [diff] [blame] | 33425 | "$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] | 33426 | if test $? -eq 0 ; then |
| 33427 | llvm_cv_llvmgcc_sanity="yes" |
| 33428 | fi |
| 33429 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33430 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33431 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33432 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 33433 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33434 | |
| 33435 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33436 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33437 | LLVMCC1=$llvmcc1path |
| 33438 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33439 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33440 | LLVMCC1PLUS=$llvmcc1pluspath |
| 33441 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 33442 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 33443 | LLVMGCCDIR=$llvmgccdir |
| 33444 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 33445 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 33446 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 33447 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 33448 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 33449 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 33450 | LLVMGCC_VERSION=$llvmgccversion |
| 33451 | |
| 33452 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 33453 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 33454 | fi |
| 33455 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33456 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 33457 | |
| 33458 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33459 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33460 | # information into substitutions that will end up in Makefile.config.in |
| 33461 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 33462 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 33463 | prefix="/usr/local" |
| 33464 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33465 | eval LLVM_PREFIX="${prefix}"; |
| 33466 | eval LLVM_BINDIR="${prefix}/bin"; |
| 33467 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33468 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 33469 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 33470 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33471 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 33472 | eval LLVM_INFODIR="${prefix}/info"; |
| 33473 | eval LLVM_MANDIR="${prefix}/man"; |
| 33474 | LLVM_CONFIGTIME=`date` |
| 33475 | |
| 33476 | |
| 33477 | |
| 33478 | |
| 33479 | |
| 33480 | |
| 33481 | |
| 33482 | |
| 33483 | |
| 33484 | |
| 33485 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33486 | # Place the various directores into the config.h file as #defines so that we |
| 33487 | # can know about the installation paths within LLVM. |
| 33488 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33489 | cat >>confdefs.h <<_ACEOF |
| 33490 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 33491 | _ACEOF |
| 33492 | |
| 33493 | |
| 33494 | cat >>confdefs.h <<_ACEOF |
| 33495 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 33496 | _ACEOF |
| 33497 | |
| 33498 | |
| 33499 | cat >>confdefs.h <<_ACEOF |
| 33500 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 33501 | _ACEOF |
| 33502 | |
| 33503 | |
| 33504 | cat >>confdefs.h <<_ACEOF |
| 33505 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 33506 | _ACEOF |
| 33507 | |
| 33508 | |
| 33509 | cat >>confdefs.h <<_ACEOF |
| 33510 | #define LLVM_DATADIR "$LLVM_DOCSDIR" |
| 33511 | _ACEOF |
| 33512 | |
| 33513 | |
| 33514 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 33515 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 33516 | _ACEOF |
| 33517 | |
| 33518 | |
| 33519 | cat >>confdefs.h <<_ACEOF |
| 33520 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 33521 | _ACEOF |
| 33522 | |
| 33523 | |
| 33524 | cat >>confdefs.h <<_ACEOF |
| 33525 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 33526 | _ACEOF |
| 33527 | |
| 33528 | |
| 33529 | cat >>confdefs.h <<_ACEOF |
| 33530 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 33531 | _ACEOF |
| 33532 | |
| 33533 | |
| 33534 | cat >>confdefs.h <<_ACEOF |
| 33535 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 33536 | _ACEOF |
| 33537 | |
| 33538 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33540 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33541 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33542 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33543 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33544 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33546 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33548 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33549 | |
| 33550 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33551 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33552 | |
| 33553 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 33554 | ac_config_files="$ac_config_files llvm.spec" |
| 33555 | |
| 33556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33557 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 33558 | |
| 33559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33560 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 33561 | |
| 33562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33563 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 33564 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33565 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33566 | |
| 33567 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33568 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33569 | |
| 33570 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33571 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33572 | |
| 33573 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33574 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33575 | |
| 33576 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 33577 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 33578 | |
| 33579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33580 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33581 | |
| 33582 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33583 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
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 tools/Makefile" |
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 utils/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 projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 33593 | |
| 33594 | |
| 33595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33596 | cat >confcache <<\_ACEOF |
| 33597 | # This file is a shell script that caches the results of configure |
| 33598 | # tests run on this system so they can be shared between configure |
| 33599 | # scripts and configure runs, see configure's option --config-cache. |
| 33600 | # It is not useful on other systems. If it contains results you don't |
| 33601 | # want to keep, you may remove or edit it. |
| 33602 | # |
| 33603 | # config.status only pays attention to the cache file if you give it |
| 33604 | # the --recheck option to rerun configure. |
| 33605 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33606 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33607 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 33608 | # following values. |
| 33609 | |
| 33610 | _ACEOF |
| 33611 | |
| 33612 | # The following way of writing the cache mishandles newlines in values, |
| 33613 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33614 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33615 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 33616 | # 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] | 33617 | ( |
| 33618 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 33619 | eval ac_val=\$$ac_var |
| 33620 | case $ac_val in #( |
| 33621 | *${as_nl}*) |
| 33622 | case $ac_var in #( |
| 33623 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 33624 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 33625 | esac |
| 33626 | case $ac_var in #( |
| 33627 | _ | IFS | as_nl) ;; #( |
| 33628 | *) $as_unset $ac_var ;; |
| 33629 | esac ;; |
| 33630 | esac |
| 33631 | done |
| 33632 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33633 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33634 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 33635 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33636 | # `set' does not quote correctly, so add quotes (double-quote |
| 33637 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 33638 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33639 | "s/'/'\\\\''/g; |
| 33640 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33641 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33642 | *) |
| 33643 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33644 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33645 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33646 | esac | |
| 33647 | sort |
| 33648 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33649 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33650 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33651 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33652 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33653 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 33654 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33655 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 33656 | :end' >>confcache |
| 33657 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 33658 | if test -w "$cache_file"; then |
| 33659 | test "x$cache_file" != "x/dev/null" && |
| 33660 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 33661 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33662 | cat confcache >$cache_file |
| 33663 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33664 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 33665 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33666 | fi |
| 33667 | fi |
| 33668 | rm -f confcache |
| 33669 | |
| 33670 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 33671 | # Let make expand exec_prefix. |
| 33672 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 33673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33674 | DEFS=-DHAVE_CONFIG_H |
| 33675 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33676 | ac_libobjs= |
| 33677 | ac_ltlibobjs= |
| 33678 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 33679 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33680 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 33681 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 33682 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 33683 | # will be set to the directory where LIBOBJS objects are built. |
| 33684 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 33685 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33686 | done |
| 33687 | LIBOBJS=$ac_libobjs |
| 33688 | |
| 33689 | LTLIBOBJS=$ac_ltlibobjs |
| 33690 | |
| 33691 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 33692 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 33693 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33694 | Usually this means the macro was only invoked conditionally." >&5 |
| 33695 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 33696 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33697 | { (exit 1); exit 1; }; } |
| 33698 | fi |
| 33699 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 33700 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33701 | Usually this means the macro was only invoked conditionally." >&5 |
| 33702 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 33703 | Usually this means the macro was only invoked conditionally." >&2;} |
| 33704 | { (exit 1); exit 1; }; } |
| 33705 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33706 | |
| 33707 | : ${CONFIG_STATUS=./config.status} |
| 33708 | ac_clean_files_save=$ac_clean_files |
| 33709 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 33710 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 33711 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 33712 | cat >$CONFIG_STATUS <<_ACEOF |
| 33713 | #! $SHELL |
| 33714 | # Generated by $as_me. |
| 33715 | # Run this file to recreate the current configuration. |
| 33716 | # Compiler output produced by configure, useful for debugging |
| 33717 | # configure, is in config.log if it exists. |
| 33718 | |
| 33719 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33720 | ac_cs_recheck=false |
| 33721 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33722 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 33723 | _ACEOF |
| 33724 | |
| 33725 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33726 | ## --------------------- ## |
| 33727 | ## M4sh Initialization. ## |
| 33728 | ## --------------------- ## |
| 33729 | |
| 33730 | # Be Bourne compatible |
| 33731 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 33732 | emulate sh |
| 33733 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33734 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 33735 | # is contrary to our usage. Disable this feature. |
| 33736 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33737 | setopt NO_GLOB_SUBST |
| 33738 | else |
| 33739 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33740 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33741 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33742 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33743 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33744 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33745 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33746 | # Avoid depending upon Character Ranges. |
| 33747 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33748 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 33749 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 33750 | as_cr_digits='0123456789' |
| 33751 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 33752 | |
| 33753 | # The user is always right. |
| 33754 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33755 | echo "#! /bin/sh" >conf$$.sh |
| 33756 | echo "exit 0" >>conf$$.sh |
| 33757 | chmod +x conf$$.sh |
| 33758 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33759 | PATH_SEPARATOR=';' |
| 33760 | else |
| 33761 | PATH_SEPARATOR=: |
| 33762 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33763 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33764 | fi |
| 33765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33766 | # Support unset when possible. |
| 33767 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 33768 | as_unset=unset |
| 33769 | else |
| 33770 | as_unset=false |
| 33771 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33773 | |
| 33774 | # IFS |
| 33775 | # We need space, tab and new line, in precisely that order. Quoting is |
| 33776 | # there to prevent editors from complaining about space-tab. |
| 33777 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 33778 | # splitting by setting IFS to empty value.) |
| 33779 | as_nl=' |
| 33780 | ' |
| 33781 | IFS=" "" $as_nl" |
| 33782 | |
| 33783 | # Find who we are. Look in the path if we contain no directory separator. |
| 33784 | case $0 in |
| 33785 | *[\\/]* ) as_myself=$0 ;; |
| 33786 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33787 | for as_dir in $PATH |
| 33788 | do |
| 33789 | IFS=$as_save_IFS |
| 33790 | test -z "$as_dir" && as_dir=. |
| 33791 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 33792 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33793 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33795 | ;; |
| 33796 | esac |
| 33797 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 33798 | # in which case we are not to be found in the path. |
| 33799 | if test "x$as_myself" = x; then |
| 33800 | as_myself=$0 |
| 33801 | fi |
| 33802 | if test ! -f "$as_myself"; then |
| 33803 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 33804 | { (exit 1); exit 1; } |
| 33805 | fi |
| 33806 | |
| 33807 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33808 | for as_var in ENV MAIL MAILPATH |
| 33809 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33810 | done |
| 33811 | PS1='$ ' |
| 33812 | PS2='> ' |
| 33813 | PS4='+ ' |
| 33814 | |
| 33815 | # NLS nuisances. |
| 33816 | for as_var in \ |
| 33817 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 33818 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 33819 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33820 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33821 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 33822 | eval $as_var=C; export $as_var |
| 33823 | else |
| 33824 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 33825 | fi |
| 33826 | done |
| 33827 | |
| 33828 | # Required to use basename. |
| 33829 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33830 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 33831 | as_expr=expr |
| 33832 | else |
| 33833 | as_expr=false |
| 33834 | fi |
| 33835 | |
| 33836 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 33837 | as_basename=basename |
| 33838 | else |
| 33839 | as_basename=false |
| 33840 | fi |
| 33841 | |
| 33842 | |
| 33843 | # Name of the executable. |
| 33844 | as_me=`$as_basename -- "$0" || |
| 33845 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 33846 | X"$0" : 'X\(//\)$' \| \ |
| 33847 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 33848 | echo X/"$0" | |
| 33849 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 33850 | s//\1/ |
| 33851 | q |
| 33852 | } |
| 33853 | /^X\/\(\/\/\)$/{ |
| 33854 | s//\1/ |
| 33855 | q |
| 33856 | } |
| 33857 | /^X\/\(\/\).*/{ |
| 33858 | s//\1/ |
| 33859 | q |
| 33860 | } |
| 33861 | s/.*/./; q'` |
| 33862 | |
| 33863 | # CDPATH. |
| 33864 | $as_unset CDPATH |
| 33865 | |
| 33866 | |
| 33867 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33868 | as_lineno_1=$LINENO |
| 33869 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33870 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33871 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33872 | |
| 33873 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 33874 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33875 | # line-number line after each line using $LINENO; the second 'sed' |
| 33876 | # does the real work. The second script uses 'N' to pair each |
| 33877 | # line-number line with the line containing $LINENO, and appends |
| 33878 | # trailing '-' during substitution so that $LINENO is not a special |
| 33879 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33880 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33881 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 33882 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 33883 | sed -n ' |
| 33884 | p |
| 33885 | /[$]LINENO/= |
| 33886 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33887 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33888 | s/[$]LINENO.*/&-/ |
| 33889 | t lineno |
| 33890 | b |
| 33891 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33892 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33893 | :loop |
| 33894 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33895 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33896 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33897 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33898 | chmod +x "$as_me.lineno" || |
| 33899 | { 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] | 33900 | { (exit 1); exit 1; }; } |
| 33901 | |
| 33902 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 33903 | # (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] | 33904 | # original and so on. Autoconf is especially sensitive to this). |
| 33905 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33906 | # Exit status is that of the last command. |
| 33907 | exit |
| 33908 | } |
| 33909 | |
| 33910 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33911 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 33912 | as_dirname=dirname |
| 33913 | else |
| 33914 | as_dirname=false |
| 33915 | fi |
| 33916 | |
| 33917 | ECHO_C= ECHO_N= ECHO_T= |
| 33918 | case `echo -n x` in |
| 33919 | -n*) |
| 33920 | case `echo 'x\c'` in |
| 33921 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 33922 | *) ECHO_C='\c';; |
| 33923 | esac;; |
| 33924 | *) |
| 33925 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33926 | esac |
| 33927 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33928 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 33929 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33930 | as_expr=expr |
| 33931 | else |
| 33932 | as_expr=false |
| 33933 | fi |
| 33934 | |
| 33935 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33936 | if test -d conf$$.dir; then |
| 33937 | rm -f conf$$.dir/conf$$.file |
| 33938 | else |
| 33939 | rm -f conf$$.dir |
| 33940 | mkdir conf$$.dir |
| 33941 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33942 | echo >conf$$.file |
| 33943 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33944 | as_ln_s='ln -s' |
| 33945 | # ... but there are two gotchas: |
| 33946 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 33947 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 33948 | # In both cases, we have to default to `cp -p'. |
| 33949 | 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] | 33950 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33951 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 33952 | as_ln_s=ln |
| 33953 | else |
| 33954 | as_ln_s='cp -p' |
| 33955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33956 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 33957 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33958 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33959 | if mkdir -p . 2>/dev/null; then |
| 33960 | as_mkdir_p=: |
| 33961 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33962 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33963 | as_mkdir_p=false |
| 33964 | fi |
| 33965 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33966 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 33967 | # systems may use methods other than mode bits to determine executability. |
| 33968 | cat >conf$$.file <<_ASEOF |
| 33969 | #! /bin/sh |
| 33970 | exit 0 |
| 33971 | _ASEOF |
| 33972 | chmod +x conf$$.file |
| 33973 | if test -x conf$$.file >/dev/null 2>&1; then |
| 33974 | as_executable_p="test -x" |
| 33975 | else |
| 33976 | as_executable_p=: |
| 33977 | fi |
| 33978 | rm -f conf$$.file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33979 | |
| 33980 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33981 | 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] | 33982 | |
| 33983 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33984 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33985 | |
| 33986 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33987 | exec 6>&1 |
| 33988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33989 | # 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] | 33990 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33991 | # values after options handling. |
| 33992 | ac_log=" |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 33993 | This file was extended by llvm $as_me 2.0cvs, which was |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33994 | generated by GNU Autoconf 2.60. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33995 | |
| 33996 | CONFIG_FILES = $CONFIG_FILES |
| 33997 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 33998 | CONFIG_LINKS = $CONFIG_LINKS |
| 33999 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 34000 | $ $0 $@ |
| 34001 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34002 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 34003 | " |
| 34004 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34005 | _ACEOF |
| 34006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34007 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34008 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34009 | config_files="$ac_config_files" |
| 34010 | config_headers="$ac_config_headers" |
| 34011 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34013 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34014 | |
| 34015 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34016 | ac_cs_usage="\ |
| 34017 | \`$as_me' instantiates files from templates according to the |
| 34018 | current configuration. |
| 34019 | |
| 34020 | Usage: $0 [OPTIONS] [FILE]... |
| 34021 | |
| 34022 | -h, --help print this help, then exit |
| 34023 | -V, --version print version number, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34024 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34025 | -d, --debug don't remove temporary files |
| 34026 | --recheck update $as_me by reconfiguring in the same conditions |
| 34027 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34028 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34029 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34030 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34031 | |
| 34032 | Configuration files: |
| 34033 | $config_files |
| 34034 | |
| 34035 | Configuration headers: |
| 34036 | $config_headers |
| 34037 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34038 | Configuration commands: |
| 34039 | $config_commands |
| 34040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34041 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34043 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34044 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34045 | ac_cs_version="\\ |
Tanya Lattner | 01d3e38 | 2006-11-14 00:59:52 +0000 | [diff] [blame] | 34046 | llvm config.status 2.0cvs |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34047 | configured by $0, generated by GNU Autoconf 2.60, |
| 34048 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34049 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34050 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34051 | This config.status script is free software; the Free Software Foundation |
| 34052 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34053 | |
| 34054 | ac_pwd='$ac_pwd' |
| 34055 | srcdir='$srcdir' |
| 34056 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34057 | _ACEOF |
| 34058 | |
| 34059 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34060 | # If no file are specified by the user, then we need to provide default |
| 34061 | # value. By we need to know if files were specified by the user. |
| 34062 | ac_need_defaults=: |
| 34063 | while test $# != 0 |
| 34064 | do |
| 34065 | case $1 in |
| 34066 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34067 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 34068 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34069 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34070 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34071 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34072 | ac_option=$1 |
| 34073 | ac_optarg=$2 |
| 34074 | ac_shift=shift |
| 34075 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34076 | esac |
| 34077 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34078 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34079 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34080 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 34081 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34082 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 34083 | echo "$ac_cs_version"; exit ;; |
| 34084 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34085 | debug=: ;; |
| 34086 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34087 | $ac_shift |
| 34088 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34089 | ac_need_defaults=false;; |
| 34090 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34091 | $ac_shift |
| 34092 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34093 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34094 | --he | --h) |
| 34095 | # Conflict between --help and --header |
| 34096 | { echo "$as_me: error: ambiguous option: $1 |
| 34097 | Try \`$0 --help' for more information." >&2 |
| 34098 | { (exit 1); exit 1; }; };; |
| 34099 | --help | --hel | -h ) |
| 34100 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34101 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 34102 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 34103 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34104 | |
| 34105 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34106 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 34107 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34108 | { (exit 1); exit 1; }; } ;; |
| 34109 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34110 | *) ac_config_targets="$ac_config_targets $1" |
| 34111 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34112 | |
| 34113 | esac |
| 34114 | shift |
| 34115 | done |
| 34116 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34117 | ac_configure_extra_args= |
| 34118 | |
| 34119 | if $ac_cs_silent; then |
| 34120 | exec 6>/dev/null |
| 34121 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 34122 | fi |
| 34123 | |
| 34124 | _ACEOF |
| 34125 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34126 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34127 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 34128 | CONFIG_SHELL=$SHELL |
| 34129 | export CONFIG_SHELL |
| 34130 | 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] | 34131 | fi |
| 34132 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34133 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34134 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34135 | exec 5>>config.log |
| 34136 | { |
| 34137 | echo |
| 34138 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 34139 | ## Running $as_me. ## |
| 34140 | _ASBOX |
| 34141 | echo "$ac_log" |
| 34142 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34143 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34144 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34145 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34146 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34147 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34148 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 34149 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34150 | |
| 34151 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34152 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34153 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34154 | |
| 34155 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34156 | for ac_config_target in $ac_config_targets |
| 34157 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34158 | case $ac_config_target in |
| 34159 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 34160 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 34161 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 34162 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 34163 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 34164 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 34165 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34166 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 34167 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 34168 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 34169 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 34170 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 34171 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 34172 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34173 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34174 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 34175 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 34176 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 34177 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 34178 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
| 34179 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34180 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 34181 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 34182 | { (exit 1); exit 1; }; };; |
| 34183 | esac |
| 34184 | done |
| 34185 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34186 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34187 | # If the user did not use the arguments to specify the items to instantiate, |
| 34188 | # then the envvar interface is used. Set only those that are not. |
| 34189 | # We use the long form for the default assignment because of an extremely |
| 34190 | # bizarre bug on SunOS 4.1.3. |
| 34191 | if $ac_need_defaults; then |
| 34192 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 34193 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34194 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34195 | fi |
| 34196 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34197 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34198 | # 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] | 34199 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34200 | # Hook for its removal unless debugging. |
| 34201 | # Note that there is a small window in which the directory will not be cleaned: |
| 34202 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34203 | $debug || |
| 34204 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34205 | tmp= |
| 34206 | trap 'exit_status=$? |
| 34207 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 34208 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34209 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 34210 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34211 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34212 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34213 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34214 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34215 | test -n "$tmp" && test -d "$tmp" |
| 34216 | } || |
| 34217 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34218 | tmp=./conf$$-$RANDOM |
| 34219 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34220 | } || |
| 34221 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34222 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34223 | { (exit 1); exit 1; } |
| 34224 | } |
| 34225 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34226 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34227 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34228 | # |
| 34229 | |
| 34230 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 34231 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34232 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34233 | |
| 34234 | _ACEOF |
| 34235 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34236 | |
| 34237 | |
| 34238 | ac_delim='%!_!# ' |
| 34239 | for ac_last_try in false false false false false :; do |
| 34240 | cat >conf$$subs.sed <<_ACEOF |
| 34241 | SHELL!$SHELL$ac_delim |
| 34242 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 34243 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 34244 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 34245 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 34246 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 34247 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 34248 | exec_prefix!$exec_prefix$ac_delim |
| 34249 | prefix!$prefix$ac_delim |
| 34250 | program_transform_name!$program_transform_name$ac_delim |
| 34251 | bindir!$bindir$ac_delim |
| 34252 | sbindir!$sbindir$ac_delim |
| 34253 | libexecdir!$libexecdir$ac_delim |
| 34254 | datarootdir!$datarootdir$ac_delim |
| 34255 | datadir!$datadir$ac_delim |
| 34256 | sysconfdir!$sysconfdir$ac_delim |
| 34257 | sharedstatedir!$sharedstatedir$ac_delim |
| 34258 | localstatedir!$localstatedir$ac_delim |
| 34259 | includedir!$includedir$ac_delim |
| 34260 | oldincludedir!$oldincludedir$ac_delim |
| 34261 | docdir!$docdir$ac_delim |
| 34262 | infodir!$infodir$ac_delim |
| 34263 | htmldir!$htmldir$ac_delim |
| 34264 | dvidir!$dvidir$ac_delim |
| 34265 | pdfdir!$pdfdir$ac_delim |
| 34266 | psdir!$psdir$ac_delim |
| 34267 | libdir!$libdir$ac_delim |
| 34268 | localedir!$localedir$ac_delim |
| 34269 | mandir!$mandir$ac_delim |
| 34270 | DEFS!$DEFS$ac_delim |
| 34271 | ECHO_C!$ECHO_C$ac_delim |
| 34272 | ECHO_N!$ECHO_N$ac_delim |
| 34273 | ECHO_T!$ECHO_T$ac_delim |
| 34274 | LIBS!$LIBS$ac_delim |
| 34275 | build_alias!$build_alias$ac_delim |
| 34276 | host_alias!$host_alias$ac_delim |
| 34277 | target_alias!$target_alias$ac_delim |
| 34278 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 34279 | subdirs!$subdirs$ac_delim |
| 34280 | build!$build$ac_delim |
| 34281 | build_cpu!$build_cpu$ac_delim |
| 34282 | build_vendor!$build_vendor$ac_delim |
| 34283 | build_os!$build_os$ac_delim |
| 34284 | host!$host$ac_delim |
| 34285 | host_cpu!$host_cpu$ac_delim |
| 34286 | host_vendor!$host_vendor$ac_delim |
| 34287 | host_os!$host_os$ac_delim |
| 34288 | target!$target$ac_delim |
| 34289 | target_cpu!$target_cpu$ac_delim |
| 34290 | target_vendor!$target_vendor$ac_delim |
| 34291 | target_os!$target_os$ac_delim |
| 34292 | OS!$OS$ac_delim |
| 34293 | LINKALL!$LINKALL$ac_delim |
| 34294 | NOLINKALL!$NOLINKALL$ac_delim |
| 34295 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 34296 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 34297 | ARCH!$ARCH$ac_delim |
| 34298 | ENDIAN!$ENDIAN$ac_delim |
| 34299 | CC!$CC$ac_delim |
| 34300 | CFLAGS!$CFLAGS$ac_delim |
| 34301 | LDFLAGS!$LDFLAGS$ac_delim |
| 34302 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 34303 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 34304 | EXEEXT!$EXEEXT$ac_delim |
| 34305 | OBJEXT!$OBJEXT$ac_delim |
| 34306 | CPP!$CPP$ac_delim |
| 34307 | GREP!$GREP$ac_delim |
| 34308 | EGREP!$EGREP$ac_delim |
| 34309 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 34310 | BUILD_CC!$BUILD_CC$ac_delim |
| 34311 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 34312 | CVSBUILD!$CVSBUILD$ac_delim |
| 34313 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 34314 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34315 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34316 | JIT!$JIT$ac_delim |
| 34317 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 34318 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 34319 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 34320 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34321 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 34322 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34323 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 34324 | CXX!$CXX$ac_delim |
| 34325 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 34326 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 34327 | LEX!$LEX$ac_delim |
| 34328 | LEXLIB!$LEXLIB$ac_delim |
| 34329 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
| 34330 | FLEX!$FLEX$ac_delim |
| 34331 | YACC!$YACC$ac_delim |
| 34332 | YFLAGS!$YFLAGS$ac_delim |
| 34333 | BISON!$BISON$ac_delim |
| 34334 | NM!$NM$ac_delim |
| 34335 | ifGNUmake!$ifGNUmake$ac_delim |
| 34336 | LN_S!$LN_S$ac_delim |
| 34337 | CMP!$CMP$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34338 | _ACEOF |
| 34339 | |
| 34340 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 34341 | break |
| 34342 | elif $ac_last_try; then |
| 34343 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34344 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34345 | { (exit 1); exit 1; }; } |
| 34346 | else |
| 34347 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34348 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34349 | done |
| 34350 | |
| 34351 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34352 | if test -n "$ac_eof"; then |
| 34353 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34354 | ac_eof=`expr $ac_eof + 1` |
| 34355 | fi |
| 34356 | |
| 34357 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34358 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 34359 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 34360 | _ACEOF |
| 34361 | sed ' |
| 34362 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34363 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34364 | :n |
| 34365 | t n |
| 34366 | s/'"$ac_delim"'$/,g/; t |
| 34367 | s/$/\\/; p |
| 34368 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34369 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34370 | rm -f conf$$subs.sed |
| 34371 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34372 | CEOF$ac_eof |
| 34373 | _ACEOF |
| 34374 | |
| 34375 | |
| 34376 | ac_delim='%!_!# ' |
| 34377 | for ac_last_try in false false false false false :; do |
| 34378 | cat >conf$$subs.sed <<_ACEOF |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 34379 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34380 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34381 | FIND!$FIND$ac_delim |
| 34382 | MKDIR!$MKDIR$ac_delim |
| 34383 | MV!$MV$ac_delim |
| 34384 | RANLIB!$RANLIB$ac_delim |
| 34385 | RM!$RM$ac_delim |
| 34386 | SED!$SED$ac_delim |
| 34387 | TAR!$TAR$ac_delim |
| 34388 | BINPWD!$BINPWD$ac_delim |
| 34389 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 34390 | DOT!$DOT$ac_delim |
| 34391 | GV!$GV$ac_delim |
| 34392 | DOTTY!$DOTTY$ac_delim |
| 34393 | PERL!$PERL$ac_delim |
| 34394 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 34395 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 34396 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 34397 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 34398 | BZIP2!$BZIP2$ac_delim |
| 34399 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34400 | GROFF!$GROFF$ac_delim |
| 34401 | GZIP!$GZIP$ac_delim |
| 34402 | POD2HTML!$POD2HTML$ac_delim |
| 34403 | POD2MAN!$POD2MAN$ac_delim |
| 34404 | RUNTEST!$RUNTEST$ac_delim |
| 34405 | TCLSH!$TCLSH$ac_delim |
| 34406 | ZIP!$ZIP$ac_delim |
| 34407 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 34408 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 34409 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 34410 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 34411 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 34412 | ECHO!$ECHO$ac_delim |
| 34413 | AR!$AR$ac_delim |
| 34414 | STRIP!$STRIP$ac_delim |
| 34415 | CXXCPP!$CXXCPP$ac_delim |
| 34416 | F77!$F77$ac_delim |
| 34417 | FFLAGS!$FFLAGS$ac_delim |
| 34418 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 34419 | LIBTOOL!$LIBTOOL$ac_delim |
| 34420 | ETAGSFLAGS!$ETAGSFLAGS$ac_delim |
| 34421 | LLVMGCC!$LLVMGCC$ac_delim |
| 34422 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 34423 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 34424 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 34425 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34426 | ALLOCA!$ALLOCA$ac_delim |
| 34427 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 34428 | LLVMCC1!$LLVMCC1$ac_delim |
| 34429 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 34430 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 34431 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34432 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 34433 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
| 34434 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 34435 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 34436 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 34437 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 34438 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 34439 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 34440 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 34441 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 34442 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 34443 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 34444 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
| 34445 | LIBOBJS!$LIBOBJS$ac_delim |
| 34446 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 34447 | _ACEOF |
| 34448 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame^] | 34449 | 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] | 34450 | break |
| 34451 | elif $ac_last_try; then |
| 34452 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 34453 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 34454 | { (exit 1); exit 1; }; } |
| 34455 | else |
| 34456 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 34457 | fi |
| 34458 | done |
| 34459 | |
| 34460 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 34461 | if test -n "$ac_eof"; then |
| 34462 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 34463 | ac_eof=`expr $ac_eof + 1` |
| 34464 | fi |
| 34465 | |
| 34466 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34467 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 34468 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 34469 | _ACEOF |
| 34470 | sed ' |
| 34471 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 34472 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 34473 | :n |
| 34474 | t n |
| 34475 | s/'"$ac_delim"'$/,g/; t |
| 34476 | s/$/\\/; p |
| 34477 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 34478 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 34479 | rm -f conf$$subs.sed |
| 34480 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34481 | :end |
| 34482 | s/|#_!!_#|//g |
| 34483 | CEOF$ac_eof |
| 34484 | _ACEOF |
| 34485 | |
| 34486 | |
| 34487 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 34488 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 34489 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 34490 | # (actually we leave an empty line to preserve line numbers). |
| 34491 | if test "x$srcdir" = x.; then |
| 34492 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 34493 | s/:*\$(srcdir):*/:/ |
| 34494 | s/:*\${srcdir}:*/:/ |
| 34495 | s/:*@srcdir@:*/:/ |
| 34496 | s/^\([^=]*=[ ]*\):*/\1/ |
| 34497 | s/:*$// |
| 34498 | s/^[^=]*=[ ]*$// |
| 34499 | }' |
| 34500 | fi |
| 34501 | |
| 34502 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34503 | fi # test -n "$CONFIG_FILES" |
| 34504 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34505 | |
| 34506 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 34507 | do |
| 34508 | case $ac_tag in |
| 34509 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 34510 | esac |
| 34511 | case $ac_mode$ac_tag in |
| 34512 | :[FHL]*:*);; |
| 34513 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 34514 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 34515 | { (exit 1); exit 1; }; };; |
| 34516 | :[FH]-) ac_tag=-:-;; |
| 34517 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 34518 | esac |
| 34519 | ac_save_IFS=$IFS |
| 34520 | IFS=: |
| 34521 | set x $ac_tag |
| 34522 | IFS=$ac_save_IFS |
| 34523 | shift |
| 34524 | ac_file=$1 |
| 34525 | shift |
| 34526 | |
| 34527 | case $ac_mode in |
| 34528 | :L) ac_source=$1;; |
| 34529 | :[FH]) |
| 34530 | ac_file_inputs= |
| 34531 | for ac_f |
| 34532 | do |
| 34533 | case $ac_f in |
| 34534 | -) ac_f="$tmp/stdin";; |
| 34535 | *) # Look for the file first in the build tree, then in the source tree |
| 34536 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 34537 | # because $ac_f cannot contain `:'. |
| 34538 | test -f "$ac_f" || |
| 34539 | case $ac_f in |
| 34540 | [\\/$]*) false;; |
| 34541 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 34542 | esac || |
| 34543 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 34544 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 34545 | { (exit 1); exit 1; }; };; |
| 34546 | esac |
| 34547 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 34548 | done |
| 34549 | |
| 34550 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 34551 | # use $as_me), people would be surprised to read: |
| 34552 | # /* config.h. Generated by config.status. */ |
| 34553 | configure_input="Generated from "`IFS=: |
| 34554 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 34555 | if test x"$ac_file" != x-; then |
| 34556 | configure_input="$ac_file. $configure_input" |
| 34557 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 34558 | echo "$as_me: creating $ac_file" >&6;} |
| 34559 | fi |
| 34560 | |
| 34561 | case $ac_tag in |
| 34562 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 34563 | esac |
| 34564 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34565 | esac |
| 34566 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34567 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34568 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34569 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 34570 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34571 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34572 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34573 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34574 | s//\1/ |
| 34575 | q |
| 34576 | } |
| 34577 | /^X\(\/\/\)[^/].*/{ |
| 34578 | s//\1/ |
| 34579 | q |
| 34580 | } |
| 34581 | /^X\(\/\/\)$/{ |
| 34582 | s//\1/ |
| 34583 | q |
| 34584 | } |
| 34585 | /^X\(\/\).*/{ |
| 34586 | s//\1/ |
| 34587 | q |
| 34588 | } |
| 34589 | s/.*/./; q'` |
| 34590 | { as_dir="$ac_dir" |
| 34591 | case $as_dir in #( |
| 34592 | -*) as_dir=./$as_dir;; |
| 34593 | esac |
| 34594 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34595 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34596 | while :; do |
| 34597 | case $as_dir in #( |
| 34598 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34599 | *) as_qdir=$as_dir;; |
| 34600 | esac |
| 34601 | as_dirs="'$as_qdir' $as_dirs" |
| 34602 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34604 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34605 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34606 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34607 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34609 | s//\1/ |
| 34610 | q |
| 34611 | } |
| 34612 | /^X\(\/\/\)[^/].*/{ |
| 34613 | s//\1/ |
| 34614 | q |
| 34615 | } |
| 34616 | /^X\(\/\/\)$/{ |
| 34617 | s//\1/ |
| 34618 | q |
| 34619 | } |
| 34620 | /^X\(\/\).*/{ |
| 34621 | s//\1/ |
| 34622 | q |
| 34623 | } |
| 34624 | s/.*/./; q'` |
| 34625 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34626 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34627 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34628 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 34629 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34630 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34631 | ac_builddir=. |
| 34632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34633 | case "$ac_dir" in |
| 34634 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34635 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34636 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34637 | # A ".." for each directory in $ac_dir_suffix. |
| 34638 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 34639 | case $ac_top_builddir_sub in |
| 34640 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 34641 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 34642 | esac ;; |
| 34643 | esac |
| 34644 | ac_abs_top_builddir=$ac_pwd |
| 34645 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 34646 | # for backward compatibility: |
| 34647 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34648 | |
| 34649 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34650 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34651 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34652 | ac_top_srcdir=$ac_top_builddir_sub |
| 34653 | ac_abs_top_srcdir=$ac_pwd ;; |
| 34654 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34655 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34656 | ac_top_srcdir=$srcdir |
| 34657 | ac_abs_top_srcdir=$srcdir ;; |
| 34658 | *) # Relative name. |
| 34659 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 34660 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 34661 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34662 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34663 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34664 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34665 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34666 | case $ac_mode in |
| 34667 | :F) |
| 34668 | # |
| 34669 | # CONFIG_FILE |
| 34670 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34671 | |
| 34672 | case $INSTALL in |
| 34673 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34674 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34675 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34676 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34677 | |
| 34678 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34679 | # If the template does not know about datarootdir, expand it. |
| 34680 | # FIXME: This hack should be removed a few years after 2.60. |
| 34681 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 34682 | |
| 34683 | case `sed -n '/datarootdir/ { |
| 34684 | p |
| 34685 | q |
| 34686 | } |
| 34687 | /@datadir@/p |
| 34688 | /@docdir@/p |
| 34689 | /@infodir@/p |
| 34690 | /@localedir@/p |
| 34691 | /@mandir@/p |
| 34692 | ' $ac_file_inputs` in |
| 34693 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 34694 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 34695 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 34696 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 34697 | _ACEOF |
| 34698 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34699 | ac_datarootdir_hack=' |
| 34700 | s&@datadir@&$datadir&g |
| 34701 | s&@docdir@&$docdir&g |
| 34702 | s&@infodir@&$infodir&g |
| 34703 | s&@localedir@&$localedir&g |
| 34704 | s&@mandir@&$mandir&g |
| 34705 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 34706 | esac |
| 34707 | _ACEOF |
| 34708 | |
| 34709 | # Neutralize VPATH when `$srcdir' = `.'. |
| 34710 | # Shell code in configure.ac might set extrasub. |
| 34711 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34712 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34713 | sed "$ac_vpsub |
| 34714 | $extrasub |
| 34715 | _ACEOF |
| 34716 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 34717 | :t |
| 34718 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34719 | s&@configure_input@&$configure_input&;t t |
| 34720 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 34721 | s&@srcdir@&$ac_srcdir&;t t |
| 34722 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 34723 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 34724 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 34725 | s&@builddir@&$ac_builddir&;t t |
| 34726 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 34727 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 34728 | s&@INSTALL@&$ac_INSTALL&;t t |
| 34729 | $ac_datarootdir_hack |
| 34730 | " $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] | 34731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34732 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 34733 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 34734 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 34735 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34736 | which seems to be undefined. Please make sure it is defined." >&5 |
| 34737 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 34738 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34740 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34741 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34742 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 34743 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34744 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34745 | ;; |
| 34746 | :H) |
| 34747 | # |
| 34748 | # CONFIG_HEADER |
| 34749 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34750 | _ACEOF |
| 34751 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34752 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 34753 | # substitutes the proper values into config.h.in to produce config.h. |
| 34754 | rm -f conftest.defines conftest.tail |
| 34755 | # First, append a space to every undef/define line, to ease matching. |
| 34756 | echo 's/$/ /' >conftest.defines |
| 34757 | # Then, protect against being on the right side of a sed subst, or in |
| 34758 | # an unquoted here document, in config.status. If some macros were |
| 34759 | # called several times there might be several #defines for the same |
| 34760 | # symbol, which is useless. But do not sort them, since the last |
| 34761 | # AC_DEFINE must be honored. |
| 34762 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 34763 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 34764 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 34765 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 34766 | # just an empty string. |
| 34767 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 34768 | ac_dB='\\)[ (].*,\\1define\\2' |
| 34769 | ac_dC=' ' |
| 34770 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34771 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34772 | uniq confdefs.h | |
| 34773 | sed -n ' |
| 34774 | t rset |
| 34775 | :rset |
| 34776 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 34777 | t ok |
| 34778 | d |
| 34779 | :ok |
| 34780 | s/[\\&,]/\\&/g |
| 34781 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 34782 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 34783 | ' >>conftest.defines |
| 34784 | |
| 34785 | # Remove the space that was appended to ease matching. |
| 34786 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34787 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 34788 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34789 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 34790 | echo 's/ $// |
| 34791 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34792 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34793 | # Break up conftest.defines: |
| 34794 | ac_max_sed_lines=50 |
| 34795 | |
| 34796 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 34797 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 34798 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 34799 | # et cetera. |
| 34800 | ac_in='$ac_file_inputs' |
| 34801 | ac_out='"$tmp/out1"' |
| 34802 | ac_nxt='"$tmp/out2"' |
| 34803 | |
| 34804 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34805 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34806 | # Write a here document: |
| 34807 | cat >>$CONFIG_STATUS <<_ACEOF |
| 34808 | # First, check the format of the line: |
| 34809 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 34810 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 34811 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 34812 | b |
| 34813 | :def |
| 34814 | _ACEOF |
| 34815 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34816 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34817 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 34818 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 34819 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 34820 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34821 | rm -f conftest.defines |
| 34822 | mv conftest.tail conftest.defines |
| 34823 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34824 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34826 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34827 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34828 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34829 | echo "/* $configure_input */" >"$tmp/config.h" |
| 34830 | cat "$ac_result" >>"$tmp/config.h" |
| 34831 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34832 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 34833 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 34834 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34835 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34836 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34837 | fi |
| 34838 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34839 | echo "/* $configure_input */" |
| 34840 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34841 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34842 | rm -f "$tmp/out12" |
| 34843 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34844 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34845 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 34846 | echo "$as_me: executing $ac_file commands" >&6;} |
| 34847 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 34848 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34849 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34850 | |
| 34851 | case $ac_file$ac_mode in |
| 34852 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 34853 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 34854 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 34855 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 34856 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 34857 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 34858 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 34859 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 34860 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 34861 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34862 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 34863 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 34864 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 34865 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 34866 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 34867 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 34868 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 34869 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 34870 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 34871 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
| 34872 | |
| 34873 | esac |
| 34874 | done # for ac_tag |
| 34875 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34876 | |
| 34877 | { (exit 0); exit 0; } |
| 34878 | _ACEOF |
| 34879 | chmod +x $CONFIG_STATUS |
| 34880 | ac_clean_files=$ac_clean_files_save |
| 34881 | |
| 34882 | |
| 34883 | # configure is writing to config.log, and then calls config.status. |
| 34884 | # config.status does its own redirection, appending to config.log. |
| 34885 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 34886 | # by configure, so config.status won't be able to write to it; its |
| 34887 | # output is simply discarded. So we exec the FD to /dev/null, |
| 34888 | # effectively closing config.log, so it can be properly (re)opened and |
| 34889 | # appended to by config.status. When coming back to configure, we |
| 34890 | # need to make the FD available again. |
| 34891 | if test "$no_create" != yes; then |
| 34892 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34893 | ac_config_status_args= |
| 34894 | test "$silent" = yes && |
| 34895 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34896 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34897 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 34898 | exec 5>>config.log |
| 34899 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 34900 | # would make configure fail if this is the last instruction. |
| 34901 | $ac_cs_success || { (exit 1); exit 1; } |
| 34902 | fi |
| 34903 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34904 | # |
| 34905 | # CONFIG_SUBDIRS section. |
| 34906 | # |
| 34907 | if test "$no_recursion" != yes; then |
| 34908 | |
| 34909 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 34910 | ac_sub_configure_args= |
| 34911 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34912 | eval "set x $ac_configure_args" |
| 34913 | shift |
| 34914 | for ac_arg |
| 34915 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34916 | if test -n "$ac_prev"; then |
| 34917 | ac_prev= |
| 34918 | continue |
| 34919 | fi |
| 34920 | case $ac_arg in |
| 34921 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 34922 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 34923 | ac_prev=cache_file ;; |
| 34924 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 34925 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 34926 | | --c=*) |
| 34927 | ;; |
| 34928 | --config-cache | -C) |
| 34929 | ;; |
| 34930 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 34931 | ac_prev=srcdir ;; |
| 34932 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 34933 | ;; |
| 34934 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 34935 | ac_prev=prefix ;; |
| 34936 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 34937 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34938 | *) |
| 34939 | case $ac_arg in |
| 34940 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34941 | esac |
| 34942 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34943 | esac |
| 34944 | done |
| 34945 | |
| 34946 | # Always prepend --prefix to ensure using the same prefix |
| 34947 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34948 | ac_arg="--prefix=$prefix" |
| 34949 | case $ac_arg in |
| 34950 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 34951 | esac |
| 34952 | ac_sub_configure_args="$ac_arg $ac_sub_configure_args" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34953 | |
| 34954 | ac_popdir=`pwd` |
| 34955 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 34956 | |
| 34957 | # Do not complain, so a configure script can configure whichever |
| 34958 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34959 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34961 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 34962 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 34963 | echo "$ac_msg" >&6 |
| 34964 | { as_dir="$ac_dir" |
| 34965 | case $as_dir in #( |
| 34966 | -*) as_dir=./$as_dir;; |
| 34967 | esac |
| 34968 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34969 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34970 | while :; do |
| 34971 | case $as_dir in #( |
| 34972 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 34973 | *) as_qdir=$as_dir;; |
| 34974 | esac |
| 34975 | as_dirs="'$as_qdir' $as_dirs" |
| 34976 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34977 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 34978 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34979 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34980 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 34981 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 34982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34983 | s//\1/ |
| 34984 | q |
| 34985 | } |
| 34986 | /^X\(\/\/\)[^/].*/{ |
| 34987 | s//\1/ |
| 34988 | q |
| 34989 | } |
| 34990 | /^X\(\/\/\)$/{ |
| 34991 | s//\1/ |
| 34992 | q |
| 34993 | } |
| 34994 | /^X\(\/\).*/{ |
| 34995 | s//\1/ |
| 34996 | q |
| 34997 | } |
| 34998 | s/.*/./; q'` |
| 34999 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35000 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35001 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 35002 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 35003 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35004 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35005 | ac_builddir=. |
| 35006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35007 | case "$ac_dir" in |
| 35008 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35009 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35010 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35011 | # A ".." for each directory in $ac_dir_suffix. |
| 35012 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 35013 | case $ac_top_builddir_sub in |
| 35014 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35015 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35016 | esac ;; |
| 35017 | esac |
| 35018 | ac_abs_top_builddir=$ac_pwd |
| 35019 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35020 | # for backward compatibility: |
| 35021 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35022 | |
| 35023 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35024 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35025 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35026 | ac_top_srcdir=$ac_top_builddir_sub |
| 35027 | ac_abs_top_srcdir=$ac_pwd ;; |
| 35028 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35029 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35030 | ac_top_srcdir=$srcdir |
| 35031 | ac_abs_top_srcdir=$srcdir ;; |
| 35032 | *) # Relative name. |
| 35033 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35034 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35035 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35036 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35037 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35038 | |
| 35039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35040 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35041 | |
| 35042 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35043 | if test -f "$ac_srcdir/configure.gnu"; then |
| 35044 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 35045 | elif test -f "$ac_srcdir/configure"; then |
| 35046 | ac_sub_configure=$ac_srcdir/configure |
| 35047 | elif test -f "$ac_srcdir/configure.in"; then |
| 35048 | # This should be Cygnus configure. |
| 35049 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35050 | else |
| 35051 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 35052 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 35053 | ac_sub_configure= |
| 35054 | fi |
| 35055 | |
| 35056 | # The recursion is here. |
| 35057 | if test -n "$ac_sub_configure"; then |
| 35058 | # Make the cache file name correct relative to the subdirectory. |
| 35059 | case $cache_file in |
| 35060 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35061 | *) # Relative name. |
| 35062 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35063 | esac |
| 35064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35065 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 35066 | 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] | 35067 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35068 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 35069 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 35070 | { { 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] | 35071 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 35072 | { (exit 1); exit 1; }; } |
| 35073 | fi |
| 35074 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 35075 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 35076 | done |
| 35077 | fi |
| 35078 | |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 35079 | |