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. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61 for llvm 2.2svn. |
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 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in |
| 28 | *posix*) set -o posix ;; |
| 29 | esac |
| 30 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32 | |
| 33 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 34 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 35 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 36 | # PATH needs CR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 37 | # Avoid depending upon Character Ranges. |
| 38 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 39 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 40 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 41 | as_cr_digits='0123456789' |
| 42 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 43 | |
| 44 | # The user is always right. |
| 45 | if test "${PATH_SEPARATOR+set}" != set; then |
| 46 | echo "#! /bin/sh" >conf$$.sh |
| 47 | echo "exit 0" >>conf$$.sh |
| 48 | chmod +x conf$$.sh |
| 49 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 50 | PATH_SEPARATOR=';' |
| 51 | else |
| 52 | PATH_SEPARATOR=: |
| 53 | fi |
| 54 | rm -f conf$$.sh |
| 55 | fi |
| 56 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 57 | # Support unset when possible. |
| 58 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 59 | as_unset=unset |
| 60 | else |
| 61 | as_unset=false |
| 62 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 63 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 64 | |
| 65 | # IFS |
| 66 | # We need space, tab and new line, in precisely that order. Quoting is |
| 67 | # there to prevent editors from complaining about space-tab. |
| 68 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 69 | # splitting by setting IFS to empty value.) |
| 70 | as_nl=' |
| 71 | ' |
| 72 | IFS=" "" $as_nl" |
| 73 | |
| 74 | # Find who we are. Look in the path if we contain no directory separator. |
| 75 | case $0 in |
| 76 | *[\\/]* ) as_myself=$0 ;; |
| 77 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 78 | for as_dir in $PATH |
| 79 | do |
| 80 | IFS=$as_save_IFS |
| 81 | test -z "$as_dir" && as_dir=. |
| 82 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 83 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 84 | IFS=$as_save_IFS |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 85 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 86 | ;; |
| 87 | esac |
| 88 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 89 | # in which case we are not to be found in the path. |
| 90 | if test "x$as_myself" = x; then |
| 91 | as_myself=$0 |
| 92 | fi |
| 93 | if test ! -f "$as_myself"; then |
| 94 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 95 | { (exit 1); exit 1; } |
| 96 | fi |
| 97 | |
| 98 | # Work around bugs in pre-3.0 UWIN ksh. |
| 99 | for as_var in ENV MAIL MAILPATH |
| 100 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 101 | done |
| 102 | PS1='$ ' |
| 103 | PS2='> ' |
| 104 | PS4='+ ' |
| 105 | |
| 106 | # NLS nuisances. |
| 107 | for as_var in \ |
| 108 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 109 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 110 | LC_TELEPHONE LC_TIME |
| 111 | do |
| 112 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 113 | eval $as_var=C; export $as_var |
| 114 | else |
| 115 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 117 | done |
| 118 | |
| 119 | # Required to use basename. |
| 120 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 121 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 122 | as_expr=expr |
| 123 | else |
| 124 | as_expr=false |
| 125 | fi |
| 126 | |
| 127 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 128 | as_basename=basename |
| 129 | else |
| 130 | as_basename=false |
| 131 | fi |
| 132 | |
| 133 | |
| 134 | # Name of the executable. |
| 135 | as_me=`$as_basename -- "$0" || |
| 136 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 137 | X"$0" : 'X\(//\)$' \| \ |
| 138 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 139 | echo X/"$0" | |
| 140 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\/\)$/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | /^X\/\(\/\).*/{ |
| 149 | s//\1/ |
| 150 | q |
| 151 | } |
| 152 | s/.*/./; q'` |
| 153 | |
| 154 | # CDPATH. |
| 155 | $as_unset CDPATH |
| 156 | |
| 157 | |
| 158 | if test "x$CONFIG_SHELL" = x; then |
| 159 | if (eval ":") 2>/dev/null; then |
| 160 | as_have_required=yes |
| 161 | else |
| 162 | as_have_required=no |
| 163 | fi |
| 164 | |
| 165 | if test $as_have_required = yes && (eval ": |
| 166 | (as_func_return () { |
| 167 | (exit \$1) |
| 168 | } |
| 169 | as_func_success () { |
| 170 | as_func_return 0 |
| 171 | } |
| 172 | as_func_failure () { |
| 173 | as_func_return 1 |
| 174 | } |
| 175 | as_func_ret_success () { |
| 176 | return 0 |
| 177 | } |
| 178 | as_func_ret_failure () { |
| 179 | return 1 |
| 180 | } |
| 181 | |
| 182 | exitcode=0 |
| 183 | if as_func_success; then |
| 184 | : |
| 185 | else |
| 186 | exitcode=1 |
| 187 | echo as_func_success failed. |
| 188 | fi |
| 189 | |
| 190 | if as_func_failure; then |
| 191 | exitcode=1 |
| 192 | echo as_func_failure succeeded. |
| 193 | fi |
| 194 | |
| 195 | if as_func_ret_success; then |
| 196 | : |
| 197 | else |
| 198 | exitcode=1 |
| 199 | echo as_func_ret_success failed. |
| 200 | fi |
| 201 | |
| 202 | if as_func_ret_failure; then |
| 203 | exitcode=1 |
| 204 | echo as_func_ret_failure succeeded. |
| 205 | fi |
| 206 | |
| 207 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 208 | : |
| 209 | else |
| 210 | exitcode=1 |
| 211 | echo positional parameters were not saved. |
| 212 | fi |
| 213 | |
| 214 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 215 | |
| 216 | ( |
| 217 | as_lineno_1=\$LINENO |
| 218 | as_lineno_2=\$LINENO |
| 219 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 220 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 221 | ") 2> /dev/null; then |
| 222 | : |
| 223 | else |
| 224 | as_candidate_shells= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 226 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 227 | do |
| 228 | IFS=$as_save_IFS |
| 229 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 230 | case $as_dir in |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 231 | /*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 232 | for as_base in sh bash ksh sh5; do |
| 233 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 234 | done;; |
| 235 | esac |
| 236 | done |
| 237 | IFS=$as_save_IFS |
| 238 | |
| 239 | |
| 240 | for as_shell in $as_candidate_shells $SHELL; do |
| 241 | # Try only shells that exist, to save several forks. |
| 242 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 243 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 244 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 245 | emulate sh |
| 246 | NULLCMD=: |
| 247 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 248 | # is contrary to our usage. Disable this feature. |
| 249 | alias -g '${1+"$@"}'='"$@"' |
| 250 | setopt NO_GLOB_SUBST |
| 251 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 252 | case `(set -o) 2>/dev/null` in |
| 253 | *posix*) set -o posix ;; |
| 254 | esac |
| 255 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 256 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 258 | |
| 259 | : |
| 260 | _ASEOF |
| 261 | }; then |
| 262 | CONFIG_SHELL=$as_shell |
| 263 | as_have_required=yes |
| 264 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 265 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 266 | emulate sh |
| 267 | NULLCMD=: |
| 268 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 269 | # is contrary to our usage. Disable this feature. |
| 270 | alias -g '${1+"$@"}'='"$@"' |
| 271 | setopt NO_GLOB_SUBST |
| 272 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 273 | case `(set -o) 2>/dev/null` in |
| 274 | *posix*) set -o posix ;; |
| 275 | esac |
| 276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 277 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 278 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 279 | |
| 280 | : |
| 281 | (as_func_return () { |
| 282 | (exit $1) |
| 283 | } |
| 284 | as_func_success () { |
| 285 | as_func_return 0 |
| 286 | } |
| 287 | as_func_failure () { |
| 288 | as_func_return 1 |
| 289 | } |
| 290 | as_func_ret_success () { |
| 291 | return 0 |
| 292 | } |
| 293 | as_func_ret_failure () { |
| 294 | return 1 |
| 295 | } |
| 296 | |
| 297 | exitcode=0 |
| 298 | if as_func_success; then |
| 299 | : |
| 300 | else |
| 301 | exitcode=1 |
| 302 | echo as_func_success failed. |
| 303 | fi |
| 304 | |
| 305 | if as_func_failure; then |
| 306 | exitcode=1 |
| 307 | echo as_func_failure succeeded. |
| 308 | fi |
| 309 | |
| 310 | if as_func_ret_success; then |
| 311 | : |
| 312 | else |
| 313 | exitcode=1 |
| 314 | echo as_func_ret_success failed. |
| 315 | fi |
| 316 | |
| 317 | if as_func_ret_failure; then |
| 318 | exitcode=1 |
| 319 | echo as_func_ret_failure succeeded. |
| 320 | fi |
| 321 | |
| 322 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 323 | : |
| 324 | else |
| 325 | exitcode=1 |
| 326 | echo positional parameters were not saved. |
| 327 | fi |
| 328 | |
| 329 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 330 | |
| 331 | ( |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 332 | as_lineno_1=$LINENO |
| 333 | as_lineno_2=$LINENO |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 334 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 335 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 336 | |
| 337 | _ASEOF |
| 338 | }; then |
| 339 | break |
| 340 | fi |
| 341 | |
| 342 | fi |
| 343 | |
| 344 | done |
| 345 | |
| 346 | if test "x$CONFIG_SHELL" != x; then |
| 347 | for as_var in BASH_ENV ENV |
| 348 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 349 | done |
| 350 | export CONFIG_SHELL |
| 351 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 352 | fi |
| 353 | |
| 354 | |
| 355 | if test $as_have_required = no; then |
| 356 | echo This script requires a shell more modern than all the |
| 357 | echo shells that I found on your system. Please install a |
| 358 | echo modern shell, or manually run the script under such a |
| 359 | echo shell if you do have one. |
| 360 | { (exit 1); exit 1; } |
| 361 | fi |
| 362 | |
| 363 | |
| 364 | fi |
| 365 | |
| 366 | fi |
| 367 | |
| 368 | |
| 369 | |
| 370 | (eval "as_func_return () { |
| 371 | (exit \$1) |
| 372 | } |
| 373 | as_func_success () { |
| 374 | as_func_return 0 |
| 375 | } |
| 376 | as_func_failure () { |
| 377 | as_func_return 1 |
| 378 | } |
| 379 | as_func_ret_success () { |
| 380 | return 0 |
| 381 | } |
| 382 | as_func_ret_failure () { |
| 383 | return 1 |
| 384 | } |
| 385 | |
| 386 | exitcode=0 |
| 387 | if as_func_success; then |
| 388 | : |
| 389 | else |
| 390 | exitcode=1 |
| 391 | echo as_func_success failed. |
| 392 | fi |
| 393 | |
| 394 | if as_func_failure; then |
| 395 | exitcode=1 |
| 396 | echo as_func_failure succeeded. |
| 397 | fi |
| 398 | |
| 399 | if as_func_ret_success; then |
| 400 | : |
| 401 | else |
| 402 | exitcode=1 |
| 403 | echo as_func_ret_success failed. |
| 404 | fi |
| 405 | |
| 406 | if as_func_ret_failure; then |
| 407 | exitcode=1 |
| 408 | echo as_func_ret_failure succeeded. |
| 409 | fi |
| 410 | |
| 411 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 412 | : |
| 413 | else |
| 414 | exitcode=1 |
| 415 | echo positional parameters were not saved. |
| 416 | fi |
| 417 | |
| 418 | test \$exitcode = 0") || { |
| 419 | echo No shell found that supports shell functions. |
| 420 | echo Please tell autoconf@gnu.org about your system, |
| 421 | echo including any error possibly output before this |
| 422 | echo message |
| 423 | } |
| 424 | |
| 425 | |
| 426 | |
| 427 | as_lineno_1=$LINENO |
| 428 | as_lineno_2=$LINENO |
| 429 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 430 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 431 | |
| 432 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 433 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 434 | # line-number line after each line using $LINENO; the second 'sed' |
| 435 | # does the real work. The second script uses 'N' to pair each |
| 436 | # line-number line with the line containing $LINENO, and appends |
| 437 | # trailing '-' during substitution so that $LINENO is not a special |
| 438 | # case at line end. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 439 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 440 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 441 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 442 | sed -n ' |
| 443 | p |
| 444 | /[$]LINENO/= |
| 445 | ' <$as_myself | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 446 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 447 | s/[$]LINENO.*/&-/ |
| 448 | t lineno |
| 449 | b |
| 450 | :lineno |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 451 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 452 | :loop |
| 453 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 454 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 455 | s/-\n.*// |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 456 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 457 | chmod +x "$as_me.lineno" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 458 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 459 | { (exit 1); exit 1; }; } |
| 460 | |
| 461 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 462 | # (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] | 463 | # original and so on. Autoconf is especially sensitive to this). |
| 464 | . "./$as_me.lineno" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 465 | # Exit status is that of the last command. |
| 466 | exit |
| 467 | } |
| 468 | |
| 469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 470 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 471 | as_dirname=dirname |
| 472 | else |
| 473 | as_dirname=false |
| 474 | fi |
| 475 | |
| 476 | ECHO_C= ECHO_N= ECHO_T= |
| 477 | case `echo -n x` in |
| 478 | -n*) |
| 479 | case `echo 'x\c'` in |
| 480 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 481 | *) ECHO_C='\c';; |
| 482 | esac;; |
| 483 | *) |
| 484 | ECHO_N='-n';; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 485 | esac |
| 486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 487 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 488 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 489 | as_expr=expr |
| 490 | else |
| 491 | as_expr=false |
| 492 | fi |
| 493 | |
| 494 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 495 | if test -d conf$$.dir; then |
| 496 | rm -f conf$$.dir/conf$$.file |
| 497 | else |
| 498 | rm -f conf$$.dir |
| 499 | mkdir conf$$.dir |
| 500 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 501 | echo >conf$$.file |
| 502 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 503 | as_ln_s='ln -s' |
| 504 | # ... but there are two gotchas: |
| 505 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 506 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 507 | # In both cases, we have to default to `cp -p'. |
| 508 | 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] | 509 | as_ln_s='cp -p' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 510 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 511 | as_ln_s=ln |
| 512 | else |
| 513 | as_ln_s='cp -p' |
| 514 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 515 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 516 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 517 | |
| 518 | if mkdir -p . 2>/dev/null; then |
| 519 | as_mkdir_p=: |
| 520 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 521 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 522 | as_mkdir_p=false |
| 523 | fi |
| 524 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 525 | if test -x / >/dev/null 2>&1; then |
| 526 | as_test_x='test -x' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 527 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 528 | if ls -dL / >/dev/null 2>&1; then |
| 529 | as_ls_L_option=L |
| 530 | else |
| 531 | as_ls_L_option= |
| 532 | fi |
| 533 | as_test_x=' |
| 534 | eval sh -c '\'' |
| 535 | if test -d "$1"; then |
| 536 | test -d "$1/."; |
| 537 | else |
| 538 | case $1 in |
| 539 | -*)set "./$1";; |
| 540 | esac; |
| 541 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 542 | ???[sx]*):;;*)false;;esac;fi |
| 543 | '\'' sh |
| 544 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 545 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 546 | as_executable_p=$as_test_x |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 547 | |
| 548 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 549 | 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] | 550 | |
| 551 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 552 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 553 | |
| 554 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 555 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 556 | |
| 557 | # Check that we are running under the correct shell. |
| 558 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 559 | |
| 560 | case X$ECHO in |
| 561 | X*--fallback-echo) |
| 562 | # Remove one level of quotation (which was required for Make). |
| 563 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 564 | ;; |
| 565 | esac |
| 566 | |
| 567 | echo=${ECHO-echo} |
| 568 | if test "X$1" = X--no-reexec; then |
| 569 | # Discard the --no-reexec flag, and continue. |
| 570 | shift |
| 571 | elif test "X$1" = X--fallback-echo; then |
| 572 | # Avoid inline document here, it may be left over |
| 573 | : |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 574 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 575 | # Yippee, $echo works! |
| 576 | : |
| 577 | else |
| 578 | # Restart under the correct shell. |
| 579 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 580 | fi |
| 581 | |
| 582 | if test "X$1" = X--fallback-echo; then |
| 583 | # used as fallback echo |
| 584 | shift |
| 585 | cat <<EOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 586 | $* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 587 | EOF |
| 588 | exit 0 |
| 589 | fi |
| 590 | |
| 591 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 592 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 593 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 594 | |
| 595 | if test -z "$ECHO"; then |
| 596 | if test "X${echo_test_string+set}" != Xset; then |
| 597 | # find a string as large as possible, as long as the shell can cope with it |
| 598 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 599 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 600 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 601 | echo_test_string=`eval $cmd` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 602 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 603 | then |
| 604 | break |
| 605 | fi |
| 606 | done |
| 607 | fi |
| 608 | |
| 609 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 610 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 611 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 612 | : |
| 613 | else |
| 614 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 615 | # backslashes. This makes it impossible to quote backslashes using |
| 616 | # echo "$something" | sed 's/\\/\\\\/g' |
| 617 | # |
| 618 | # So, first we look for a working echo in the user's PATH. |
| 619 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 620 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 621 | for dir in $PATH /usr/ucb; do |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 622 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 623 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 624 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 625 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 626 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 627 | echo="$dir/echo" |
| 628 | break |
| 629 | fi |
| 630 | done |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 631 | IFS="$lt_save_ifs" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 632 | |
| 633 | if test "X$echo" = Xecho; then |
| 634 | # We didn't find a better echo, so look for alternatives. |
| 635 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 636 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 637 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 638 | # This shell has a builtin print -r that does the trick. |
| 639 | echo='print -r' |
| 640 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 641 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 642 | # If we have ksh, try running configure again with it. |
| 643 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 644 | export ORIGINAL_CONFIG_SHELL |
| 645 | CONFIG_SHELL=/bin/ksh |
| 646 | export CONFIG_SHELL |
| 647 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 648 | else |
| 649 | # Try using printf. |
| 650 | echo='printf %s\n' |
| 651 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 652 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 653 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 654 | # Cool, printf works |
| 655 | : |
| 656 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 657 | test "X$echo_testing_string" = 'X\t' && |
| 658 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 659 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 660 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 661 | export CONFIG_SHELL |
| 662 | SHELL="$CONFIG_SHELL" |
| 663 | export SHELL |
| 664 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 665 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 666 | test "X$echo_testing_string" = 'X\t' && |
| 667 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 668 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 669 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 670 | else |
| 671 | # maybe with a smaller string... |
| 672 | prev=: |
| 673 | |
| 674 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 675 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 676 | then |
| 677 | break |
| 678 | fi |
| 679 | prev="$cmd" |
| 680 | done |
| 681 | |
| 682 | if test "$prev" != 'sed 50q "$0"'; then |
| 683 | echo_test_string=`eval $prev` |
| 684 | export echo_test_string |
| 685 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 686 | else |
| 687 | # Oops. We lost completely, so just stick with echo. |
| 688 | echo=echo |
| 689 | fi |
| 690 | fi |
| 691 | fi |
| 692 | fi |
| 693 | fi |
| 694 | fi |
| 695 | |
| 696 | # Copy echo and quote the copy suitably for passing to libtool from |
| 697 | # the Makefile, instead of quoting the original, which is used later. |
| 698 | ECHO=$echo |
| 699 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 700 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 701 | fi |
| 702 | |
| 703 | |
| 704 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 705 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 706 | tagnames=${tagnames+${tagnames},}CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 707 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 708 | tagnames=${tagnames+${tagnames},}F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 709 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 710 | exec 7<&0 </dev/null 6>&1 |
| 711 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 712 | # Name of the host. |
| 713 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 714 | # so uname gets run too. |
| 715 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 716 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 717 | # |
| 718 | # Initializations. |
| 719 | # |
| 720 | ac_default_prefix=/usr/local |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 721 | ac_clean_files= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 722 | ac_config_libobj_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 723 | LIBOBJS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 724 | cross_compiling=no |
| 725 | subdirs= |
| 726 | MFLAGS= |
| 727 | MAKEFLAGS= |
| 728 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 729 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 730 | # Identity of this package. |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 731 | PACKAGE_NAME='llvm' |
Reid Spencer | 2b51a08 | 2004-08-04 00:34:49 +0000 | [diff] [blame] | 732 | PACKAGE_TARNAME='-llvm-' |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 733 | PACKAGE_VERSION='2.2svn' |
| 734 | PACKAGE_STRING='llvm 2.2svn' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 735 | PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' |
| 736 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 737 | ac_unique_file="lib/VMCore/Module.cpp" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 738 | # Factoring default headers for most tests. |
| 739 | ac_includes_default="\ |
| 740 | #include <stdio.h> |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 741 | #ifdef HAVE_SYS_TYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 742 | # include <sys/types.h> |
| 743 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 744 | #ifdef HAVE_SYS_STAT_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 745 | # include <sys/stat.h> |
| 746 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 747 | #ifdef STDC_HEADERS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 748 | # include <stdlib.h> |
| 749 | # include <stddef.h> |
| 750 | #else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 751 | # ifdef HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 752 | # include <stdlib.h> |
| 753 | # endif |
| 754 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 755 | #ifdef HAVE_STRING_H |
| 756 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 757 | # include <memory.h> |
| 758 | # endif |
| 759 | # include <string.h> |
| 760 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 761 | #ifdef HAVE_STRINGS_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 762 | # include <strings.h> |
| 763 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 764 | #ifdef HAVE_INTTYPES_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 765 | # include <inttypes.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 766 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 767 | #ifdef HAVE_STDINT_H |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 768 | # include <stdint.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 769 | #endif |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 770 | #ifdef HAVE_UNISTD_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 771 | # include <unistd.h> |
| 772 | #endif" |
| 773 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 774 | ac_subst_vars='SHELL |
| 775 | PATH_SEPARATOR |
| 776 | PACKAGE_NAME |
| 777 | PACKAGE_TARNAME |
| 778 | PACKAGE_VERSION |
| 779 | PACKAGE_STRING |
| 780 | PACKAGE_BUGREPORT |
| 781 | exec_prefix |
| 782 | prefix |
| 783 | program_transform_name |
| 784 | bindir |
| 785 | sbindir |
| 786 | libexecdir |
| 787 | datarootdir |
| 788 | datadir |
| 789 | sysconfdir |
| 790 | sharedstatedir |
| 791 | localstatedir |
| 792 | includedir |
| 793 | oldincludedir |
| 794 | docdir |
| 795 | infodir |
| 796 | htmldir |
| 797 | dvidir |
| 798 | pdfdir |
| 799 | psdir |
| 800 | libdir |
| 801 | localedir |
| 802 | mandir |
| 803 | DEFS |
| 804 | ECHO_C |
| 805 | ECHO_N |
| 806 | ECHO_T |
| 807 | LIBS |
| 808 | build_alias |
| 809 | host_alias |
| 810 | target_alias |
| 811 | LLVM_COPYRIGHT |
| 812 | subdirs |
| 813 | build |
| 814 | build_cpu |
| 815 | build_vendor |
| 816 | build_os |
| 817 | host |
| 818 | host_cpu |
| 819 | host_vendor |
| 820 | host_os |
| 821 | target |
| 822 | target_cpu |
| 823 | target_vendor |
| 824 | target_os |
| 825 | OS |
| 826 | LINKALL |
| 827 | NOLINKALL |
| 828 | LLVM_ON_UNIX |
| 829 | LLVM_ON_WIN32 |
| 830 | ARCH |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 831 | ENDIAN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 832 | CC |
| 833 | CFLAGS |
| 834 | LDFLAGS |
| 835 | CPPFLAGS |
| 836 | ac_ct_CC |
| 837 | EXEEXT |
| 838 | OBJEXT |
| 839 | CPP |
| 840 | GREP |
| 841 | EGREP |
| 842 | LLVM_CROSS_COMPILING |
| 843 | BUILD_CC |
| 844 | BUILD_EXEEXT |
| 845 | CVSBUILD |
| 846 | ENABLE_OPTIMIZED |
| 847 | DISABLE_ASSERTIONS |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 848 | ENABLE_EXPENSIVE_CHECKS |
| 849 | EXPENSIVE_CHECKS |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 850 | DEBUG_RUNTIME |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 851 | JIT |
| 852 | TARGET_HAS_JIT |
| 853 | ENABLE_DOXYGEN |
| 854 | ENABLE_THREADS |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 855 | ENABLE_PIC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 856 | TARGETS_TO_BUILD |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 857 | ENABLE_CBE_PRINTF_A |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 858 | EXTRA_OPTIONS |
| 859 | CXX |
| 860 | CXXFLAGS |
| 861 | ac_ct_CXX |
| 862 | LEX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 863 | LEX_OUTPUT_ROOT |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 864 | LEXLIB |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 865 | FLEX |
| 866 | YACC |
| 867 | YFLAGS |
| 868 | BISON |
| 869 | NM |
| 870 | ifGNUmake |
| 871 | LN_S |
| 872 | CMP |
| 873 | CP |
| 874 | DATE |
| 875 | FIND |
| 876 | MKDIR |
| 877 | MV |
| 878 | RANLIB |
| 879 | RM |
| 880 | SED |
| 881 | TAR |
| 882 | BINPWD |
| 883 | GRAPHVIZ |
| 884 | DOT |
| 885 | GV |
| 886 | DOTTY |
| 887 | PERL |
| 888 | HAVE_PERL |
| 889 | INSTALL_PROGRAM |
| 890 | INSTALL_SCRIPT |
| 891 | INSTALL_DATA |
| 892 | BZIP2 |
| 893 | DOXYGEN |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 894 | GROFF |
| 895 | GZIP |
| 896 | POD2HTML |
| 897 | POD2MAN |
| 898 | RUNTEST |
| 899 | TCLSH |
| 900 | ZIP |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 901 | OCAMLC |
| 902 | OCAMLOPT |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 903 | OCAMLDEP |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 904 | INSTALL_LTDL_TRUE |
| 905 | INSTALL_LTDL_FALSE |
| 906 | CONVENIENCE_LTDL_TRUE |
| 907 | CONVENIENCE_LTDL_FALSE |
| 908 | LIBADD_DL |
| 909 | ECHO |
| 910 | AR |
| 911 | STRIP |
| 912 | CXXCPP |
| 913 | F77 |
| 914 | FFLAGS |
| 915 | ac_ct_F77 |
| 916 | LIBTOOL |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 917 | LLVMGCC |
| 918 | LLVMGXX |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 919 | USE_UDIS86 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 920 | HAVE_PTHREAD |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 921 | HUGE_VAL_SANITY |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 922 | ALLOCA |
| 923 | MMAP_FILE |
| 924 | LLVMCC1 |
| 925 | LLVMCC1PLUS |
| 926 | LLVMGCCDIR |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 927 | LLVMGCCLIBEXEC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 928 | LLVMGCC_VERSION |
| 929 | LLVMGCC_MAJVERS |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 930 | LLVMGCC_LANGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 931 | SHLIBEXT |
| 932 | LLVM_PREFIX |
| 933 | LLVM_BINDIR |
| 934 | LLVM_LIBDIR |
| 935 | LLVM_DATADIR |
| 936 | LLVM_DOCSDIR |
| 937 | LLVM_ETCDIR |
| 938 | LLVM_INCLUDEDIR |
| 939 | LLVM_INFODIR |
| 940 | LLVM_MANDIR |
| 941 | LLVM_CONFIGTIME |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 942 | BINDINGS_TO_BUILD |
| 943 | ALL_BINDINGS |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 944 | OCAML_LIBDIR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 945 | LIBOBJS |
| 946 | LTLIBOBJS' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 947 | ac_subst_files='' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 948 | ac_precious_vars='build_alias |
| 949 | host_alias |
| 950 | target_alias |
| 951 | CC |
| 952 | CFLAGS |
| 953 | LDFLAGS |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 954 | LIBS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 955 | CPPFLAGS |
| 956 | CPP |
| 957 | CXX |
| 958 | CXXFLAGS |
| 959 | CCC |
| 960 | YACC |
| 961 | YFLAGS |
| 962 | CXXCPP |
| 963 | F77 |
| 964 | FFLAGS' |
| 965 | ac_subdirs_all='projects/sample |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 966 | projects/privbracket |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 967 | projects/llvm-stacker |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 968 | projects/llvm-test |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 969 | projects/llvm-reopt |
| 970 | projects/llvm-gcc |
| 971 | projects/llvm-java |
| 972 | projects/llvm-tv |
| 973 | projects/llvm-poolalloc |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 974 | projects/poolalloc |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 975 | projects/llvm-kernel' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 976 | |
| 977 | # Initialize some variables set by options. |
| 978 | ac_init_help= |
| 979 | ac_init_version=false |
| 980 | # The variables have the same names as the options, with |
| 981 | # dashes changed to underlines. |
| 982 | cache_file=/dev/null |
| 983 | exec_prefix=NONE |
| 984 | no_create= |
| 985 | no_recursion= |
| 986 | prefix=NONE |
| 987 | program_prefix=NONE |
| 988 | program_suffix=NONE |
| 989 | program_transform_name=s,x,x, |
| 990 | silent= |
| 991 | site= |
| 992 | srcdir= |
| 993 | verbose= |
| 994 | x_includes=NONE |
| 995 | x_libraries=NONE |
| 996 | |
| 997 | # Installation directory options. |
| 998 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 999 | # and all the variables that are supposed to be based on exec_prefix |
| 1000 | # by default will actually change. |
| 1001 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1002 | # (The list follows the same order as the GNU Coding Standards.) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1003 | bindir='${exec_prefix}/bin' |
| 1004 | sbindir='${exec_prefix}/sbin' |
| 1005 | libexecdir='${exec_prefix}/libexec' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1006 | datarootdir='${prefix}/share' |
| 1007 | datadir='${datarootdir}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1008 | sysconfdir='${prefix}/etc' |
| 1009 | sharedstatedir='${prefix}/com' |
| 1010 | localstatedir='${prefix}/var' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1011 | includedir='${prefix}/include' |
| 1012 | oldincludedir='/usr/include' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1013 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1014 | infodir='${datarootdir}/info' |
| 1015 | htmldir='${docdir}' |
| 1016 | dvidir='${docdir}' |
| 1017 | pdfdir='${docdir}' |
| 1018 | psdir='${docdir}' |
| 1019 | libdir='${exec_prefix}/lib' |
| 1020 | localedir='${datarootdir}/locale' |
| 1021 | mandir='${datarootdir}/man' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1022 | |
| 1023 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1024 | ac_dashdash= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1025 | for ac_option |
| 1026 | do |
| 1027 | # If the previous option needs an argument, assign it. |
| 1028 | if test -n "$ac_prev"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1029 | eval $ac_prev=\$ac_option |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1030 | ac_prev= |
| 1031 | continue |
| 1032 | fi |
| 1033 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1034 | case $ac_option in |
| 1035 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1036 | *) ac_optarg=yes ;; |
| 1037 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1038 | |
| 1039 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1040 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1041 | case $ac_dashdash$ac_option in |
| 1042 | --) |
| 1043 | ac_dashdash=yes ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1044 | |
| 1045 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1046 | ac_prev=bindir ;; |
| 1047 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1048 | bindir=$ac_optarg ;; |
| 1049 | |
| 1050 | -build | --build | --buil | --bui | --bu) |
| 1051 | ac_prev=build_alias ;; |
| 1052 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1053 | build_alias=$ac_optarg ;; |
| 1054 | |
| 1055 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1056 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1057 | ac_prev=cache_file ;; |
| 1058 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1059 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1060 | cache_file=$ac_optarg ;; |
| 1061 | |
| 1062 | --config-cache | -C) |
| 1063 | cache_file=config.cache ;; |
| 1064 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1065 | -datadir | --datadir | --datadi | --datad) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1066 | ac_prev=datadir ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1067 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1068 | datadir=$ac_optarg ;; |
| 1069 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1070 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1071 | | --dataroo | --dataro | --datar) |
| 1072 | ac_prev=datarootdir ;; |
| 1073 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1074 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1075 | datarootdir=$ac_optarg ;; |
| 1076 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1077 | -disable-* | --disable-*) |
| 1078 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1079 | # Reject names that are not valid shell variable names. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1080 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1081 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1082 | { (exit 1); exit 1; }; } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1083 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1084 | eval enable_$ac_feature=no ;; |
| 1085 | |
| 1086 | -docdir | --docdir | --docdi | --doc | --do) |
| 1087 | ac_prev=docdir ;; |
| 1088 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1089 | docdir=$ac_optarg ;; |
| 1090 | |
| 1091 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1092 | ac_prev=dvidir ;; |
| 1093 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1094 | dvidir=$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1095 | |
| 1096 | -enable-* | --enable-*) |
| 1097 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1098 | # Reject names that are not valid shell variable names. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1099 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1100 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1101 | { (exit 1); exit 1; }; } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1102 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1103 | eval enable_$ac_feature=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1104 | |
| 1105 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1106 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1107 | | --exec | --exe | --ex) |
| 1108 | ac_prev=exec_prefix ;; |
| 1109 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1110 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1111 | | --exec=* | --exe=* | --ex=*) |
| 1112 | exec_prefix=$ac_optarg ;; |
| 1113 | |
| 1114 | -gas | --gas | --ga | --g) |
| 1115 | # Obsolete; use --with-gas. |
| 1116 | with_gas=yes ;; |
| 1117 | |
| 1118 | -help | --help | --hel | --he | -h) |
| 1119 | ac_init_help=long ;; |
| 1120 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1121 | ac_init_help=recursive ;; |
| 1122 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1123 | ac_init_help=short ;; |
| 1124 | |
| 1125 | -host | --host | --hos | --ho) |
| 1126 | ac_prev=host_alias ;; |
| 1127 | -host=* | --host=* | --hos=* | --ho=*) |
| 1128 | host_alias=$ac_optarg ;; |
| 1129 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1130 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1131 | ac_prev=htmldir ;; |
| 1132 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1133 | | --ht=*) |
| 1134 | htmldir=$ac_optarg ;; |
| 1135 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1136 | -includedir | --includedir | --includedi | --included | --include \ |
| 1137 | | --includ | --inclu | --incl | --inc) |
| 1138 | ac_prev=includedir ;; |
| 1139 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1140 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1141 | includedir=$ac_optarg ;; |
| 1142 | |
| 1143 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1144 | ac_prev=infodir ;; |
| 1145 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1146 | infodir=$ac_optarg ;; |
| 1147 | |
| 1148 | -libdir | --libdir | --libdi | --libd) |
| 1149 | ac_prev=libdir ;; |
| 1150 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1151 | libdir=$ac_optarg ;; |
| 1152 | |
| 1153 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1154 | | --libexe | --libex | --libe) |
| 1155 | ac_prev=libexecdir ;; |
| 1156 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1157 | | --libexe=* | --libex=* | --libe=*) |
| 1158 | libexecdir=$ac_optarg ;; |
| 1159 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1160 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1161 | ac_prev=localedir ;; |
| 1162 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1163 | localedir=$ac_optarg ;; |
| 1164 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1165 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1166 | | --localstate | --localstat | --localsta | --localst | --locals) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1167 | ac_prev=localstatedir ;; |
| 1168 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1169 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1170 | localstatedir=$ac_optarg ;; |
| 1171 | |
| 1172 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1173 | ac_prev=mandir ;; |
| 1174 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1175 | mandir=$ac_optarg ;; |
| 1176 | |
| 1177 | -nfp | --nfp | --nf) |
| 1178 | # Obsolete; use --without-fp. |
| 1179 | with_fp=no ;; |
| 1180 | |
| 1181 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1182 | | --no-cr | --no-c | -n) |
| 1183 | no_create=yes ;; |
| 1184 | |
| 1185 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1186 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1187 | no_recursion=yes ;; |
| 1188 | |
| 1189 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1190 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1191 | | --oldin | --oldi | --old | --ol | --o) |
| 1192 | ac_prev=oldincludedir ;; |
| 1193 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1194 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1195 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1196 | oldincludedir=$ac_optarg ;; |
| 1197 | |
| 1198 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1199 | ac_prev=prefix ;; |
| 1200 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1201 | prefix=$ac_optarg ;; |
| 1202 | |
| 1203 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1204 | | --program-pre | --program-pr | --program-p) |
| 1205 | ac_prev=program_prefix ;; |
| 1206 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1207 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1208 | program_prefix=$ac_optarg ;; |
| 1209 | |
| 1210 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1211 | | --program-suf | --program-su | --program-s) |
| 1212 | ac_prev=program_suffix ;; |
| 1213 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1214 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1215 | program_suffix=$ac_optarg ;; |
| 1216 | |
| 1217 | -program-transform-name | --program-transform-name \ |
| 1218 | | --program-transform-nam | --program-transform-na \ |
| 1219 | | --program-transform-n | --program-transform- \ |
| 1220 | | --program-transform | --program-transfor \ |
| 1221 | | --program-transfo | --program-transf \ |
| 1222 | | --program-trans | --program-tran \ |
| 1223 | | --progr-tra | --program-tr | --program-t) |
| 1224 | ac_prev=program_transform_name ;; |
| 1225 | -program-transform-name=* | --program-transform-name=* \ |
| 1226 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1227 | | --program-transform-n=* | --program-transform-=* \ |
| 1228 | | --program-transform=* | --program-transfor=* \ |
| 1229 | | --program-transfo=* | --program-transf=* \ |
| 1230 | | --program-trans=* | --program-tran=* \ |
| 1231 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1232 | program_transform_name=$ac_optarg ;; |
| 1233 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1234 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1235 | ac_prev=pdfdir ;; |
| 1236 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1237 | pdfdir=$ac_optarg ;; |
| 1238 | |
| 1239 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1240 | ac_prev=psdir ;; |
| 1241 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1242 | psdir=$ac_optarg ;; |
| 1243 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1245 | | -silent | --silent | --silen | --sile | --sil) |
| 1246 | silent=yes ;; |
| 1247 | |
| 1248 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1249 | ac_prev=sbindir ;; |
| 1250 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1251 | | --sbi=* | --sb=*) |
| 1252 | sbindir=$ac_optarg ;; |
| 1253 | |
| 1254 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1255 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1256 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1257 | | --sha | --sh) |
| 1258 | ac_prev=sharedstatedir ;; |
| 1259 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1260 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1261 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1262 | | --sha=* | --sh=*) |
| 1263 | sharedstatedir=$ac_optarg ;; |
| 1264 | |
| 1265 | -site | --site | --sit) |
| 1266 | ac_prev=site ;; |
| 1267 | -site=* | --site=* | --sit=*) |
| 1268 | site=$ac_optarg ;; |
| 1269 | |
| 1270 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1271 | ac_prev=srcdir ;; |
| 1272 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1273 | srcdir=$ac_optarg ;; |
| 1274 | |
| 1275 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1276 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1277 | ac_prev=sysconfdir ;; |
| 1278 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1279 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1280 | sysconfdir=$ac_optarg ;; |
| 1281 | |
| 1282 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1283 | ac_prev=target_alias ;; |
| 1284 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1285 | target_alias=$ac_optarg ;; |
| 1286 | |
| 1287 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1288 | verbose=yes ;; |
| 1289 | |
| 1290 | -version | --version | --versio | --versi | --vers | -V) |
| 1291 | ac_init_version=: ;; |
| 1292 | |
| 1293 | -with-* | --with-*) |
| 1294 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1295 | # Reject names that are not valid shell variable names. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1296 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1297 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1298 | { (exit 1); exit 1; }; } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1299 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1300 | eval with_$ac_package=\$ac_optarg ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1301 | |
| 1302 | -without-* | --without-*) |
| 1303 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1304 | # Reject names that are not valid shell variable names. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1305 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1306 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1307 | { (exit 1); exit 1; }; } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1308 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1309 | eval with_$ac_package=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1310 | |
| 1311 | --x) |
| 1312 | # Obsolete; use --with-x. |
| 1313 | with_x=yes ;; |
| 1314 | |
| 1315 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1316 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1317 | ac_prev=x_includes ;; |
| 1318 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1319 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1320 | x_includes=$ac_optarg ;; |
| 1321 | |
| 1322 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1323 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1324 | ac_prev=x_libraries ;; |
| 1325 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1326 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1327 | x_libraries=$ac_optarg ;; |
| 1328 | |
| 1329 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1330 | Try \`$0 --help' for more information." >&2 |
| 1331 | { (exit 1); exit 1; }; } |
| 1332 | ;; |
| 1333 | |
| 1334 | *=*) |
| 1335 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1336 | # Reject names that are not valid shell variable names. |
| 1337 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1338 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1339 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1340 | eval $ac_envvar=\$ac_optarg |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1341 | export $ac_envvar ;; |
| 1342 | |
| 1343 | *) |
| 1344 | # FIXME: should be removed in autoconf 3.0. |
| 1345 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1346 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1347 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1348 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1349 | ;; |
| 1350 | |
| 1351 | esac |
| 1352 | done |
| 1353 | |
| 1354 | if test -n "$ac_prev"; then |
| 1355 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1356 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1357 | { (exit 1); exit 1; }; } |
| 1358 | fi |
| 1359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1360 | # Be sure to have absolute directory names. |
| 1361 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1362 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1363 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1364 | libdir localedir mandir |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1365 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1366 | eval ac_val=\$$ac_var |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1367 | case $ac_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1368 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1369 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1370 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1371 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1372 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1373 | done |
| 1374 | |
| 1375 | # There might be people who depend on the old broken behavior: `$host' |
| 1376 | # used to hold the argument of --host etc. |
| 1377 | # FIXME: To remove some day. |
| 1378 | build=$build_alias |
| 1379 | host=$host_alias |
| 1380 | target=$target_alias |
| 1381 | |
| 1382 | # FIXME: To remove some day. |
| 1383 | if test "x$host_alias" != x; then |
| 1384 | if test "x$build_alias" = x; then |
| 1385 | cross_compiling=maybe |
| 1386 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1387 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1388 | elif test "x$build_alias" != "x$host_alias"; then |
| 1389 | cross_compiling=yes |
| 1390 | fi |
| 1391 | fi |
| 1392 | |
| 1393 | ac_tool_prefix= |
| 1394 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1395 | |
| 1396 | test "$silent" = yes && exec 6>/dev/null |
| 1397 | |
| 1398 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1399 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1400 | ac_ls_di=`ls -di .` && |
| 1401 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1402 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1403 | { (exit 1); exit 1; }; } |
| 1404 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1405 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1406 | { (exit 1); exit 1; }; } |
| 1407 | |
| 1408 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1409 | # Find the source files, if location was not specified. |
| 1410 | if test -z "$srcdir"; then |
| 1411 | ac_srcdir_defaulted=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1412 | # Try the directory containing this script, then the parent directory. |
| 1413 | ac_confdir=`$as_dirname -- "$0" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1414 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1415 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1416 | X"$0" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1418 | echo X"$0" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1420 | s//\1/ |
| 1421 | q |
| 1422 | } |
| 1423 | /^X\(\/\/\)[^/].*/{ |
| 1424 | s//\1/ |
| 1425 | q |
| 1426 | } |
| 1427 | /^X\(\/\/\)$/{ |
| 1428 | s//\1/ |
| 1429 | q |
| 1430 | } |
| 1431 | /^X\(\/\).*/{ |
| 1432 | s//\1/ |
| 1433 | q |
| 1434 | } |
| 1435 | s/.*/./; q'` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1436 | srcdir=$ac_confdir |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1437 | if test ! -r "$srcdir/$ac_unique_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1438 | srcdir=.. |
| 1439 | fi |
| 1440 | else |
| 1441 | ac_srcdir_defaulted=no |
| 1442 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1443 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1444 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1445 | { 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] | 1446 | { (exit 1); exit 1; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1447 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1448 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1449 | ac_abs_confdir=`( |
| 1450 | 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] | 1451 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1452 | pwd)` |
| 1453 | # When building in place, set srcdir=. |
| 1454 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1455 | srcdir=. |
| 1456 | fi |
| 1457 | # Remove unnecessary trailing slashes from srcdir. |
| 1458 | # Double slashes in file names in object file debugging info |
| 1459 | # mess up M-x gdb in Emacs. |
| 1460 | case $srcdir in |
| 1461 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1462 | esac |
| 1463 | for ac_var in $ac_precious_vars; do |
| 1464 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1465 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1466 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1467 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1468 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1469 | |
| 1470 | # |
| 1471 | # Report the --help message. |
| 1472 | # |
| 1473 | if test "$ac_init_help" = "long"; then |
| 1474 | # Omit some internal or obsolete options to make the list less imposing. |
| 1475 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1476 | cat <<_ACEOF |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 1477 | \`configure' configures llvm 2.2svn to adapt to many kinds of systems. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1478 | |
| 1479 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1480 | |
| 1481 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1482 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1483 | |
| 1484 | Defaults for the options are specified in brackets. |
| 1485 | |
| 1486 | Configuration: |
| 1487 | -h, --help display this help and exit |
| 1488 | --help=short display options specific to this package |
| 1489 | --help=recursive display the short help of all the included packages |
| 1490 | -V, --version display version information and exit |
| 1491 | -q, --quiet, --silent do not print \`checking...' messages |
| 1492 | --cache-file=FILE cache test results in FILE [disabled] |
| 1493 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1494 | -n, --no-create do not create output files |
| 1495 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1496 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1497 | Installation directories: |
| 1498 | --prefix=PREFIX install architecture-independent files in PREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1499 | [$ac_default_prefix] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1500 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1501 | [PREFIX] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1502 | |
| 1503 | By default, \`make install' will install all the files in |
| 1504 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1505 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1506 | for instance \`--prefix=\$HOME'. |
| 1507 | |
| 1508 | For better control, use the options below. |
| 1509 | |
| 1510 | Fine tuning of the installation directories: |
| 1511 | --bindir=DIR user executables [EPREFIX/bin] |
| 1512 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1513 | --libexecdir=DIR program executables [EPREFIX/libexec] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1514 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1515 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1516 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1517 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1518 | --includedir=DIR C header files [PREFIX/include] |
| 1519 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1520 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1521 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1522 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1523 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1524 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1525 | --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] |
| 1526 | --htmldir=DIR html documentation [DOCDIR] |
| 1527 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1528 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1529 | --psdir=DIR ps documentation [DOCDIR] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1530 | _ACEOF |
| 1531 | |
| 1532 | cat <<\_ACEOF |
| 1533 | |
| 1534 | System types: |
| 1535 | --build=BUILD configure for building on BUILD [guessed] |
| 1536 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1537 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1538 | _ACEOF |
| 1539 | fi |
| 1540 | |
| 1541 | if test -n "$ac_init_help"; then |
| 1542 | case $ac_init_help in |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 1543 | short | recursive ) echo "Configuration of llvm 2.2svn:";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1544 | esac |
| 1545 | cat <<\_ACEOF |
| 1546 | |
| 1547 | Optional Features: |
| 1548 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1549 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1550 | --enable-optimized |
Reid Spencer | 54d1448 | 2006-04-07 16:01:51 +0000 | [diff] [blame] | 1551 | --enable-assertions |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 1552 | --enable-expensive-checks |
| 1553 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 1554 | --enable-debug-runtime |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1555 | --enable-jit Enable Just In Time Compiling (default is YES) |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 1556 | --enable-doxygen Build doxygen documentation (default is NO) |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 1557 | --enable-threads Use threads if available (default is YES) |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 1558 | --enable-pic Build LLVM with Position Independent Code (default |
| 1559 | is NO) |
Evan Cheng | 939ea65 | 2006-07-06 07:46:33 +0000 | [diff] [blame] | 1560 | --enable-targets Build specific host targets: |
Reid Spencer | 99d1fcc | 2005-04-22 17:02:18 +0000 | [diff] [blame] | 1561 | all,host-only,{target-name} (default=all) |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 1562 | --enable-cbe-printf-a Enable C Backend output with hex floating point via |
| 1563 | %a (default is YES) |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 1564 | --enable-bindings Build specific language bindings: |
| 1565 | all,auto,none,{binding-name} (default=auto) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 1566 | --enable-ltdl-install install libltdl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1567 | --enable-shared[=PKGS] build shared libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1568 | [default=yes] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1569 | --enable-static[=PKGS] build static libraries |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1570 | [default=yes] |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1571 | --enable-fast-install[=PKGS] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1572 | optimize for fast installation |
Tanya Lattner | 856585b | 2007-09-17 21:41:15 +0000 | [diff] [blame] | 1573 | [default=yes] |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1574 | --disable-libtool-lock avoid locking (might break parallel builds) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1575 | |
| 1576 | Optional Packages: |
| 1577 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1578 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 1579 | --with-llvmgccdir Specify location of llvm-gcc install dir (default |
| 1580 | searches PATH) |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 1581 | --with-llvmgcc Specify location of llvm-gcc driver (default |
| 1582 | searches PATH) |
| 1583 | --with-llvmgxx Specify location of llvm-g++ driver (default |
| 1584 | searches PATH) |
Evan Cheng | cf9be26 | 2006-06-20 22:16:32 +0000 | [diff] [blame] | 1585 | --with-extra-options Specify addtional options to compile LLVM with |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 1586 | --with-ocaml-libdir Specify install location for ocaml bindings (default |
| 1587 | is stdlib) |
Reid Spencer | 0fcb941 | 2004-11-30 08:11:54 +0000 | [diff] [blame] | 1588 | --with-tclinclude directory where tcl headers are |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1589 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1590 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1591 | both] |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1592 | --with-tags[=TAGS] include additional configurations [automatic] |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1593 | --with-udis86=<path> Use udis86 external x86 disassembler library |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1594 | |
| 1595 | Some influential environment variables: |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1596 | CC C compiler command |
| 1597 | CFLAGS C compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1598 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1599 | nonstandard directory <lib dir> |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1600 | LIBS libraries to pass to the linker, e.g. -l<library> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1601 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1602 | you have headers in a nonstandard directory <include dir> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1603 | CPP C preprocessor |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1604 | CXX C++ compiler command |
| 1605 | CXXFLAGS C++ compiler flags |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1606 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
| 1607 | the first program found out of: `bison -y', `byacc', `yacc'. |
| 1608 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1609 | This script will default YFLAGS to the empty string to avoid a |
| 1610 | default value of `-d' given by some make applications. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 1611 | CXXCPP C++ preprocessor |
| 1612 | F77 Fortran 77 compiler command |
| 1613 | FFLAGS Fortran 77 compiler flags |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1614 | |
| 1615 | Use these variables to override the choices made by `configure' or to help |
| 1616 | it to find libraries and programs with nonstandard names/locations. |
| 1617 | |
| 1618 | Report bugs to <llvmbugs@cs.uiuc.edu>. |
| 1619 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1620 | ac_status=$? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1621 | fi |
| 1622 | |
| 1623 | if test "$ac_init_help" = "recursive"; then |
| 1624 | # If there are subdirs, report their specific --help. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1625 | 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] | 1626 | test -d "$ac_dir" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1627 | ac_builddir=. |
| 1628 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1629 | case "$ac_dir" in |
| 1630 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1631 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1632 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1633 | # A ".." for each directory in $ac_dir_suffix. |
| 1634 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1635 | case $ac_top_builddir_sub in |
| 1636 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1637 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1638 | esac ;; |
| 1639 | esac |
| 1640 | ac_abs_top_builddir=$ac_pwd |
| 1641 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1642 | # for backward compatibility: |
| 1643 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1644 | |
| 1645 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1646 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1647 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1648 | ac_top_srcdir=$ac_top_builddir_sub |
| 1649 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1650 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1651 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1652 | ac_top_srcdir=$srcdir |
| 1653 | ac_abs_top_srcdir=$srcdir ;; |
| 1654 | *) # Relative name. |
| 1655 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1656 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1657 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1658 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1659 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1660 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1661 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1662 | # Check for guested configure. |
| 1663 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1664 | echo && |
| 1665 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1666 | elif test -f "$ac_srcdir/configure"; then |
| 1667 | echo && |
| 1668 | $SHELL "$ac_srcdir/configure" --help=recursive |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1669 | else |
| 1670 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1671 | fi || ac_status=$? |
| 1672 | cd "$ac_pwd" || { ac_status=$?; break; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1673 | done |
| 1674 | fi |
| 1675 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1676 | test -n "$ac_init_help" && exit $ac_status |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1677 | if $ac_init_version; then |
| 1678 | cat <<\_ACEOF |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 1679 | llvm configure 2.2svn |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1680 | generated by GNU Autoconf 2.61 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1681 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1682 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1683 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1684 | This configure script is free software; the Free Software Foundation |
| 1685 | gives unlimited permission to copy, distribute and modify it. |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 1686 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 1687 | Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1688 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1689 | exit |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1691 | cat >config.log <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1692 | This file contains any messages produced by compilers while |
| 1693 | running configure, to aid debugging if configure makes a mistake. |
| 1694 | |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 1695 | It was created by llvm $as_me 2.2svn, which was |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 1696 | generated by GNU Autoconf 2.61. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1697 | |
| 1698 | $ $0 $@ |
| 1699 | |
| 1700 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1701 | exec 5>>config.log |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1702 | { |
| 1703 | cat <<_ASUNAME |
| 1704 | ## --------- ## |
| 1705 | ## Platform. ## |
| 1706 | ## --------- ## |
| 1707 | |
| 1708 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1709 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1710 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1711 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1712 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1713 | |
| 1714 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1715 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1716 | |
| 1717 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1718 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1719 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1720 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1721 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1722 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1723 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1724 | |
| 1725 | _ASUNAME |
| 1726 | |
| 1727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1728 | for as_dir in $PATH |
| 1729 | do |
| 1730 | IFS=$as_save_IFS |
| 1731 | test -z "$as_dir" && as_dir=. |
| 1732 | echo "PATH: $as_dir" |
| 1733 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1734 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1735 | |
| 1736 | } >&5 |
| 1737 | |
| 1738 | cat >&5 <<_ACEOF |
| 1739 | |
| 1740 | |
| 1741 | ## ----------- ## |
| 1742 | ## Core tests. ## |
| 1743 | ## ----------- ## |
| 1744 | |
| 1745 | _ACEOF |
| 1746 | |
| 1747 | |
| 1748 | # Keep a trace of the command line. |
| 1749 | # 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] | 1750 | # 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] | 1751 | # Also quote any args containing shell meta-characters. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1752 | # Make two passes to allow for proper duplicate-argument suppression. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1753 | ac_configure_args= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1754 | ac_configure_args0= |
| 1755 | ac_configure_args1= |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1756 | ac_must_keep_next=false |
| 1757 | for ac_pass in 1 2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1758 | do |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1759 | for ac_arg |
| 1760 | do |
| 1761 | case $ac_arg in |
| 1762 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1763 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1764 | | -silent | --silent | --silen | --sile | --sil) |
| 1765 | continue ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1766 | *\'*) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1767 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1768 | esac |
| 1769 | case $ac_pass in |
| 1770 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1771 | 2) |
| 1772 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1773 | if test $ac_must_keep_next = true; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1774 | ac_must_keep_next=false # Got value, back to normal. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1775 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1776 | case $ac_arg in |
| 1777 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1778 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1779 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1780 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1781 | case "$ac_configure_args0 " in |
| 1782 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1783 | esac |
| 1784 | ;; |
| 1785 | -* ) ac_must_keep_next=true ;; |
| 1786 | esac |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1787 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1788 | ac_configure_args="$ac_configure_args '$ac_arg'" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1789 | ;; |
| 1790 | esac |
| 1791 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1792 | done |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1793 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1794 | $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] | 1795 | |
| 1796 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1797 | # config.log. We remove comments because anyway the quotes in there |
| 1798 | # would cause problems or look ugly. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1799 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1800 | # 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] | 1801 | trap 'exit_status=$? |
| 1802 | # Save into config.log some information that might help in debugging. |
| 1803 | { |
| 1804 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1805 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1806 | cat <<\_ASBOX |
| 1807 | ## ---------------- ## |
| 1808 | ## Cache variables. ## |
| 1809 | ## ---------------- ## |
| 1810 | _ASBOX |
| 1811 | echo |
| 1812 | # The following way of writing the cache mishandles newlines in values, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1813 | ( |
| 1814 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1815 | eval ac_val=\$$ac_var |
| 1816 | case $ac_val in #( |
| 1817 | *${as_nl}*) |
| 1818 | case $ac_var in #( |
| 1819 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1820 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1821 | esac |
| 1822 | case $ac_var in #( |
| 1823 | _ | IFS | as_nl) ;; #( |
| 1824 | *) $as_unset $ac_var ;; |
| 1825 | esac ;; |
| 1826 | esac |
| 1827 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1828 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1829 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1830 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1831 | sed -n \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1832 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1833 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1834 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1835 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1836 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1837 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1838 | esac | |
| 1839 | sort |
| 1840 | ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1841 | echo |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1842 | |
| 1843 | cat <<\_ASBOX |
| 1844 | ## ----------------- ## |
| 1845 | ## Output variables. ## |
| 1846 | ## ----------------- ## |
| 1847 | _ASBOX |
| 1848 | echo |
| 1849 | for ac_var in $ac_subst_vars |
| 1850 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1851 | eval ac_val=\$$ac_var |
| 1852 | case $ac_val in |
| 1853 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1854 | esac |
| 1855 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1856 | done | sort |
| 1857 | echo |
| 1858 | |
| 1859 | if test -n "$ac_subst_files"; then |
| 1860 | cat <<\_ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1861 | ## ------------------- ## |
| 1862 | ## File substitutions. ## |
| 1863 | ## ------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1864 | _ASBOX |
| 1865 | echo |
| 1866 | for ac_var in $ac_subst_files |
| 1867 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1868 | eval ac_val=\$$ac_var |
| 1869 | case $ac_val in |
| 1870 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1871 | esac |
| 1872 | echo "$ac_var='\''$ac_val'\''" |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 1873 | done | sort |
| 1874 | echo |
| 1875 | fi |
| 1876 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1877 | if test -s confdefs.h; then |
| 1878 | cat <<\_ASBOX |
| 1879 | ## ----------- ## |
| 1880 | ## confdefs.h. ## |
| 1881 | ## ----------- ## |
| 1882 | _ASBOX |
| 1883 | echo |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1884 | cat confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1885 | echo |
| 1886 | fi |
| 1887 | test "$ac_signal" != 0 && |
| 1888 | echo "$as_me: caught signal $ac_signal" |
| 1889 | echo "$as_me: exit $exit_status" |
| 1890 | } >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1891 | rm -f core *.core core.conftest.* && |
| 1892 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1893 | exit $exit_status |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1894 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1895 | for ac_signal in 1 2 13 15; do |
| 1896 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1897 | done |
| 1898 | ac_signal=0 |
| 1899 | |
| 1900 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1901 | rm -f -r conftest* confdefs.h |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1902 | |
| 1903 | # Predefined preprocessor variables. |
| 1904 | |
| 1905 | cat >>confdefs.h <<_ACEOF |
| 1906 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1907 | _ACEOF |
| 1908 | |
| 1909 | |
| 1910 | cat >>confdefs.h <<_ACEOF |
| 1911 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1912 | _ACEOF |
| 1913 | |
| 1914 | |
| 1915 | cat >>confdefs.h <<_ACEOF |
| 1916 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1917 | _ACEOF |
| 1918 | |
| 1919 | |
| 1920 | cat >>confdefs.h <<_ACEOF |
| 1921 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1922 | _ACEOF |
| 1923 | |
| 1924 | |
| 1925 | cat >>confdefs.h <<_ACEOF |
| 1926 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1927 | _ACEOF |
| 1928 | |
| 1929 | |
| 1930 | # Let the site file select an alternate cache file if it wants to. |
| 1931 | # Prefer explicitly selected file to automatically selected ones. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1932 | if test -n "$CONFIG_SITE"; then |
| 1933 | set x "$CONFIG_SITE" |
| 1934 | elif test "x$prefix" != xNONE; then |
| 1935 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1936 | else |
| 1937 | set x "$ac_default_prefix/share/config.site" \ |
| 1938 | "$ac_default_prefix/etc/config.site" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1939 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1940 | shift |
| 1941 | for ac_site_file |
| 1942 | do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1943 | if test -r "$ac_site_file"; then |
| 1944 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1945 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1946 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1947 | . "$ac_site_file" |
| 1948 | fi |
| 1949 | done |
| 1950 | |
| 1951 | if test -r "$cache_file"; then |
| 1952 | # Some versions of bash will fail to source /dev/null (special |
| 1953 | # files actually), so we avoid doing that. |
| 1954 | if test -f "$cache_file"; then |
| 1955 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1956 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1957 | case $cache_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1958 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1959 | *) . "./$cache_file";; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1960 | esac |
| 1961 | fi |
| 1962 | else |
| 1963 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1964 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1965 | >$cache_file |
| 1966 | fi |
| 1967 | |
| 1968 | # Check that the precious variables saved in the cache have kept the same |
| 1969 | # value. |
| 1970 | ac_cache_corrupted=false |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1971 | for ac_var in $ac_precious_vars; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1972 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1973 | eval ac_new_set=\$ac_env_${ac_var}_set |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 1974 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1975 | eval ac_new_val=\$ac_env_${ac_var}_value |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1976 | case $ac_old_set,$ac_new_set in |
| 1977 | set,) |
| 1978 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1979 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1980 | ac_cache_corrupted=: ;; |
| 1981 | ,set) |
| 1982 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1983 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1984 | ac_cache_corrupted=: ;; |
| 1985 | ,);; |
| 1986 | *) |
| 1987 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1988 | { 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] | 1989 | 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] | 1990 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1991 | echo "$as_me: former value: $ac_old_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1992 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1993 | echo "$as_me: current value: $ac_new_val" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 1994 | ac_cache_corrupted=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 1995 | fi;; |
| 1996 | esac |
| 1997 | # Pass precious variables to config.status. |
| 1998 | if test "$ac_new_set" = set; then |
| 1999 | case $ac_new_val in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2000 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2001 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2002 | esac |
| 2003 | case " $ac_configure_args " in |
| 2004 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2005 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 2006 | esac |
| 2007 | fi |
| 2008 | done |
| 2009 | if $ac_cache_corrupted; then |
| 2010 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 2011 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2012 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2013 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2014 | { (exit 1); exit 1; }; } |
| 2015 | fi |
| 2016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
| 2034 | |
| 2035 | |
| 2036 | |
| 2037 | |
| 2038 | |
| 2039 | |
| 2040 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2041 | ac_ext=c |
| 2042 | ac_cpp='$CPP $CPPFLAGS' |
| 2043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2046 | |
| 2047 | |
| 2048 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 2049 | LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign." |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2050 | |
| 2051 | |
| 2052 | |
| 2053 | |
| 2054 | |
| 2055 | |
| 2056 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2057 | ac_aux_dir= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2058 | for ac_dir in autoconf "$srcdir"/autoconf; do |
| 2059 | if test -f "$ac_dir/install-sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2060 | ac_aux_dir=$ac_dir |
| 2061 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2062 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2063 | elif test -f "$ac_dir/install.sh"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2064 | ac_aux_dir=$ac_dir |
| 2065 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2066 | break |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2067 | elif test -f "$ac_dir/shtool"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2068 | ac_aux_dir=$ac_dir |
| 2069 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2070 | break |
| 2071 | fi |
| 2072 | done |
| 2073 | if test -z "$ac_aux_dir"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2074 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 |
| 2075 | 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] | 2076 | { (exit 1); exit 1; }; } |
| 2077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2078 | |
| 2079 | # These three variables are undocumented and unsupported, |
| 2080 | # and are intended to be withdrawn in a future Autoconf release. |
| 2081 | # They can cause serious problems if a builder's source tree is in a directory |
| 2082 | # whose full name contains unusual characters. |
| 2083 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2084 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2085 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2086 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2087 | |
John Criswell | 392aaa3 | 2003-07-22 19:18:09 +0000 | [diff] [blame] | 2088 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2089 | if test ${srcdir} != "." ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2090 | if test -f ${srcdir}/include/llvm/Config/config.h ; then |
| 2091 | { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2092 | echo "$as_me: error: Already configured in ${srcdir}" >&2;} |
| 2093 | { (exit 1); exit 1; }; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2094 | fi |
John Criswell | 93e1c72 | 2003-09-15 17:04:06 +0000 | [diff] [blame] | 2095 | fi |
| 2096 | |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2097 | for i in `ls ${srcdir}/projects` |
| 2098 | do |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2099 | if test -d ${srcdir}/projects/${i} ; then |
| 2100 | case ${i} in |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2101 | CVS) ;; |
| 2102 | sample) subdirs="$subdirs projects/sample" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2103 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2104 | privbracket) subdirs="$subdirs projects/privbracket" |
John Criswell | 0389cf7 | 2006-06-20 17:44:40 +0000 | [diff] [blame] | 2105 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2106 | llvm-stacker) subdirs="$subdirs projects/llvm-stacker" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2107 | ;; |
Anton Korobeynikov | 080d687 | 2007-07-03 17:16:46 +0000 | [diff] [blame] | 2108 | llvm-test) subdirs="$subdirs projects/llvm-test" |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2109 | ;; |
| 2110 | llvm-reopt) subdirs="$subdirs projects/llvm-reopt" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2111 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2112 | llvm-gcc) subdirs="$subdirs projects/llvm-gcc" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2113 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2114 | llvm-java) subdirs="$subdirs projects/llvm-java" |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 2115 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2116 | llvm-tv) subdirs="$subdirs projects/llvm-tv" |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2117 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2118 | llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" |
John Criswell | e96aa1c | 2004-10-28 13:35:00 +0000 | [diff] [blame] | 2119 | ;; |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 2120 | poolalloc) subdirs="$subdirs projects/poolalloc" |
Andrew Lenharth | 0af3225 | 2007-07-17 20:37:35 +0000 | [diff] [blame] | 2121 | ;; |
Reid Spencer | 67bb079 | 2007-01-17 02:14:46 +0000 | [diff] [blame] | 2122 | llvm-kernel) subdirs="$subdirs projects/llvm-kernel" |
John Criswell | 241116f | 2005-12-19 20:27:24 +0000 | [diff] [blame] | 2123 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2124 | *) |
Alkis Evlogimenos | a281b6fa | 2004-09-27 07:35:19 +0000 | [diff] [blame] | 2125 | { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 |
| 2126 | 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] | 2127 | ;; |
Reid Spencer | 4d68ba2 | 2004-09-07 16:35:45 +0000 | [diff] [blame] | 2128 | esac |
John Criswell | 33a911a | 2003-11-25 20:36:46 +0000 | [diff] [blame] | 2129 | fi |
| 2130 | done |
John Criswell | 559a6c1 | 2003-09-30 16:31:48 +0000 | [diff] [blame] | 2131 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2132 | |
| 2133 | # Make sure we can run config.sub. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2134 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2135 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2136 | 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] | 2137 | { (exit 1); exit 1; }; } |
| 2138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2139 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 2140 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2141 | if test "${ac_cv_build+set}" = set; then |
| 2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2143 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2144 | ac_build_alias=$build_alias |
| 2145 | test "x$ac_build_alias" = x && |
| 2146 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2147 | test "x$ac_build_alias" = x && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2148 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2149 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2150 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2151 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2152 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2153 | 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] | 2154 | { (exit 1); exit 1; }; } |
| 2155 | |
| 2156 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2157 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 2158 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 2159 | case $ac_cv_build in |
| 2160 | *-*-*) ;; |
| 2161 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2162 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2163 | { (exit 1); exit 1; }; };; |
| 2164 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2165 | build=$ac_cv_build |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2166 | ac_save_IFS=$IFS; IFS='-' |
| 2167 | set x $ac_cv_build |
| 2168 | shift |
| 2169 | build_cpu=$1 |
| 2170 | build_vendor=$2 |
| 2171 | shift; shift |
| 2172 | # Remember, the first character of IFS is used to create $*, |
| 2173 | # except with old shells: |
| 2174 | build_os=$* |
| 2175 | IFS=$ac_save_IFS |
| 2176 | 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] | 2177 | |
| 2178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2179 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 2180 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2181 | if test "${ac_cv_host+set}" = set; then |
| 2182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2183 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2184 | if test "x$host_alias" = x; then |
| 2185 | ac_cv_host=$ac_cv_build |
| 2186 | else |
| 2187 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2188 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2189 | 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] | 2190 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2191 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2192 | |
| 2193 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2194 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 2195 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 2196 | case $ac_cv_host in |
| 2197 | *-*-*) ;; |
| 2198 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2199 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2200 | { (exit 1); exit 1; }; };; |
| 2201 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2202 | host=$ac_cv_host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2203 | ac_save_IFS=$IFS; IFS='-' |
| 2204 | set x $ac_cv_host |
| 2205 | shift |
| 2206 | host_cpu=$1 |
| 2207 | host_vendor=$2 |
| 2208 | shift; shift |
| 2209 | # Remember, the first character of IFS is used to create $*, |
| 2210 | # except with old shells: |
| 2211 | host_os=$* |
| 2212 | IFS=$ac_save_IFS |
| 2213 | 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] | 2214 | |
| 2215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2216 | { echo "$as_me:$LINENO: checking target system type" >&5 |
| 2217 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2218 | if test "${ac_cv_target+set}" = set; then |
| 2219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2220 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2221 | if test "x$target_alias" = x; then |
| 2222 | ac_cv_target=$ac_cv_host |
| 2223 | else |
| 2224 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2225 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
| 2226 | 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] | 2227 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2228 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2229 | |
| 2230 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2231 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 2232 | echo "${ECHO_T}$ac_cv_target" >&6; } |
| 2233 | case $ac_cv_target in |
| 2234 | *-*-*) ;; |
| 2235 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
| 2236 | echo "$as_me: error: invalid value of canonical target" >&2;} |
| 2237 | { (exit 1); exit 1; }; };; |
| 2238 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2239 | target=$ac_cv_target |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2240 | ac_save_IFS=$IFS; IFS='-' |
| 2241 | set x $ac_cv_target |
| 2242 | shift |
| 2243 | target_cpu=$1 |
| 2244 | target_vendor=$2 |
| 2245 | shift; shift |
| 2246 | # Remember, the first character of IFS is used to create $*, |
| 2247 | # except with old shells: |
| 2248 | target_os=$* |
| 2249 | IFS=$ac_save_IFS |
| 2250 | 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] | 2251 | |
| 2252 | |
| 2253 | # The aliases save the names the user supplied, while $host etc. |
| 2254 | # will get canonicalized. |
| 2255 | test -n "$target_alias" && |
| 2256 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2257 | NONENONEs,x,x, && |
| 2258 | program_prefix=${target_alias}- |
| 2259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2260 | { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 |
| 2261 | 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] | 2262 | if test "${llvm_cv_os_type+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2264 | else |
Reid Spencer | e2cfe5d | 2006-07-26 21:14:56 +0000 | [diff] [blame] | 2265 | case $host in |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2266 | *-*-aix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2267 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2268 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2269 | llvm_cv_os_type="AIX" |
| 2270 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 6ccd01a | 2006-08-22 22:21:38 +0000 | [diff] [blame] | 2271 | *-*-irix*) |
| 2272 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2273 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2274 | llvm_cv_os_type="IRIX" |
| 2275 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2276 | *-*-cygwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2277 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2278 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2279 | llvm_cv_os_type="Cygwin" |
| 2280 | llvm_cv_platform_type="Unix" ;; |
| 2281 | *-*-darwin*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2282 | llvm_cv_link_all_option="-Wl,-all_load" |
| 2283 | llvm_cv_link_all_option="-Wl,-noall_load" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2284 | llvm_cv_os_type="Darwin" |
| 2285 | llvm_cv_platform_type="Unix" ;; |
| 2286 | *-*-freebsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2287 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2288 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2289 | llvm_cv_os_type="FreeBSD" |
| 2290 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2291 | *-*-openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2292 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2293 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 1014ab4 | 2006-04-19 23:47:16 +0000 | [diff] [blame] | 2294 | llvm_cv_os_type="OpenBSD" |
| 2295 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 466207a | 2007-01-20 20:45:39 +0000 | [diff] [blame] | 2296 | *-*-netbsd*) |
| 2297 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2298 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
| 2299 | llvm_cv_os_type="NetBSD" |
| 2300 | llvm_cv_platform_type="Unix" ;; |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2301 | *-*-hpux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2302 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2303 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Duraid Madina | 775afa5 | 2005-05-16 16:33:34 +0000 | [diff] [blame] | 2304 | llvm_cv_os_type="HP-UX" |
| 2305 | llvm_cv_platform_type="Unix" ;; |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2306 | *-*-interix*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2307 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2308 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2309 | llvm_cv_os_type="Interix" |
| 2310 | llvm_cv_platform_type="Unix" ;; |
| 2311 | *-*-linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2312 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2313 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2314 | llvm_cv_os_type="Linux" |
| 2315 | llvm_cv_platform_type="Unix" ;; |
| 2316 | *-*-solaris*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2317 | llvm_cv_link_all_option="-Wl,-z,allextract" |
| 2318 | llvm_cv_no_link_all_option="-Wl,-z,defaultextract" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2319 | llvm_cv_os_type="SunOS" |
| 2320 | llvm_cv_platform_type="Unix" ;; |
| 2321 | *-*-win32*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2322 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2323 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2324 | llvm_cv_os_type="Win32" |
| 2325 | llvm_cv_platform_type="Win32" ;; |
| 2326 | *-*-mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2327 | llvm_cv_link_all_option="-Wl,--whole-archive" |
| 2328 | llvm_cv_no_link_all_option="-Wl,--no-whole-archive" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2329 | llvm_cv_os_type="MingW" |
| 2330 | llvm_cv_platform_type="Win32" ;; |
| 2331 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2332 | llvm_cv_link_all_option="" |
| 2333 | llvm_cv_no_link_all_option="" |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2334 | llvm_cv_os_type="Unknown" |
| 2335 | llvm_cv_platform_type="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2336 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2337 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2338 | { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 |
| 2339 | echo "${ECHO_T}$llvm_cv_os_type" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2340 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2341 | if test "$llvm_cv_os_type" = "Unknown" ; then |
| 2342 | { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 |
| 2343 | 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] | 2344 | { (exit 1); exit 1; }; } |
| 2345 | fi |
| 2346 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2347 | OS=$llvm_cv_os_type |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2348 | |
| 2349 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2350 | LINKALL=$llvm_cv_link_all_option |
| 2351 | |
| 2352 | NOLINKALL=$llvm_cv_no_link_all_option |
| 2353 | |
| 2354 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2355 | case $llvm_cv_platform_type in |
| 2356 | Unix) |
| 2357 | |
| 2358 | cat >>confdefs.h <<\_ACEOF |
| 2359 | #define LLVM_ON_UNIX 1 |
| 2360 | _ACEOF |
| 2361 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2362 | LLVM_ON_UNIX=1 |
| 2363 | |
| 2364 | LLVM_ON_WIN32=0 |
| 2365 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2366 | ;; |
| 2367 | Win32) |
| 2368 | |
| 2369 | cat >>confdefs.h <<\_ACEOF |
| 2370 | #define LLVM_ON_WIN32 1 |
| 2371 | _ACEOF |
| 2372 | |
Reid Spencer | bbf7a8a | 2004-12-31 22:54:28 +0000 | [diff] [blame] | 2373 | LLVM_ON_UNIX=0 |
| 2374 | |
| 2375 | LLVM_ON_WIN32=1 |
| 2376 | |
Reid Spencer | 7b3e851 | 2004-12-24 06:29:05 +0000 | [diff] [blame] | 2377 | ;; |
| 2378 | esac |
| 2379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2380 | { echo "$as_me:$LINENO: checking target architecture" >&5 |
| 2381 | echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2382 | if test "${llvm_cv_target_arch+set}" = set; then |
| 2383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2384 | else |
| 2385 | case $target in |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2386 | i?86-*) llvm_cv_target_arch="x86" ;; |
Reid Spencer | 2dc6586 | 2004-12-28 07:56:14 +0000 | [diff] [blame] | 2387 | amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2388 | sparc*-*) llvm_cv_target_arch="Sparc" ;; |
| 2389 | powerpc*-*) llvm_cv_target_arch="PowerPC" ;; |
Andrew Lenharth | 501cb27 | 2005-01-24 17:25:41 +0000 | [diff] [blame] | 2390 | alpha*-*) llvm_cv_target_arch="Alpha" ;; |
Misha Brukman | 1edb190 | 2005-03-17 20:56:22 +0000 | [diff] [blame] | 2391 | ia64-*) llvm_cv_target_arch="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 2392 | arm-*) llvm_cv_target_arch="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 2393 | mips-*) llvm_cv_target_arch="Mips" ;; |
Reid Spencer | ee93c87 | 2004-12-23 21:08:52 +0000 | [diff] [blame] | 2394 | *) llvm_cv_target_arch="Unknown" ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2395 | esac |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2396 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2397 | { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 |
| 2398 | echo "${ECHO_T}$llvm_cv_target_arch" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2399 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2400 | if test "$llvm_cv_target_arch" = "Unknown" ; then |
| 2401 | { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 |
| 2402 | echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} |
| 2403 | fi |
John Criswell | 7659545 | 2003-07-01 22:07:39 +0000 | [diff] [blame] | 2404 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2405 | ARCH=$llvm_cv_target_arch |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2406 | |
Brian Gaeke | 7fe1d16 | 2003-11-17 00:31:43 +0000 | [diff] [blame] | 2407 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2408 | ac_ext=c |
| 2409 | ac_cpp='$CPP $CPPFLAGS' |
| 2410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2413 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2414 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2415 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2416 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2417 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2418 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2420 | else |
| 2421 | if test -n "$CC"; then |
| 2422 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2423 | else |
| 2424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2425 | for as_dir in $PATH |
| 2426 | do |
| 2427 | IFS=$as_save_IFS |
| 2428 | test -z "$as_dir" && as_dir=. |
| 2429 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2431 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2432 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2433 | break 2 |
| 2434 | fi |
| 2435 | done |
| 2436 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2437 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2438 | |
| 2439 | fi |
| 2440 | fi |
| 2441 | CC=$ac_cv_prog_CC |
| 2442 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2443 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2444 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2445 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2446 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2447 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2448 | fi |
| 2449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2450 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2451 | fi |
| 2452 | if test -z "$ac_cv_prog_CC"; then |
| 2453 | ac_ct_CC=$CC |
| 2454 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2455 | set dummy gcc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2458 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2460 | else |
| 2461 | if test -n "$ac_ct_CC"; then |
| 2462 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2463 | else |
| 2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2465 | for as_dir in $PATH |
| 2466 | do |
| 2467 | IFS=$as_save_IFS |
| 2468 | test -z "$as_dir" && as_dir=. |
| 2469 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2471 | ac_cv_prog_ac_ct_CC="gcc" |
| 2472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2473 | break 2 |
| 2474 | fi |
| 2475 | done |
| 2476 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2477 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2478 | |
| 2479 | fi |
| 2480 | fi |
| 2481 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2482 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2483 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2484 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2485 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2487 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2488 | fi |
| 2489 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2490 | if test "x$ac_ct_CC" = x; then |
| 2491 | CC="" |
| 2492 | else |
| 2493 | case $cross_compiling:$ac_tool_warned in |
| 2494 | yes:) |
| 2495 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2496 | whose name does not start with the host triplet. If you think this |
| 2497 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2498 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2499 | whose name does not start with the host triplet. If you think this |
| 2500 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2501 | ac_tool_warned=yes ;; |
| 2502 | esac |
| 2503 | CC=$ac_ct_CC |
| 2504 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2505 | else |
| 2506 | CC="$ac_cv_prog_CC" |
| 2507 | fi |
| 2508 | |
| 2509 | if test -z "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2510 | if test -n "$ac_tool_prefix"; then |
| 2511 | # 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] | 2512 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2513 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2515 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2517 | else |
| 2518 | if test -n "$CC"; then |
| 2519 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2520 | else |
| 2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2522 | for as_dir in $PATH |
| 2523 | do |
| 2524 | IFS=$as_save_IFS |
| 2525 | test -z "$as_dir" && as_dir=. |
| 2526 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2527 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2528 | ac_cv_prog_CC="${ac_tool_prefix}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 | fi |
| 2537 | fi |
| 2538 | CC=$ac_cv_prog_CC |
| 2539 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2540 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2541 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2542 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2543 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2544 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2545 | fi |
| 2546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2547 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2548 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2549 | fi |
| 2550 | if test -z "$CC"; then |
| 2551 | # Extract the first word of "cc", so it can be a program name with args. |
| 2552 | set dummy cc; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2555 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2557 | else |
| 2558 | if test -n "$CC"; then |
| 2559 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2560 | else |
| 2561 | ac_prog_rejected=no |
| 2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2563 | for as_dir in $PATH |
| 2564 | do |
| 2565 | IFS=$as_save_IFS |
| 2566 | test -z "$as_dir" && as_dir=. |
| 2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2569 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2570 | ac_prog_rejected=yes |
| 2571 | continue |
| 2572 | fi |
| 2573 | ac_cv_prog_CC="cc" |
| 2574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2575 | break 2 |
| 2576 | fi |
| 2577 | done |
| 2578 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2579 | IFS=$as_save_IFS |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2580 | |
| 2581 | if test $ac_prog_rejected = yes; then |
| 2582 | # We found a bogon in the path, so make sure we never use it. |
| 2583 | set dummy $ac_cv_prog_CC |
| 2584 | shift |
| 2585 | if test $# != 0; then |
| 2586 | # We chose a different compiler from the bogus one. |
| 2587 | # However, it has the same basename, so the bogon will be chosen |
| 2588 | # first if we set CC to just the basename; use the full file name. |
| 2589 | shift |
| 2590 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2591 | fi |
| 2592 | fi |
| 2593 | fi |
| 2594 | fi |
| 2595 | CC=$ac_cv_prog_CC |
| 2596 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2597 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2598 | echo "${ECHO_T}$CC" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2599 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2600 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2601 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2604 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2605 | fi |
| 2606 | if test -z "$CC"; then |
| 2607 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2608 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2609 | do |
| 2610 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2611 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2614 | if test "${ac_cv_prog_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2616 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2617 | if test -n "$CC"; then |
| 2618 | ac_cv_prog_CC="$CC" # Let the user override the test. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2619 | else |
| 2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2621 | for as_dir in $PATH |
| 2622 | do |
| 2623 | IFS=$as_save_IFS |
| 2624 | test -z "$as_dir" && as_dir=. |
| 2625 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2627 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2629 | break 2 |
| 2630 | fi |
| 2631 | done |
| 2632 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2633 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2634 | |
| 2635 | fi |
| 2636 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2637 | CC=$ac_cv_prog_CC |
| 2638 | if test -n "$CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2639 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2640 | echo "${ECHO_T}$CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2641 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2643 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2646 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2647 | test -n "$CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2648 | done |
| 2649 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2650 | if test -z "$CC"; then |
| 2651 | ac_ct_CC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2652 | for ac_prog in cl.exe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2653 | do |
| 2654 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2655 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2658 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2660 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2661 | if test -n "$ac_ct_CC"; then |
| 2662 | 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] | 2663 | else |
| 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
| 2669 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2671 | ac_cv_prog_ac_ct_CC="$ac_prog" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2673 | break 2 |
| 2674 | fi |
| 2675 | done |
| 2676 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2677 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2678 | |
| 2679 | fi |
| 2680 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2681 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2682 | if test -n "$ac_ct_CC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2683 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2684 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2685 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2687 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2690 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2691 | test -n "$ac_ct_CC" && break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2692 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2693 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2694 | if test "x$ac_ct_CC" = x; then |
| 2695 | CC="" |
| 2696 | else |
| 2697 | case $cross_compiling:$ac_tool_warned in |
| 2698 | yes:) |
| 2699 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2700 | whose name does not start with the host triplet. If you think this |
| 2701 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2702 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2703 | whose name does not start with the host triplet. If you think this |
| 2704 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2705 | ac_tool_warned=yes ;; |
| 2706 | esac |
| 2707 | CC=$ac_ct_CC |
| 2708 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2709 | fi |
| 2710 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2711 | fi |
| 2712 | |
| 2713 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2714 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2715 | See \`config.log' for more details." >&5 |
| 2716 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2717 | See \`config.log' for more details." >&2;} |
| 2718 | { (exit 1); exit 1; }; } |
| 2719 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2720 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2721 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2722 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2723 | { (ac_try="$ac_compiler --version >&5" |
| 2724 | case "(($ac_try" in |
| 2725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2726 | *) ac_try_echo=$ac_try;; |
| 2727 | esac |
| 2728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2729 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2730 | ac_status=$? |
| 2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2732 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2733 | { (ac_try="$ac_compiler -v >&5" |
| 2734 | case "(($ac_try" in |
| 2735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2736 | *) ac_try_echo=$ac_try;; |
| 2737 | esac |
| 2738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2739 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2740 | ac_status=$? |
| 2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2742 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2743 | { (ac_try="$ac_compiler -V >&5" |
| 2744 | case "(($ac_try" in |
| 2745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2746 | *) ac_try_echo=$ac_try;; |
| 2747 | esac |
| 2748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2749 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2750 | ac_status=$? |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); } |
| 2753 | |
| 2754 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2755 | /* confdefs.h. */ |
| 2756 | _ACEOF |
| 2757 | cat confdefs.h >>conftest.$ac_ext |
| 2758 | cat >>conftest.$ac_ext <<_ACEOF |
| 2759 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2760 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2761 | int |
| 2762 | main () |
| 2763 | { |
| 2764 | |
| 2765 | ; |
| 2766 | return 0; |
| 2767 | } |
| 2768 | _ACEOF |
| 2769 | ac_clean_files_save=$ac_clean_files |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2770 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2771 | # Try to create an executable without -o first, disregard a.out. |
| 2772 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2773 | # of exeext. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2774 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2775 | 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] | 2776 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2777 | # |
| 2778 | # List of possible output files, starting from the most likely. |
| 2779 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2780 | # only as a last resort. b.out is created by i960 compilers. |
| 2781 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2782 | # |
| 2783 | # The IRIX 6 linker writes into existing files which may not be |
| 2784 | # executable, retaining their permissions. Remove them first so a |
| 2785 | # subsequent execution test works. |
| 2786 | ac_rmfiles= |
| 2787 | for ac_file in $ac_files |
| 2788 | do |
| 2789 | case $ac_file in |
| 2790 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2791 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2792 | esac |
| 2793 | done |
| 2794 | rm -f $ac_rmfiles |
| 2795 | |
| 2796 | if { (ac_try="$ac_link_default" |
| 2797 | case "(($ac_try" in |
| 2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2799 | *) ac_try_echo=$ac_try;; |
| 2800 | esac |
| 2801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2802 | (eval "$ac_link_default") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2803 | ac_status=$? |
| 2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2805 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2806 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2807 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2808 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2809 | # so that the user can short-circuit this test for compilers unknown to |
| 2810 | # Autoconf. |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2811 | for ac_file in $ac_files '' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2812 | do |
| 2813 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2814 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2815 | *.$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] | 2816 | ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2817 | [ab].out ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2818 | # We found the default executable, but exeext='' is most |
| 2819 | # certainly right. |
| 2820 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2821 | *.* ) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2822 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2823 | then :; else |
| 2824 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2825 | fi |
| 2826 | # We set ac_cv_exeext here because the later test for it is not |
| 2827 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2828 | # argument, so we may need to know it at that point already. |
| 2829 | # Even if this section looks crufty: it has the advantage of |
| 2830 | # actually working. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2831 | break;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2832 | * ) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2833 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2834 | esac |
| 2835 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2836 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2837 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2838 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 2839 | ac_file='' |
| 2840 | fi |
| 2841 | |
| 2842 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2843 | echo "${ECHO_T}$ac_file" >&6; } |
| 2844 | if test -z "$ac_file"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2845 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2847 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2848 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2849 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2850 | echo "$as_me: error: C compiler cannot create executables |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2851 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2852 | { (exit 77); exit 77; }; } |
| 2853 | fi |
| 2854 | |
| 2855 | ac_exeext=$ac_cv_exeext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2857 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2858 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2859 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2860 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2861 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2862 | # If not cross compiling, check that we can run a simple program. |
| 2863 | if test "$cross_compiling" != yes; then |
| 2864 | if { ac_try='./$ac_file' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2865 | { (case "(($ac_try" in |
| 2866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2867 | *) ac_try_echo=$ac_try;; |
| 2868 | esac |
| 2869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2870 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2871 | ac_status=$? |
| 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2873 | (exit $ac_status); }; }; then |
| 2874 | cross_compiling=no |
| 2875 | else |
| 2876 | if test "$cross_compiling" = maybe; then |
| 2877 | cross_compiling=yes |
| 2878 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2879 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2880 | If you meant to cross compile, use \`--host'. |
| 2881 | See \`config.log' for more details." >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 2882 | echo "$as_me: error: cannot run C compiled programs. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2883 | If you meant to cross compile, use \`--host'. |
| 2884 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2885 | { (exit 1); exit 1; }; } |
| 2886 | fi |
| 2887 | fi |
| 2888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2889 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2890 | echo "${ECHO_T}yes" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2891 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2892 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2893 | ac_clean_files=$ac_clean_files_save |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2894 | # Check that the compiler produces executables we can run. If not, either |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2895 | # the compiler is broken, or we cross compile. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2896 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2897 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2898 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2899 | echo "${ECHO_T}$cross_compiling" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2900 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2901 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2902 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2903 | if { (ac_try="$ac_link" |
| 2904 | case "(($ac_try" in |
| 2905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2906 | *) ac_try_echo=$ac_try;; |
| 2907 | esac |
| 2908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2909 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2910 | ac_status=$? |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); }; then |
| 2913 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2914 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2915 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2916 | # `rm'. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2917 | for ac_file in conftest.exe conftest conftest.*; do |
| 2918 | test -f "$ac_file" || continue |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2919 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2920 | *.$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] | 2921 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 2922 | break;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2923 | * ) break;; |
| 2924 | esac |
| 2925 | done |
| 2926 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2927 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2928 | See \`config.log' for more details." >&5 |
| 2929 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2930 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2931 | { (exit 1); exit 1; }; } |
| 2932 | fi |
| 2933 | |
| 2934 | rm -f conftest$ac_cv_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2935 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2936 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2937 | |
| 2938 | rm -f conftest.$ac_ext |
| 2939 | EXEEXT=$ac_cv_exeext |
| 2940 | ac_exeext=$EXEEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2941 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2942 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2943 | if test "${ac_cv_objext+set}" = set; then |
| 2944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2945 | else |
| 2946 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2947 | /* confdefs.h. */ |
| 2948 | _ACEOF |
| 2949 | cat confdefs.h >>conftest.$ac_ext |
| 2950 | cat >>conftest.$ac_ext <<_ACEOF |
| 2951 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2952 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2953 | int |
| 2954 | main () |
| 2955 | { |
| 2956 | |
| 2957 | ; |
| 2958 | return 0; |
| 2959 | } |
| 2960 | _ACEOF |
| 2961 | rm -f conftest.o conftest.obj |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2962 | if { (ac_try="$ac_compile" |
| 2963 | case "(($ac_try" in |
| 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2965 | *) ac_try_echo=$ac_try;; |
| 2966 | esac |
| 2967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2968 | (eval "$ac_compile") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2969 | ac_status=$? |
| 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2971 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2972 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2973 | test -f "$ac_file" || continue; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2974 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2975 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2976 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2977 | break;; |
| 2978 | esac |
| 2979 | done |
| 2980 | else |
| 2981 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 2982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2983 | |
| 2984 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2985 | See \`config.log' for more details." >&5 |
| 2986 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2987 | See \`config.log' for more details." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2988 | { (exit 1); exit 1; }; } |
| 2989 | fi |
| 2990 | |
| 2991 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2992 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2993 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2994 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 2995 | OBJEXT=$ac_cv_objext |
| 2996 | ac_objext=$OBJEXT |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 2997 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2998 | 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] | 2999 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3001 | else |
| 3002 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3003 | /* confdefs.h. */ |
| 3004 | _ACEOF |
| 3005 | cat confdefs.h >>conftest.$ac_ext |
| 3006 | cat >>conftest.$ac_ext <<_ACEOF |
| 3007 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3008 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3009 | int |
| 3010 | main () |
| 3011 | { |
| 3012 | #ifndef __GNUC__ |
| 3013 | choke me |
| 3014 | #endif |
| 3015 | |
| 3016 | ; |
| 3017 | return 0; |
| 3018 | } |
| 3019 | _ACEOF |
| 3020 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3021 | if { (ac_try="$ac_compile" |
| 3022 | case "(($ac_try" in |
| 3023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3024 | *) ac_try_echo=$ac_try;; |
| 3025 | esac |
| 3026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3027 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3028 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3030 | rm -f conftest.er1 |
| 3031 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3033 | (exit $ac_status); } && { |
| 3034 | test -z "$ac_c_werror_flag" || |
| 3035 | test ! -s conftest.err |
| 3036 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3037 | ac_compiler_gnu=yes |
| 3038 | else |
| 3039 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3041 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3042 | ac_compiler_gnu=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3043 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3044 | |
| 3045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3046 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3047 | |
| 3048 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3049 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3050 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3051 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3052 | ac_test_CFLAGS=${CFLAGS+set} |
| 3053 | ac_save_CFLAGS=$CFLAGS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3054 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3055 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3056 | if test "${ac_cv_prog_cc_g+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3058 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3059 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3060 | ac_c_werror_flag=yes |
| 3061 | ac_cv_prog_cc_g=no |
| 3062 | CFLAGS="-g" |
| 3063 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3064 | /* confdefs.h. */ |
| 3065 | _ACEOF |
| 3066 | cat confdefs.h >>conftest.$ac_ext |
| 3067 | cat >>conftest.$ac_ext <<_ACEOF |
| 3068 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3069 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3070 | int |
| 3071 | main () |
| 3072 | { |
| 3073 | |
| 3074 | ; |
| 3075 | return 0; |
| 3076 | } |
| 3077 | _ACEOF |
| 3078 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3079 | if { (ac_try="$ac_compile" |
| 3080 | case "(($ac_try" in |
| 3081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3082 | *) ac_try_echo=$ac_try;; |
| 3083 | esac |
| 3084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3085 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3086 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3088 | rm -f conftest.er1 |
| 3089 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3091 | (exit $ac_status); } && { |
| 3092 | test -z "$ac_c_werror_flag" || |
| 3093 | test ! -s conftest.err |
| 3094 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3095 | ac_cv_prog_cc_g=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3096 | else |
| 3097 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3098 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3099 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3100 | CFLAGS="" |
| 3101 | cat >conftest.$ac_ext <<_ACEOF |
| 3102 | /* confdefs.h. */ |
| 3103 | _ACEOF |
| 3104 | cat confdefs.h >>conftest.$ac_ext |
| 3105 | cat >>conftest.$ac_ext <<_ACEOF |
| 3106 | /* end confdefs.h. */ |
| 3107 | |
| 3108 | int |
| 3109 | main () |
| 3110 | { |
| 3111 | |
| 3112 | ; |
| 3113 | return 0; |
| 3114 | } |
| 3115 | _ACEOF |
| 3116 | rm -f conftest.$ac_objext |
| 3117 | if { (ac_try="$ac_compile" |
| 3118 | case "(($ac_try" in |
| 3119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3120 | *) ac_try_echo=$ac_try;; |
| 3121 | esac |
| 3122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3123 | (eval "$ac_compile") 2>conftest.er1 |
| 3124 | ac_status=$? |
| 3125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3126 | rm -f conftest.er1 |
| 3127 | cat conftest.err >&5 |
| 3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3129 | (exit $ac_status); } && { |
| 3130 | test -z "$ac_c_werror_flag" || |
| 3131 | test ! -s conftest.err |
| 3132 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3133 | : |
| 3134 | else |
| 3135 | echo "$as_me: failed program was:" >&5 |
| 3136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3137 | |
| 3138 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3139 | CFLAGS="-g" |
| 3140 | cat >conftest.$ac_ext <<_ACEOF |
| 3141 | /* confdefs.h. */ |
| 3142 | _ACEOF |
| 3143 | cat confdefs.h >>conftest.$ac_ext |
| 3144 | cat >>conftest.$ac_ext <<_ACEOF |
| 3145 | /* end confdefs.h. */ |
| 3146 | |
| 3147 | int |
| 3148 | main () |
| 3149 | { |
| 3150 | |
| 3151 | ; |
| 3152 | return 0; |
| 3153 | } |
| 3154 | _ACEOF |
| 3155 | rm -f conftest.$ac_objext |
| 3156 | if { (ac_try="$ac_compile" |
| 3157 | case "(($ac_try" in |
| 3158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3159 | *) ac_try_echo=$ac_try;; |
| 3160 | esac |
| 3161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3162 | (eval "$ac_compile") 2>conftest.er1 |
| 3163 | ac_status=$? |
| 3164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3165 | rm -f conftest.er1 |
| 3166 | cat conftest.err >&5 |
| 3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3168 | (exit $ac_status); } && { |
| 3169 | test -z "$ac_c_werror_flag" || |
| 3170 | test ! -s conftest.err |
| 3171 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3172 | ac_cv_prog_cc_g=yes |
| 3173 | else |
| 3174 | echo "$as_me: failed program was:" >&5 |
| 3175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3176 | |
| 3177 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3178 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3179 | |
| 3180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3181 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3182 | |
| 3183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3184 | fi |
| 3185 | |
| 3186 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3187 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3188 | fi |
| 3189 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3190 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3191 | if test "$ac_test_CFLAGS" = set; then |
| 3192 | CFLAGS=$ac_save_CFLAGS |
| 3193 | elif test $ac_cv_prog_cc_g = yes; then |
| 3194 | if test "$GCC" = yes; then |
| 3195 | CFLAGS="-g -O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3196 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3197 | CFLAGS="-g" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3198 | fi |
| 3199 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3200 | if test "$GCC" = yes; then |
| 3201 | CFLAGS="-O2" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3202 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3203 | CFLAGS= |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3204 | fi |
| 3205 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3206 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3207 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3208 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3210 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3211 | ac_cv_prog_cc_c89=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3212 | ac_save_CC=$CC |
| 3213 | cat >conftest.$ac_ext <<_ACEOF |
| 3214 | /* confdefs.h. */ |
| 3215 | _ACEOF |
| 3216 | cat confdefs.h >>conftest.$ac_ext |
| 3217 | cat >>conftest.$ac_ext <<_ACEOF |
| 3218 | /* end confdefs.h. */ |
| 3219 | #include <stdarg.h> |
| 3220 | #include <stdio.h> |
| 3221 | #include <sys/types.h> |
| 3222 | #include <sys/stat.h> |
| 3223 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3224 | struct buf { int x; }; |
| 3225 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3226 | static char *e (p, i) |
| 3227 | char **p; |
| 3228 | int i; |
| 3229 | { |
| 3230 | return p[i]; |
| 3231 | } |
| 3232 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3233 | { |
| 3234 | char *s; |
| 3235 | va_list v; |
| 3236 | va_start (v,p); |
| 3237 | s = g (p, va_arg (v,int)); |
| 3238 | va_end (v); |
| 3239 | return s; |
| 3240 | } |
| 3241 | |
| 3242 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3243 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3244 | These don't provoke an error unfortunately, instead are silently treated |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3245 | 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] | 3246 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3247 | 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] | 3248 | that's true only with -std. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3249 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3250 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3251 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3252 | inside strings and character constants. */ |
| 3253 | #define FOO(x) 'x' |
| 3254 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3255 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3256 | int test (int i, double x); |
| 3257 | struct s1 {int (*f) (int a);}; |
| 3258 | struct s2 {int (*f) (double a);}; |
| 3259 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3260 | int argc; |
| 3261 | char **argv; |
| 3262 | int |
| 3263 | main () |
| 3264 | { |
| 3265 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3266 | ; |
| 3267 | return 0; |
| 3268 | } |
| 3269 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3270 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3271 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3272 | do |
| 3273 | CC="$ac_save_CC $ac_arg" |
| 3274 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3275 | if { (ac_try="$ac_compile" |
| 3276 | case "(($ac_try" in |
| 3277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3278 | *) ac_try_echo=$ac_try;; |
| 3279 | esac |
| 3280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3281 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3282 | ac_status=$? |
| 3283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3284 | rm -f conftest.er1 |
| 3285 | cat conftest.err >&5 |
| 3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3287 | (exit $ac_status); } && { |
| 3288 | test -z "$ac_c_werror_flag" || |
| 3289 | test ! -s conftest.err |
| 3290 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3291 | ac_cv_prog_cc_c89=$ac_arg |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3292 | else |
| 3293 | echo "$as_me: failed program was:" >&5 |
| 3294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3296 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3297 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3298 | |
| 3299 | rm -f core conftest.err conftest.$ac_objext |
| 3300 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3301 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3302 | rm -f conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3303 | CC=$ac_save_CC |
| 3304 | |
| 3305 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3306 | # AC_CACHE_VAL |
| 3307 | case "x$ac_cv_prog_cc_c89" in |
| 3308 | x) |
| 3309 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3310 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3311 | xno) |
| 3312 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3313 | echo "${ECHO_T}unsupported" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3314 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3315 | CC="$CC $ac_cv_prog_cc_c89" |
| 3316 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3317 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3318 | esac |
| 3319 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3320 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3321 | ac_ext=c |
| 3322 | ac_cpp='$CPP $CPPFLAGS' |
| 3323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3326 | |
| 3327 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3328 | ac_ext=c |
| 3329 | ac_cpp='$CPP $CPPFLAGS' |
| 3330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3333 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3334 | 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] | 3335 | # On Suns, sometimes $CPP names a directory. |
| 3336 | if test -n "$CPP" && test -d "$CPP"; then |
| 3337 | CPP= |
| 3338 | fi |
| 3339 | if test -z "$CPP"; then |
| 3340 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3342 | else |
| 3343 | # Double quotes because CPP needs to be expanded |
| 3344 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3345 | do |
| 3346 | ac_preproc_ok=false |
| 3347 | for ac_c_preproc_warn_flag in '' yes |
| 3348 | do |
| 3349 | # Use a header file that comes with gcc, so configuring glibc |
| 3350 | # with a fresh cross-compiler works. |
| 3351 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3352 | # <limits.h> exists even on freestanding compilers. |
| 3353 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3354 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3355 | cat >conftest.$ac_ext <<_ACEOF |
| 3356 | /* confdefs.h. */ |
| 3357 | _ACEOF |
| 3358 | cat confdefs.h >>conftest.$ac_ext |
| 3359 | cat >>conftest.$ac_ext <<_ACEOF |
| 3360 | /* end confdefs.h. */ |
| 3361 | #ifdef __STDC__ |
| 3362 | # include <limits.h> |
| 3363 | #else |
| 3364 | # include <assert.h> |
| 3365 | #endif |
| 3366 | Syntax error |
| 3367 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3368 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3369 | case "(($ac_try" in |
| 3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3371 | *) ac_try_echo=$ac_try;; |
| 3372 | esac |
| 3373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3374 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3375 | ac_status=$? |
| 3376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3377 | rm -f conftest.er1 |
| 3378 | cat conftest.err >&5 |
| 3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3380 | (exit $ac_status); } >/dev/null && { |
| 3381 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3382 | test ! -s conftest.err |
| 3383 | }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3384 | : |
| 3385 | else |
| 3386 | echo "$as_me: failed program was:" >&5 |
| 3387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3388 | |
| 3389 | # Broken: fails on valid input. |
| 3390 | continue |
| 3391 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3392 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3393 | rm -f conftest.err conftest.$ac_ext |
| 3394 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3395 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3396 | # can be detected and how. |
| 3397 | cat >conftest.$ac_ext <<_ACEOF |
| 3398 | /* confdefs.h. */ |
| 3399 | _ACEOF |
| 3400 | cat confdefs.h >>conftest.$ac_ext |
| 3401 | cat >>conftest.$ac_ext <<_ACEOF |
| 3402 | /* end confdefs.h. */ |
| 3403 | #include <ac_nonexistent.h> |
| 3404 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3405 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3406 | case "(($ac_try" in |
| 3407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3408 | *) ac_try_echo=$ac_try;; |
| 3409 | esac |
| 3410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3412 | ac_status=$? |
| 3413 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3414 | rm -f conftest.er1 |
| 3415 | cat conftest.err >&5 |
| 3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3417 | (exit $ac_status); } >/dev/null && { |
| 3418 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3419 | test ! -s conftest.err |
| 3420 | }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3421 | # Broken: success on invalid input. |
| 3422 | continue |
| 3423 | else |
| 3424 | echo "$as_me: failed program was:" >&5 |
| 3425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3426 | |
| 3427 | # Passes both tests. |
| 3428 | ac_preproc_ok=: |
| 3429 | break |
| 3430 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3431 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3432 | rm -f conftest.err conftest.$ac_ext |
| 3433 | |
| 3434 | done |
| 3435 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3436 | rm -f conftest.err conftest.$ac_ext |
| 3437 | if $ac_preproc_ok; then |
| 3438 | break |
| 3439 | fi |
| 3440 | |
| 3441 | done |
| 3442 | ac_cv_prog_CPP=$CPP |
| 3443 | |
| 3444 | fi |
| 3445 | CPP=$ac_cv_prog_CPP |
| 3446 | else |
| 3447 | ac_cv_prog_CPP=$CPP |
| 3448 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3449 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3450 | echo "${ECHO_T}$CPP" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3451 | ac_preproc_ok=false |
| 3452 | for ac_c_preproc_warn_flag in '' yes |
| 3453 | do |
| 3454 | # Use a header file that comes with gcc, so configuring glibc |
| 3455 | # with a fresh cross-compiler works. |
| 3456 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3457 | # <limits.h> exists even on freestanding compilers. |
| 3458 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3459 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3460 | cat >conftest.$ac_ext <<_ACEOF |
| 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
| 3465 | /* end confdefs.h. */ |
| 3466 | #ifdef __STDC__ |
| 3467 | # include <limits.h> |
| 3468 | #else |
| 3469 | # include <assert.h> |
| 3470 | #endif |
| 3471 | Syntax error |
| 3472 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3473 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3474 | case "(($ac_try" in |
| 3475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3476 | *) ac_try_echo=$ac_try;; |
| 3477 | esac |
| 3478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3479 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3480 | ac_status=$? |
| 3481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3482 | rm -f conftest.er1 |
| 3483 | cat conftest.err >&5 |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3485 | (exit $ac_status); } >/dev/null && { |
| 3486 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3487 | test ! -s conftest.err |
| 3488 | }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3489 | : |
| 3490 | else |
| 3491 | echo "$as_me: failed program was:" >&5 |
| 3492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3493 | |
| 3494 | # Broken: fails on valid input. |
| 3495 | continue |
| 3496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3497 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3498 | rm -f conftest.err conftest.$ac_ext |
| 3499 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3500 | # OK, works on sane cases. Now check whether nonexistent headers |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3501 | # can be detected and how. |
| 3502 | cat >conftest.$ac_ext <<_ACEOF |
| 3503 | /* confdefs.h. */ |
| 3504 | _ACEOF |
| 3505 | cat confdefs.h >>conftest.$ac_ext |
| 3506 | cat >>conftest.$ac_ext <<_ACEOF |
| 3507 | /* end confdefs.h. */ |
| 3508 | #include <ac_nonexistent.h> |
| 3509 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3510 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3511 | case "(($ac_try" in |
| 3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3513 | *) ac_try_echo=$ac_try;; |
| 3514 | esac |
| 3515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3516 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3517 | ac_status=$? |
| 3518 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3519 | rm -f conftest.er1 |
| 3520 | cat conftest.err >&5 |
| 3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3522 | (exit $ac_status); } >/dev/null && { |
| 3523 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3524 | test ! -s conftest.err |
| 3525 | }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3526 | # Broken: success on invalid input. |
| 3527 | continue |
| 3528 | else |
| 3529 | echo "$as_me: failed program was:" >&5 |
| 3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3531 | |
| 3532 | # Passes both tests. |
| 3533 | ac_preproc_ok=: |
| 3534 | break |
| 3535 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3536 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 3537 | rm -f conftest.err conftest.$ac_ext |
| 3538 | |
| 3539 | done |
| 3540 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3541 | rm -f conftest.err conftest.$ac_ext |
| 3542 | if $ac_preproc_ok; then |
| 3543 | : |
| 3544 | else |
| 3545 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3546 | See \`config.log' for more details." >&5 |
| 3547 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3548 | See \`config.log' for more details." >&2;} |
| 3549 | { (exit 1); exit 1; }; } |
| 3550 | fi |
| 3551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3552 | ac_ext=c |
| 3553 | ac_cpp='$CPP $CPPFLAGS' |
| 3554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3557 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3558 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3559 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3560 | 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] | 3561 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3563 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3564 | # Extract the first word of "grep ggrep" to use in msg output |
| 3565 | if test -z "$GREP"; then |
| 3566 | set dummy grep ggrep; ac_prog_name=$2 |
| 3567 | if test "${ac_cv_path_GREP+set}" = set; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3569 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3570 | ac_path_GREP_found=false |
| 3571 | # 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] | 3572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3573 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3574 | do |
| 3575 | IFS=$as_save_IFS |
| 3576 | test -z "$as_dir" && as_dir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3577 | for ac_prog in grep ggrep; do |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3578 | for ac_exec_ext in '' $ac_executable_extensions; do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3579 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3580 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3581 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3582 | # Check for GNU $ac_path_GREP |
| 3583 | case `"$ac_path_GREP" --version 2>&1` in |
| 3584 | *GNU*) |
| 3585 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3586 | *) |
| 3587 | ac_count=0 |
| 3588 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3589 | while : |
| 3590 | do |
| 3591 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3592 | mv "conftest.tmp" "conftest.in" |
| 3593 | cp "conftest.in" "conftest.nl" |
| 3594 | echo 'GREP' >> "conftest.nl" |
| 3595 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3596 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3597 | ac_count=`expr $ac_count + 1` |
| 3598 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3599 | # Best one so far, save it but keep looking for a better one |
| 3600 | ac_cv_path_GREP="$ac_path_GREP" |
| 3601 | ac_path_GREP_max=$ac_count |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3602 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3603 | # 10*(2^10) chars as input seems more than enough |
| 3604 | test $ac_count -gt 10 && break |
| 3605 | done |
| 3606 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3607 | esac |
| 3608 | |
| 3609 | |
| 3610 | $ac_path_GREP_found && break 3 |
| 3611 | done |
| 3612 | done |
| 3613 | |
| 3614 | done |
| 3615 | IFS=$as_save_IFS |
| 3616 | |
| 3617 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3618 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3619 | |
| 3620 | GREP="$ac_cv_path_GREP" |
| 3621 | if test -z "$GREP"; then |
| 3622 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3623 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3624 | { (exit 1); exit 1; }; } |
| 3625 | fi |
| 3626 | |
| 3627 | else |
| 3628 | ac_cv_path_GREP=$GREP |
| 3629 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 3630 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3631 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3632 | fi |
| 3633 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3634 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3635 | GREP="$ac_cv_path_GREP" |
| 3636 | |
| 3637 | |
| 3638 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3639 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3640 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3642 | else |
| 3643 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3644 | then ac_cv_path_EGREP="$GREP -E" |
| 3645 | else |
| 3646 | # Extract the first word of "egrep" to use in msg output |
| 3647 | if test -z "$EGREP"; then |
| 3648 | set dummy egrep; ac_prog_name=$2 |
| 3649 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3651 | else |
| 3652 | ac_path_EGREP_found=false |
| 3653 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3655 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3656 | do |
| 3657 | IFS=$as_save_IFS |
| 3658 | test -z "$as_dir" && as_dir=. |
| 3659 | for ac_prog in egrep; do |
| 3660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3661 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3662 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3663 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3664 | # Check for GNU $ac_path_EGREP |
| 3665 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3666 | *GNU*) |
| 3667 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3668 | *) |
| 3669 | ac_count=0 |
| 3670 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3671 | while : |
| 3672 | do |
| 3673 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3674 | mv "conftest.tmp" "conftest.in" |
| 3675 | cp "conftest.in" "conftest.nl" |
| 3676 | echo 'EGREP' >> "conftest.nl" |
| 3677 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3679 | ac_count=`expr $ac_count + 1` |
| 3680 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3681 | # Best one so far, save it but keep looking for a better one |
| 3682 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3683 | ac_path_EGREP_max=$ac_count |
| 3684 | fi |
| 3685 | # 10*(2^10) chars as input seems more than enough |
| 3686 | test $ac_count -gt 10 && break |
| 3687 | done |
| 3688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3689 | esac |
| 3690 | |
| 3691 | |
| 3692 | $ac_path_EGREP_found && break 3 |
| 3693 | done |
| 3694 | done |
| 3695 | |
| 3696 | done |
| 3697 | IFS=$as_save_IFS |
| 3698 | |
| 3699 | |
| 3700 | fi |
| 3701 | |
| 3702 | EGREP="$ac_cv_path_EGREP" |
| 3703 | if test -z "$EGREP"; then |
| 3704 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3705 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3706 | { (exit 1); exit 1; }; } |
| 3707 | fi |
| 3708 | |
| 3709 | else |
| 3710 | ac_cv_path_EGREP=$EGREP |
| 3711 | fi |
| 3712 | |
| 3713 | |
| 3714 | fi |
| 3715 | fi |
| 3716 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3717 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3718 | EGREP="$ac_cv_path_EGREP" |
| 3719 | |
| 3720 | |
| 3721 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3722 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3723 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3725 | else |
| 3726 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3727 | /* confdefs.h. */ |
| 3728 | _ACEOF |
| 3729 | cat confdefs.h >>conftest.$ac_ext |
| 3730 | cat >>conftest.$ac_ext <<_ACEOF |
| 3731 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3732 | #include <stdlib.h> |
| 3733 | #include <stdarg.h> |
| 3734 | #include <string.h> |
| 3735 | #include <float.h> |
| 3736 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3737 | int |
| 3738 | main () |
| 3739 | { |
| 3740 | |
| 3741 | ; |
| 3742 | return 0; |
| 3743 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3744 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3745 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3746 | if { (ac_try="$ac_compile" |
| 3747 | case "(($ac_try" in |
| 3748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3749 | *) ac_try_echo=$ac_try;; |
| 3750 | esac |
| 3751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3752 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3753 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3755 | rm -f conftest.er1 |
| 3756 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3758 | (exit $ac_status); } && { |
| 3759 | test -z "$ac_c_werror_flag" || |
| 3760 | test ! -s conftest.err |
| 3761 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3762 | ac_cv_header_stdc=yes |
| 3763 | else |
| 3764 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3767 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3768 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3769 | |
| 3770 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3771 | |
| 3772 | if test $ac_cv_header_stdc = yes; then |
| 3773 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3774 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3775 | /* confdefs.h. */ |
| 3776 | _ACEOF |
| 3777 | cat confdefs.h >>conftest.$ac_ext |
| 3778 | cat >>conftest.$ac_ext <<_ACEOF |
| 3779 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3780 | #include <string.h> |
| 3781 | |
| 3782 | _ACEOF |
| 3783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3784 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3785 | : |
| 3786 | else |
| 3787 | ac_cv_header_stdc=no |
| 3788 | fi |
| 3789 | rm -f conftest* |
| 3790 | |
| 3791 | fi |
| 3792 | |
| 3793 | if test $ac_cv_header_stdc = yes; then |
| 3794 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3795 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3796 | /* confdefs.h. */ |
| 3797 | _ACEOF |
| 3798 | cat confdefs.h >>conftest.$ac_ext |
| 3799 | cat >>conftest.$ac_ext <<_ACEOF |
| 3800 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3801 | #include <stdlib.h> |
| 3802 | |
| 3803 | _ACEOF |
| 3804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3805 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3806 | : |
| 3807 | else |
| 3808 | ac_cv_header_stdc=no |
| 3809 | fi |
| 3810 | rm -f conftest* |
| 3811 | |
| 3812 | fi |
| 3813 | |
| 3814 | if test $ac_cv_header_stdc = yes; then |
| 3815 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3816 | if test "$cross_compiling" = yes; then |
| 3817 | : |
| 3818 | else |
| 3819 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3820 | /* confdefs.h. */ |
| 3821 | _ACEOF |
| 3822 | cat confdefs.h >>conftest.$ac_ext |
| 3823 | cat >>conftest.$ac_ext <<_ACEOF |
| 3824 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3825 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3826 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3827 | #if ((' ' & 0x0FF) == 0x020) |
| 3828 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3829 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3830 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3831 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3832 | (('a' <= (c) && (c) <= 'i') \ |
| 3833 | || ('j' <= (c) && (c) <= 'r') \ |
| 3834 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3835 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3836 | #endif |
| 3837 | |
| 3838 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3839 | int |
| 3840 | main () |
| 3841 | { |
| 3842 | int i; |
| 3843 | for (i = 0; i < 256; i++) |
| 3844 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 3845 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3846 | return 2; |
| 3847 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3848 | } |
| 3849 | _ACEOF |
| 3850 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3851 | if { (ac_try="$ac_link" |
| 3852 | case "(($ac_try" in |
| 3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3854 | *) ac_try_echo=$ac_try;; |
| 3855 | esac |
| 3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3857 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3861 | { (case "(($ac_try" in |
| 3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3863 | *) ac_try_echo=$ac_try;; |
| 3864 | esac |
| 3865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3866 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3867 | ac_status=$? |
| 3868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3869 | (exit $ac_status); }; }; then |
| 3870 | : |
| 3871 | else |
| 3872 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3873 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 3874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3875 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3876 | ( exit $ac_status ) |
| 3877 | ac_cv_header_stdc=no |
| 3878 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3879 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3880 | fi |
| 3881 | |
| 3882 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3883 | fi |
| 3884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3885 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3886 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 3887 | if test $ac_cv_header_stdc = yes; then |
| 3888 | |
| 3889 | cat >>confdefs.h <<\_ACEOF |
| 3890 | #define STDC_HEADERS 1 |
| 3891 | _ACEOF |
| 3892 | |
| 3893 | fi |
| 3894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3895 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3906 | inttypes.h stdint.h unistd.h |
| 3907 | do |
| 3908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3910 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3911 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3913 | else |
| 3914 | cat >conftest.$ac_ext <<_ACEOF |
| 3915 | /* confdefs.h. */ |
| 3916 | _ACEOF |
| 3917 | cat confdefs.h >>conftest.$ac_ext |
| 3918 | cat >>conftest.$ac_ext <<_ACEOF |
| 3919 | /* end confdefs.h. */ |
| 3920 | $ac_includes_default |
| 3921 | |
| 3922 | #include <$ac_header> |
| 3923 | _ACEOF |
| 3924 | rm -f conftest.$ac_objext |
| 3925 | if { (ac_try="$ac_compile" |
| 3926 | case "(($ac_try" in |
| 3927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3928 | *) ac_try_echo=$ac_try;; |
| 3929 | esac |
| 3930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3931 | (eval "$ac_compile") 2>conftest.er1 |
| 3932 | ac_status=$? |
| 3933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3934 | rm -f conftest.er1 |
| 3935 | cat conftest.err >&5 |
| 3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3937 | (exit $ac_status); } && { |
| 3938 | test -z "$ac_c_werror_flag" || |
| 3939 | test ! -s conftest.err |
| 3940 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3941 | eval "$as_ac_Header=yes" |
| 3942 | else |
| 3943 | echo "$as_me: failed program was:" >&5 |
| 3944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3945 | |
| 3946 | eval "$as_ac_Header=no" |
| 3947 | fi |
| 3948 | |
| 3949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3950 | fi |
| 3951 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3952 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3953 | echo "${ECHO_T}$ac_res" >&6; } |
| 3954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3955 | cat >>confdefs.h <<_ACEOF |
| 3956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3957 | _ACEOF |
| 3958 | |
| 3959 | fi |
| 3960 | |
| 3961 | done |
| 3962 | |
| 3963 | |
| 3964 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 3965 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
| 3966 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 3967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3968 | else |
| 3969 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 3970 | cat >conftest.$ac_ext <<_ACEOF |
| 3971 | /* confdefs.h. */ |
| 3972 | _ACEOF |
| 3973 | cat confdefs.h >>conftest.$ac_ext |
| 3974 | cat >>conftest.$ac_ext <<_ACEOF |
| 3975 | /* end confdefs.h. */ |
| 3976 | #include <sys/types.h> |
| 3977 | #include <sys/param.h> |
| 3978 | |
| 3979 | int |
| 3980 | main () |
| 3981 | { |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 3982 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 3983 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 3984 | bogus endian macros |
| 3985 | #endif |
| 3986 | |
| 3987 | ; |
| 3988 | return 0; |
| 3989 | } |
| 3990 | _ACEOF |
| 3991 | rm -f conftest.$ac_objext |
| 3992 | if { (ac_try="$ac_compile" |
| 3993 | case "(($ac_try" in |
| 3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3995 | *) ac_try_echo=$ac_try;; |
| 3996 | esac |
| 3997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3998 | (eval "$ac_compile") 2>conftest.er1 |
| 3999 | ac_status=$? |
| 4000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4001 | rm -f conftest.er1 |
| 4002 | cat conftest.err >&5 |
| 4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4004 | (exit $ac_status); } && { |
| 4005 | test -z "$ac_c_werror_flag" || |
| 4006 | test ! -s conftest.err |
| 4007 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4008 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 4009 | cat >conftest.$ac_ext <<_ACEOF |
| 4010 | /* confdefs.h. */ |
| 4011 | _ACEOF |
| 4012 | cat confdefs.h >>conftest.$ac_ext |
| 4013 | cat >>conftest.$ac_ext <<_ACEOF |
| 4014 | /* end confdefs.h. */ |
| 4015 | #include <sys/types.h> |
| 4016 | #include <sys/param.h> |
| 4017 | |
| 4018 | int |
| 4019 | main () |
| 4020 | { |
| 4021 | #if BYTE_ORDER != BIG_ENDIAN |
| 4022 | not big endian |
| 4023 | #endif |
| 4024 | |
| 4025 | ; |
| 4026 | return 0; |
| 4027 | } |
| 4028 | _ACEOF |
| 4029 | rm -f conftest.$ac_objext |
| 4030 | if { (ac_try="$ac_compile" |
| 4031 | case "(($ac_try" in |
| 4032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4033 | *) ac_try_echo=$ac_try;; |
| 4034 | esac |
| 4035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4036 | (eval "$ac_compile") 2>conftest.er1 |
| 4037 | ac_status=$? |
| 4038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4039 | rm -f conftest.er1 |
| 4040 | cat conftest.err >&5 |
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4042 | (exit $ac_status); } && { |
| 4043 | test -z "$ac_c_werror_flag" || |
| 4044 | test ! -s conftest.err |
| 4045 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4046 | ac_cv_c_bigendian=yes |
| 4047 | else |
| 4048 | echo "$as_me: failed program was:" >&5 |
| 4049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4050 | |
| 4051 | ac_cv_c_bigendian=no |
| 4052 | fi |
| 4053 | |
| 4054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4055 | else |
| 4056 | echo "$as_me: failed program was:" >&5 |
| 4057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4058 | |
| 4059 | # It does not; compile a test program. |
| 4060 | if test "$cross_compiling" = yes; then |
| 4061 | # try to guess the endianness by grepping values into an object file |
| 4062 | ac_cv_c_bigendian=unknown |
| 4063 | cat >conftest.$ac_ext <<_ACEOF |
| 4064 | /* confdefs.h. */ |
| 4065 | _ACEOF |
| 4066 | cat confdefs.h >>conftest.$ac_ext |
| 4067 | cat >>conftest.$ac_ext <<_ACEOF |
| 4068 | /* end confdefs.h. */ |
| 4069 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 4070 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 4071 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 4072 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 4073 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 4074 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 4075 | int |
| 4076 | main () |
| 4077 | { |
| 4078 | _ascii (); _ebcdic (); |
| 4079 | ; |
| 4080 | return 0; |
| 4081 | } |
| 4082 | _ACEOF |
| 4083 | rm -f conftest.$ac_objext |
| 4084 | if { (ac_try="$ac_compile" |
| 4085 | case "(($ac_try" in |
| 4086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4087 | *) ac_try_echo=$ac_try;; |
| 4088 | esac |
| 4089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4090 | (eval "$ac_compile") 2>conftest.er1 |
| 4091 | ac_status=$? |
| 4092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4093 | rm -f conftest.er1 |
| 4094 | cat conftest.err >&5 |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4096 | (exit $ac_status); } && { |
| 4097 | test -z "$ac_c_werror_flag" || |
| 4098 | test ! -s conftest.err |
| 4099 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4100 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 4101 | ac_cv_c_bigendian=yes |
| 4102 | fi |
| 4103 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 4104 | if test "$ac_cv_c_bigendian" = unknown; then |
| 4105 | ac_cv_c_bigendian=no |
| 4106 | else |
| 4107 | # finding both strings is unlikely to happen, but who knows? |
| 4108 | ac_cv_c_bigendian=unknown |
| 4109 | fi |
| 4110 | fi |
| 4111 | else |
| 4112 | echo "$as_me: failed program was:" >&5 |
| 4113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4114 | |
| 4115 | |
| 4116 | fi |
| 4117 | |
| 4118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4119 | else |
| 4120 | cat >conftest.$ac_ext <<_ACEOF |
| 4121 | /* confdefs.h. */ |
| 4122 | _ACEOF |
| 4123 | cat confdefs.h >>conftest.$ac_ext |
| 4124 | cat >>conftest.$ac_ext <<_ACEOF |
| 4125 | /* end confdefs.h. */ |
| 4126 | $ac_includes_default |
| 4127 | int |
| 4128 | main () |
| 4129 | { |
| 4130 | |
| 4131 | /* Are we little or big endian? From Harbison&Steele. */ |
| 4132 | union |
| 4133 | { |
| 4134 | long int l; |
| 4135 | char c[sizeof (long int)]; |
| 4136 | } u; |
| 4137 | u.l = 1; |
| 4138 | return u.c[sizeof (long int) - 1] == 1; |
| 4139 | |
| 4140 | ; |
| 4141 | return 0; |
| 4142 | } |
| 4143 | _ACEOF |
| 4144 | rm -f conftest$ac_exeext |
| 4145 | if { (ac_try="$ac_link" |
| 4146 | case "(($ac_try" in |
| 4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4148 | *) ac_try_echo=$ac_try;; |
| 4149 | esac |
| 4150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4151 | (eval "$ac_link") 2>&5 |
| 4152 | ac_status=$? |
| 4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4155 | { (case "(($ac_try" in |
| 4156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4157 | *) ac_try_echo=$ac_try;; |
| 4158 | esac |
| 4159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4160 | (eval "$ac_try") 2>&5 |
| 4161 | ac_status=$? |
| 4162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4163 | (exit $ac_status); }; }; then |
| 4164 | ac_cv_c_bigendian=no |
| 4165 | else |
| 4166 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4167 | echo "$as_me: failed program was:" >&5 |
| 4168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4169 | |
| 4170 | ( exit $ac_status ) |
| 4171 | ac_cv_c_bigendian=yes |
| 4172 | fi |
| 4173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4174 | fi |
| 4175 | |
| 4176 | |
| 4177 | fi |
| 4178 | |
| 4179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4180 | fi |
| 4181 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 4182 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
| 4183 | case $ac_cv_c_bigendian in |
| 4184 | yes) |
| 4185 | ENDIAN=big |
| 4186 | ;; |
| 4187 | no) |
| 4188 | ENDIAN=little |
| 4189 | ;; |
| 4190 | *) |
| 4191 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 4192 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 4193 | echo "$as_me: error: unknown endianness |
| 4194 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 4195 | { (exit 1); exit 1; }; } ;; |
| 4196 | esac |
| 4197 | |
| 4198 | |
| 4199 | if test "$cross_compiling" = yes; then |
| 4200 | LLVM_CROSS_COMPILING=1 |
| 4201 | |
| 4202 | |
| 4203 | { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 |
| 4204 | echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } |
| 4205 | if test "${ac_cv_build_exeext+set}" = set; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4207 | else |
| 4208 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 4209 | ac_cv_build_exeext=.exe |
| 4210 | else |
| 4211 | ac_build_prefix=${build_alias}- |
| 4212 | |
| 4213 | # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. |
| 4214 | set dummy ${ac_build_prefix}gcc; ac_word=$2 |
| 4215 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4217 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4219 | else |
| 4220 | if test -n "$BUILD_CC"; then |
| 4221 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4222 | else |
| 4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4224 | for as_dir in $PATH |
| 4225 | do |
| 4226 | IFS=$as_save_IFS |
| 4227 | test -z "$as_dir" && as_dir=. |
| 4228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4230 | ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" |
| 4231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4232 | break 2 |
| 4233 | fi |
| 4234 | done |
| 4235 | done |
| 4236 | IFS=$as_save_IFS |
| 4237 | |
| 4238 | fi |
| 4239 | fi |
| 4240 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4241 | if test -n "$BUILD_CC"; then |
| 4242 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4243 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4244 | else |
| 4245 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4246 | echo "${ECHO_T}no" >&6; } |
| 4247 | fi |
| 4248 | |
| 4249 | |
| 4250 | if test -z "$BUILD_CC"; then |
| 4251 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4252 | set dummy gcc; ac_word=$2 |
| 4253 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4255 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4257 | else |
| 4258 | if test -n "$BUILD_CC"; then |
| 4259 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4260 | else |
| 4261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4262 | for as_dir in $PATH |
| 4263 | do |
| 4264 | IFS=$as_save_IFS |
| 4265 | test -z "$as_dir" && as_dir=. |
| 4266 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4268 | ac_cv_prog_BUILD_CC="gcc" |
| 4269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4270 | break 2 |
| 4271 | fi |
| 4272 | done |
| 4273 | done |
| 4274 | IFS=$as_save_IFS |
| 4275 | |
| 4276 | fi |
| 4277 | fi |
| 4278 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4279 | if test -n "$BUILD_CC"; then |
| 4280 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4281 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4282 | else |
| 4283 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4284 | echo "${ECHO_T}no" >&6; } |
| 4285 | fi |
| 4286 | |
| 4287 | |
| 4288 | if test -z "$BUILD_CC"; then |
| 4289 | # Extract the first word of "cc", so it can be a program name with args. |
| 4290 | set dummy cc; ac_word=$2 |
| 4291 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4293 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 4294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4295 | else |
| 4296 | if test -n "$BUILD_CC"; then |
| 4297 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 4298 | else |
| 4299 | ac_prog_rejected=no |
| 4300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4301 | for as_dir in $PATH |
| 4302 | do |
| 4303 | IFS=$as_save_IFS |
| 4304 | test -z "$as_dir" && as_dir=. |
| 4305 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4307 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4308 | ac_prog_rejected=yes |
| 4309 | continue |
| 4310 | fi |
| 4311 | ac_cv_prog_BUILD_CC="cc" |
| 4312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4313 | break 2 |
| 4314 | fi |
| 4315 | done |
| 4316 | done |
| 4317 | IFS=$as_save_IFS |
| 4318 | |
| 4319 | if test $ac_prog_rejected = yes; then |
| 4320 | # We found a bogon in the path, so make sure we never use it. |
| 4321 | set dummy $ac_cv_prog_BUILD_CC |
| 4322 | shift |
| 4323 | if test $# != 0; then |
| 4324 | # We chose a different compiler from the bogus one. |
| 4325 | # However, it has the same basename, so the bogon will be chosen |
| 4326 | # first if we set BUILD_CC to just the basename; use the full file name. |
| 4327 | shift |
| 4328 | ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" |
| 4329 | fi |
| 4330 | fi |
| 4331 | fi |
| 4332 | fi |
| 4333 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 4334 | if test -n "$BUILD_CC"; then |
| 4335 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 4336 | echo "${ECHO_T}$BUILD_CC" >&6; } |
| 4337 | else |
| 4338 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4339 | echo "${ECHO_T}no" >&6; } |
| 4340 | fi |
| 4341 | |
| 4342 | |
| 4343 | fi |
| 4344 | fi |
| 4345 | test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 |
| 4346 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 4347 | { (exit 1); exit 1; }; } |
| 4348 | ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 4349 | rm -f conftest* |
| 4350 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 4351 | ac_cv_build_exeext= |
| 4352 | if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 |
| 4353 | (eval $ac_build_link) 2>&5 |
| 4354 | ac_status=$? |
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4356 | (exit $ac_status); }; then |
| 4357 | for file in conftest.*; do |
| 4358 | case $file in |
| 4359 | *.c | *.o | *.obj) ;; |
| 4360 | *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; |
| 4361 | esac |
| 4362 | done |
| 4363 | else |
| 4364 | { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 |
| 4365 | echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} |
| 4366 | { (exit 1); exit 1; }; } |
| 4367 | fi |
| 4368 | rm -f conftest* |
| 4369 | test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank |
| 4370 | fi |
| 4371 | fi |
| 4372 | |
| 4373 | BUILD_EXEEXT="" |
| 4374 | test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} |
| 4375 | { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 |
| 4376 | echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } |
| 4377 | ac_build_exeext=$BUILD_EXEEXT |
| 4378 | |
| 4379 | else |
| 4380 | LLVM_CROSS_COMPILING=0 |
| 4381 | |
| 4382 | fi |
| 4383 | |
Reid Spencer | 0b1e466 | 2007-04-02 15:41:39 +0000 | [diff] [blame] | 4384 | if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4385 | cvsbuild="yes" |
| 4386 | optimize="no" |
| 4387 | CVSBUILD=CVSBUILD=1 |
| 4388 | |
| 4389 | else |
| 4390 | cvsbuild="no" |
| 4391 | optimize="yes" |
| 4392 | fi |
| 4393 | |
| 4394 | |
| 4395 | # Check whether --enable-optimized was given. |
| 4396 | if test "${enable_optimized+set}" = set; then |
| 4397 | enableval=$enable_optimized; |
| 4398 | else |
| 4399 | enableval=$optimize |
| 4400 | fi |
| 4401 | |
| 4402 | if test ${enableval} = "no" ; then |
| 4403 | ENABLE_OPTIMIZED= |
| 4404 | |
| 4405 | else |
| 4406 | ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 |
| 4407 | |
| 4408 | fi |
| 4409 | |
| 4410 | # Check whether --enable-assertions was given. |
| 4411 | if test "${enable_assertions+set}" = set; then |
| 4412 | enableval=$enable_assertions; |
| 4413 | else |
| 4414 | enableval="yes" |
| 4415 | fi |
| 4416 | |
| 4417 | if test ${enableval} = "yes" ; then |
| 4418 | DISABLE_ASSERTIONS= |
| 4419 | |
| 4420 | else |
| 4421 | DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 |
| 4422 | |
| 4423 | fi |
| 4424 | |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 4425 | # Check whether --enable-expensive-checks was given. |
| 4426 | if test "${enable_expensive_checks+set}" = set; then |
| 4427 | enableval=$enable_expensive_checks; |
| 4428 | else |
| 4429 | enableval="no" |
| 4430 | fi |
| 4431 | |
| 4432 | if test ${enableval} = "yes" ; then |
| 4433 | ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 |
| 4434 | |
| 4435 | EXPENSIVE_CHECKS=yes |
| 4436 | |
| 4437 | else |
| 4438 | ENABLE_EXPENSIVE_CHECKS= |
| 4439 | |
| 4440 | EXPENSIVE_CHECKS=no |
| 4441 | |
| 4442 | fi |
| 4443 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 4444 | # Check whether --enable-debug-runtime was given. |
| 4445 | if test "${enable_debug_runtime+set}" = set; then |
| 4446 | enableval=$enable_debug_runtime; |
| 4447 | else |
| 4448 | enableval=no |
| 4449 | fi |
| 4450 | |
| 4451 | if test ${enableval} = "no" ; then |
| 4452 | DEBUG_RUNTIME= |
| 4453 | |
| 4454 | else |
| 4455 | DEBUG_RUNTIME=DEBUG_RUNTIME=1 |
| 4456 | |
| 4457 | fi |
| 4458 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4459 | # Check whether --enable-jit was given. |
| 4460 | if test "${enable_jit+set}" = set; then |
| 4461 | enableval=$enable_jit; |
| 4462 | else |
| 4463 | enableval=default |
| 4464 | fi |
| 4465 | |
| 4466 | if test ${enableval} = "no" |
| 4467 | then |
| 4468 | JIT= |
| 4469 | |
| 4470 | else |
| 4471 | case "$llvm_cv_target_arch" in |
| 4472 | x86) TARGET_HAS_JIT=1 |
| 4473 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4474 | Sparc) TARGET_HAS_JIT=0 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4475 | ;; |
| 4476 | PowerPC) TARGET_HAS_JIT=1 |
| 4477 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4478 | x86_64) TARGET_HAS_JIT=1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4479 | ;; |
| 4480 | Alpha) TARGET_HAS_JIT=1 |
| 4481 | ;; |
| 4482 | IA64) TARGET_HAS_JIT=0 |
| 4483 | ;; |
Reid Spencer | febecf4 | 2007-01-21 06:42:03 +0000 | [diff] [blame] | 4484 | ARM) TARGET_HAS_JIT=0 |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4485 | ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4486 | Mips) TARGET_HAS_JIT=0 |
| 4487 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4488 | *) TARGET_HAS_JIT=0 |
| 4489 | ;; |
| 4490 | esac |
| 4491 | fi |
| 4492 | |
| 4493 | # Check whether --enable-doxygen was given. |
| 4494 | if test "${enable_doxygen+set}" = set; then |
| 4495 | enableval=$enable_doxygen; |
| 4496 | else |
| 4497 | enableval=default |
| 4498 | fi |
| 4499 | |
| 4500 | case "$enableval" in |
| 4501 | yes) ENABLE_DOXYGEN=1 |
| 4502 | ;; |
| 4503 | no) ENABLE_DOXYGEN=0 |
| 4504 | ;; |
| 4505 | default) ENABLE_DOXYGEN=0 |
| 4506 | ;; |
| 4507 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 |
| 4508 | echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} |
| 4509 | { (exit 1); exit 1; }; } ;; |
| 4510 | esac |
| 4511 | |
| 4512 | # Check whether --enable-threads was given. |
| 4513 | if test "${enable_threads+set}" = set; then |
| 4514 | enableval=$enable_threads; |
| 4515 | else |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4516 | enableval=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4517 | fi |
| 4518 | |
| 4519 | case "$enableval" in |
| 4520 | yes) ENABLE_THREADS=1 |
| 4521 | ;; |
| 4522 | no) ENABLE_THREADS=0 |
| 4523 | ;; |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4524 | default) ENABLE_THREADS=1 |
| 4525 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4526 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 |
| 4527 | echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} |
| 4528 | { (exit 1); exit 1; }; } ;; |
| 4529 | esac |
| 4530 | |
| 4531 | cat >>confdefs.h <<_ACEOF |
| 4532 | #define ENABLE_THREADS $ENABLE_THREADS |
| 4533 | _ACEOF |
| 4534 | |
| 4535 | |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 4536 | # Check whether --enable-pic was given. |
| 4537 | if test "${enable_pic+set}" = set; then |
| 4538 | enableval=$enable_pic; |
| 4539 | else |
| 4540 | enableval=default |
| 4541 | fi |
| 4542 | |
| 4543 | case "$enableval" in |
| 4544 | yes) ENABLE_PIC=1 |
| 4545 | ;; |
| 4546 | no) ENABLE_PIC=0 |
| 4547 | ;; |
| 4548 | default) ENABLE_PIC=0 |
| 4549 | ;; |
| 4550 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 |
| 4551 | echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} |
| 4552 | { (exit 1); exit 1; }; } ;; |
| 4553 | esac |
| 4554 | |
| 4555 | cat >>confdefs.h <<_ACEOF |
| 4556 | #define ENABLE_PIC $ENABLE_PIC |
| 4557 | _ACEOF |
| 4558 | |
| 4559 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4560 | TARGETS_TO_BUILD="" |
| 4561 | # Check whether --enable-targets was given. |
| 4562 | if test "${enable_targets+set}" = set; then |
| 4563 | enableval=$enable_targets; |
| 4564 | else |
| 4565 | enableval=all |
| 4566 | fi |
| 4567 | |
| 4568 | case "$enableval" in |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame^] | 4569 | all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4570 | host-only) |
| 4571 | case "$llvm_cv_target_arch" in |
| 4572 | x86) TARGETS_TO_BUILD="X86" ;; |
| 4573 | x86_64) TARGETS_TO_BUILD="X86" ;; |
| 4574 | Sparc) TARGETS_TO_BUILD="Sparc" ;; |
| 4575 | PowerPC) TARGETS_TO_BUILD="PowerPC" ;; |
| 4576 | Alpha) TARGETS_TO_BUILD="Alpha" ;; |
| 4577 | IA64) TARGETS_TO_BUILD="IA64" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4578 | ARM) TARGETS_TO_BUILD="ARM" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4579 | Mips) TARGETS_TO_BUILD="Mips" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4580 | CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4581 | *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 |
| 4582 | echo "$as_me: error: Can not set target to build" >&2;} |
| 4583 | { (exit 1); exit 1; }; } ;; |
| 4584 | esac |
| 4585 | ;; |
| 4586 | *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4587 | case "$a_target" in |
| 4588 | x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4589 | x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; |
| 4590 | sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; |
| 4591 | powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; |
| 4592 | alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; |
| 4593 | ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;; |
Reid Spencer | 9b5b182 | 2007-01-21 06:32:59 +0000 | [diff] [blame] | 4594 | arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; |
Tanya Lattner | dde567f | 2007-08-29 16:38:16 +0000 | [diff] [blame] | 4595 | mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4596 | spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; |
Nate Begeman | 57b1efb | 2007-12-13 01:18:52 +0000 | [diff] [blame^] | 4597 | cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; |
| 4598 | msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4599 | *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 |
| 4600 | echo "$as_me: error: Unrecognized target $a_target" >&2;} |
| 4601 | { (exit 1); exit 1; }; } ;; |
| 4602 | esac |
| 4603 | done |
| 4604 | ;; |
| 4605 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4606 | TARGETS_TO_BUILD=$TARGETS_TO_BUILD |
| 4607 | |
| 4608 | |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 4609 | # Check whether --enable-cbe-printf-a was given. |
| 4610 | if test "${enable_cbe_printf_a+set}" = set; then |
| 4611 | enableval=$enable_cbe_printf_a; |
| 4612 | else |
| 4613 | enableval=default |
| 4614 | fi |
| 4615 | |
| 4616 | case "$enableval" in |
| 4617 | yes) ENABLE_CBE_PRINTF_A=1 |
| 4618 | ;; |
| 4619 | no) ENABLE_CBE_PRINTF_A=0 |
| 4620 | ;; |
| 4621 | default) ENABLE_CBE_PRINTF_A=1 |
| 4622 | ;; |
| 4623 | *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 |
| 4624 | echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} |
| 4625 | { (exit 1); exit 1; }; } ;; |
| 4626 | esac |
| 4627 | |
| 4628 | cat >>confdefs.h <<_ACEOF |
| 4629 | #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A |
| 4630 | _ACEOF |
| 4631 | |
| 4632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4633 | |
| 4634 | # Check whether --with-llvmgccdir was given. |
| 4635 | if test "${with_llvmgccdir+set}" = set; then |
| 4636 | withval=$with_llvmgccdir; |
| 4637 | else |
| 4638 | withval=default |
| 4639 | fi |
| 4640 | |
| 4641 | case "$withval" in |
| 4642 | default) WITH_LLVMGCCDIR=default ;; |
| 4643 | /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; |
| 4644 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 |
| 4645 | echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} |
| 4646 | { (exit 1); exit 1; }; } ;; |
| 4647 | esac |
| 4648 | |
| 4649 | |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 4650 | # Check whether --with-llvmgcc was given. |
| 4651 | if test "${with_llvmgcc+set}" = set; then |
| 4652 | withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc |
| 4653 | WITH_LLVMGCCDIR="" |
| 4654 | fi |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | # Check whether --with-llvmgxx was given. |
| 4659 | if test "${with_llvmgxx+set}" = set; then |
| 4660 | withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx |
| 4661 | WITH_LLVMGCCDIR="" |
| 4662 | fi |
| 4663 | |
| 4664 | |
| 4665 | if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then |
| 4666 | { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 |
| 4667 | echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} |
| 4668 | { (exit 1); exit 1; }; }; |
| 4669 | fi |
| 4670 | |
| 4671 | if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then |
| 4672 | { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 |
| 4673 | echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} |
| 4674 | { (exit 1); exit 1; }; }; |
| 4675 | fi |
| 4676 | |
| 4677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4678 | # Check whether --with-extra-options was given. |
| 4679 | if test "${with_extra_options+set}" = set; then |
| 4680 | withval=$with_extra_options; |
| 4681 | else |
| 4682 | withval=default |
| 4683 | fi |
| 4684 | |
| 4685 | case "$withval" in |
| 4686 | default) EXTRA_OPTIONS= ;; |
| 4687 | *) EXTRA_OPTIONS=$withval ;; |
| 4688 | esac |
| 4689 | EXTRA_OPTIONS=$EXTRA_OPTIONS |
| 4690 | |
| 4691 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4692 | # Check whether --enable-bindings was given. |
| 4693 | if test "${enable_bindings+set}" = set; then |
| 4694 | enableval=$enable_bindings; |
| 4695 | else |
| 4696 | enableval=default |
| 4697 | fi |
| 4698 | |
| 4699 | BINDINGS_TO_BUILD="" |
| 4700 | case "$enableval" in |
Gordon Henriksen | bae4adc | 2007-10-02 10:14:42 +0000 | [diff] [blame] | 4701 | yes | default | auto) BINDINGS_TO_BUILD="auto" ;; |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 4702 | all ) BINDINGS_TO_BUILD="ocaml" ;; |
| 4703 | none | no) BINDINGS_TO_BUILD="" ;; |
| 4704 | *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do |
| 4705 | case "$a_binding" in |
| 4706 | ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; |
| 4707 | *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 |
| 4708 | echo "$as_me: error: Unrecognized binding $a_binding" >&2;} |
| 4709 | { (exit 1); exit 1; }; } ;; |
| 4710 | esac |
| 4711 | done |
| 4712 | ;; |
| 4713 | esac |
| 4714 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4715 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 4716 | # Check whether --with-ocaml-libdir was given. |
| 4717 | if test "${with_ocaml_libdir+set}" = set; then |
| 4718 | withval=$with_ocaml_libdir; |
| 4719 | else |
| 4720 | withval=auto |
| 4721 | fi |
| 4722 | |
| 4723 | case "$withval" in |
| 4724 | auto) with_ocaml_libdir="$withval" ;; |
| 4725 | /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; |
| 4726 | *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 |
| 4727 | echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} |
| 4728 | { (exit 1); exit 1; }; } ;; |
| 4729 | esac |
| 4730 | |
| 4731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4732 | ac_ext=c |
| 4733 | ac_cpp='$CPP $CPPFLAGS' |
| 4734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4737 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4738 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
| 4739 | # On Suns, sometimes $CPP names a directory. |
| 4740 | if test -n "$CPP" && test -d "$CPP"; then |
| 4741 | CPP= |
| 4742 | fi |
| 4743 | if test -z "$CPP"; then |
| 4744 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4746 | else |
| 4747 | # Double quotes because CPP needs to be expanded |
| 4748 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4749 | do |
| 4750 | ac_preproc_ok=false |
| 4751 | for ac_c_preproc_warn_flag in '' yes |
| 4752 | do |
| 4753 | # Use a header file that comes with gcc, so configuring glibc |
| 4754 | # with a fresh cross-compiler works. |
| 4755 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4756 | # <limits.h> exists even on freestanding compilers. |
| 4757 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4758 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4759 | cat >conftest.$ac_ext <<_ACEOF |
| 4760 | /* confdefs.h. */ |
| 4761 | _ACEOF |
| 4762 | cat confdefs.h >>conftest.$ac_ext |
| 4763 | cat >>conftest.$ac_ext <<_ACEOF |
| 4764 | /* end confdefs.h. */ |
| 4765 | #ifdef __STDC__ |
| 4766 | # include <limits.h> |
| 4767 | #else |
| 4768 | # include <assert.h> |
| 4769 | #endif |
| 4770 | Syntax error |
| 4771 | _ACEOF |
| 4772 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4773 | case "(($ac_try" in |
| 4774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4775 | *) ac_try_echo=$ac_try;; |
| 4776 | esac |
| 4777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4778 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4779 | ac_status=$? |
| 4780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4781 | rm -f conftest.er1 |
| 4782 | cat conftest.err >&5 |
| 4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4784 | (exit $ac_status); } >/dev/null && { |
| 4785 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4786 | test ! -s conftest.err |
| 4787 | }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4788 | : |
| 4789 | else |
| 4790 | echo "$as_me: failed program was:" >&5 |
| 4791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4792 | |
| 4793 | # Broken: fails on valid input. |
| 4794 | continue |
| 4795 | fi |
| 4796 | |
| 4797 | rm -f conftest.err conftest.$ac_ext |
| 4798 | |
| 4799 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4800 | # can be detected and how. |
| 4801 | cat >conftest.$ac_ext <<_ACEOF |
| 4802 | /* confdefs.h. */ |
| 4803 | _ACEOF |
| 4804 | cat confdefs.h >>conftest.$ac_ext |
| 4805 | cat >>conftest.$ac_ext <<_ACEOF |
| 4806 | /* end confdefs.h. */ |
| 4807 | #include <ac_nonexistent.h> |
| 4808 | _ACEOF |
| 4809 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4810 | case "(($ac_try" in |
| 4811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4812 | *) ac_try_echo=$ac_try;; |
| 4813 | esac |
| 4814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4815 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4816 | ac_status=$? |
| 4817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4818 | rm -f conftest.er1 |
| 4819 | cat conftest.err >&5 |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4821 | (exit $ac_status); } >/dev/null && { |
| 4822 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4823 | test ! -s conftest.err |
| 4824 | }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4825 | # Broken: success on invalid input. |
| 4826 | continue |
| 4827 | else |
| 4828 | echo "$as_me: failed program was:" >&5 |
| 4829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4830 | |
| 4831 | # Passes both tests. |
| 4832 | ac_preproc_ok=: |
| 4833 | break |
| 4834 | fi |
| 4835 | |
| 4836 | rm -f conftest.err conftest.$ac_ext |
| 4837 | |
| 4838 | done |
| 4839 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4840 | rm -f conftest.err conftest.$ac_ext |
| 4841 | if $ac_preproc_ok; then |
| 4842 | break |
| 4843 | fi |
| 4844 | |
| 4845 | done |
| 4846 | ac_cv_prog_CPP=$CPP |
| 4847 | |
| 4848 | fi |
| 4849 | CPP=$ac_cv_prog_CPP |
| 4850 | else |
| 4851 | ac_cv_prog_CPP=$CPP |
| 4852 | fi |
| 4853 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4854 | echo "${ECHO_T}$CPP" >&6; } |
| 4855 | ac_preproc_ok=false |
| 4856 | for ac_c_preproc_warn_flag in '' yes |
| 4857 | do |
| 4858 | # Use a header file that comes with gcc, so configuring glibc |
| 4859 | # with a fresh cross-compiler works. |
| 4860 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4861 | # <limits.h> exists even on freestanding compilers. |
| 4862 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4863 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4864 | cat >conftest.$ac_ext <<_ACEOF |
| 4865 | /* confdefs.h. */ |
| 4866 | _ACEOF |
| 4867 | cat confdefs.h >>conftest.$ac_ext |
| 4868 | cat >>conftest.$ac_ext <<_ACEOF |
| 4869 | /* end confdefs.h. */ |
| 4870 | #ifdef __STDC__ |
| 4871 | # include <limits.h> |
| 4872 | #else |
| 4873 | # include <assert.h> |
| 4874 | #endif |
| 4875 | Syntax error |
| 4876 | _ACEOF |
| 4877 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4878 | case "(($ac_try" in |
| 4879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4880 | *) ac_try_echo=$ac_try;; |
| 4881 | esac |
| 4882 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4883 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4884 | ac_status=$? |
| 4885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4886 | rm -f conftest.er1 |
| 4887 | cat conftest.err >&5 |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4889 | (exit $ac_status); } >/dev/null && { |
| 4890 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4891 | test ! -s conftest.err |
| 4892 | }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4893 | : |
| 4894 | else |
| 4895 | echo "$as_me: failed program was:" >&5 |
| 4896 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4897 | |
| 4898 | # Broken: fails on valid input. |
| 4899 | continue |
| 4900 | fi |
| 4901 | |
| 4902 | rm -f conftest.err conftest.$ac_ext |
| 4903 | |
| 4904 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4905 | # can be detected and how. |
| 4906 | cat >conftest.$ac_ext <<_ACEOF |
| 4907 | /* confdefs.h. */ |
| 4908 | _ACEOF |
| 4909 | cat confdefs.h >>conftest.$ac_ext |
| 4910 | cat >>conftest.$ac_ext <<_ACEOF |
| 4911 | /* end confdefs.h. */ |
| 4912 | #include <ac_nonexistent.h> |
| 4913 | _ACEOF |
| 4914 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 4915 | case "(($ac_try" in |
| 4916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4917 | *) ac_try_echo=$ac_try;; |
| 4918 | esac |
| 4919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4920 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 4921 | ac_status=$? |
| 4922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4923 | rm -f conftest.er1 |
| 4924 | cat conftest.err >&5 |
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4926 | (exit $ac_status); } >/dev/null && { |
| 4927 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 4928 | test ! -s conftest.err |
| 4929 | }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4930 | # Broken: success on invalid input. |
| 4931 | continue |
| 4932 | else |
| 4933 | echo "$as_me: failed program was:" >&5 |
| 4934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4935 | |
| 4936 | # Passes both tests. |
| 4937 | ac_preproc_ok=: |
| 4938 | break |
| 4939 | fi |
| 4940 | |
| 4941 | rm -f conftest.err conftest.$ac_ext |
| 4942 | |
| 4943 | done |
| 4944 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4945 | rm -f conftest.err conftest.$ac_ext |
| 4946 | if $ac_preproc_ok; then |
| 4947 | : |
| 4948 | else |
| 4949 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4950 | See \`config.log' for more details." >&5 |
| 4951 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4952 | See \`config.log' for more details." >&2;} |
| 4953 | { (exit 1); exit 1; }; } |
| 4954 | fi |
| 4955 | |
| 4956 | ac_ext=c |
| 4957 | ac_cpp='$CPP $CPPFLAGS' |
| 4958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4961 | |
| 4962 | ac_ext=c |
| 4963 | ac_cpp='$CPP $CPPFLAGS' |
| 4964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4967 | if test -n "$ac_tool_prefix"; then |
| 4968 | for ac_prog in gcc |
| 4969 | do |
| 4970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4972 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4974 | if test "${ac_cv_prog_CC+set}" = set; then |
| 4975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4976 | else |
| 4977 | if test -n "$CC"; then |
| 4978 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4979 | else |
| 4980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4981 | for as_dir in $PATH |
| 4982 | do |
| 4983 | IFS=$as_save_IFS |
| 4984 | test -z "$as_dir" && as_dir=. |
| 4985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 4986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 4987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4989 | break 2 |
| 4990 | fi |
| 4991 | done |
| 4992 | done |
| 4993 | IFS=$as_save_IFS |
| 4994 | |
| 4995 | fi |
| 4996 | fi |
| 4997 | CC=$ac_cv_prog_CC |
| 4998 | if test -n "$CC"; then |
| 4999 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 5000 | echo "${ECHO_T}$CC" >&6; } |
| 5001 | else |
| 5002 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5003 | echo "${ECHO_T}no" >&6; } |
| 5004 | fi |
| 5005 | |
| 5006 | |
| 5007 | test -n "$CC" && break |
| 5008 | done |
| 5009 | fi |
| 5010 | if test -z "$CC"; then |
| 5011 | ac_ct_CC=$CC |
| 5012 | for ac_prog in gcc |
| 5013 | do |
| 5014 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5015 | set dummy $ac_prog; ac_word=$2 |
| 5016 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 5019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5020 | else |
| 5021 | if test -n "$ac_ct_CC"; then |
| 5022 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5023 | else |
| 5024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5025 | for as_dir in $PATH |
| 5026 | do |
| 5027 | IFS=$as_save_IFS |
| 5028 | test -z "$as_dir" && as_dir=. |
| 5029 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5031 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5033 | break 2 |
| 5034 | fi |
| 5035 | done |
| 5036 | done |
| 5037 | IFS=$as_save_IFS |
| 5038 | |
| 5039 | fi |
| 5040 | fi |
| 5041 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5042 | if test -n "$ac_ct_CC"; then |
| 5043 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 5044 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
| 5045 | else |
| 5046 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5047 | echo "${ECHO_T}no" >&6; } |
| 5048 | fi |
| 5049 | |
| 5050 | |
| 5051 | test -n "$ac_ct_CC" && break |
| 5052 | done |
| 5053 | |
| 5054 | if test "x$ac_ct_CC" = x; then |
| 5055 | CC="" |
| 5056 | else |
| 5057 | case $cross_compiling:$ac_tool_warned in |
| 5058 | yes:) |
| 5059 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5060 | whose name does not start with the host triplet. If you think this |
| 5061 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5062 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5063 | whose name does not start with the host triplet. If you think this |
| 5064 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5065 | ac_tool_warned=yes ;; |
| 5066 | esac |
| 5067 | CC=$ac_ct_CC |
| 5068 | fi |
| 5069 | fi |
| 5070 | |
| 5071 | |
| 5072 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 5073 | See \`config.log' for more details." >&5 |
| 5074 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 5075 | See \`config.log' for more details." >&2;} |
| 5076 | { (exit 1); exit 1; }; } |
| 5077 | |
| 5078 | # Provide some information about the compiler. |
| 5079 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
| 5080 | ac_compiler=`set X $ac_compile; echo $2` |
| 5081 | { (ac_try="$ac_compiler --version >&5" |
| 5082 | case "(($ac_try" in |
| 5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5084 | *) ac_try_echo=$ac_try;; |
| 5085 | esac |
| 5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5087 | (eval "$ac_compiler --version >&5") 2>&5 |
| 5088 | ac_status=$? |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5090 | (exit $ac_status); } |
| 5091 | { (ac_try="$ac_compiler -v >&5" |
| 5092 | case "(($ac_try" in |
| 5093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5094 | *) ac_try_echo=$ac_try;; |
| 5095 | esac |
| 5096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5097 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5098 | ac_status=$? |
| 5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5100 | (exit $ac_status); } |
| 5101 | { (ac_try="$ac_compiler -V >&5" |
| 5102 | case "(($ac_try" in |
| 5103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5104 | *) ac_try_echo=$ac_try;; |
| 5105 | esac |
| 5106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5107 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5108 | ac_status=$? |
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5110 | (exit $ac_status); } |
| 5111 | |
| 5112 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 5113 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
| 5114 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 5115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5116 | else |
| 5117 | cat >conftest.$ac_ext <<_ACEOF |
| 5118 | /* confdefs.h. */ |
| 5119 | _ACEOF |
| 5120 | cat confdefs.h >>conftest.$ac_ext |
| 5121 | cat >>conftest.$ac_ext <<_ACEOF |
| 5122 | /* end confdefs.h. */ |
| 5123 | |
| 5124 | int |
| 5125 | main () |
| 5126 | { |
| 5127 | #ifndef __GNUC__ |
| 5128 | choke me |
| 5129 | #endif |
| 5130 | |
| 5131 | ; |
| 5132 | return 0; |
| 5133 | } |
| 5134 | _ACEOF |
| 5135 | rm -f conftest.$ac_objext |
| 5136 | if { (ac_try="$ac_compile" |
| 5137 | case "(($ac_try" in |
| 5138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5139 | *) ac_try_echo=$ac_try;; |
| 5140 | esac |
| 5141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5142 | (eval "$ac_compile") 2>conftest.er1 |
| 5143 | ac_status=$? |
| 5144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5145 | rm -f conftest.er1 |
| 5146 | cat conftest.err >&5 |
| 5147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5148 | (exit $ac_status); } && { |
| 5149 | test -z "$ac_c_werror_flag" || |
| 5150 | test ! -s conftest.err |
| 5151 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5152 | ac_compiler_gnu=yes |
| 5153 | else |
| 5154 | echo "$as_me: failed program was:" >&5 |
| 5155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5156 | |
| 5157 | ac_compiler_gnu=no |
| 5158 | fi |
| 5159 | |
| 5160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5161 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5162 | |
| 5163 | fi |
| 5164 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 5165 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
| 5166 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 5167 | ac_test_CFLAGS=${CFLAGS+set} |
| 5168 | ac_save_CFLAGS=$CFLAGS |
| 5169 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 5170 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
| 5171 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 5172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5173 | else |
| 5174 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5175 | ac_c_werror_flag=yes |
| 5176 | ac_cv_prog_cc_g=no |
| 5177 | CFLAGS="-g" |
| 5178 | cat >conftest.$ac_ext <<_ACEOF |
| 5179 | /* confdefs.h. */ |
| 5180 | _ACEOF |
| 5181 | cat confdefs.h >>conftest.$ac_ext |
| 5182 | cat >>conftest.$ac_ext <<_ACEOF |
| 5183 | /* end confdefs.h. */ |
| 5184 | |
| 5185 | int |
| 5186 | main () |
| 5187 | { |
| 5188 | |
| 5189 | ; |
| 5190 | return 0; |
| 5191 | } |
| 5192 | _ACEOF |
| 5193 | rm -f conftest.$ac_objext |
| 5194 | if { (ac_try="$ac_compile" |
| 5195 | case "(($ac_try" in |
| 5196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5197 | *) ac_try_echo=$ac_try;; |
| 5198 | esac |
| 5199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5200 | (eval "$ac_compile") 2>conftest.er1 |
| 5201 | ac_status=$? |
| 5202 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5203 | rm -f conftest.er1 |
| 5204 | cat conftest.err >&5 |
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5206 | (exit $ac_status); } && { |
| 5207 | test -z "$ac_c_werror_flag" || |
| 5208 | test ! -s conftest.err |
| 5209 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5210 | ac_cv_prog_cc_g=yes |
| 5211 | else |
| 5212 | echo "$as_me: failed program was:" >&5 |
| 5213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5214 | |
| 5215 | CFLAGS="" |
| 5216 | cat >conftest.$ac_ext <<_ACEOF |
| 5217 | /* confdefs.h. */ |
| 5218 | _ACEOF |
| 5219 | cat confdefs.h >>conftest.$ac_ext |
| 5220 | cat >>conftest.$ac_ext <<_ACEOF |
| 5221 | /* end confdefs.h. */ |
| 5222 | |
| 5223 | int |
| 5224 | main () |
| 5225 | { |
| 5226 | |
| 5227 | ; |
| 5228 | return 0; |
| 5229 | } |
| 5230 | _ACEOF |
| 5231 | rm -f conftest.$ac_objext |
| 5232 | if { (ac_try="$ac_compile" |
| 5233 | case "(($ac_try" in |
| 5234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5235 | *) ac_try_echo=$ac_try;; |
| 5236 | esac |
| 5237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5238 | (eval "$ac_compile") 2>conftest.er1 |
| 5239 | ac_status=$? |
| 5240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5241 | rm -f conftest.er1 |
| 5242 | cat conftest.err >&5 |
| 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5244 | (exit $ac_status); } && { |
| 5245 | test -z "$ac_c_werror_flag" || |
| 5246 | test ! -s conftest.err |
| 5247 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5248 | : |
| 5249 | else |
| 5250 | echo "$as_me: failed program was:" >&5 |
| 5251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5252 | |
| 5253 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5254 | CFLAGS="-g" |
| 5255 | cat >conftest.$ac_ext <<_ACEOF |
| 5256 | /* confdefs.h. */ |
| 5257 | _ACEOF |
| 5258 | cat confdefs.h >>conftest.$ac_ext |
| 5259 | cat >>conftest.$ac_ext <<_ACEOF |
| 5260 | /* end confdefs.h. */ |
| 5261 | |
| 5262 | int |
| 5263 | main () |
| 5264 | { |
| 5265 | |
| 5266 | ; |
| 5267 | return 0; |
| 5268 | } |
| 5269 | _ACEOF |
| 5270 | rm -f conftest.$ac_objext |
| 5271 | if { (ac_try="$ac_compile" |
| 5272 | case "(($ac_try" in |
| 5273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5274 | *) ac_try_echo=$ac_try;; |
| 5275 | esac |
| 5276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5277 | (eval "$ac_compile") 2>conftest.er1 |
| 5278 | ac_status=$? |
| 5279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5280 | rm -f conftest.er1 |
| 5281 | cat conftest.err >&5 |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5283 | (exit $ac_status); } && { |
| 5284 | test -z "$ac_c_werror_flag" || |
| 5285 | test ! -s conftest.err |
| 5286 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5287 | ac_cv_prog_cc_g=yes |
| 5288 | else |
| 5289 | echo "$as_me: failed program was:" >&5 |
| 5290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5291 | |
| 5292 | |
| 5293 | fi |
| 5294 | |
| 5295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5296 | fi |
| 5297 | |
| 5298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5299 | fi |
| 5300 | |
| 5301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5302 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5303 | fi |
| 5304 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 5305 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
| 5306 | if test "$ac_test_CFLAGS" = set; then |
| 5307 | CFLAGS=$ac_save_CFLAGS |
| 5308 | elif test $ac_cv_prog_cc_g = yes; then |
| 5309 | if test "$GCC" = yes; then |
| 5310 | CFLAGS="-g -O2" |
| 5311 | else |
| 5312 | CFLAGS="-g" |
| 5313 | fi |
| 5314 | else |
| 5315 | if test "$GCC" = yes; then |
| 5316 | CFLAGS="-O2" |
| 5317 | else |
| 5318 | CFLAGS= |
| 5319 | fi |
| 5320 | fi |
| 5321 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 5322 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 5323 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
| 5324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5325 | else |
| 5326 | ac_cv_prog_cc_c89=no |
| 5327 | ac_save_CC=$CC |
| 5328 | cat >conftest.$ac_ext <<_ACEOF |
| 5329 | /* confdefs.h. */ |
| 5330 | _ACEOF |
| 5331 | cat confdefs.h >>conftest.$ac_ext |
| 5332 | cat >>conftest.$ac_ext <<_ACEOF |
| 5333 | /* end confdefs.h. */ |
| 5334 | #include <stdarg.h> |
| 5335 | #include <stdio.h> |
| 5336 | #include <sys/types.h> |
| 5337 | #include <sys/stat.h> |
| 5338 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5339 | struct buf { int x; }; |
| 5340 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5341 | static char *e (p, i) |
| 5342 | char **p; |
| 5343 | int i; |
| 5344 | { |
| 5345 | return p[i]; |
| 5346 | } |
| 5347 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5348 | { |
| 5349 | char *s; |
| 5350 | va_list v; |
| 5351 | va_start (v,p); |
| 5352 | s = g (p, va_arg (v,int)); |
| 5353 | va_end (v); |
| 5354 | return s; |
| 5355 | } |
| 5356 | |
| 5357 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5358 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5359 | These don't provoke an error unfortunately, instead are silently treated |
| 5360 | as 'x'. The following induces an error, until -std is added to get |
| 5361 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5362 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5363 | that's true only with -std. */ |
| 5364 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5365 | |
| 5366 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5367 | inside strings and character constants. */ |
| 5368 | #define FOO(x) 'x' |
| 5369 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5370 | |
| 5371 | int test (int i, double x); |
| 5372 | struct s1 {int (*f) (int a);}; |
| 5373 | struct s2 {int (*f) (double a);}; |
| 5374 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5375 | int argc; |
| 5376 | char **argv; |
| 5377 | int |
| 5378 | main () |
| 5379 | { |
| 5380 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5381 | ; |
| 5382 | return 0; |
| 5383 | } |
| 5384 | _ACEOF |
| 5385 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5386 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5387 | do |
| 5388 | CC="$ac_save_CC $ac_arg" |
| 5389 | rm -f conftest.$ac_objext |
| 5390 | if { (ac_try="$ac_compile" |
| 5391 | case "(($ac_try" in |
| 5392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5393 | *) ac_try_echo=$ac_try;; |
| 5394 | esac |
| 5395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5396 | (eval "$ac_compile") 2>conftest.er1 |
| 5397 | ac_status=$? |
| 5398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5399 | rm -f conftest.er1 |
| 5400 | cat conftest.err >&5 |
| 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5402 | (exit $ac_status); } && { |
| 5403 | test -z "$ac_c_werror_flag" || |
| 5404 | test ! -s conftest.err |
| 5405 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5406 | ac_cv_prog_cc_c89=$ac_arg |
| 5407 | else |
| 5408 | echo "$as_me: failed program was:" >&5 |
| 5409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5410 | |
| 5411 | |
| 5412 | fi |
| 5413 | |
| 5414 | rm -f core conftest.err conftest.$ac_objext |
| 5415 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5416 | done |
| 5417 | rm -f conftest.$ac_ext |
| 5418 | CC=$ac_save_CC |
| 5419 | |
| 5420 | fi |
| 5421 | # AC_CACHE_VAL |
| 5422 | case "x$ac_cv_prog_cc_c89" in |
| 5423 | x) |
| 5424 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 5425 | echo "${ECHO_T}none needed" >&6; } ;; |
| 5426 | xno) |
| 5427 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 5428 | echo "${ECHO_T}unsupported" >&6; } ;; |
| 5429 | *) |
| 5430 | CC="$CC $ac_cv_prog_cc_c89" |
| 5431 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 5432 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
| 5433 | esac |
| 5434 | |
| 5435 | |
| 5436 | ac_ext=c |
| 5437 | ac_cpp='$CPP $CPPFLAGS' |
| 5438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5441 | |
| 5442 | ac_ext=cpp |
| 5443 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5444 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5445 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5446 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5447 | if test -z "$CXX"; then |
| 5448 | if test -n "$CCC"; then |
| 5449 | CXX=$CCC |
| 5450 | else |
| 5451 | if test -n "$ac_tool_prefix"; then |
| 5452 | for ac_prog in g++ |
| 5453 | do |
| 5454 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5455 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5458 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5460 | else |
| 5461 | if test -n "$CXX"; then |
| 5462 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5463 | else |
| 5464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5465 | for as_dir in $PATH |
| 5466 | do |
| 5467 | IFS=$as_save_IFS |
| 5468 | test -z "$as_dir" && as_dir=. |
| 5469 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5471 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5473 | break 2 |
| 5474 | fi |
| 5475 | done |
| 5476 | done |
| 5477 | IFS=$as_save_IFS |
| 5478 | |
| 5479 | fi |
| 5480 | fi |
| 5481 | CXX=$ac_cv_prog_CXX |
| 5482 | if test -n "$CXX"; then |
| 5483 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5484 | echo "${ECHO_T}$CXX" >&6; } |
| 5485 | else |
| 5486 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5487 | echo "${ECHO_T}no" >&6; } |
| 5488 | fi |
| 5489 | |
| 5490 | |
| 5491 | test -n "$CXX" && break |
| 5492 | done |
| 5493 | fi |
| 5494 | if test -z "$CXX"; then |
| 5495 | ac_ct_CXX=$CXX |
| 5496 | for ac_prog in g++ |
| 5497 | do |
| 5498 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5499 | set dummy $ac_prog; ac_word=$2 |
| 5500 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5502 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5504 | else |
| 5505 | if test -n "$ac_ct_CXX"; then |
| 5506 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5507 | else |
| 5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5509 | for as_dir in $PATH |
| 5510 | do |
| 5511 | IFS=$as_save_IFS |
| 5512 | test -z "$as_dir" && as_dir=. |
| 5513 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5515 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5517 | break 2 |
| 5518 | fi |
| 5519 | done |
| 5520 | done |
| 5521 | IFS=$as_save_IFS |
| 5522 | |
| 5523 | fi |
| 5524 | fi |
| 5525 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5526 | if test -n "$ac_ct_CXX"; then |
| 5527 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5528 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
| 5529 | else |
| 5530 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5531 | echo "${ECHO_T}no" >&6; } |
| 5532 | fi |
| 5533 | |
| 5534 | |
| 5535 | test -n "$ac_ct_CXX" && break |
| 5536 | done |
| 5537 | |
| 5538 | if test "x$ac_ct_CXX" = x; then |
| 5539 | CXX="g++" |
| 5540 | else |
| 5541 | case $cross_compiling:$ac_tool_warned in |
| 5542 | yes:) |
| 5543 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5544 | whose name does not start with the host triplet. If you think this |
| 5545 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5546 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5547 | whose name does not start with the host triplet. If you think this |
| 5548 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5549 | ac_tool_warned=yes ;; |
| 5550 | esac |
| 5551 | CXX=$ac_ct_CXX |
| 5552 | fi |
| 5553 | fi |
| 5554 | |
| 5555 | fi |
| 5556 | fi |
| 5557 | # Provide some information about the compiler. |
| 5558 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
| 5559 | ac_compiler=`set X $ac_compile; echo $2` |
| 5560 | { (ac_try="$ac_compiler --version >&5" |
| 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_compiler --version >&5") 2>&5 |
| 5567 | ac_status=$? |
| 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); } |
| 5570 | { (ac_try="$ac_compiler -v >&5" |
| 5571 | case "(($ac_try" in |
| 5572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5573 | *) ac_try_echo=$ac_try;; |
| 5574 | esac |
| 5575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5576 | (eval "$ac_compiler -v >&5") 2>&5 |
| 5577 | ac_status=$? |
| 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5579 | (exit $ac_status); } |
| 5580 | { (ac_try="$ac_compiler -V >&5" |
| 5581 | case "(($ac_try" in |
| 5582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5583 | *) ac_try_echo=$ac_try;; |
| 5584 | esac |
| 5585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5586 | (eval "$ac_compiler -V >&5") 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); } |
| 5590 | |
| 5591 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5592 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
| 5593 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5595 | else |
| 5596 | cat >conftest.$ac_ext <<_ACEOF |
| 5597 | /* confdefs.h. */ |
| 5598 | _ACEOF |
| 5599 | cat confdefs.h >>conftest.$ac_ext |
| 5600 | cat >>conftest.$ac_ext <<_ACEOF |
| 5601 | /* end confdefs.h. */ |
| 5602 | |
| 5603 | int |
| 5604 | main () |
| 5605 | { |
| 5606 | #ifndef __GNUC__ |
| 5607 | choke me |
| 5608 | #endif |
| 5609 | |
| 5610 | ; |
| 5611 | return 0; |
| 5612 | } |
| 5613 | _ACEOF |
| 5614 | rm -f conftest.$ac_objext |
| 5615 | if { (ac_try="$ac_compile" |
| 5616 | case "(($ac_try" in |
| 5617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5618 | *) ac_try_echo=$ac_try;; |
| 5619 | esac |
| 5620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5621 | (eval "$ac_compile") 2>conftest.er1 |
| 5622 | ac_status=$? |
| 5623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5624 | rm -f conftest.er1 |
| 5625 | cat conftest.err >&5 |
| 5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5627 | (exit $ac_status); } && { |
| 5628 | test -z "$ac_cxx_werror_flag" || |
| 5629 | test ! -s conftest.err |
| 5630 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5631 | ac_compiler_gnu=yes |
| 5632 | else |
| 5633 | echo "$as_me: failed program was:" >&5 |
| 5634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5635 | |
| 5636 | ac_compiler_gnu=no |
| 5637 | fi |
| 5638 | |
| 5639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5640 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5641 | |
| 5642 | fi |
| 5643 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5644 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
| 5645 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5646 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5647 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5648 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5649 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
| 5650 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5652 | else |
| 5653 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5654 | ac_cxx_werror_flag=yes |
| 5655 | ac_cv_prog_cxx_g=no |
| 5656 | CXXFLAGS="-g" |
| 5657 | cat >conftest.$ac_ext <<_ACEOF |
| 5658 | /* confdefs.h. */ |
| 5659 | _ACEOF |
| 5660 | cat confdefs.h >>conftest.$ac_ext |
| 5661 | cat >>conftest.$ac_ext <<_ACEOF |
| 5662 | /* end confdefs.h. */ |
| 5663 | |
| 5664 | int |
| 5665 | main () |
| 5666 | { |
| 5667 | |
| 5668 | ; |
| 5669 | return 0; |
| 5670 | } |
| 5671 | _ACEOF |
| 5672 | rm -f conftest.$ac_objext |
| 5673 | if { (ac_try="$ac_compile" |
| 5674 | case "(($ac_try" in |
| 5675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5676 | *) ac_try_echo=$ac_try;; |
| 5677 | esac |
| 5678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5679 | (eval "$ac_compile") 2>conftest.er1 |
| 5680 | ac_status=$? |
| 5681 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5682 | rm -f conftest.er1 |
| 5683 | cat conftest.err >&5 |
| 5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5685 | (exit $ac_status); } && { |
| 5686 | test -z "$ac_cxx_werror_flag" || |
| 5687 | test ! -s conftest.err |
| 5688 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5689 | ac_cv_prog_cxx_g=yes |
| 5690 | else |
| 5691 | echo "$as_me: failed program was:" >&5 |
| 5692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5693 | |
| 5694 | CXXFLAGS="" |
| 5695 | cat >conftest.$ac_ext <<_ACEOF |
| 5696 | /* confdefs.h. */ |
| 5697 | _ACEOF |
| 5698 | cat confdefs.h >>conftest.$ac_ext |
| 5699 | cat >>conftest.$ac_ext <<_ACEOF |
| 5700 | /* end confdefs.h. */ |
| 5701 | |
| 5702 | int |
| 5703 | main () |
| 5704 | { |
| 5705 | |
| 5706 | ; |
| 5707 | return 0; |
| 5708 | } |
| 5709 | _ACEOF |
| 5710 | rm -f conftest.$ac_objext |
| 5711 | if { (ac_try="$ac_compile" |
| 5712 | case "(($ac_try" in |
| 5713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5714 | *) ac_try_echo=$ac_try;; |
| 5715 | esac |
| 5716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5717 | (eval "$ac_compile") 2>conftest.er1 |
| 5718 | ac_status=$? |
| 5719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5720 | rm -f conftest.er1 |
| 5721 | cat conftest.err >&5 |
| 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5723 | (exit $ac_status); } && { |
| 5724 | test -z "$ac_cxx_werror_flag" || |
| 5725 | test ! -s conftest.err |
| 5726 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5727 | : |
| 5728 | else |
| 5729 | echo "$as_me: failed program was:" >&5 |
| 5730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5731 | |
| 5732 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5733 | CXXFLAGS="-g" |
| 5734 | cat >conftest.$ac_ext <<_ACEOF |
| 5735 | /* confdefs.h. */ |
| 5736 | _ACEOF |
| 5737 | cat confdefs.h >>conftest.$ac_ext |
| 5738 | cat >>conftest.$ac_ext <<_ACEOF |
| 5739 | /* end confdefs.h. */ |
| 5740 | |
| 5741 | int |
| 5742 | main () |
| 5743 | { |
| 5744 | |
| 5745 | ; |
| 5746 | return 0; |
| 5747 | } |
| 5748 | _ACEOF |
| 5749 | rm -f conftest.$ac_objext |
| 5750 | if { (ac_try="$ac_compile" |
| 5751 | case "(($ac_try" in |
| 5752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5753 | *) ac_try_echo=$ac_try;; |
| 5754 | esac |
| 5755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5756 | (eval "$ac_compile") 2>conftest.er1 |
| 5757 | ac_status=$? |
| 5758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5759 | rm -f conftest.er1 |
| 5760 | cat conftest.err >&5 |
| 5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5762 | (exit $ac_status); } && { |
| 5763 | test -z "$ac_cxx_werror_flag" || |
| 5764 | test ! -s conftest.err |
| 5765 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5766 | ac_cv_prog_cxx_g=yes |
| 5767 | else |
| 5768 | echo "$as_me: failed program was:" >&5 |
| 5769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5770 | |
| 5771 | |
| 5772 | fi |
| 5773 | |
| 5774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5775 | fi |
| 5776 | |
| 5777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5778 | fi |
| 5779 | |
| 5780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5781 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5782 | fi |
| 5783 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5784 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
| 5785 | if test "$ac_test_CXXFLAGS" = set; then |
| 5786 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5787 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5788 | if test "$GXX" = yes; then |
| 5789 | CXXFLAGS="-g -O2" |
| 5790 | else |
| 5791 | CXXFLAGS="-g" |
| 5792 | fi |
| 5793 | else |
| 5794 | if test "$GXX" = yes; then |
| 5795 | CXXFLAGS="-O2" |
| 5796 | else |
| 5797 | CXXFLAGS= |
| 5798 | fi |
| 5799 | fi |
| 5800 | ac_ext=c |
| 5801 | ac_cpp='$CPP $CPPFLAGS' |
| 5802 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5803 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5804 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5805 | |
| 5806 | { echo "$as_me:$LINENO: checking " >&5 |
| 5807 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 5808 | if test "${ac_cv_has_flex+set}" = set; then |
| 5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5810 | else |
| 5811 | for ac_prog in flex lex |
| 5812 | do |
| 5813 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5814 | set dummy $ac_prog; ac_word=$2 |
| 5815 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5817 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5819 | else |
| 5820 | if test -n "$LEX"; then |
| 5821 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 5822 | else |
| 5823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5824 | for as_dir in $PATH |
| 5825 | do |
| 5826 | IFS=$as_save_IFS |
| 5827 | test -z "$as_dir" && as_dir=. |
| 5828 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5830 | ac_cv_prog_LEX="$ac_prog" |
| 5831 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5832 | break 2 |
| 5833 | fi |
| 5834 | done |
| 5835 | done |
| 5836 | IFS=$as_save_IFS |
| 5837 | |
| 5838 | fi |
| 5839 | fi |
| 5840 | LEX=$ac_cv_prog_LEX |
| 5841 | if test -n "$LEX"; then |
| 5842 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
| 5843 | echo "${ECHO_T}$LEX" >&6; } |
| 5844 | else |
| 5845 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5846 | echo "${ECHO_T}no" >&6; } |
| 5847 | fi |
| 5848 | |
| 5849 | |
| 5850 | test -n "$LEX" && break |
| 5851 | done |
| 5852 | test -n "$LEX" || LEX=":" |
| 5853 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5854 | if test "x$LEX" != "x:"; then |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5855 | cat >conftest.l <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5856 | %% |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5857 | a { ECHO; } |
| 5858 | b { REJECT; } |
| 5859 | c { yymore (); } |
| 5860 | d { yyless (1); } |
| 5861 | e { yyless (input () != 0); } |
| 5862 | f { unput (yytext[0]); } |
| 5863 | . { BEGIN INITIAL; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5864 | %% |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5865 | #ifdef YYTEXT_POINTER |
| 5866 | extern char *yytext; |
| 5867 | #endif |
| 5868 | int |
| 5869 | main (void) |
| 5870 | { |
| 5871 | return ! yylex () + ! yywrap (); |
| 5872 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5873 | _ACEOF |
| 5874 | { (ac_try="$LEX conftest.l" |
| 5875 | case "(($ac_try" in |
| 5876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5877 | *) ac_try_echo=$ac_try;; |
| 5878 | esac |
| 5879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5880 | (eval "$LEX conftest.l") 2>&5 |
| 5881 | ac_status=$? |
| 5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5883 | (exit $ac_status); } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5884 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 5885 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } |
| 5886 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 5887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5888 | else |
| 5889 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5890 | if test -f lex.yy.c; then |
| 5891 | ac_cv_prog_lex_root=lex.yy |
| 5892 | elif test -f lexyy.c; then |
| 5893 | ac_cv_prog_lex_root=lexyy |
| 5894 | else |
| 5895 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 5896 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 5897 | { (exit 1); exit 1; }; } |
| 5898 | fi |
| 5899 | fi |
| 5900 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 5901 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5902 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 5903 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5904 | if test -z "${LEXLIB+set}"; then |
| 5905 | { echo "$as_me:$LINENO: checking lex library" >&5 |
| 5906 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } |
| 5907 | if test "${ac_cv_lib_lex+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5909 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5910 | |
| 5911 | ac_save_LIBS=$LIBS |
| 5912 | ac_cv_lib_lex='none needed' |
| 5913 | for ac_lib in '' -lfl -ll; do |
| 5914 | LIBS="$ac_lib $ac_save_LIBS" |
| 5915 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5916 | `cat $LEX_OUTPUT_ROOT.c` |
| 5917 | _ACEOF |
| 5918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5919 | if { (ac_try="$ac_link" |
| 5920 | case "(($ac_try" in |
| 5921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5922 | *) ac_try_echo=$ac_try;; |
| 5923 | esac |
| 5924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5925 | (eval "$ac_link") 2>conftest.er1 |
| 5926 | ac_status=$? |
| 5927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5928 | rm -f conftest.er1 |
| 5929 | cat conftest.err >&5 |
| 5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5931 | (exit $ac_status); } && { |
| 5932 | test -z "$ac_c_werror_flag" || |
| 5933 | test ! -s conftest.err |
| 5934 | } && test -s conftest$ac_exeext && |
| 5935 | $as_test_x conftest$ac_exeext; then |
| 5936 | ac_cv_lib_lex=$ac_lib |
| 5937 | else |
| 5938 | echo "$as_me: failed program was:" >&5 |
| 5939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5940 | |
| 5941 | |
| 5942 | fi |
| 5943 | |
| 5944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5945 | conftest$ac_exeext conftest.$ac_ext |
| 5946 | test "$ac_cv_lib_lex" != 'none needed' && break |
| 5947 | done |
| 5948 | LIBS=$ac_save_LIBS |
| 5949 | |
| 5950 | fi |
| 5951 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
| 5952 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } |
| 5953 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
| 5954 | fi |
| 5955 | |
| 5956 | |
| 5957 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 5958 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } |
| 5959 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5961 | else |
| 5962 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 5963 | # default is implementation-dependent. Figure out which it is, since |
| 5964 | # not all implementations provide the %pointer and %array declarations. |
| 5965 | ac_cv_prog_lex_yytext_pointer=no |
| 5966 | ac_save_LIBS=$LIBS |
| 5967 | LIBS="$LEXLIB $ac_save_LIBS" |
| 5968 | cat >conftest.$ac_ext <<_ACEOF |
| 5969 | #define YYTEXT_POINTER 1 |
| 5970 | `cat $LEX_OUTPUT_ROOT.c` |
| 5971 | _ACEOF |
| 5972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5973 | if { (ac_try="$ac_link" |
| 5974 | case "(($ac_try" in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5976 | *) ac_try_echo=$ac_try;; |
| 5977 | esac |
| 5978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5979 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5980 | ac_status=$? |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5981 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5982 | rm -f conftest.er1 |
| 5983 | cat conftest.err >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5985 | (exit $ac_status); } && { |
| 5986 | test -z "$ac_c_werror_flag" || |
| 5987 | test ! -s conftest.err |
| 5988 | } && test -s conftest$ac_exeext && |
| 5989 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5990 | ac_cv_prog_lex_yytext_pointer=yes |
| 5991 | else |
| 5992 | echo "$as_me: failed program was:" >&5 |
| 5993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5994 | |
| 5995 | |
| 5996 | fi |
| 5997 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 5998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 5999 | conftest$ac_exeext conftest.$ac_ext |
| 6000 | LIBS=$ac_save_LIBS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6001 | |
| 6002 | fi |
| 6003 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 6004 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } |
| 6005 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 6006 | |
| 6007 | cat >>confdefs.h <<\_ACEOF |
| 6008 | #define YYTEXT_POINTER 1 |
| 6009 | _ACEOF |
| 6010 | |
| 6011 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6012 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6013 | |
| 6014 | fi |
| 6015 | |
| 6016 | fi |
| 6017 | { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5 |
| 6018 | echo "${ECHO_T}$ac_cv_has_flex" >&6; } |
| 6019 | if test "$LEX" != "flex"; then |
| 6020 | { { echo "$as_me:$LINENO: error: flex not found but required" >&5 |
| 6021 | echo "$as_me: error: flex not found but required" >&2;} |
| 6022 | { (exit 1); exit 1; }; } |
| 6023 | else |
| 6024 | FLEX=flex |
| 6025 | |
| 6026 | fi |
| 6027 | |
| 6028 | { echo "$as_me:$LINENO: checking " >&5 |
| 6029 | echo $ECHO_N "checking ... $ECHO_C" >&6; } |
| 6030 | if test "${llvm_cv_has_bison+set}" = set; then |
| 6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6032 | else |
| 6033 | for ac_prog in 'bison -y' byacc |
| 6034 | do |
| 6035 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6036 | set dummy $ac_prog; ac_word=$2 |
| 6037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6039 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6041 | else |
| 6042 | if test -n "$YACC"; then |
| 6043 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 6044 | else |
| 6045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6046 | for as_dir in $PATH |
| 6047 | do |
| 6048 | IFS=$as_save_IFS |
| 6049 | test -z "$as_dir" && as_dir=. |
| 6050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6052 | ac_cv_prog_YACC="$ac_prog" |
| 6053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6054 | break 2 |
| 6055 | fi |
| 6056 | done |
| 6057 | done |
| 6058 | IFS=$as_save_IFS |
| 6059 | |
| 6060 | fi |
| 6061 | fi |
| 6062 | YACC=$ac_cv_prog_YACC |
| 6063 | if test -n "$YACC"; then |
| 6064 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
| 6065 | echo "${ECHO_T}$YACC" >&6; } |
| 6066 | else |
| 6067 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6068 | echo "${ECHO_T}no" >&6; } |
| 6069 | fi |
| 6070 | |
| 6071 | |
| 6072 | test -n "$YACC" && break |
| 6073 | done |
| 6074 | test -n "$YACC" || YACC="yacc" |
| 6075 | |
| 6076 | fi |
| 6077 | { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5 |
| 6078 | echo "${ECHO_T}$llvm_cv_has_bison" >&6; } |
| 6079 | if test "$YACC" != "bison -y"; then |
Reid Spencer | 4869d7f | 2006-08-24 22:41:20 +0000 | [diff] [blame] | 6080 | |
| 6081 | { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5 |
| 6082 | echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6083 | else |
| 6084 | BISON=bison |
| 6085 | |
| 6086 | fi |
| 6087 | |
| 6088 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 6089 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
| 6090 | if test "${lt_cv_path_NM+set}" = set; then |
| 6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6092 | else |
| 6093 | if test -n "$NM"; then |
| 6094 | # Let the user override the test. |
| 6095 | lt_cv_path_NM="$NM" |
| 6096 | else |
| 6097 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 6098 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 6099 | lt_nm_to_check="$lt_nm_to_check nm" |
| 6100 | fi |
| 6101 | for lt_tmp_nm in $lt_nm_to_check; do |
| 6102 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6103 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 6104 | IFS="$lt_save_ifs" |
| 6105 | test -z "$ac_dir" && ac_dir=. |
| 6106 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 6107 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 6108 | # Check to see if the nm accepts a BSD-compat flag. |
| 6109 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 6110 | # nm: unknown option "B" ignored |
| 6111 | # Tru64's nm complains that /dev/null is an invalid object file |
| 6112 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 6113 | */dev/null* | *'Invalid file or object type'*) |
| 6114 | lt_cv_path_NM="$tmp_nm -B" |
| 6115 | break |
| 6116 | ;; |
| 6117 | *) |
| 6118 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 6119 | */dev/null*) |
| 6120 | lt_cv_path_NM="$tmp_nm -p" |
| 6121 | break |
| 6122 | ;; |
| 6123 | *) |
| 6124 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 6125 | continue # so that we can try to find one that supports BSD flags |
| 6126 | ;; |
| 6127 | esac |
| 6128 | ;; |
| 6129 | esac |
| 6130 | fi |
| 6131 | done |
| 6132 | IFS="$lt_save_ifs" |
| 6133 | done |
| 6134 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 6135 | fi |
| 6136 | fi |
| 6137 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 6138 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
| 6139 | NM="$lt_cv_path_NM" |
| 6140 | |
| 6141 | |
| 6142 | |
| 6143 | { echo "$as_me:$LINENO: checking for GNU make" >&5 |
| 6144 | echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } |
| 6145 | if test "${llvm_cv_gnu_make_command+set}" = set; then |
| 6146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6147 | else |
| 6148 | llvm_cv_gnu_make_command='' |
| 6149 | for a in "$MAKE" make gmake gnumake ; do |
| 6150 | if test -z "$a" ; then continue ; fi ; |
| 6151 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) |
| 6152 | then |
| 6153 | llvm_cv_gnu_make_command=$a ; |
| 6154 | break; |
| 6155 | fi |
| 6156 | done |
| 6157 | fi |
| 6158 | { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 |
| 6159 | echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } |
| 6160 | if test "x$llvm_cv_gnu_make_command" != "x" ; then |
| 6161 | ifGNUmake='' ; |
| 6162 | else |
| 6163 | ifGNUmake='#' ; |
| 6164 | { echo "$as_me:$LINENO: result: \"Not found\"" >&5 |
| 6165 | echo "${ECHO_T}\"Not found\"" >&6; }; |
| 6166 | fi |
| 6167 | |
| 6168 | |
| 6169 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 6170 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
| 6171 | LN_S=$as_ln_s |
| 6172 | if test "$LN_S" = "ln -s"; then |
| 6173 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 6174 | echo "${ECHO_T}yes" >&6; } |
| 6175 | else |
| 6176 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 6177 | echo "${ECHO_T}no, using $LN_S" >&6; } |
| 6178 | fi |
| 6179 | |
| 6180 | # Extract the first word of "cmp", so it can be a program name with args. |
| 6181 | set dummy cmp; ac_word=$2 |
| 6182 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6184 | if test "${ac_cv_path_CMP+set}" = set; then |
| 6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6186 | else |
| 6187 | case $CMP in |
| 6188 | [\\/]* | ?:[\\/]*) |
| 6189 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
| 6190 | ;; |
| 6191 | *) |
| 6192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6193 | for as_dir in $PATH |
| 6194 | do |
| 6195 | IFS=$as_save_IFS |
| 6196 | test -z "$as_dir" && as_dir=. |
| 6197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6199 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
| 6200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6201 | break 2 |
| 6202 | fi |
| 6203 | done |
| 6204 | done |
| 6205 | IFS=$as_save_IFS |
| 6206 | |
| 6207 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
| 6208 | ;; |
| 6209 | esac |
| 6210 | fi |
| 6211 | CMP=$ac_cv_path_CMP |
| 6212 | if test -n "$CMP"; then |
| 6213 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
| 6214 | echo "${ECHO_T}$CMP" >&6; } |
| 6215 | else |
| 6216 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6217 | echo "${ECHO_T}no" >&6; } |
| 6218 | fi |
| 6219 | |
| 6220 | |
| 6221 | # Extract the first word of "cp", so it can be a program name with args. |
| 6222 | set dummy cp; ac_word=$2 |
| 6223 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6225 | if test "${ac_cv_path_CP+set}" = set; then |
| 6226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6227 | else |
| 6228 | case $CP in |
| 6229 | [\\/]* | ?:[\\/]*) |
| 6230 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 6231 | ;; |
| 6232 | *) |
| 6233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6234 | for as_dir in $PATH |
| 6235 | do |
| 6236 | IFS=$as_save_IFS |
| 6237 | test -z "$as_dir" && as_dir=. |
| 6238 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6240 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 6241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6242 | break 2 |
| 6243 | fi |
| 6244 | done |
| 6245 | done |
| 6246 | IFS=$as_save_IFS |
| 6247 | |
| 6248 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 6249 | ;; |
| 6250 | esac |
| 6251 | fi |
| 6252 | CP=$ac_cv_path_CP |
| 6253 | if test -n "$CP"; then |
| 6254 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 6255 | echo "${ECHO_T}$CP" >&6; } |
| 6256 | else |
| 6257 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6258 | echo "${ECHO_T}no" >&6; } |
| 6259 | fi |
| 6260 | |
| 6261 | |
| 6262 | # Extract the first word of "date", so it can be a program name with args. |
| 6263 | set dummy date; ac_word=$2 |
| 6264 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6266 | if test "${ac_cv_path_DATE+set}" = set; then |
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6268 | else |
| 6269 | case $DATE in |
| 6270 | [\\/]* | ?:[\\/]*) |
| 6271 | ac_cv_path_DATE="$DATE" # Let the user override the test with a path. |
| 6272 | ;; |
| 6273 | *) |
| 6274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6275 | for as_dir in $PATH |
| 6276 | do |
| 6277 | IFS=$as_save_IFS |
| 6278 | test -z "$as_dir" && as_dir=. |
| 6279 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6281 | ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" |
| 6282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6283 | break 2 |
| 6284 | fi |
| 6285 | done |
| 6286 | done |
| 6287 | IFS=$as_save_IFS |
| 6288 | |
| 6289 | test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" |
| 6290 | ;; |
| 6291 | esac |
| 6292 | fi |
| 6293 | DATE=$ac_cv_path_DATE |
| 6294 | if test -n "$DATE"; then |
| 6295 | { echo "$as_me:$LINENO: result: $DATE" >&5 |
| 6296 | echo "${ECHO_T}$DATE" >&6; } |
| 6297 | else |
| 6298 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6299 | echo "${ECHO_T}no" >&6; } |
| 6300 | fi |
| 6301 | |
| 6302 | |
| 6303 | # Extract the first word of "find", so it can be a program name with args. |
| 6304 | set dummy find; ac_word=$2 |
| 6305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6307 | if test "${ac_cv_path_FIND+set}" = set; then |
| 6308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6309 | else |
| 6310 | case $FIND in |
| 6311 | [\\/]* | ?:[\\/]*) |
| 6312 | ac_cv_path_FIND="$FIND" # Let the user override the test with a path. |
| 6313 | ;; |
| 6314 | *) |
| 6315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6316 | for as_dir in $PATH |
| 6317 | do |
| 6318 | IFS=$as_save_IFS |
| 6319 | test -z "$as_dir" && as_dir=. |
| 6320 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6322 | ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" |
| 6323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6324 | break 2 |
| 6325 | fi |
| 6326 | done |
| 6327 | done |
| 6328 | IFS=$as_save_IFS |
| 6329 | |
| 6330 | test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" |
| 6331 | ;; |
| 6332 | esac |
| 6333 | fi |
| 6334 | FIND=$ac_cv_path_FIND |
| 6335 | if test -n "$FIND"; then |
| 6336 | { echo "$as_me:$LINENO: result: $FIND" >&5 |
| 6337 | echo "${ECHO_T}$FIND" >&6; } |
| 6338 | else |
| 6339 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6340 | echo "${ECHO_T}no" >&6; } |
| 6341 | fi |
| 6342 | |
| 6343 | |
| 6344 | # Extract the first word of "grep", so it can be a program name with args. |
| 6345 | set dummy grep; ac_word=$2 |
| 6346 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6348 | if test "${ac_cv_path_GREP+set}" = set; then |
| 6349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6350 | else |
| 6351 | case $GREP in |
| 6352 | [\\/]* | ?:[\\/]*) |
| 6353 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 6354 | ;; |
| 6355 | *) |
| 6356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6357 | for as_dir in $PATH |
| 6358 | do |
| 6359 | IFS=$as_save_IFS |
| 6360 | test -z "$as_dir" && as_dir=. |
| 6361 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6363 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 6364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6365 | break 2 |
| 6366 | fi |
| 6367 | done |
| 6368 | done |
| 6369 | IFS=$as_save_IFS |
| 6370 | |
| 6371 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" |
| 6372 | ;; |
| 6373 | esac |
| 6374 | fi |
| 6375 | GREP=$ac_cv_path_GREP |
| 6376 | if test -n "$GREP"; then |
| 6377 | { echo "$as_me:$LINENO: result: $GREP" >&5 |
| 6378 | echo "${ECHO_T}$GREP" >&6; } |
| 6379 | else |
| 6380 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6381 | echo "${ECHO_T}no" >&6; } |
| 6382 | fi |
| 6383 | |
| 6384 | |
| 6385 | # Extract the first word of "mkdir", so it can be a program name with args. |
| 6386 | set dummy mkdir; ac_word=$2 |
| 6387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6389 | if test "${ac_cv_path_MKDIR+set}" = set; then |
| 6390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6391 | else |
| 6392 | case $MKDIR in |
| 6393 | [\\/]* | ?:[\\/]*) |
| 6394 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
| 6395 | ;; |
| 6396 | *) |
| 6397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6398 | for as_dir in $PATH |
| 6399 | do |
| 6400 | IFS=$as_save_IFS |
| 6401 | test -z "$as_dir" && as_dir=. |
| 6402 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6404 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
| 6405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6406 | break 2 |
| 6407 | fi |
| 6408 | done |
| 6409 | done |
| 6410 | IFS=$as_save_IFS |
| 6411 | |
| 6412 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" |
| 6413 | ;; |
| 6414 | esac |
| 6415 | fi |
| 6416 | MKDIR=$ac_cv_path_MKDIR |
| 6417 | if test -n "$MKDIR"; then |
| 6418 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
| 6419 | echo "${ECHO_T}$MKDIR" >&6; } |
| 6420 | else |
| 6421 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6422 | echo "${ECHO_T}no" >&6; } |
| 6423 | fi |
| 6424 | |
| 6425 | |
| 6426 | # Extract the first word of "mv", so it can be a program name with args. |
| 6427 | set dummy mv; ac_word=$2 |
| 6428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6430 | if test "${ac_cv_path_MV+set}" = set; then |
| 6431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6432 | else |
| 6433 | case $MV in |
| 6434 | [\\/]* | ?:[\\/]*) |
| 6435 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 6436 | ;; |
| 6437 | *) |
| 6438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6439 | for as_dir in $PATH |
| 6440 | do |
| 6441 | IFS=$as_save_IFS |
| 6442 | test -z "$as_dir" && as_dir=. |
| 6443 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6445 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 6446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6447 | break 2 |
| 6448 | fi |
| 6449 | done |
| 6450 | done |
| 6451 | IFS=$as_save_IFS |
| 6452 | |
| 6453 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 6454 | ;; |
| 6455 | esac |
| 6456 | fi |
| 6457 | MV=$ac_cv_path_MV |
| 6458 | if test -n "$MV"; then |
| 6459 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 6460 | echo "${ECHO_T}$MV" >&6; } |
| 6461 | else |
| 6462 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6463 | echo "${ECHO_T}no" >&6; } |
| 6464 | fi |
| 6465 | |
| 6466 | |
| 6467 | if test -n "$ac_tool_prefix"; then |
| 6468 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6469 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6470 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6472 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6474 | else |
| 6475 | if test -n "$RANLIB"; then |
| 6476 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6477 | else |
| 6478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6479 | for as_dir in $PATH |
| 6480 | do |
| 6481 | IFS=$as_save_IFS |
| 6482 | test -z "$as_dir" && as_dir=. |
| 6483 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6485 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6487 | break 2 |
| 6488 | fi |
| 6489 | done |
| 6490 | done |
| 6491 | IFS=$as_save_IFS |
| 6492 | |
| 6493 | fi |
| 6494 | fi |
| 6495 | RANLIB=$ac_cv_prog_RANLIB |
| 6496 | if test -n "$RANLIB"; then |
| 6497 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6498 | echo "${ECHO_T}$RANLIB" >&6; } |
| 6499 | else |
| 6500 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6501 | echo "${ECHO_T}no" >&6; } |
| 6502 | fi |
| 6503 | |
| 6504 | |
| 6505 | fi |
| 6506 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6507 | ac_ct_RANLIB=$RANLIB |
| 6508 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6509 | set dummy ranlib; ac_word=$2 |
| 6510 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6512 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6514 | else |
| 6515 | if test -n "$ac_ct_RANLIB"; then |
| 6516 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6517 | else |
| 6518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6519 | for as_dir in $PATH |
| 6520 | do |
| 6521 | IFS=$as_save_IFS |
| 6522 | test -z "$as_dir" && as_dir=. |
| 6523 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6525 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6527 | break 2 |
| 6528 | fi |
| 6529 | done |
| 6530 | done |
| 6531 | IFS=$as_save_IFS |
| 6532 | |
| 6533 | fi |
| 6534 | fi |
| 6535 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6536 | if test -n "$ac_ct_RANLIB"; then |
| 6537 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6538 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
| 6539 | else |
| 6540 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6541 | echo "${ECHO_T}no" >&6; } |
| 6542 | fi |
| 6543 | |
| 6544 | if test "x$ac_ct_RANLIB" = x; then |
| 6545 | RANLIB=":" |
| 6546 | else |
| 6547 | case $cross_compiling:$ac_tool_warned in |
| 6548 | yes:) |
| 6549 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6550 | whose name does not start with the host triplet. If you think this |
| 6551 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6552 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6553 | whose name does not start with the host triplet. If you think this |
| 6554 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6555 | ac_tool_warned=yes ;; |
| 6556 | esac |
| 6557 | RANLIB=$ac_ct_RANLIB |
| 6558 | fi |
| 6559 | else |
| 6560 | RANLIB="$ac_cv_prog_RANLIB" |
| 6561 | fi |
| 6562 | |
| 6563 | # Extract the first word of "rm", so it can be a program name with args. |
| 6564 | set dummy rm; ac_word=$2 |
| 6565 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6567 | if test "${ac_cv_path_RM+set}" = set; then |
| 6568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6569 | else |
| 6570 | case $RM in |
| 6571 | [\\/]* | ?:[\\/]*) |
| 6572 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 6573 | ;; |
| 6574 | *) |
| 6575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6576 | for as_dir in $PATH |
| 6577 | do |
| 6578 | IFS=$as_save_IFS |
| 6579 | test -z "$as_dir" && as_dir=. |
| 6580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6582 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 6583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6584 | break 2 |
| 6585 | fi |
| 6586 | done |
| 6587 | done |
| 6588 | IFS=$as_save_IFS |
| 6589 | |
| 6590 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 6591 | ;; |
| 6592 | esac |
| 6593 | fi |
| 6594 | RM=$ac_cv_path_RM |
| 6595 | if test -n "$RM"; then |
| 6596 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 6597 | echo "${ECHO_T}$RM" >&6; } |
| 6598 | else |
| 6599 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6600 | echo "${ECHO_T}no" >&6; } |
| 6601 | fi |
| 6602 | |
| 6603 | |
| 6604 | # Extract the first word of "sed", so it can be a program name with args. |
| 6605 | set dummy sed; ac_word=$2 |
| 6606 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6608 | if test "${ac_cv_path_SED+set}" = set; then |
| 6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6610 | else |
| 6611 | case $SED in |
| 6612 | [\\/]* | ?:[\\/]*) |
| 6613 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 6614 | ;; |
| 6615 | *) |
| 6616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6617 | for as_dir in $PATH |
| 6618 | do |
| 6619 | IFS=$as_save_IFS |
| 6620 | test -z "$as_dir" && as_dir=. |
| 6621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6623 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 6624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6625 | break 2 |
| 6626 | fi |
| 6627 | done |
| 6628 | done |
| 6629 | IFS=$as_save_IFS |
| 6630 | |
| 6631 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 6632 | ;; |
| 6633 | esac |
| 6634 | fi |
| 6635 | SED=$ac_cv_path_SED |
| 6636 | if test -n "$SED"; then |
| 6637 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 6638 | echo "${ECHO_T}$SED" >&6; } |
| 6639 | else |
| 6640 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6641 | echo "${ECHO_T}no" >&6; } |
| 6642 | fi |
| 6643 | |
| 6644 | |
| 6645 | # Extract the first word of "tar", so it can be a program name with args. |
| 6646 | set dummy tar; ac_word=$2 |
| 6647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6649 | if test "${ac_cv_path_TAR+set}" = set; then |
| 6650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6651 | else |
| 6652 | case $TAR in |
| 6653 | [\\/]* | ?:[\\/]*) |
| 6654 | ac_cv_path_TAR="$TAR" # Let the user override the test with a path. |
| 6655 | ;; |
| 6656 | *) |
| 6657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6658 | for as_dir in $PATH |
| 6659 | do |
| 6660 | IFS=$as_save_IFS |
| 6661 | test -z "$as_dir" && as_dir=. |
| 6662 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6664 | ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" |
| 6665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6666 | break 2 |
| 6667 | fi |
| 6668 | done |
| 6669 | done |
| 6670 | IFS=$as_save_IFS |
| 6671 | |
| 6672 | test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" |
| 6673 | ;; |
| 6674 | esac |
| 6675 | fi |
| 6676 | TAR=$ac_cv_path_TAR |
| 6677 | if test -n "$TAR"; then |
| 6678 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
| 6679 | echo "${ECHO_T}$TAR" >&6; } |
| 6680 | else |
| 6681 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6682 | echo "${ECHO_T}no" >&6; } |
| 6683 | fi |
| 6684 | |
| 6685 | |
| 6686 | # Extract the first word of "pwd", so it can be a program name with args. |
| 6687 | set dummy pwd; ac_word=$2 |
| 6688 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6690 | if test "${ac_cv_path_BINPWD+set}" = set; then |
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6692 | else |
| 6693 | case $BINPWD in |
| 6694 | [\\/]* | ?:[\\/]*) |
| 6695 | ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. |
| 6696 | ;; |
| 6697 | *) |
| 6698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6699 | for as_dir in $PATH |
| 6700 | do |
| 6701 | IFS=$as_save_IFS |
| 6702 | test -z "$as_dir" && as_dir=. |
| 6703 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6705 | ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" |
| 6706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6707 | break 2 |
| 6708 | fi |
| 6709 | done |
| 6710 | done |
| 6711 | IFS=$as_save_IFS |
| 6712 | |
| 6713 | test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" |
| 6714 | ;; |
| 6715 | esac |
| 6716 | fi |
| 6717 | BINPWD=$ac_cv_path_BINPWD |
| 6718 | if test -n "$BINPWD"; then |
| 6719 | { echo "$as_me:$LINENO: result: $BINPWD" >&5 |
| 6720 | echo "${ECHO_T}$BINPWD" >&6; } |
| 6721 | else |
| 6722 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6723 | echo "${ECHO_T}no" >&6; } |
| 6724 | fi |
| 6725 | |
| 6726 | |
| 6727 | |
| 6728 | # Extract the first word of "Graphviz", so it can be a program name with args. |
| 6729 | set dummy Graphviz; ac_word=$2 |
| 6730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6732 | if test "${ac_cv_path_GRAPHVIZ+set}" = set; then |
| 6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6734 | else |
| 6735 | case $GRAPHVIZ in |
| 6736 | [\\/]* | ?:[\\/]*) |
| 6737 | ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. |
| 6738 | ;; |
| 6739 | *) |
| 6740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6741 | for as_dir in $PATH |
| 6742 | do |
| 6743 | IFS=$as_save_IFS |
| 6744 | test -z "$as_dir" && as_dir=. |
| 6745 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6747 | ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" |
| 6748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6749 | break 2 |
| 6750 | fi |
| 6751 | done |
| 6752 | done |
| 6753 | IFS=$as_save_IFS |
| 6754 | |
| 6755 | test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" |
| 6756 | ;; |
| 6757 | esac |
| 6758 | fi |
| 6759 | GRAPHVIZ=$ac_cv_path_GRAPHVIZ |
| 6760 | if test -n "$GRAPHVIZ"; then |
| 6761 | { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 |
| 6762 | echo "${ECHO_T}$GRAPHVIZ" >&6; } |
| 6763 | else |
| 6764 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6765 | echo "${ECHO_T}no" >&6; } |
| 6766 | fi |
| 6767 | |
| 6768 | |
| 6769 | if test "$GRAPHVIZ" != "echo Graphviz" ; then |
| 6770 | |
| 6771 | cat >>confdefs.h <<\_ACEOF |
| 6772 | #define HAVE_GRAPHVIZ 1 |
| 6773 | _ACEOF |
| 6774 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6775 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6776 | GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6777 | fi |
| 6778 | |
| 6779 | cat >>confdefs.h <<_ACEOF |
| 6780 | #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" |
| 6781 | _ACEOF |
| 6782 | |
| 6783 | fi |
| 6784 | # Extract the first word of "dot", so it can be a program name with args. |
| 6785 | set dummy dot; ac_word=$2 |
| 6786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6788 | if test "${ac_cv_path_DOT+set}" = set; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6790 | else |
| 6791 | case $DOT in |
| 6792 | [\\/]* | ?:[\\/]*) |
| 6793 | ac_cv_path_DOT="$DOT" # Let the user override the test with a path. |
| 6794 | ;; |
| 6795 | *) |
| 6796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6797 | for as_dir in $PATH |
| 6798 | do |
| 6799 | IFS=$as_save_IFS |
| 6800 | test -z "$as_dir" && as_dir=. |
| 6801 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6803 | ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 6804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6805 | break 2 |
| 6806 | fi |
| 6807 | done |
| 6808 | done |
| 6809 | IFS=$as_save_IFS |
| 6810 | |
| 6811 | test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" |
| 6812 | ;; |
| 6813 | esac |
| 6814 | fi |
| 6815 | DOT=$ac_cv_path_DOT |
| 6816 | if test -n "$DOT"; then |
| 6817 | { echo "$as_me:$LINENO: result: $DOT" >&5 |
| 6818 | echo "${ECHO_T}$DOT" >&6; } |
| 6819 | else |
| 6820 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6821 | echo "${ECHO_T}no" >&6; } |
| 6822 | fi |
| 6823 | |
| 6824 | |
| 6825 | if test "$DOT" != "echo dot" ; then |
| 6826 | |
| 6827 | cat >>confdefs.h <<\_ACEOF |
| 6828 | #define HAVE_DOT 1 |
| 6829 | _ACEOF |
| 6830 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6831 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6832 | DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6833 | fi |
| 6834 | |
| 6835 | cat >>confdefs.h <<_ACEOF |
| 6836 | #define LLVM_PATH_DOT "$DOT${EXEEXT}" |
| 6837 | _ACEOF |
| 6838 | |
| 6839 | fi |
| 6840 | for ac_prog in gv gsview32 |
| 6841 | do |
| 6842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6843 | set dummy $ac_prog; ac_word=$2 |
| 6844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6846 | if test "${ac_cv_path_GV+set}" = set; then |
| 6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6848 | else |
| 6849 | case $GV in |
| 6850 | [\\/]* | ?:[\\/]*) |
| 6851 | ac_cv_path_GV="$GV" # Let the user override the test with a path. |
| 6852 | ;; |
| 6853 | *) |
| 6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6855 | for as_dir in $PATH |
| 6856 | do |
| 6857 | IFS=$as_save_IFS |
| 6858 | test -z "$as_dir" && as_dir=. |
| 6859 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6861 | ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" |
| 6862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6863 | break 2 |
| 6864 | fi |
| 6865 | done |
| 6866 | done |
| 6867 | IFS=$as_save_IFS |
| 6868 | |
| 6869 | ;; |
| 6870 | esac |
| 6871 | fi |
| 6872 | GV=$ac_cv_path_GV |
| 6873 | if test -n "$GV"; then |
| 6874 | { echo "$as_me:$LINENO: result: $GV" >&5 |
| 6875 | echo "${ECHO_T}$GV" >&6; } |
| 6876 | else |
| 6877 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6878 | echo "${ECHO_T}no" >&6; } |
| 6879 | fi |
| 6880 | |
| 6881 | |
| 6882 | test -n "$GV" && break |
| 6883 | done |
| 6884 | test -n "$GV" || GV="echo gv" |
| 6885 | |
| 6886 | if test "$GV" != "echo gv" ; then |
| 6887 | |
| 6888 | cat >>confdefs.h <<\_ACEOF |
| 6889 | #define HAVE_GV 1 |
| 6890 | _ACEOF |
| 6891 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6892 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6893 | GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6894 | fi |
| 6895 | |
| 6896 | cat >>confdefs.h <<_ACEOF |
| 6897 | #define LLVM_PATH_GV "$GV${EXEEXT}" |
| 6898 | _ACEOF |
| 6899 | |
| 6900 | fi |
| 6901 | # Extract the first word of "dotty", so it can be a program name with args. |
| 6902 | set dummy dotty; ac_word=$2 |
| 6903 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6905 | if test "${ac_cv_path_DOTTY+set}" = set; then |
| 6906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6907 | else |
| 6908 | case $DOTTY in |
| 6909 | [\\/]* | ?:[\\/]*) |
| 6910 | ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. |
| 6911 | ;; |
| 6912 | *) |
| 6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6914 | for as_dir in $PATH |
| 6915 | do |
| 6916 | IFS=$as_save_IFS |
| 6917 | test -z "$as_dir" && as_dir=. |
| 6918 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6920 | ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" |
| 6921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6922 | break 2 |
| 6923 | fi |
| 6924 | done |
| 6925 | done |
| 6926 | IFS=$as_save_IFS |
| 6927 | |
| 6928 | test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" |
| 6929 | ;; |
| 6930 | esac |
| 6931 | fi |
| 6932 | DOTTY=$ac_cv_path_DOTTY |
| 6933 | if test -n "$DOTTY"; then |
| 6934 | { echo "$as_me:$LINENO: result: $DOTTY" >&5 |
| 6935 | echo "${ECHO_T}$DOTTY" >&6; } |
| 6936 | else |
| 6937 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6938 | echo "${ECHO_T}no" >&6; } |
| 6939 | fi |
| 6940 | |
| 6941 | |
| 6942 | if test "$DOTTY" != "echo dotty" ; then |
| 6943 | |
| 6944 | cat >>confdefs.h <<\_ACEOF |
| 6945 | #define HAVE_DOTTY 1 |
| 6946 | _ACEOF |
| 6947 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 6948 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6949 | DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` |
| 6950 | fi |
| 6951 | |
| 6952 | cat >>confdefs.h <<_ACEOF |
| 6953 | #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" |
| 6954 | _ACEOF |
| 6955 | |
| 6956 | fi |
| 6957 | |
| 6958 | |
| 6959 | # Extract the first word of "perl", so it can be a program name with args. |
| 6960 | set dummy perl; ac_word=$2 |
| 6961 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6963 | if test "${ac_cv_path_PERL+set}" = set; then |
| 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6965 | else |
| 6966 | case $PERL in |
| 6967 | [\\/]* | ?:[\\/]*) |
| 6968 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 6969 | ;; |
| 6970 | *) |
| 6971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6972 | for as_dir in $PATH |
| 6973 | do |
| 6974 | IFS=$as_save_IFS |
| 6975 | test -z "$as_dir" && as_dir=. |
| 6976 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 6977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 6978 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 6979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6980 | break 2 |
| 6981 | fi |
| 6982 | done |
| 6983 | done |
| 6984 | IFS=$as_save_IFS |
| 6985 | |
| 6986 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
| 6987 | ;; |
| 6988 | esac |
| 6989 | fi |
| 6990 | PERL=$ac_cv_path_PERL |
| 6991 | if test -n "$PERL"; then |
| 6992 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 6993 | echo "${ECHO_T}$PERL" >&6; } |
| 6994 | else |
| 6995 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6996 | echo "${ECHO_T}no" >&6; } |
| 6997 | fi |
| 6998 | |
| 6999 | |
| 7000 | if test "$PERL" != "none"; then |
| 7001 | { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 |
| 7002 | echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } |
| 7003 | if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then |
| 7004 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 7005 | echo "${ECHO_T}yes" >&6; } |
| 7006 | else |
| 7007 | PERL=none |
| 7008 | { echo "$as_me:$LINENO: result: not found" >&5 |
| 7009 | echo "${ECHO_T}not found" >&6; } |
| 7010 | fi |
| 7011 | fi |
| 7012 | |
| 7013 | |
| 7014 | if test x"$PERL" = xnone; then |
| 7015 | HAVE_PERL=0 |
| 7016 | |
Reid Spencer | 59807fa | 2007-05-17 18:11:03 +0000 | [diff] [blame] | 7017 | { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 |
| 7018 | echo "$as_me: error: perl is required but was not found, please install it" >&2;} |
| 7019 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7020 | else |
| 7021 | HAVE_PERL=1 |
| 7022 | |
| 7023 | fi |
| 7024 | |
| 7025 | # Find a good install program. We prefer a C program (faster), |
| 7026 | # so one script is as good as another. But avoid the broken or |
| 7027 | # incompatible versions: |
| 7028 | # SysV /etc/install, /usr/sbin/install |
| 7029 | # SunOS /usr/etc/install |
| 7030 | # IRIX /sbin/install |
| 7031 | # AIX /bin/install |
| 7032 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 7033 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 7034 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 7035 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 7036 | # OS/2's system install, which has a completely different semantic |
| 7037 | # ./install, which can be erroneously created by make from ./install.sh. |
| 7038 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 7039 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
| 7040 | if test -z "$INSTALL"; then |
| 7041 | if test "${ac_cv_path_install+set}" = set; then |
| 7042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7043 | else |
| 7044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7045 | for as_dir in $PATH |
| 7046 | do |
| 7047 | IFS=$as_save_IFS |
| 7048 | test -z "$as_dir" && as_dir=. |
| 7049 | # Account for people who put trailing slashes in PATH elements. |
| 7050 | case $as_dir/ in |
| 7051 | ./ | .// | /cC/* | \ |
| 7052 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 7053 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 7054 | /usr/ucb/* ) ;; |
| 7055 | *) |
| 7056 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 7057 | # Don't use installbsd from OSF since it installs stuff as root |
| 7058 | # by default. |
| 7059 | for ac_prog in ginstall scoinst install; do |
| 7060 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7061 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7062 | if test $ac_prog = install && |
| 7063 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7064 | # AIX install. It has an incompatible calling convention. |
| 7065 | : |
| 7066 | elif test $ac_prog = install && |
| 7067 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 7068 | # program-specific install script used by HP pwplus--don't use. |
| 7069 | : |
| 7070 | else |
| 7071 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 7072 | break 3 |
| 7073 | fi |
| 7074 | fi |
| 7075 | done |
| 7076 | done |
| 7077 | ;; |
| 7078 | esac |
| 7079 | done |
| 7080 | IFS=$as_save_IFS |
| 7081 | |
| 7082 | |
| 7083 | fi |
| 7084 | if test "${ac_cv_path_install+set}" = set; then |
| 7085 | INSTALL=$ac_cv_path_install |
| 7086 | else |
| 7087 | # As a last resort, use the slow shell script. Don't cache a |
| 7088 | # value for INSTALL within a source directory, because that will |
| 7089 | # break other packages using the cache if that directory is |
| 7090 | # removed, or if the value is a relative name. |
| 7091 | INSTALL=$ac_install_sh |
| 7092 | fi |
| 7093 | fi |
| 7094 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 7095 | echo "${ECHO_T}$INSTALL" >&6; } |
| 7096 | |
| 7097 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 7098 | # It thinks the first close brace ends the variable substitution. |
| 7099 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 7100 | |
| 7101 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 7102 | |
| 7103 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 7104 | |
| 7105 | |
| 7106 | # Extract the first word of "bzip2", so it can be a program name with args. |
| 7107 | set dummy bzip2; ac_word=$2 |
| 7108 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7110 | if test "${ac_cv_path_BZIP2+set}" = set; then |
| 7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7112 | else |
| 7113 | case $BZIP2 in |
| 7114 | [\\/]* | ?:[\\/]*) |
| 7115 | ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. |
| 7116 | ;; |
| 7117 | *) |
| 7118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7119 | for as_dir in $PATH |
| 7120 | do |
| 7121 | IFS=$as_save_IFS |
| 7122 | test -z "$as_dir" && as_dir=. |
| 7123 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7125 | ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" |
| 7126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7127 | break 2 |
| 7128 | fi |
| 7129 | done |
| 7130 | done |
| 7131 | IFS=$as_save_IFS |
| 7132 | |
| 7133 | test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found"" |
| 7134 | ;; |
| 7135 | esac |
| 7136 | fi |
| 7137 | BZIP2=$ac_cv_path_BZIP2 |
| 7138 | if test -n "$BZIP2"; then |
| 7139 | { echo "$as_me:$LINENO: result: $BZIP2" >&5 |
| 7140 | echo "${ECHO_T}$BZIP2" >&6; } |
| 7141 | else |
| 7142 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7143 | echo "${ECHO_T}no" >&6; } |
| 7144 | fi |
| 7145 | |
| 7146 | |
| 7147 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 7148 | set dummy doxygen; ac_word=$2 |
| 7149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7151 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
| 7152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7153 | else |
| 7154 | case $DOXYGEN in |
| 7155 | [\\/]* | ?:[\\/]*) |
| 7156 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
| 7157 | ;; |
| 7158 | *) |
| 7159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7160 | for as_dir in $PATH |
| 7161 | do |
| 7162 | IFS=$as_save_IFS |
| 7163 | test -z "$as_dir" && as_dir=. |
| 7164 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7166 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 7167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7168 | break 2 |
| 7169 | fi |
| 7170 | done |
| 7171 | done |
| 7172 | IFS=$as_save_IFS |
| 7173 | |
| 7174 | test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found"" |
| 7175 | ;; |
| 7176 | esac |
| 7177 | fi |
| 7178 | DOXYGEN=$ac_cv_path_DOXYGEN |
| 7179 | if test -n "$DOXYGEN"; then |
| 7180 | { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
| 7181 | echo "${ECHO_T}$DOXYGEN" >&6; } |
| 7182 | else |
| 7183 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7184 | echo "${ECHO_T}no" >&6; } |
| 7185 | fi |
| 7186 | |
| 7187 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7188 | # Extract the first word of "groff", so it can be a program name with args. |
| 7189 | set dummy groff; ac_word=$2 |
| 7190 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7192 | if test "${ac_cv_path_GROFF+set}" = set; then |
| 7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7194 | else |
| 7195 | case $GROFF in |
| 7196 | [\\/]* | ?:[\\/]*) |
| 7197 | ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. |
| 7198 | ;; |
| 7199 | *) |
| 7200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7201 | for as_dir in $PATH |
| 7202 | do |
| 7203 | IFS=$as_save_IFS |
| 7204 | test -z "$as_dir" && as_dir=. |
| 7205 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7207 | ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" |
| 7208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7209 | break 2 |
| 7210 | fi |
| 7211 | done |
| 7212 | done |
| 7213 | IFS=$as_save_IFS |
| 7214 | |
| 7215 | test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found"" |
| 7216 | ;; |
| 7217 | esac |
| 7218 | fi |
| 7219 | GROFF=$ac_cv_path_GROFF |
| 7220 | if test -n "$GROFF"; then |
| 7221 | { echo "$as_me:$LINENO: result: $GROFF" >&5 |
| 7222 | echo "${ECHO_T}$GROFF" >&6; } |
| 7223 | else |
| 7224 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7225 | echo "${ECHO_T}no" >&6; } |
| 7226 | fi |
| 7227 | |
| 7228 | |
| 7229 | # Extract the first word of "gzip", so it can be a program name with args. |
| 7230 | set dummy gzip; ac_word=$2 |
| 7231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7233 | if test "${ac_cv_path_GZIP+set}" = set; then |
| 7234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7235 | else |
| 7236 | case $GZIP in |
| 7237 | [\\/]* | ?:[\\/]*) |
| 7238 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. |
| 7239 | ;; |
| 7240 | *) |
| 7241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7242 | for as_dir in $PATH |
| 7243 | do |
| 7244 | IFS=$as_save_IFS |
| 7245 | test -z "$as_dir" && as_dir=. |
| 7246 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7247 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7248 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7250 | break 2 |
| 7251 | fi |
| 7252 | done |
| 7253 | done |
| 7254 | IFS=$as_save_IFS |
| 7255 | |
| 7256 | test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found"" |
| 7257 | ;; |
| 7258 | esac |
| 7259 | fi |
| 7260 | GZIP=$ac_cv_path_GZIP |
| 7261 | if test -n "$GZIP"; then |
| 7262 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
| 7263 | echo "${ECHO_T}$GZIP" >&6; } |
| 7264 | else |
| 7265 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7266 | echo "${ECHO_T}no" >&6; } |
| 7267 | fi |
| 7268 | |
| 7269 | |
| 7270 | # Extract the first word of "pod2html", so it can be a program name with args. |
| 7271 | set dummy pod2html; ac_word=$2 |
| 7272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7274 | if test "${ac_cv_path_POD2HTML+set}" = set; then |
| 7275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7276 | else |
| 7277 | case $POD2HTML in |
| 7278 | [\\/]* | ?:[\\/]*) |
| 7279 | ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. |
| 7280 | ;; |
| 7281 | *) |
| 7282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7283 | for as_dir in $PATH |
| 7284 | do |
| 7285 | IFS=$as_save_IFS |
| 7286 | test -z "$as_dir" && as_dir=. |
| 7287 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7289 | ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" |
| 7290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7291 | break 2 |
| 7292 | fi |
| 7293 | done |
| 7294 | done |
| 7295 | IFS=$as_save_IFS |
| 7296 | |
| 7297 | test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found"" |
| 7298 | ;; |
| 7299 | esac |
| 7300 | fi |
| 7301 | POD2HTML=$ac_cv_path_POD2HTML |
| 7302 | if test -n "$POD2HTML"; then |
| 7303 | { echo "$as_me:$LINENO: result: $POD2HTML" >&5 |
| 7304 | echo "${ECHO_T}$POD2HTML" >&6; } |
| 7305 | else |
| 7306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7307 | echo "${ECHO_T}no" >&6; } |
| 7308 | fi |
| 7309 | |
| 7310 | |
| 7311 | # Extract the first word of "pod2man", so it can be a program name with args. |
| 7312 | set dummy pod2man; ac_word=$2 |
| 7313 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7315 | if test "${ac_cv_path_POD2MAN+set}" = set; then |
| 7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7317 | else |
| 7318 | case $POD2MAN in |
| 7319 | [\\/]* | ?:[\\/]*) |
| 7320 | ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. |
| 7321 | ;; |
| 7322 | *) |
| 7323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7324 | for as_dir in $PATH |
| 7325 | do |
| 7326 | IFS=$as_save_IFS |
| 7327 | test -z "$as_dir" && as_dir=. |
| 7328 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7330 | ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" |
| 7331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7332 | break 2 |
| 7333 | fi |
| 7334 | done |
| 7335 | done |
| 7336 | IFS=$as_save_IFS |
| 7337 | |
| 7338 | test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found"" |
| 7339 | ;; |
| 7340 | esac |
| 7341 | fi |
| 7342 | POD2MAN=$ac_cv_path_POD2MAN |
| 7343 | if test -n "$POD2MAN"; then |
| 7344 | { echo "$as_me:$LINENO: result: $POD2MAN" >&5 |
| 7345 | echo "${ECHO_T}$POD2MAN" >&6; } |
| 7346 | else |
| 7347 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7348 | echo "${ECHO_T}no" >&6; } |
| 7349 | fi |
| 7350 | |
| 7351 | |
| 7352 | # Extract the first word of "runtest", so it can be a program name with args. |
| 7353 | set dummy runtest; ac_word=$2 |
| 7354 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7356 | if test "${ac_cv_path_RUNTEST+set}" = set; then |
| 7357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7358 | else |
| 7359 | case $RUNTEST in |
| 7360 | [\\/]* | ?:[\\/]*) |
| 7361 | ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. |
| 7362 | ;; |
| 7363 | *) |
| 7364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7365 | for as_dir in $PATH |
| 7366 | do |
| 7367 | IFS=$as_save_IFS |
| 7368 | test -z "$as_dir" && as_dir=. |
| 7369 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7371 | ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" |
| 7372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7373 | break 2 |
| 7374 | fi |
| 7375 | done |
| 7376 | done |
| 7377 | IFS=$as_save_IFS |
| 7378 | |
| 7379 | test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found"" |
| 7380 | ;; |
| 7381 | esac |
| 7382 | fi |
| 7383 | RUNTEST=$ac_cv_path_RUNTEST |
| 7384 | if test -n "$RUNTEST"; then |
| 7385 | { echo "$as_me:$LINENO: result: $RUNTEST" >&5 |
| 7386 | echo "${ECHO_T}$RUNTEST" >&6; } |
| 7387 | else |
| 7388 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7389 | echo "${ECHO_T}no" >&6; } |
| 7390 | fi |
| 7391 | |
| 7392 | |
| 7393 | |
| 7394 | no_itcl=true |
| 7395 | { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 |
| 7396 | echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } |
| 7397 | |
| 7398 | # Check whether --with-tclinclude was given. |
| 7399 | if test "${with_tclinclude+set}" = set; then |
| 7400 | withval=$with_tclinclude; with_tclinclude=${withval} |
| 7401 | else |
| 7402 | with_tclinclude='' |
| 7403 | fi |
| 7404 | |
| 7405 | if test "${ac_cv_path_tclsh+set}" = set; then |
| 7406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7407 | else |
| 7408 | |
| 7409 | if test x"${with_tclinclude}" != x ; then |
| 7410 | if test -f ${with_tclinclude}/tclsh ; then |
| 7411 | ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` |
| 7412 | elif test -f ${with_tclinclude}/src/tclsh ; then |
| 7413 | ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` |
| 7414 | else |
| 7415 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 |
| 7416 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} |
| 7417 | { (exit 1); exit 1; }; } |
| 7418 | fi |
| 7419 | fi |
| 7420 | |
| 7421 | if test x"${ac_cv_path_tclsh}" = x ; then |
| 7422 | { echo "$as_me:$LINENO: result: none" >&5 |
| 7423 | echo "${ECHO_T}none" >&6; } |
| 7424 | 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 |
| 7425 | do |
| 7426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7427 | set dummy $ac_prog; ac_word=$2 |
| 7428 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7430 | if test "${ac_cv_path_TCLSH+set}" = set; then |
| 7431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7432 | else |
| 7433 | case $TCLSH in |
| 7434 | [\\/]* | ?:[\\/]*) |
| 7435 | ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. |
| 7436 | ;; |
| 7437 | *) |
| 7438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7439 | for as_dir in $PATH |
| 7440 | do |
| 7441 | IFS=$as_save_IFS |
| 7442 | test -z "$as_dir" && as_dir=. |
| 7443 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7445 | ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" |
| 7446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7447 | break 2 |
| 7448 | fi |
| 7449 | done |
| 7450 | done |
| 7451 | IFS=$as_save_IFS |
| 7452 | |
| 7453 | ;; |
| 7454 | esac |
| 7455 | fi |
| 7456 | TCLSH=$ac_cv_path_TCLSH |
| 7457 | if test -n "$TCLSH"; then |
| 7458 | { echo "$as_me:$LINENO: result: $TCLSH" >&5 |
| 7459 | echo "${ECHO_T}$TCLSH" >&6; } |
| 7460 | else |
| 7461 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7462 | echo "${ECHO_T}no" >&6; } |
| 7463 | fi |
| 7464 | |
| 7465 | |
| 7466 | test -n "$TCLSH" && break |
| 7467 | done |
| 7468 | |
| 7469 | if test x"${TCLSH}" = x ; then |
| 7470 | ac_cv_path_tclsh=''; |
| 7471 | else |
| 7472 | ac_cv_path_tclsh="${TCLSH}"; |
| 7473 | fi |
| 7474 | else |
| 7475 | { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 |
| 7476 | echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } |
| 7477 | TCLSH="${ac_cv_path_tclsh}" |
| 7478 | |
| 7479 | fi |
| 7480 | |
| 7481 | fi |
| 7482 | |
| 7483 | # Extract the first word of "zip", so it can be a program name with args. |
| 7484 | set dummy zip; ac_word=$2 |
| 7485 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7487 | if test "${ac_cv_path_ZIP+set}" = set; then |
| 7488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7489 | else |
| 7490 | case $ZIP in |
| 7491 | [\\/]* | ?:[\\/]*) |
| 7492 | ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. |
| 7493 | ;; |
| 7494 | *) |
| 7495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7496 | for as_dir in $PATH |
| 7497 | do |
| 7498 | IFS=$as_save_IFS |
| 7499 | test -z "$as_dir" && as_dir=. |
| 7500 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7501 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7502 | ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" |
| 7503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7504 | break 2 |
| 7505 | fi |
| 7506 | done |
| 7507 | done |
| 7508 | IFS=$as_save_IFS |
| 7509 | |
| 7510 | test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found"" |
| 7511 | ;; |
| 7512 | esac |
| 7513 | fi |
| 7514 | ZIP=$ac_cv_path_ZIP |
| 7515 | if test -n "$ZIP"; then |
| 7516 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
| 7517 | echo "${ECHO_T}$ZIP" >&6; } |
| 7518 | else |
| 7519 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7520 | echo "${ECHO_T}no" >&6; } |
| 7521 | fi |
| 7522 | |
| 7523 | |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7524 | # Extract the first word of "ocamlc", so it can be a program name with args. |
| 7525 | set dummy ocamlc; ac_word=$2 |
| 7526 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7528 | if test "${ac_cv_path_OCAMLC+set}" = set; then |
| 7529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7530 | else |
| 7531 | case $OCAMLC in |
| 7532 | [\\/]* | ?:[\\/]*) |
| 7533 | ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. |
| 7534 | ;; |
| 7535 | *) |
| 7536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7537 | for as_dir in $PATH |
| 7538 | do |
| 7539 | IFS=$as_save_IFS |
| 7540 | test -z "$as_dir" && as_dir=. |
| 7541 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7543 | ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" |
| 7544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7545 | break 2 |
| 7546 | fi |
| 7547 | done |
| 7548 | done |
| 7549 | IFS=$as_save_IFS |
| 7550 | |
| 7551 | test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found"" |
| 7552 | ;; |
| 7553 | esac |
| 7554 | fi |
| 7555 | OCAMLC=$ac_cv_path_OCAMLC |
| 7556 | if test -n "$OCAMLC"; then |
| 7557 | { echo "$as_me:$LINENO: result: $OCAMLC" >&5 |
| 7558 | echo "${ECHO_T}$OCAMLC" >&6; } |
| 7559 | else |
| 7560 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7561 | echo "${ECHO_T}no" >&6; } |
| 7562 | fi |
| 7563 | |
| 7564 | |
| 7565 | # Extract the first word of "ocamlopt", so it can be a program name with args. |
| 7566 | set dummy ocamlopt; ac_word=$2 |
| 7567 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7569 | if test "${ac_cv_path_OCAMLOPT+set}" = set; then |
| 7570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7571 | else |
| 7572 | case $OCAMLOPT in |
| 7573 | [\\/]* | ?:[\\/]*) |
| 7574 | ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. |
| 7575 | ;; |
| 7576 | *) |
| 7577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7578 | for as_dir in $PATH |
| 7579 | do |
| 7580 | IFS=$as_save_IFS |
| 7581 | test -z "$as_dir" && as_dir=. |
| 7582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 7584 | ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" |
| 7585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7586 | break 2 |
| 7587 | fi |
| 7588 | done |
| 7589 | done |
| 7590 | IFS=$as_save_IFS |
| 7591 | |
| 7592 | test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found"" |
| 7593 | ;; |
| 7594 | esac |
| 7595 | fi |
| 7596 | OCAMLOPT=$ac_cv_path_OCAMLOPT |
| 7597 | if test -n "$OCAMLOPT"; then |
| 7598 | { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 |
| 7599 | echo "${ECHO_T}$OCAMLOPT" >&6; } |
| 7600 | else |
| 7601 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7602 | echo "${ECHO_T}no" >&6; } |
| 7603 | fi |
| 7604 | |
| 7605 | |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7606 | # Extract the first word of "ocamldep", so it can be a program name with args. |
| 7607 | set dummy ocamldep; ac_word=$2 |
| 7608 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 7610 | if test "${ac_cv_path_OCAMLDEP+set}" = set; then |
| 7611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7612 | else |
| 7613 | case $OCAMLDEP in |
| 7614 | [\\/]* | ?:[\\/]*) |
| 7615 | ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. |
| 7616 | ;; |
| 7617 | *) |
| 7618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7619 | for as_dir in $PATH |
| 7620 | do |
| 7621 | IFS=$as_save_IFS |
| 7622 | test -z "$as_dir" && as_dir=. |
| 7623 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 7625 | ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" |
| 7626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7627 | break 2 |
| 7628 | fi |
| 7629 | done |
| 7630 | done |
| 7631 | IFS=$as_save_IFS |
| 7632 | |
| 7633 | test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found"" |
| 7634 | ;; |
| 7635 | esac |
| 7636 | fi |
| 7637 | OCAMLDEP=$ac_cv_path_OCAMLDEP |
| 7638 | if test -n "$OCAMLDEP"; then |
| 7639 | { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 |
| 7640 | echo "${ECHO_T}$OCAMLDEP" >&6; } |
| 7641 | else |
| 7642 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7643 | echo "${ECHO_T}no" >&6; } |
| 7644 | fi |
| 7645 | |
| 7646 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7647 | |
| 7648 | { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 |
| 7649 | echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } |
| 7650 | if test "${llvm_cv_link_use_r+set}" = set; then |
| 7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7652 | else |
| 7653 | ac_ext=c |
| 7654 | ac_cpp='$CPP $CPPFLAGS' |
| 7655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7658 | |
| 7659 | oldcflags="$CFLAGS" |
| 7660 | CFLAGS="$CFLAGS -Wl,-R." |
| 7661 | cat >conftest.$ac_ext <<_ACEOF |
| 7662 | /* confdefs.h. */ |
| 7663 | _ACEOF |
| 7664 | cat confdefs.h >>conftest.$ac_ext |
| 7665 | cat >>conftest.$ac_ext <<_ACEOF |
| 7666 | /* end confdefs.h. */ |
| 7667 | |
| 7668 | int |
| 7669 | main () |
| 7670 | { |
| 7671 | int main() { return 0; } |
| 7672 | ; |
| 7673 | return 0; |
| 7674 | } |
| 7675 | _ACEOF |
| 7676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7677 | if { (ac_try="$ac_link" |
| 7678 | case "(($ac_try" in |
| 7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7680 | *) ac_try_echo=$ac_try;; |
| 7681 | esac |
| 7682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7683 | (eval "$ac_link") 2>conftest.er1 |
| 7684 | ac_status=$? |
| 7685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7686 | rm -f conftest.er1 |
| 7687 | cat conftest.err >&5 |
| 7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7689 | (exit $ac_status); } && { |
| 7690 | test -z "$ac_c_werror_flag" || |
| 7691 | test ! -s conftest.err |
| 7692 | } && test -s conftest$ac_exeext && |
| 7693 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7694 | llvm_cv_link_use_r=yes |
| 7695 | else |
| 7696 | echo "$as_me: failed program was:" >&5 |
| 7697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7698 | |
| 7699 | llvm_cv_link_use_r=no |
| 7700 | fi |
| 7701 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7703 | conftest$ac_exeext conftest.$ac_ext |
| 7704 | CFLAGS="$oldcflags" |
| 7705 | ac_ext=c |
| 7706 | ac_cpp='$CPP $CPPFLAGS' |
| 7707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7710 | |
| 7711 | |
| 7712 | fi |
| 7713 | { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 |
| 7714 | echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } |
| 7715 | if test "$llvm_cv_link_use_r" = yes ; then |
| 7716 | |
| 7717 | cat >>confdefs.h <<\_ACEOF |
| 7718 | #define HAVE_LINK_R 1 |
| 7719 | _ACEOF |
| 7720 | |
| 7721 | fi |
| 7722 | |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 7727 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
| 7728 | if test "${ac_cv_c_const+set}" = set; then |
| 7729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7730 | else |
| 7731 | cat >conftest.$ac_ext <<_ACEOF |
| 7732 | /* confdefs.h. */ |
| 7733 | _ACEOF |
| 7734 | cat confdefs.h >>conftest.$ac_ext |
| 7735 | cat >>conftest.$ac_ext <<_ACEOF |
| 7736 | /* end confdefs.h. */ |
| 7737 | |
| 7738 | int |
| 7739 | main () |
| 7740 | { |
| 7741 | /* FIXME: Include the comments suggested by Paul. */ |
| 7742 | #ifndef __cplusplus |
| 7743 | /* Ultrix mips cc rejects this. */ |
| 7744 | typedef int charset[2]; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7745 | const charset cs; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7746 | /* SunOS 4.1.1 cc rejects this. */ |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7747 | char const *const *pcpcc; |
| 7748 | char **ppc; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7749 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 7750 | struct point {int x, y;}; |
| 7751 | static struct point const zero = {0,0}; |
| 7752 | /* AIX XL C 1.02.0.0 rejects this. |
| 7753 | It does not let you subtract one const X* pointer from another in |
| 7754 | an arm of an if-expression whose if-part is not a constant |
| 7755 | expression */ |
| 7756 | const char *g = "string"; |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7757 | pcpcc = &g + (g ? g-g : 0); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7758 | /* HPUX 7.0 cc rejects these. */ |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7759 | ++pcpcc; |
| 7760 | ppc = (char**) pcpcc; |
| 7761 | pcpcc = (char const *const *) ppc; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7762 | { /* SCO 3.2v4 cc rejects this. */ |
| 7763 | char *t; |
| 7764 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 7765 | |
| 7766 | *t++ = 0; |
| 7767 | if (s) return 0; |
| 7768 | } |
| 7769 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 7770 | int x[] = {25, 17}; |
| 7771 | const int *foo = &x[0]; |
| 7772 | ++foo; |
| 7773 | } |
| 7774 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 7775 | typedef const int *iptr; |
| 7776 | iptr p = 0; |
| 7777 | ++p; |
| 7778 | } |
| 7779 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 7780 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 7781 | struct s { int j; const int *ap[3]; }; |
| 7782 | struct s *b; b->j = 5; |
| 7783 | } |
| 7784 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 7785 | const int foo = 10; |
| 7786 | if (!foo) return 0; |
| 7787 | } |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7788 | return !cs[0] && !zero.x; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7789 | #endif |
| 7790 | |
| 7791 | ; |
| 7792 | return 0; |
| 7793 | } |
| 7794 | _ACEOF |
| 7795 | rm -f conftest.$ac_objext |
| 7796 | if { (ac_try="$ac_compile" |
| 7797 | case "(($ac_try" in |
| 7798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7799 | *) ac_try_echo=$ac_try;; |
| 7800 | esac |
| 7801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7802 | (eval "$ac_compile") 2>conftest.er1 |
| 7803 | ac_status=$? |
| 7804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7805 | rm -f conftest.er1 |
| 7806 | cat conftest.err >&5 |
| 7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7808 | (exit $ac_status); } && { |
| 7809 | test -z "$ac_c_werror_flag" || |
| 7810 | test ! -s conftest.err |
| 7811 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7812 | ac_cv_c_const=yes |
| 7813 | else |
| 7814 | echo "$as_me: failed program was:" >&5 |
| 7815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7816 | |
| 7817 | ac_cv_c_const=no |
| 7818 | fi |
| 7819 | |
| 7820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7821 | fi |
| 7822 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 7823 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
| 7824 | if test $ac_cv_c_const = no; then |
| 7825 | |
| 7826 | cat >>confdefs.h <<\_ACEOF |
| 7827 | #define const |
| 7828 | _ACEOF |
| 7829 | |
| 7830 | fi |
| 7831 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7832 | |
| 7833 | |
| 7834 | |
| 7835 | |
| 7836 | |
| 7837 | ac_header_dirent=no |
| 7838 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 7839 | 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] | 7840 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 7841 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 7842 | 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] | 7843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7844 | else |
| 7845 | cat >conftest.$ac_ext <<_ACEOF |
| 7846 | /* confdefs.h. */ |
| 7847 | _ACEOF |
| 7848 | cat confdefs.h >>conftest.$ac_ext |
| 7849 | cat >>conftest.$ac_ext <<_ACEOF |
| 7850 | /* end confdefs.h. */ |
| 7851 | #include <sys/types.h> |
| 7852 | #include <$ac_hdr> |
| 7853 | |
| 7854 | int |
| 7855 | main () |
| 7856 | { |
| 7857 | if ((DIR *) 0) |
| 7858 | return 0; |
| 7859 | ; |
| 7860 | return 0; |
| 7861 | } |
| 7862 | _ACEOF |
| 7863 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7864 | if { (ac_try="$ac_compile" |
| 7865 | case "(($ac_try" in |
| 7866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7867 | *) ac_try_echo=$ac_try;; |
| 7868 | esac |
| 7869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7870 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7871 | ac_status=$? |
| 7872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7873 | rm -f conftest.er1 |
| 7874 | cat conftest.err >&5 |
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7876 | (exit $ac_status); } && { |
| 7877 | test -z "$ac_c_werror_flag" || |
| 7878 | test ! -s conftest.err |
| 7879 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7880 | eval "$as_ac_Header=yes" |
| 7881 | else |
| 7882 | echo "$as_me: failed program was:" >&5 |
| 7883 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7885 | eval "$as_ac_Header=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7886 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7887 | |
| 7888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7889 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7890 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7892 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7893 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7894 | cat >>confdefs.h <<_ACEOF |
| 7895 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 7896 | _ACEOF |
| 7897 | |
| 7898 | ac_header_dirent=$ac_hdr; break |
| 7899 | fi |
| 7900 | |
| 7901 | done |
| 7902 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7903 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7904 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 7905 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7906 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7908 | else |
| 7909 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7910 | cat >conftest.$ac_ext <<_ACEOF |
| 7911 | /* confdefs.h. */ |
| 7912 | _ACEOF |
| 7913 | cat confdefs.h >>conftest.$ac_ext |
| 7914 | cat >>conftest.$ac_ext <<_ACEOF |
| 7915 | /* end confdefs.h. */ |
| 7916 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7917 | /* Override any GCC internal prototype to avoid an error. |
| 7918 | Use char because int might match the return type of a GCC |
| 7919 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7920 | #ifdef __cplusplus |
| 7921 | extern "C" |
| 7922 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7923 | char opendir (); |
| 7924 | int |
| 7925 | main () |
| 7926 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7927 | return opendir (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7928 | ; |
| 7929 | return 0; |
| 7930 | } |
| 7931 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7932 | for ac_lib in '' dir; do |
| 7933 | if test -z "$ac_lib"; then |
| 7934 | ac_res="none required" |
| 7935 | else |
| 7936 | ac_res=-l$ac_lib |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7937 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7938 | fi |
| 7939 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7940 | if { (ac_try="$ac_link" |
| 7941 | case "(($ac_try" in |
| 7942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7943 | *) ac_try_echo=$ac_try;; |
| 7944 | esac |
| 7945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7946 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7947 | ac_status=$? |
| 7948 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7949 | rm -f conftest.er1 |
| 7950 | cat conftest.err >&5 |
| 7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7952 | (exit $ac_status); } && { |
| 7953 | test -z "$ac_c_werror_flag" || |
| 7954 | test ! -s conftest.err |
| 7955 | } && test -s conftest$ac_exeext && |
| 7956 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7957 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7958 | else |
| 7959 | echo "$as_me: failed program was:" >&5 |
| 7960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7961 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7962 | |
| 7963 | fi |
| 7964 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 7965 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7966 | conftest$ac_exeext |
| 7967 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7968 | break |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 7969 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7970 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7971 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7972 | : |
| 7973 | else |
| 7974 | ac_cv_search_opendir=no |
| 7975 | fi |
| 7976 | rm conftest.$ac_ext |
| 7977 | LIBS=$ac_func_search_save_LIBS |
| 7978 | fi |
| 7979 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 7980 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 7981 | ac_res=$ac_cv_search_opendir |
| 7982 | if test "$ac_res" != no; then |
| 7983 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 7984 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 7985 | fi |
| 7986 | |
| 7987 | else |
| 7988 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 7989 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
| 7990 | if test "${ac_cv_search_opendir+set}" = set; then |
| 7991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7992 | else |
| 7993 | ac_func_search_save_LIBS=$LIBS |
| 7994 | cat >conftest.$ac_ext <<_ACEOF |
| 7995 | /* confdefs.h. */ |
| 7996 | _ACEOF |
| 7997 | cat confdefs.h >>conftest.$ac_ext |
| 7998 | cat >>conftest.$ac_ext <<_ACEOF |
| 7999 | /* end confdefs.h. */ |
| 8000 | |
| 8001 | /* Override any GCC internal prototype to avoid an error. |
| 8002 | Use char because int might match the return type of a GCC |
| 8003 | builtin and then its argument prototype would still apply. */ |
| 8004 | #ifdef __cplusplus |
| 8005 | extern "C" |
| 8006 | #endif |
| 8007 | char opendir (); |
| 8008 | int |
| 8009 | main () |
| 8010 | { |
| 8011 | return opendir (); |
| 8012 | ; |
| 8013 | return 0; |
| 8014 | } |
| 8015 | _ACEOF |
| 8016 | for ac_lib in '' x; do |
| 8017 | if test -z "$ac_lib"; then |
| 8018 | ac_res="none required" |
| 8019 | else |
| 8020 | ac_res=-l$ac_lib |
| 8021 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 8022 | fi |
| 8023 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8024 | if { (ac_try="$ac_link" |
| 8025 | case "(($ac_try" in |
| 8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8027 | *) ac_try_echo=$ac_try;; |
| 8028 | esac |
| 8029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8030 | (eval "$ac_link") 2>conftest.er1 |
| 8031 | ac_status=$? |
| 8032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8033 | rm -f conftest.er1 |
| 8034 | cat conftest.err >&5 |
| 8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 8036 | (exit $ac_status); } && { |
| 8037 | test -z "$ac_c_werror_flag" || |
| 8038 | test ! -s conftest.err |
| 8039 | } && test -s conftest$ac_exeext && |
| 8040 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8041 | ac_cv_search_opendir=$ac_res |
| 8042 | else |
| 8043 | echo "$as_me: failed program was:" >&5 |
| 8044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8045 | |
| 8046 | |
| 8047 | fi |
| 8048 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 8049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8050 | conftest$ac_exeext |
| 8051 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8052 | break |
| 8053 | fi |
| 8054 | done |
| 8055 | if test "${ac_cv_search_opendir+set}" = set; then |
| 8056 | : |
| 8057 | else |
| 8058 | ac_cv_search_opendir=no |
| 8059 | fi |
| 8060 | rm conftest.$ac_ext |
| 8061 | LIBS=$ac_func_search_save_LIBS |
| 8062 | fi |
| 8063 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 8064 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 8065 | ac_res=$ac_cv_search_opendir |
| 8066 | if test "$ac_res" != no; then |
| 8067 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 8068 | |
| 8069 | fi |
| 8070 | |
| 8071 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8072 | |
| 8073 | |
| 8074 | for ac_header in dlfcn.h |
| 8075 | do |
| 8076 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8078 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8080 | 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] | 8081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8082 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8083 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8085 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8086 | else |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8087 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8088 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8089 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8090 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8091 | /* confdefs.h. */ |
| 8092 | _ACEOF |
| 8093 | cat confdefs.h >>conftest.$ac_ext |
| 8094 | cat >>conftest.$ac_ext <<_ACEOF |
| 8095 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8096 | $ac_includes_default |
| 8097 | #include <$ac_header> |
| 8098 | _ACEOF |
| 8099 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8100 | if { (ac_try="$ac_compile" |
| 8101 | case "(($ac_try" in |
| 8102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8103 | *) ac_try_echo=$ac_try;; |
| 8104 | esac |
| 8105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8106 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8107 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8109 | rm -f conftest.er1 |
| 8110 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 8112 | (exit $ac_status); } && { |
| 8113 | test -z "$ac_c_werror_flag" || |
| 8114 | test ! -s conftest.err |
| 8115 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8116 | ac_header_compiler=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8117 | else |
| 8118 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 8119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8121 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8123 | |
| 8124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8125 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8126 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8127 | |
| 8128 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8129 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8130 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8131 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8132 | /* confdefs.h. */ |
| 8133 | _ACEOF |
| 8134 | cat confdefs.h >>conftest.$ac_ext |
| 8135 | cat >>conftest.$ac_ext <<_ACEOF |
| 8136 | /* end confdefs.h. */ |
| 8137 | #include <$ac_header> |
| 8138 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8139 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8140 | case "(($ac_try" in |
| 8141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8142 | *) ac_try_echo=$ac_try;; |
| 8143 | esac |
| 8144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8145 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8146 | ac_status=$? |
| 8147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8148 | rm -f conftest.er1 |
| 8149 | cat conftest.err >&5 |
| 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 8151 | (exit $ac_status); } >/dev/null && { |
| 8152 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8153 | test ! -s conftest.err |
| 8154 | }; then |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8155 | ac_header_preproc=yes |
| 8156 | else |
| 8157 | echo "$as_me: failed program was:" >&5 |
| 8158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8159 | |
| 8160 | ac_header_preproc=no |
| 8161 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8162 | |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8163 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8164 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8165 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8166 | |
| 8167 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8168 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8169 | yes:no: ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8170 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8171 | 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] | 8172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8173 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8174 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8175 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8176 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8177 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8178 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8179 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8180 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8181 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8182 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8184 | 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] | 8185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8186 | 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] | 8187 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8188 | 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] | 8189 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8190 | ## ----------------------------------- ## |
| 8191 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 8192 | ## ----------------------------------- ## |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8193 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8194 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8195 | ;; |
| 8196 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8197 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8199 | 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] | 8200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8201 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 8202 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8203 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8204 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8205 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8206 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 8207 | |
| 8208 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 8209 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8210 | cat >>confdefs.h <<_ACEOF |
| 8211 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8212 | _ACEOF |
| 8213 | |
| 8214 | fi |
| 8215 | |
| 8216 | done |
| 8217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8218 | # Check whether --enable-ltdl-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8219 | if test "${enable_ltdl_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8220 | enableval=$enable_ltdl_install; |
| 8221 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8222 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8223 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8224 | |
| 8225 | |
| 8226 | if test x"${enable_ltdl_install-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8227 | INSTALL_LTDL_TRUE= |
| 8228 | INSTALL_LTDL_FALSE='#' |
| 8229 | else |
| 8230 | INSTALL_LTDL_TRUE='#' |
| 8231 | INSTALL_LTDL_FALSE= |
| 8232 | fi |
| 8233 | |
Duncan Sands | 1eff704 | 2007-12-10 17:43:13 +0000 | [diff] [blame] | 8234 | |
| 8235 | |
| 8236 | if test x"${enable_ltdl_convenience-no}" != xno; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8237 | CONVENIENCE_LTDL_TRUE= |
| 8238 | CONVENIENCE_LTDL_FALSE='#' |
| 8239 | else |
| 8240 | CONVENIENCE_LTDL_TRUE='#' |
| 8241 | CONVENIENCE_LTDL_FALSE= |
| 8242 | fi |
| 8243 | |
| 8244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8245 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8246 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8247 | library_names_spec= |
| 8248 | libname_spec='lib$name' |
| 8249 | soname_spec= |
| 8250 | shrext_cmds=".so" |
| 8251 | postinstall_cmds= |
| 8252 | postuninstall_cmds= |
| 8253 | finish_cmds= |
| 8254 | finish_eval= |
| 8255 | shlibpath_var= |
| 8256 | shlibpath_overrides_runpath=unknown |
| 8257 | version_type=none |
| 8258 | dynamic_linker="$host_os ld.so" |
| 8259 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8260 | if test "$GCC" = yes; then |
| 8261 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8262 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8263 | # if the path contains ";" then we assume it to be the separator |
| 8264 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8265 | # assumed that no part of a normal pathname contains ";" but that should |
| 8266 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8267 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8268 | else |
| 8269 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8270 | fi |
| 8271 | else |
| 8272 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8273 | fi |
| 8274 | need_lib_prefix=unknown |
| 8275 | hardcode_into_libs=no |
| 8276 | |
| 8277 | # when you set need_version to no, make sure it does not cause -set_version |
| 8278 | # flags to be left without arguments |
| 8279 | need_version=unknown |
| 8280 | |
| 8281 | case $host_os in |
| 8282 | aix3*) |
| 8283 | version_type=linux |
| 8284 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8285 | shlibpath_var=LIBPATH |
| 8286 | |
| 8287 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8289 | ;; |
| 8290 | |
| 8291 | aix4* | aix5*) |
| 8292 | version_type=linux |
| 8293 | need_lib_prefix=no |
| 8294 | need_version=no |
| 8295 | hardcode_into_libs=yes |
| 8296 | if test "$host_cpu" = ia64; then |
| 8297 | # AIX 5 supports IA64 |
| 8298 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8299 | shlibpath_var=LD_LIBRARY_PATH |
| 8300 | else |
| 8301 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8302 | # for dependence libraries. The import file would start with |
| 8303 | # the line `#! .'. This would cause the generated library to |
| 8304 | # depend on `.', always an invalid library. This was fixed in |
| 8305 | # development snapshots of GCC prior to 3.0. |
| 8306 | case $host_os in |
| 8307 | aix4 | aix4.[01] | aix4.[01].*) |
| 8308 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8309 | echo ' yes ' |
| 8310 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8311 | : |
| 8312 | else |
| 8313 | can_build_shared=no |
| 8314 | fi |
| 8315 | ;; |
| 8316 | esac |
| 8317 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8318 | # soname into executable. Probably we can add versioning support to |
| 8319 | # collect2, so additional links can be useful in future. |
| 8320 | if test "$aix_use_runtimelinking" = yes; then |
| 8321 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8322 | # instead of lib<name>.a to let people know that these are not |
| 8323 | # typical AIX shared libraries. |
| 8324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8325 | else |
| 8326 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8327 | # and later when we are not doing run time linking. |
| 8328 | library_names_spec='${libname}${release}.a $libname.a' |
| 8329 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8330 | fi |
| 8331 | shlibpath_var=LIBPATH |
| 8332 | fi |
| 8333 | ;; |
| 8334 | |
| 8335 | amigaos*) |
| 8336 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8337 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8338 | 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' |
| 8339 | ;; |
| 8340 | |
| 8341 | beos*) |
| 8342 | library_names_spec='${libname}${shared_ext}' |
| 8343 | dynamic_linker="$host_os ld.so" |
| 8344 | shlibpath_var=LIBRARY_PATH |
| 8345 | ;; |
| 8346 | |
| 8347 | bsdi[45]*) |
| 8348 | version_type=linux |
| 8349 | need_version=no |
| 8350 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8352 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8353 | shlibpath_var=LD_LIBRARY_PATH |
| 8354 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8355 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8356 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8357 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8358 | # libtool to hard-code these into programs |
| 8359 | ;; |
| 8360 | |
| 8361 | cygwin* | mingw* | pw32*) |
| 8362 | version_type=windows |
| 8363 | shrext_cmds=".dll" |
| 8364 | need_version=no |
| 8365 | need_lib_prefix=no |
| 8366 | |
| 8367 | case $GCC,$host_os in |
| 8368 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8369 | library_names_spec='$libname.dll.a' |
| 8370 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8371 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8372 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8373 | dldir=$destdir/`dirname \$dlpath`~ |
| 8374 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8375 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8376 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8377 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8378 | dlpath=$dir/\$dldll~ |
| 8379 | $rm \$dlpath' |
| 8380 | shlibpath_overrides_runpath=yes |
| 8381 | |
| 8382 | case $host_os in |
| 8383 | cygwin*) |
| 8384 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8385 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8386 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8387 | ;; |
| 8388 | mingw*) |
| 8389 | # MinGW DLLs use traditional 'lib' prefix |
| 8390 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8391 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8392 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8393 | # It is most probably a Windows format PATH printed by |
| 8394 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8395 | # path with ; separators, and with drive letters. We can handle the |
| 8396 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8397 | # especially as we might pass files found there to a mingw objdump, |
| 8398 | # which wouldn't understand a cygwinified path. Ahh. |
| 8399 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8400 | else |
| 8401 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8402 | fi |
| 8403 | ;; |
| 8404 | pw32*) |
| 8405 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8406 | 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] | 8407 | ;; |
| 8408 | esac |
| 8409 | ;; |
| 8410 | |
| 8411 | *) |
| 8412 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8413 | ;; |
| 8414 | esac |
| 8415 | dynamic_linker='Win32 ld.exe' |
| 8416 | # FIXME: first we should search . and the directory the executable is in |
| 8417 | shlibpath_var=PATH |
| 8418 | ;; |
| 8419 | |
| 8420 | darwin* | rhapsody*) |
| 8421 | dynamic_linker="$host_os dyld" |
| 8422 | version_type=darwin |
| 8423 | need_lib_prefix=no |
| 8424 | need_version=no |
| 8425 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8426 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8427 | shlibpath_overrides_runpath=yes |
| 8428 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 8429 | shrext_cmds='.dylib' |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8430 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8431 | if test "$GCC" = yes; then |
| 8432 | 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"` |
| 8433 | else |
| 8434 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8435 | fi |
| 8436 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8437 | ;; |
| 8438 | |
| 8439 | dgux*) |
| 8440 | version_type=linux |
| 8441 | need_lib_prefix=no |
| 8442 | need_version=no |
| 8443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8444 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8445 | shlibpath_var=LD_LIBRARY_PATH |
| 8446 | ;; |
| 8447 | |
| 8448 | freebsd1*) |
| 8449 | dynamic_linker=no |
| 8450 | ;; |
| 8451 | |
| 8452 | kfreebsd*-gnu) |
| 8453 | version_type=linux |
| 8454 | need_lib_prefix=no |
| 8455 | need_version=no |
| 8456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8457 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8458 | shlibpath_var=LD_LIBRARY_PATH |
| 8459 | shlibpath_overrides_runpath=no |
| 8460 | hardcode_into_libs=yes |
| 8461 | dynamic_linker='GNU ld.so' |
| 8462 | ;; |
| 8463 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8464 | freebsd* | dragonfly*) |
| 8465 | # DragonFly does not have aout. When/if they implement a new |
| 8466 | # versioning mechanism, adjust this. |
| 8467 | if test -x /usr/bin/objformat; then |
| 8468 | objformat=`/usr/bin/objformat` |
| 8469 | else |
| 8470 | case $host_os in |
| 8471 | freebsd[123]*) objformat=aout ;; |
| 8472 | *) objformat=elf ;; |
| 8473 | esac |
| 8474 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8475 | version_type=freebsd-$objformat |
| 8476 | case $version_type in |
| 8477 | freebsd-elf*) |
| 8478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8479 | need_version=no |
| 8480 | need_lib_prefix=no |
| 8481 | ;; |
| 8482 | freebsd-*) |
| 8483 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8484 | need_version=yes |
| 8485 | ;; |
| 8486 | esac |
| 8487 | shlibpath_var=LD_LIBRARY_PATH |
| 8488 | case $host_os in |
| 8489 | freebsd2*) |
| 8490 | shlibpath_overrides_runpath=yes |
| 8491 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8492 | freebsd3.[01]* | freebsdelf3.[01]*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8493 | shlibpath_overrides_runpath=yes |
| 8494 | hardcode_into_libs=yes |
| 8495 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8496 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8497 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8498 | shlibpath_overrides_runpath=no |
| 8499 | hardcode_into_libs=yes |
| 8500 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8501 | freebsd*) # from 4.6 on |
| 8502 | shlibpath_overrides_runpath=yes |
| 8503 | hardcode_into_libs=yes |
| 8504 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8505 | esac |
| 8506 | ;; |
| 8507 | |
| 8508 | gnu*) |
| 8509 | version_type=linux |
| 8510 | need_lib_prefix=no |
| 8511 | need_version=no |
| 8512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8514 | shlibpath_var=LD_LIBRARY_PATH |
| 8515 | hardcode_into_libs=yes |
| 8516 | ;; |
| 8517 | |
| 8518 | hpux9* | hpux10* | hpux11*) |
| 8519 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8520 | # link against other versions. |
| 8521 | version_type=sunos |
| 8522 | need_lib_prefix=no |
| 8523 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8524 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8525 | ia64*) |
| 8526 | shrext_cmds='.so' |
| 8527 | hardcode_into_libs=yes |
| 8528 | dynamic_linker="$host_os dld.so" |
| 8529 | shlibpath_var=LD_LIBRARY_PATH |
| 8530 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8532 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8533 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8534 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8535 | else |
| 8536 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8537 | fi |
| 8538 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8539 | ;; |
| 8540 | hppa*64*) |
| 8541 | shrext_cmds='.sl' |
| 8542 | hardcode_into_libs=yes |
| 8543 | dynamic_linker="$host_os dld.sl" |
| 8544 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8545 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8547 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8548 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8549 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8550 | ;; |
| 8551 | *) |
| 8552 | shrext_cmds='.sl' |
| 8553 | dynamic_linker="$host_os dld.sl" |
| 8554 | shlibpath_var=SHLIB_PATH |
| 8555 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8558 | ;; |
| 8559 | esac |
| 8560 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8561 | postinstall_cmds='chmod 555 $lib' |
| 8562 | ;; |
| 8563 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8564 | interix3*) |
| 8565 | version_type=linux |
| 8566 | need_lib_prefix=no |
| 8567 | need_version=no |
| 8568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8569 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8570 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8571 | shlibpath_var=LD_LIBRARY_PATH |
| 8572 | shlibpath_overrides_runpath=no |
| 8573 | hardcode_into_libs=yes |
| 8574 | ;; |
| 8575 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8576 | irix5* | irix6* | nonstopux*) |
| 8577 | case $host_os in |
| 8578 | nonstopux*) version_type=nonstopux ;; |
| 8579 | *) |
| 8580 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8581 | version_type=linux |
| 8582 | else |
| 8583 | version_type=irix |
| 8584 | fi ;; |
| 8585 | esac |
| 8586 | need_lib_prefix=no |
| 8587 | need_version=no |
| 8588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8590 | case $host_os in |
| 8591 | irix5* | nonstopux*) |
| 8592 | libsuff= shlibsuff= |
| 8593 | ;; |
| 8594 | *) |
| 8595 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8596 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8597 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8598 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8599 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8600 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8601 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8602 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8603 | esac |
| 8604 | ;; |
| 8605 | esac |
| 8606 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8607 | shlibpath_overrides_runpath=no |
| 8608 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8609 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8610 | hardcode_into_libs=yes |
| 8611 | ;; |
| 8612 | |
| 8613 | # No shared lib support for Linux oldld, aout, or coff. |
| 8614 | linux*oldld* | linux*aout* | linux*coff*) |
| 8615 | dynamic_linker=no |
| 8616 | ;; |
| 8617 | |
| 8618 | # This must be Linux ELF. |
| 8619 | linux*) |
| 8620 | version_type=linux |
| 8621 | need_lib_prefix=no |
| 8622 | need_version=no |
| 8623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8624 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8625 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8626 | shlibpath_var=LD_LIBRARY_PATH |
| 8627 | shlibpath_overrides_runpath=no |
| 8628 | # This implies no fast_install, which is unacceptable. |
| 8629 | # Some rework will be needed to allow for fast_install |
| 8630 | # before this can be enabled. |
| 8631 | hardcode_into_libs=yes |
| 8632 | |
| 8633 | # Append ld.so.conf contents to the search path |
| 8634 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8635 | 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] | 8636 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8637 | fi |
| 8638 | |
| 8639 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8640 | # powerpc, because MkLinux only supported shared libraries with the |
| 8641 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8642 | # most powerpc-linux boxes support dynamic linking these days and |
| 8643 | # people can always --disable-shared, the test was removed, and we |
| 8644 | # assume the GNU/Linux dynamic linker is in use. |
| 8645 | dynamic_linker='GNU/Linux ld.so' |
| 8646 | ;; |
| 8647 | |
| 8648 | knetbsd*-gnu) |
| 8649 | version_type=linux |
| 8650 | need_lib_prefix=no |
| 8651 | need_version=no |
| 8652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8653 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8654 | shlibpath_var=LD_LIBRARY_PATH |
| 8655 | shlibpath_overrides_runpath=no |
| 8656 | hardcode_into_libs=yes |
| 8657 | dynamic_linker='GNU ld.so' |
| 8658 | ;; |
| 8659 | |
| 8660 | netbsd*) |
| 8661 | version_type=sunos |
| 8662 | need_lib_prefix=no |
| 8663 | need_version=no |
| 8664 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8666 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8667 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8668 | else |
| 8669 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8670 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8671 | dynamic_linker='NetBSD ld.elf_so' |
| 8672 | fi |
| 8673 | shlibpath_var=LD_LIBRARY_PATH |
| 8674 | shlibpath_overrides_runpath=yes |
| 8675 | hardcode_into_libs=yes |
| 8676 | ;; |
| 8677 | |
| 8678 | newsos6) |
| 8679 | version_type=linux |
| 8680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8681 | shlibpath_var=LD_LIBRARY_PATH |
| 8682 | shlibpath_overrides_runpath=yes |
| 8683 | ;; |
| 8684 | |
| 8685 | nto-qnx*) |
| 8686 | version_type=linux |
| 8687 | need_lib_prefix=no |
| 8688 | need_version=no |
| 8689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8690 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8691 | shlibpath_var=LD_LIBRARY_PATH |
| 8692 | shlibpath_overrides_runpath=yes |
| 8693 | ;; |
| 8694 | |
| 8695 | openbsd*) |
| 8696 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8697 | sys_lib_dlsearch_path_spec="/usr/lib" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8698 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8699 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8700 | case $host_os in |
| 8701 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8702 | *) need_version=no ;; |
| 8703 | esac |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8705 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8706 | shlibpath_var=LD_LIBRARY_PATH |
| 8707 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8708 | case $host_os in |
| 8709 | openbsd2.[89] | openbsd2.[89].*) |
| 8710 | shlibpath_overrides_runpath=no |
| 8711 | ;; |
| 8712 | *) |
| 8713 | shlibpath_overrides_runpath=yes |
| 8714 | ;; |
| 8715 | esac |
| 8716 | else |
| 8717 | shlibpath_overrides_runpath=yes |
| 8718 | fi |
| 8719 | ;; |
| 8720 | |
| 8721 | os2*) |
| 8722 | libname_spec='$name' |
| 8723 | shrext_cmds=".dll" |
| 8724 | need_lib_prefix=no |
| 8725 | library_names_spec='$libname${shared_ext} $libname.a' |
| 8726 | dynamic_linker='OS/2 ld.exe' |
| 8727 | shlibpath_var=LIBPATH |
| 8728 | ;; |
| 8729 | |
| 8730 | osf3* | osf4* | osf5*) |
| 8731 | version_type=osf |
| 8732 | need_lib_prefix=no |
| 8733 | need_version=no |
| 8734 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8736 | shlibpath_var=LD_LIBRARY_PATH |
| 8737 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8738 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8739 | ;; |
| 8740 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8741 | solaris*) |
| 8742 | version_type=linux |
| 8743 | need_lib_prefix=no |
| 8744 | need_version=no |
| 8745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8746 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8747 | shlibpath_var=LD_LIBRARY_PATH |
| 8748 | shlibpath_overrides_runpath=yes |
| 8749 | hardcode_into_libs=yes |
| 8750 | # ldd complains unless libraries are executable |
| 8751 | postinstall_cmds='chmod +x $lib' |
| 8752 | ;; |
| 8753 | |
| 8754 | sunos4*) |
| 8755 | version_type=sunos |
| 8756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8757 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8758 | shlibpath_var=LD_LIBRARY_PATH |
| 8759 | shlibpath_overrides_runpath=yes |
| 8760 | if test "$with_gnu_ld" = yes; then |
| 8761 | need_lib_prefix=no |
| 8762 | fi |
| 8763 | need_version=yes |
| 8764 | ;; |
| 8765 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8766 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8767 | version_type=linux |
| 8768 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8769 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8770 | shlibpath_var=LD_LIBRARY_PATH |
| 8771 | case $host_vendor in |
| 8772 | sni) |
| 8773 | shlibpath_overrides_runpath=no |
| 8774 | need_lib_prefix=no |
| 8775 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8776 | runpath_var=LD_RUN_PATH |
| 8777 | ;; |
| 8778 | siemens) |
| 8779 | need_lib_prefix=no |
| 8780 | ;; |
| 8781 | motorola) |
| 8782 | need_lib_prefix=no |
| 8783 | need_version=no |
| 8784 | shlibpath_overrides_runpath=no |
| 8785 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8786 | ;; |
| 8787 | esac |
| 8788 | ;; |
| 8789 | |
| 8790 | sysv4*MP*) |
| 8791 | if test -d /usr/nec ;then |
| 8792 | version_type=linux |
| 8793 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8794 | soname_spec='$libname${shared_ext}.$major' |
| 8795 | shlibpath_var=LD_LIBRARY_PATH |
| 8796 | fi |
| 8797 | ;; |
| 8798 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8799 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8800 | version_type=freebsd-elf |
| 8801 | need_lib_prefix=no |
| 8802 | need_version=no |
| 8803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8804 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8805 | shlibpath_var=LD_LIBRARY_PATH |
| 8806 | hardcode_into_libs=yes |
| 8807 | if test "$with_gnu_ld" = yes; then |
| 8808 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 8809 | shlibpath_overrides_runpath=no |
| 8810 | else |
| 8811 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 8812 | shlibpath_overrides_runpath=yes |
| 8813 | case $host_os in |
| 8814 | sco3.2v5*) |
| 8815 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8816 | ;; |
| 8817 | esac |
| 8818 | fi |
| 8819 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 8820 | ;; |
| 8821 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8822 | uts4*) |
| 8823 | version_type=linux |
| 8824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8825 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8826 | shlibpath_var=LD_LIBRARY_PATH |
| 8827 | ;; |
| 8828 | |
| 8829 | *) |
| 8830 | dynamic_linker=no |
| 8831 | ;; |
| 8832 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8833 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8834 | echo "${ECHO_T}$dynamic_linker" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8835 | test "$dynamic_linker" = no && can_build_shared=no |
| 8836 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8837 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8838 | if test "$GCC" = yes; then |
| 8839 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8840 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8841 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8842 | |
| 8843 | { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 |
| 8844 | 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] | 8845 | if test "${libltdl_cv_shlibext+set}" = set; then |
| 8846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8847 | else |
| 8848 | |
| 8849 | module=yes |
| 8850 | eval libltdl_cv_shlibext=$shrext_cmds |
| 8851 | |
| 8852 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8853 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 |
| 8854 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8855 | if test -n "$libltdl_cv_shlibext"; then |
| 8856 | |
| 8857 | cat >>confdefs.h <<_ACEOF |
| 8858 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" |
| 8859 | _ACEOF |
| 8860 | |
| 8861 | fi |
| 8862 | |
| 8863 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8864 | { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 |
| 8865 | 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] | 8866 | if test "${libltdl_cv_shlibpath_var+set}" = set; then |
| 8867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8868 | else |
| 8869 | libltdl_cv_shlibpath_var="$shlibpath_var" |
| 8870 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8871 | { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 |
| 8872 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8873 | if test -n "$libltdl_cv_shlibpath_var"; then |
| 8874 | |
| 8875 | cat >>confdefs.h <<_ACEOF |
| 8876 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" |
| 8877 | _ACEOF |
| 8878 | |
| 8879 | fi |
| 8880 | |
| 8881 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8882 | { echo "$as_me:$LINENO: checking for the default library search path" >&5 |
| 8883 | 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] | 8884 | if test "${libltdl_cv_sys_search_path+set}" = set; then |
| 8885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8886 | else |
| 8887 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" |
| 8888 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8889 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 |
| 8890 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8891 | if test -n "$libltdl_cv_sys_search_path"; then |
| 8892 | sys_search_path= |
| 8893 | for dir in $libltdl_cv_sys_search_path; do |
| 8894 | if test -z "$sys_search_path"; then |
| 8895 | sys_search_path="$dir" |
| 8896 | else |
| 8897 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" |
| 8898 | fi |
| 8899 | done |
| 8900 | |
| 8901 | cat >>confdefs.h <<_ACEOF |
| 8902 | #define LTDL_SYSSEARCHPATH "$sys_search_path" |
| 8903 | _ACEOF |
| 8904 | |
| 8905 | fi |
| 8906 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8907 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 8908 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8909 | if test "${libltdl_cv_objdir+set}" = set; then |
| 8910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8911 | else |
| 8912 | libltdl_cv_objdir="$objdir" |
| 8913 | if test -n "$objdir"; then |
| 8914 | : |
| 8915 | else |
| 8916 | rm -f .libs 2>/dev/null |
| 8917 | mkdir .libs 2>/dev/null |
| 8918 | if test -d .libs; then |
| 8919 | libltdl_cv_objdir=.libs |
| 8920 | else |
| 8921 | # MS-DOS does not allow filenames that begin with a dot. |
| 8922 | libltdl_cv_objdir=_libs |
| 8923 | fi |
| 8924 | rmdir .libs 2>/dev/null |
| 8925 | fi |
| 8926 | |
| 8927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8928 | { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 |
| 8929 | echo "${ECHO_T}$libltdl_cv_objdir" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8930 | |
| 8931 | cat >>confdefs.h <<_ACEOF |
| 8932 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" |
| 8933 | _ACEOF |
| 8934 | |
| 8935 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8936 | |
| 8937 | |
| 8938 | |
| 8939 | |
| 8940 | # 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] | 8941 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 8942 | 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] | 8943 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 8944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8945 | else |
| 8946 | |
| 8947 | # These are sane defaults that work on at least a few old systems. |
| 8948 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 8949 | |
| 8950 | # Character class describing NM global symbol codes. |
| 8951 | symcode='[BCDEGRST]' |
| 8952 | |
| 8953 | # Regexp to match symbols that can be accessed directly from C. |
| 8954 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 8955 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8956 | # Transform an extracted symbol line into a proper C declaration |
| 8957 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 8958 | |
| 8959 | # Transform an extracted symbol line into symbol name and symbol address |
| 8960 | 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'" |
| 8961 | |
| 8962 | # Define system-specific variables. |
| 8963 | case $host_os in |
| 8964 | aix*) |
| 8965 | symcode='[BCDT]' |
| 8966 | ;; |
| 8967 | cygwin* | mingw* | pw32*) |
| 8968 | symcode='[ABCDGISTW]' |
| 8969 | ;; |
| 8970 | hpux*) # Its linker distinguishes data from code symbols |
| 8971 | if test "$host_cpu" = ia64; then |
| 8972 | symcode='[ABCDEGRST]' |
| 8973 | fi |
| 8974 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8975 | 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'" |
| 8976 | ;; |
| 8977 | linux*) |
| 8978 | if test "$host_cpu" = ia64; then |
| 8979 | symcode='[ABCDGIRSTW]' |
| 8980 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 8981 | 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'" |
| 8982 | fi |
| 8983 | ;; |
| 8984 | irix* | nonstopux*) |
| 8985 | symcode='[BCDEGRST]' |
| 8986 | ;; |
| 8987 | osf*) |
| 8988 | symcode='[BCDEGQRST]' |
| 8989 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8990 | solaris*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 8991 | symcode='[BDRT]' |
| 8992 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 8993 | sco3.2v5*) |
| 8994 | symcode='[DT]' |
| 8995 | ;; |
| 8996 | sysv4.2uw2*) |
| 8997 | symcode='[DT]' |
| 8998 | ;; |
| 8999 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9000 | symcode='[ABDT]' |
| 9001 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9002 | sysv4) |
| 9003 | symcode='[DFNSTU]' |
| 9004 | ;; |
| 9005 | esac |
| 9006 | |
| 9007 | # Handle CRLF in mingw tool chain |
| 9008 | opt_cr= |
| 9009 | case $build_os in |
| 9010 | mingw*) |
| 9011 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9012 | ;; |
| 9013 | esac |
| 9014 | |
| 9015 | # If we're using GNU nm, then use its standard symbol codes. |
| 9016 | case `$NM -V 2>&1` in |
| 9017 | *GNU* | *'with BFD'*) |
| 9018 | symcode='[ABCDGIRSTW]' ;; |
| 9019 | esac |
| 9020 | |
| 9021 | # Try without a prefix undercore, then with it. |
| 9022 | for ac_symprfx in "" "_"; do |
| 9023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9024 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9025 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9026 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9027 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9028 | 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] | 9029 | |
| 9030 | # Check to see that the pipe works correctly. |
| 9031 | pipe_works=no |
| 9032 | |
| 9033 | rm -f conftest* |
| 9034 | cat > conftest.$ac_ext <<EOF |
| 9035 | #ifdef __cplusplus |
| 9036 | extern "C" { |
| 9037 | #endif |
| 9038 | char nm_test_var; |
| 9039 | void nm_test_func(){} |
| 9040 | #ifdef __cplusplus |
| 9041 | } |
| 9042 | #endif |
| 9043 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9044 | EOF |
| 9045 | |
| 9046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9047 | (eval $ac_compile) 2>&5 |
| 9048 | ac_status=$? |
| 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9050 | (exit $ac_status); }; then |
| 9051 | # Now try to grab the symbols. |
| 9052 | nlist=conftest.nm |
| 9053 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 9054 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 9055 | ac_status=$? |
| 9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9057 | (exit $ac_status); } && test -s "$nlist"; then |
| 9058 | # Try sorting and uniquifying the output. |
| 9059 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9060 | mv -f "$nlist"T "$nlist" |
| 9061 | else |
| 9062 | rm -f "$nlist"T |
| 9063 | fi |
| 9064 | |
| 9065 | # Make sure that we snagged all the symbols we need. |
| 9066 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 9067 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 9068 | cat <<EOF > conftest.$ac_ext |
| 9069 | #ifdef __cplusplus |
| 9070 | extern "C" { |
| 9071 | #endif |
| 9072 | |
| 9073 | EOF |
| 9074 | # Now generate the symbol file. |
| 9075 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 9076 | |
| 9077 | cat <<EOF >> conftest.$ac_ext |
| 9078 | #if defined (__STDC__) && __STDC__ |
| 9079 | # define lt_ptr_t void * |
| 9080 | #else |
| 9081 | # define lt_ptr_t char * |
| 9082 | # define const |
| 9083 | #endif |
| 9084 | |
| 9085 | /* The mapping between symbol names and symbols. */ |
| 9086 | const struct { |
| 9087 | const char *name; |
| 9088 | lt_ptr_t address; |
| 9089 | } |
| 9090 | lt_preloaded_symbols[] = |
| 9091 | { |
| 9092 | EOF |
| 9093 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 9094 | cat <<\EOF >> conftest.$ac_ext |
| 9095 | {0, (lt_ptr_t) 0} |
| 9096 | }; |
| 9097 | |
| 9098 | #ifdef __cplusplus |
| 9099 | } |
| 9100 | #endif |
| 9101 | EOF |
| 9102 | # Now try linking the two files. |
| 9103 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9104 | lt_save_LIBS="$LIBS" |
| 9105 | lt_save_CFLAGS="$CFLAGS" |
| 9106 | LIBS="conftstm.$ac_objext" |
| 9107 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 9108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9109 | (eval $ac_link) 2>&5 |
| 9110 | ac_status=$? |
| 9111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9112 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 9113 | pipe_works=yes |
| 9114 | fi |
| 9115 | LIBS="$lt_save_LIBS" |
| 9116 | CFLAGS="$lt_save_CFLAGS" |
| 9117 | else |
| 9118 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9119 | fi |
| 9120 | else |
| 9121 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9122 | fi |
| 9123 | else |
| 9124 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9125 | fi |
| 9126 | else |
| 9127 | echo "$progname: failed program was:" >&5 |
| 9128 | cat conftest.$ac_ext >&5 |
| 9129 | fi |
| 9130 | rm -f conftest* conftst* |
| 9131 | |
| 9132 | # Do not use the global_symbol_pipe unless it works. |
| 9133 | if test "$pipe_works" = yes; then |
| 9134 | break |
| 9135 | else |
| 9136 | lt_cv_sys_global_symbol_pipe= |
| 9137 | fi |
| 9138 | done |
| 9139 | |
| 9140 | fi |
| 9141 | |
| 9142 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9143 | lt_cv_sys_global_symbol_to_cdecl= |
| 9144 | fi |
| 9145 | 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] | 9146 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 9147 | echo "${ECHO_T}failed" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9148 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9149 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 9150 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9151 | fi |
| 9152 | |
| 9153 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9154 | { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 9155 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9156 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then |
| 9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9158 | else |
| 9159 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 9160 | libltdl_cv_preloaded_symbols=yes |
| 9161 | else |
| 9162 | libltdl_cv_preloaded_symbols=no |
| 9163 | fi |
| 9164 | |
| 9165 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9166 | { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 |
| 9167 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9168 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 9169 | |
| 9170 | cat >>confdefs.h <<\_ACEOF |
| 9171 | #define HAVE_PRELOADED_SYMBOLS 1 |
| 9172 | _ACEOF |
| 9173 | |
| 9174 | fi |
| 9175 | |
| 9176 | LIBADD_DL= |
| 9177 | |
| 9178 | ac_ext=c |
| 9179 | ac_cpp='$CPP $CPPFLAGS' |
| 9180 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9181 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9182 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9183 | |
| 9184 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9185 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9186 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9187 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9189 | else |
| 9190 | cat >conftest.$ac_ext <<_ACEOF |
| 9191 | /* confdefs.h. */ |
| 9192 | _ACEOF |
| 9193 | cat confdefs.h >>conftest.$ac_ext |
| 9194 | cat >>conftest.$ac_ext <<_ACEOF |
| 9195 | /* end confdefs.h. */ |
| 9196 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9198 | #define shl_load innocuous_shl_load |
| 9199 | |
| 9200 | /* System header to define __stub macros and hopefully few prototypes, |
| 9201 | which can conflict with char shl_load (); below. |
| 9202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9203 | <limits.h> exists even on freestanding compilers. */ |
| 9204 | |
| 9205 | #ifdef __STDC__ |
| 9206 | # include <limits.h> |
| 9207 | #else |
| 9208 | # include <assert.h> |
| 9209 | #endif |
| 9210 | |
| 9211 | #undef shl_load |
| 9212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9213 | /* Override any GCC internal prototype to avoid an error. |
| 9214 | Use char because int might match the return type of a GCC |
| 9215 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9216 | #ifdef __cplusplus |
| 9217 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9218 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9219 | char shl_load (); |
| 9220 | /* The GNU C library defines this for functions which it implements |
| 9221 | to always fail with ENOSYS. Some functions are actually named |
| 9222 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9223 | #if defined __stub_shl_load || defined __stub___shl_load |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9224 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9225 | #endif |
| 9226 | |
| 9227 | int |
| 9228 | main () |
| 9229 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9230 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9231 | ; |
| 9232 | return 0; |
| 9233 | } |
| 9234 | _ACEOF |
| 9235 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9236 | if { (ac_try="$ac_link" |
| 9237 | case "(($ac_try" in |
| 9238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9239 | *) ac_try_echo=$ac_try;; |
| 9240 | esac |
| 9241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9242 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9243 | ac_status=$? |
| 9244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9245 | rm -f conftest.er1 |
| 9246 | cat conftest.err >&5 |
| 9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9248 | (exit $ac_status); } && { |
| 9249 | test -z "$ac_c_werror_flag" || |
| 9250 | test ! -s conftest.err |
| 9251 | } && test -s conftest$ac_exeext && |
| 9252 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9253 | ac_cv_func_shl_load=yes |
| 9254 | else |
| 9255 | echo "$as_me: failed program was:" >&5 |
| 9256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9258 | ac_cv_func_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9260 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9262 | conftest$ac_exeext conftest.$ac_ext |
| 9263 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9264 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9265 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9266 | if test $ac_cv_func_shl_load = yes; then |
| 9267 | |
| 9268 | cat >>confdefs.h <<\_ACEOF |
| 9269 | #define HAVE_SHL_LOAD 1 |
| 9270 | _ACEOF |
| 9271 | |
| 9272 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9273 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9274 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9275 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9277 | else |
| 9278 | ac_check_lib_save_LIBS=$LIBS |
| 9279 | LIBS="-ldld $LIBS" |
| 9280 | cat >conftest.$ac_ext <<_ACEOF |
| 9281 | /* confdefs.h. */ |
| 9282 | _ACEOF |
| 9283 | cat confdefs.h >>conftest.$ac_ext |
| 9284 | cat >>conftest.$ac_ext <<_ACEOF |
| 9285 | /* end confdefs.h. */ |
| 9286 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9287 | /* Override any GCC internal prototype to avoid an error. |
| 9288 | Use char because int might match the return type of a GCC |
| 9289 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9290 | #ifdef __cplusplus |
| 9291 | extern "C" |
| 9292 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9293 | char shl_load (); |
| 9294 | int |
| 9295 | main () |
| 9296 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9297 | return shl_load (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9298 | ; |
| 9299 | return 0; |
| 9300 | } |
| 9301 | _ACEOF |
| 9302 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9303 | if { (ac_try="$ac_link" |
| 9304 | case "(($ac_try" in |
| 9305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9306 | *) ac_try_echo=$ac_try;; |
| 9307 | esac |
| 9308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9309 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9310 | ac_status=$? |
| 9311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9312 | rm -f conftest.er1 |
| 9313 | cat conftest.err >&5 |
| 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9315 | (exit $ac_status); } && { |
| 9316 | test -z "$ac_c_werror_flag" || |
| 9317 | test ! -s conftest.err |
| 9318 | } && test -s conftest$ac_exeext && |
| 9319 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9320 | ac_cv_lib_dld_shl_load=yes |
| 9321 | else |
| 9322 | echo "$as_me: failed program was:" >&5 |
| 9323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9325 | ac_cv_lib_dld_shl_load=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9326 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9327 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9329 | conftest$ac_exeext conftest.$ac_ext |
| 9330 | LIBS=$ac_check_lib_save_LIBS |
| 9331 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9333 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9334 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9335 | |
| 9336 | cat >>confdefs.h <<\_ACEOF |
| 9337 | #define HAVE_SHL_LOAD 1 |
| 9338 | _ACEOF |
| 9339 | |
| 9340 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9341 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9342 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9343 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9344 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9346 | else |
| 9347 | ac_check_lib_save_LIBS=$LIBS |
| 9348 | LIBS="-ldl $LIBS" |
| 9349 | cat >conftest.$ac_ext <<_ACEOF |
| 9350 | /* confdefs.h. */ |
| 9351 | _ACEOF |
| 9352 | cat confdefs.h >>conftest.$ac_ext |
| 9353 | cat >>conftest.$ac_ext <<_ACEOF |
| 9354 | /* end confdefs.h. */ |
| 9355 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9356 | /* Override any GCC internal prototype to avoid an error. |
| 9357 | Use char because int might match the return type of a GCC |
| 9358 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9359 | #ifdef __cplusplus |
| 9360 | extern "C" |
| 9361 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9362 | char dlopen (); |
| 9363 | int |
| 9364 | main () |
| 9365 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9366 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9367 | ; |
| 9368 | return 0; |
| 9369 | } |
| 9370 | _ACEOF |
| 9371 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9372 | if { (ac_try="$ac_link" |
| 9373 | case "(($ac_try" in |
| 9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9375 | *) ac_try_echo=$ac_try;; |
| 9376 | esac |
| 9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9378 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9379 | ac_status=$? |
| 9380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9381 | rm -f conftest.er1 |
| 9382 | cat conftest.err >&5 |
| 9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9384 | (exit $ac_status); } && { |
| 9385 | test -z "$ac_c_werror_flag" || |
| 9386 | test ! -s conftest.err |
| 9387 | } && test -s conftest$ac_exeext && |
| 9388 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9389 | ac_cv_lib_dl_dlopen=yes |
| 9390 | else |
| 9391 | echo "$as_me: failed program was:" >&5 |
| 9392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9393 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9394 | ac_cv_lib_dl_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9395 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9396 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9397 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9398 | conftest$ac_exeext conftest.$ac_ext |
| 9399 | LIBS=$ac_check_lib_save_LIBS |
| 9400 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9401 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9402 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9403 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9404 | |
| 9405 | cat >>confdefs.h <<\_ACEOF |
| 9406 | #define HAVE_LIBDL 1 |
| 9407 | _ACEOF |
| 9408 | |
| 9409 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" |
| 9410 | else |
| 9411 | cat >conftest.$ac_ext <<_ACEOF |
| 9412 | /* confdefs.h. */ |
| 9413 | _ACEOF |
| 9414 | cat confdefs.h >>conftest.$ac_ext |
| 9415 | cat >>conftest.$ac_ext <<_ACEOF |
| 9416 | /* end confdefs.h. */ |
| 9417 | #if HAVE_DLFCN_H |
| 9418 | # include <dlfcn.h> |
| 9419 | #endif |
| 9420 | |
| 9421 | int |
| 9422 | main () |
| 9423 | { |
| 9424 | dlopen(0, 0); |
| 9425 | ; |
| 9426 | return 0; |
| 9427 | } |
| 9428 | _ACEOF |
| 9429 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9430 | if { (ac_try="$ac_link" |
| 9431 | case "(($ac_try" in |
| 9432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9433 | *) ac_try_echo=$ac_try;; |
| 9434 | esac |
| 9435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9436 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9437 | ac_status=$? |
| 9438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9439 | rm -f conftest.er1 |
| 9440 | cat conftest.err >&5 |
| 9441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9442 | (exit $ac_status); } && { |
| 9443 | test -z "$ac_c_werror_flag" || |
| 9444 | test ! -s conftest.err |
| 9445 | } && test -s conftest$ac_exeext && |
| 9446 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9447 | |
| 9448 | cat >>confdefs.h <<\_ACEOF |
| 9449 | #define HAVE_LIBDL 1 |
| 9450 | _ACEOF |
| 9451 | libltdl_cv_func_dlopen="yes" |
| 9452 | else |
| 9453 | echo "$as_me: failed program was:" >&5 |
| 9454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9456 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9457 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9458 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9460 | else |
| 9461 | ac_check_lib_save_LIBS=$LIBS |
| 9462 | LIBS="-lsvld $LIBS" |
| 9463 | cat >conftest.$ac_ext <<_ACEOF |
| 9464 | /* confdefs.h. */ |
| 9465 | _ACEOF |
| 9466 | cat confdefs.h >>conftest.$ac_ext |
| 9467 | cat >>conftest.$ac_ext <<_ACEOF |
| 9468 | /* end confdefs.h. */ |
| 9469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9470 | /* Override any GCC internal prototype to avoid an error. |
| 9471 | Use char because int might match the return type of a GCC |
| 9472 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9473 | #ifdef __cplusplus |
| 9474 | extern "C" |
| 9475 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9476 | char dlopen (); |
| 9477 | int |
| 9478 | main () |
| 9479 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9480 | return dlopen (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9481 | ; |
| 9482 | return 0; |
| 9483 | } |
| 9484 | _ACEOF |
| 9485 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9486 | if { (ac_try="$ac_link" |
| 9487 | case "(($ac_try" in |
| 9488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9489 | *) ac_try_echo=$ac_try;; |
| 9490 | esac |
| 9491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9492 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9493 | ac_status=$? |
| 9494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9495 | rm -f conftest.er1 |
| 9496 | cat conftest.err >&5 |
| 9497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9498 | (exit $ac_status); } && { |
| 9499 | test -z "$ac_c_werror_flag" || |
| 9500 | test ! -s conftest.err |
| 9501 | } && test -s conftest$ac_exeext && |
| 9502 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9503 | ac_cv_lib_svld_dlopen=yes |
| 9504 | else |
| 9505 | echo "$as_me: failed program was:" >&5 |
| 9506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9507 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9508 | ac_cv_lib_svld_dlopen=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9509 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9510 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9512 | conftest$ac_exeext conftest.$ac_ext |
| 9513 | LIBS=$ac_check_lib_save_LIBS |
| 9514 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9515 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9516 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9517 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9518 | |
| 9519 | cat >>confdefs.h <<\_ACEOF |
| 9520 | #define HAVE_LIBDL 1 |
| 9521 | _ACEOF |
| 9522 | |
| 9523 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" |
| 9524 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9525 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9526 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9527 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9529 | else |
| 9530 | ac_check_lib_save_LIBS=$LIBS |
| 9531 | LIBS="-ldld $LIBS" |
| 9532 | cat >conftest.$ac_ext <<_ACEOF |
| 9533 | /* confdefs.h. */ |
| 9534 | _ACEOF |
| 9535 | cat confdefs.h >>conftest.$ac_ext |
| 9536 | cat >>conftest.$ac_ext <<_ACEOF |
| 9537 | /* end confdefs.h. */ |
| 9538 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9539 | /* Override any GCC internal prototype to avoid an error. |
| 9540 | Use char because int might match the return type of a GCC |
| 9541 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9542 | #ifdef __cplusplus |
| 9543 | extern "C" |
| 9544 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9545 | char dld_link (); |
| 9546 | int |
| 9547 | main () |
| 9548 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9549 | return dld_link (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9550 | ; |
| 9551 | return 0; |
| 9552 | } |
| 9553 | _ACEOF |
| 9554 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9555 | if { (ac_try="$ac_link" |
| 9556 | case "(($ac_try" in |
| 9557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9558 | *) ac_try_echo=$ac_try;; |
| 9559 | esac |
| 9560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9561 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9562 | ac_status=$? |
| 9563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9564 | rm -f conftest.er1 |
| 9565 | cat conftest.err >&5 |
| 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9567 | (exit $ac_status); } && { |
| 9568 | test -z "$ac_c_werror_flag" || |
| 9569 | test ! -s conftest.err |
| 9570 | } && test -s conftest$ac_exeext && |
| 9571 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9572 | ac_cv_lib_dld_dld_link=yes |
| 9573 | else |
| 9574 | echo "$as_me: failed program was:" >&5 |
| 9575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9576 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9577 | ac_cv_lib_dld_dld_link=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9578 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9579 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9580 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9581 | conftest$ac_exeext conftest.$ac_ext |
| 9582 | LIBS=$ac_check_lib_save_LIBS |
| 9583 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9584 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9585 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9586 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9587 | |
| 9588 | cat >>confdefs.h <<\_ACEOF |
| 9589 | #define HAVE_DLD 1 |
| 9590 | _ACEOF |
| 9591 | |
| 9592 | LIBADD_DL="$LIBADD_DL -ldld" |
| 9593 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9594 | { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 |
| 9595 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9596 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then |
| 9597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9598 | else |
| 9599 | cat >conftest.$ac_ext <<_ACEOF |
| 9600 | /* confdefs.h. */ |
| 9601 | _ACEOF |
| 9602 | cat confdefs.h >>conftest.$ac_ext |
| 9603 | cat >>conftest.$ac_ext <<_ACEOF |
| 9604 | /* end confdefs.h. */ |
| 9605 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
| 9606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9607 | #define _dyld_func_lookup innocuous__dyld_func_lookup |
| 9608 | |
| 9609 | /* System header to define __stub macros and hopefully few prototypes, |
| 9610 | which can conflict with char _dyld_func_lookup (); below. |
| 9611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9612 | <limits.h> exists even on freestanding compilers. */ |
| 9613 | |
| 9614 | #ifdef __STDC__ |
| 9615 | # include <limits.h> |
| 9616 | #else |
| 9617 | # include <assert.h> |
| 9618 | #endif |
| 9619 | |
| 9620 | #undef _dyld_func_lookup |
| 9621 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9622 | /* Override any GCC internal prototype to avoid an error. |
| 9623 | Use char because int might match the return type of a GCC |
| 9624 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9625 | #ifdef __cplusplus |
| 9626 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9627 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9628 | char _dyld_func_lookup (); |
| 9629 | /* The GNU C library defines this for functions which it implements |
| 9630 | to always fail with ENOSYS. Some functions are actually named |
| 9631 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9632 | #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9633 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9634 | #endif |
| 9635 | |
| 9636 | int |
| 9637 | main () |
| 9638 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9639 | return _dyld_func_lookup (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9640 | ; |
| 9641 | return 0; |
| 9642 | } |
| 9643 | _ACEOF |
| 9644 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9645 | if { (ac_try="$ac_link" |
| 9646 | case "(($ac_try" in |
| 9647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9648 | *) ac_try_echo=$ac_try;; |
| 9649 | esac |
| 9650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9651 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9652 | ac_status=$? |
| 9653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9654 | rm -f conftest.er1 |
| 9655 | cat conftest.err >&5 |
| 9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9657 | (exit $ac_status); } && { |
| 9658 | test -z "$ac_c_werror_flag" || |
| 9659 | test ! -s conftest.err |
| 9660 | } && test -s conftest$ac_exeext && |
| 9661 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9662 | ac_cv_func__dyld_func_lookup=yes |
| 9663 | else |
| 9664 | echo "$as_me: failed program was:" >&5 |
| 9665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9666 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9667 | ac_cv_func__dyld_func_lookup=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9668 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9669 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9670 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9671 | conftest$ac_exeext conftest.$ac_ext |
| 9672 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9673 | { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 |
| 9674 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9675 | if test $ac_cv_func__dyld_func_lookup = yes; then |
| 9676 | |
| 9677 | cat >>confdefs.h <<\_ACEOF |
| 9678 | #define HAVE_DYLD 1 |
| 9679 | _ACEOF |
| 9680 | |
| 9681 | fi |
| 9682 | |
| 9683 | |
| 9684 | fi |
| 9685 | |
| 9686 | |
| 9687 | fi |
| 9688 | |
| 9689 | |
| 9690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9691 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9692 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9693 | conftest$ac_exeext conftest.$ac_ext |
| 9694 | |
| 9695 | fi |
| 9696 | |
| 9697 | |
| 9698 | fi |
| 9699 | |
| 9700 | |
| 9701 | fi |
| 9702 | |
| 9703 | |
| 9704 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 9705 | then |
| 9706 | lt_save_LIBS="$LIBS" |
| 9707 | LIBS="$LIBS $LIBADD_DL" |
| 9708 | |
| 9709 | for ac_func in dlerror |
| 9710 | do |
| 9711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9712 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9714 | 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] | 9715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9716 | else |
| 9717 | cat >conftest.$ac_ext <<_ACEOF |
| 9718 | /* confdefs.h. */ |
| 9719 | _ACEOF |
| 9720 | cat confdefs.h >>conftest.$ac_ext |
| 9721 | cat >>conftest.$ac_ext <<_ACEOF |
| 9722 | /* end confdefs.h. */ |
| 9723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9725 | #define $ac_func innocuous_$ac_func |
| 9726 | |
| 9727 | /* System header to define __stub macros and hopefully few prototypes, |
| 9728 | which can conflict with char $ac_func (); below. |
| 9729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9730 | <limits.h> exists even on freestanding compilers. */ |
| 9731 | |
| 9732 | #ifdef __STDC__ |
| 9733 | # include <limits.h> |
| 9734 | #else |
| 9735 | # include <assert.h> |
| 9736 | #endif |
| 9737 | |
| 9738 | #undef $ac_func |
| 9739 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9740 | /* Override any GCC internal prototype to avoid an error. |
| 9741 | Use char because int might match the return type of a GCC |
| 9742 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9743 | #ifdef __cplusplus |
| 9744 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9745 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9746 | char $ac_func (); |
| 9747 | /* The GNU C library defines this for functions which it implements |
| 9748 | to always fail with ENOSYS. Some functions are actually named |
| 9749 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9750 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9751 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9752 | #endif |
| 9753 | |
| 9754 | int |
| 9755 | main () |
| 9756 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9757 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9758 | ; |
| 9759 | return 0; |
| 9760 | } |
| 9761 | _ACEOF |
| 9762 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9763 | if { (ac_try="$ac_link" |
| 9764 | case "(($ac_try" in |
| 9765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9766 | *) ac_try_echo=$ac_try;; |
| 9767 | esac |
| 9768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9769 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9770 | ac_status=$? |
| 9771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9772 | rm -f conftest.er1 |
| 9773 | cat conftest.err >&5 |
| 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9775 | (exit $ac_status); } && { |
| 9776 | test -z "$ac_c_werror_flag" || |
| 9777 | test ! -s conftest.err |
| 9778 | } && test -s conftest$ac_exeext && |
| 9779 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9780 | eval "$as_ac_var=yes" |
| 9781 | else |
| 9782 | echo "$as_me: failed program was:" >&5 |
| 9783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9784 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9785 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9786 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9787 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 9788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9789 | conftest$ac_exeext conftest.$ac_ext |
| 9790 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9791 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9793 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9794 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9795 | cat >>confdefs.h <<_ACEOF |
| 9796 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9797 | _ACEOF |
| 9798 | |
| 9799 | fi |
| 9800 | done |
| 9801 | |
| 9802 | LIBS="$lt_save_LIBS" |
| 9803 | fi |
| 9804 | ac_ext=c |
| 9805 | ac_cpp='$CPP $CPPFLAGS' |
| 9806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9809 | |
| 9810 | |
| 9811 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9812 | { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 |
| 9813 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9814 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then |
| 9815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9816 | else |
| 9817 | ac_cv_sys_symbol_underscore=no |
| 9818 | cat > conftest.$ac_ext <<EOF |
| 9819 | void nm_test_func(){} |
| 9820 | int main(){nm_test_func;return 0;} |
| 9821 | EOF |
| 9822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9823 | (eval $ac_compile) 2>&5 |
| 9824 | ac_status=$? |
| 9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9826 | (exit $ac_status); }; then |
| 9827 | # Now try to grab the symbols. |
| 9828 | ac_nlist=conftest.nm |
| 9829 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 |
| 9830 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 9831 | ac_status=$? |
| 9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9833 | (exit $ac_status); } && test -s "$ac_nlist"; then |
| 9834 | # See whether the symbols have a leading underscore. |
| 9835 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 9836 | ac_cv_sys_symbol_underscore=yes |
| 9837 | else |
| 9838 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 9839 | : |
| 9840 | else |
| 9841 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 9842 | fi |
| 9843 | fi |
| 9844 | else |
| 9845 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9846 | fi |
| 9847 | else |
| 9848 | echo "configure: failed program was:" >&5 |
| 9849 | cat conftest.c >&5 |
| 9850 | fi |
| 9851 | rm -rf conftest* |
| 9852 | |
| 9853 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9854 | { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 |
| 9855 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9856 | |
| 9857 | |
| 9858 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then |
| 9859 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 9860 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9861 | { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 |
| 9862 | 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] | 9863 | if test "${libltdl_cv_need_uscore+set}" = set; then |
| 9864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9865 | else |
| 9866 | libltdl_cv_need_uscore=unknown |
| 9867 | save_LIBS="$LIBS" |
| 9868 | LIBS="$LIBS $LIBADD_DL" |
| 9869 | if test "$cross_compiling" = yes; then : |
| 9870 | libltdl_cv_need_uscore=cross |
| 9871 | else |
| 9872 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9873 | lt_status=$lt_dlunknown |
| 9874 | cat > conftest.$ac_ext <<EOF |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 9875 | #line 9874 "configure" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9876 | #include "confdefs.h" |
| 9877 | |
| 9878 | #if HAVE_DLFCN_H |
| 9879 | #include <dlfcn.h> |
| 9880 | #endif |
| 9881 | |
| 9882 | #include <stdio.h> |
| 9883 | |
| 9884 | #ifdef RTLD_GLOBAL |
| 9885 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9886 | #else |
| 9887 | # ifdef DL_GLOBAL |
| 9888 | # define LT_DLGLOBAL DL_GLOBAL |
| 9889 | # else |
| 9890 | # define LT_DLGLOBAL 0 |
| 9891 | # endif |
| 9892 | #endif |
| 9893 | |
| 9894 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9895 | find out it does not work in some platform. */ |
| 9896 | #ifndef LT_DLLAZY_OR_NOW |
| 9897 | # ifdef RTLD_LAZY |
| 9898 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9899 | # else |
| 9900 | # ifdef DL_LAZY |
| 9901 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9902 | # else |
| 9903 | # ifdef RTLD_NOW |
| 9904 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9905 | # else |
| 9906 | # ifdef DL_NOW |
| 9907 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9908 | # else |
| 9909 | # define LT_DLLAZY_OR_NOW 0 |
| 9910 | # endif |
| 9911 | # endif |
| 9912 | # endif |
| 9913 | # endif |
| 9914 | #endif |
| 9915 | |
| 9916 | #ifdef __cplusplus |
| 9917 | extern "C" void exit (int); |
| 9918 | #endif |
| 9919 | |
| 9920 | void fnord() { int i=42;} |
| 9921 | int main () |
| 9922 | { |
| 9923 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9924 | int status = $lt_dlunknown; |
| 9925 | |
| 9926 | if (self) |
| 9927 | { |
| 9928 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9929 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9930 | /* dlclose (self); */ |
| 9931 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9932 | else |
| 9933 | puts (dlerror ()); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9934 | |
| 9935 | exit (status); |
| 9936 | } |
| 9937 | EOF |
| 9938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9939 | (eval $ac_link) 2>&5 |
| 9940 | ac_status=$? |
| 9941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9942 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9943 | (./conftest; exit; ) >&5 2>/dev/null |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9944 | lt_status=$? |
| 9945 | case x$lt_status in |
| 9946 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 9947 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9948 | x$lt_dlunknown|x*) ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9949 | esac |
| 9950 | else : |
| 9951 | # compilation failed |
| 9952 | |
| 9953 | fi |
| 9954 | fi |
| 9955 | rm -fr conftest* |
| 9956 | |
| 9957 | LIBS="$save_LIBS" |
| 9958 | |
| 9959 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9960 | { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 |
| 9961 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 9962 | fi |
| 9963 | fi |
| 9964 | |
| 9965 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 9966 | |
| 9967 | cat >>confdefs.h <<\_ACEOF |
| 9968 | #define NEED_USCORE 1 |
| 9969 | _ACEOF |
| 9970 | |
| 9971 | fi |
| 9972 | |
| 9973 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 9974 | { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 |
| 9975 | 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] | 9976 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then |
| 9977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9978 | else |
| 9979 | # PORTME does your system automatically load deplibs for dlopen? |
| 9980 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 9981 | # For now, we just catch OSes we know something about -- in the |
| 9982 | # future, we'll try test this programmatically. |
| 9983 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9984 | case "$host_os" in |
| 9985 | aix3*|aix4.1.*|aix4.2.*) |
| 9986 | # Unknown whether this is true for these versions of AIX, but |
| 9987 | # we want this `case' here to explicitly catch those versions. |
| 9988 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 9989 | ;; |
| 9990 | aix[45]*) |
| 9991 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9992 | ;; |
| 9993 | darwin*) |
| 9994 | # Assuming the user has installed a libdl from somewhere, this is true |
| 9995 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 9996 | libltdl_cv_sys_dlopen_deplibs=yes |
| 9997 | ;; |
| 9998 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 9999 | # GNU and its variants, using gnu ld.so (Glibc) |
| 10000 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10001 | ;; |
| 10002 | hpux10*|hpux11*) |
| 10003 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10004 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10005 | interix*) |
| 10006 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10007 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10008 | irix[12345]*|irix6.[01]*) |
| 10009 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 10010 | # know how it worked for any of those versions. |
| 10011 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10012 | ;; |
| 10013 | irix*) |
| 10014 | # The case above catches anything before 6.2, and it's known that |
| 10015 | # at 6.2 and later dlopen does load deplibs. |
| 10016 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10017 | ;; |
| 10018 | netbsd*) |
| 10019 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10020 | ;; |
| 10021 | openbsd*) |
| 10022 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10023 | ;; |
| 10024 | osf[1234]*) |
| 10025 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 10026 | # it did *not* use an RPATH in a shared library to find objects the |
| 10027 | # library depends on, so we explictly say `no'. |
| 10028 | libltdl_cv_sys_dlopen_deplibs=no |
| 10029 | ;; |
| 10030 | osf5.0|osf5.0a|osf5.1) |
| 10031 | # dlopen *does* load deplibs and with the right loader patch applied |
| 10032 | # it even uses RPATH in a shared library to search for shared objects |
| 10033 | # that the library depends on, but there's no easy way to know if that |
| 10034 | # patch is installed. Since this is the case, all we can really |
| 10035 | # say is unknown -- it depends on the patch being installed. If |
| 10036 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 10037 | libltdl_cv_sys_dlopen_deplibs=unknown |
| 10038 | ;; |
| 10039 | osf*) |
| 10040 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 10041 | # the comments above for what we know about them. |
| 10042 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 10043 | # is used to find them so we can finally say `yes'. |
| 10044 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10045 | ;; |
| 10046 | solaris*) |
| 10047 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10048 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10049 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10050 | libltdl_cv_sys_dlopen_deplibs=yes |
| 10051 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10052 | esac |
| 10053 | |
| 10054 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10055 | { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 |
| 10056 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10057 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then |
| 10058 | |
| 10059 | cat >>confdefs.h <<\_ACEOF |
| 10060 | #define LTDL_DLOPEN_DEPLIBS 1 |
| 10061 | _ACEOF |
| 10062 | |
| 10063 | fi |
| 10064 | |
| 10065 | |
| 10066 | for ac_header in argz.h |
| 10067 | do |
| 10068 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10069 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10070 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10072 | 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] | 10073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10074 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10075 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10077 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10078 | else |
| 10079 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10080 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10082 | cat >conftest.$ac_ext <<_ACEOF |
| 10083 | /* confdefs.h. */ |
| 10084 | _ACEOF |
| 10085 | cat confdefs.h >>conftest.$ac_ext |
| 10086 | cat >>conftest.$ac_ext <<_ACEOF |
| 10087 | /* end confdefs.h. */ |
| 10088 | $ac_includes_default |
| 10089 | #include <$ac_header> |
| 10090 | _ACEOF |
| 10091 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10092 | if { (ac_try="$ac_compile" |
| 10093 | case "(($ac_try" in |
| 10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10095 | *) ac_try_echo=$ac_try;; |
| 10096 | esac |
| 10097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10098 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10099 | ac_status=$? |
| 10100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10101 | rm -f conftest.er1 |
| 10102 | cat conftest.err >&5 |
| 10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10104 | (exit $ac_status); } && { |
| 10105 | test -z "$ac_c_werror_flag" || |
| 10106 | test ! -s conftest.err |
| 10107 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10108 | ac_header_compiler=yes |
| 10109 | else |
| 10110 | echo "$as_me: failed program was:" >&5 |
| 10111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10113 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10114 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10115 | |
| 10116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10117 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10118 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10119 | |
| 10120 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10121 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10122 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10123 | cat >conftest.$ac_ext <<_ACEOF |
| 10124 | /* confdefs.h. */ |
| 10125 | _ACEOF |
| 10126 | cat confdefs.h >>conftest.$ac_ext |
| 10127 | cat >>conftest.$ac_ext <<_ACEOF |
| 10128 | /* end confdefs.h. */ |
| 10129 | #include <$ac_header> |
| 10130 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10131 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10132 | case "(($ac_try" in |
| 10133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10134 | *) ac_try_echo=$ac_try;; |
| 10135 | esac |
| 10136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10137 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10138 | ac_status=$? |
| 10139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10140 | rm -f conftest.er1 |
| 10141 | cat conftest.err >&5 |
| 10142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10143 | (exit $ac_status); } >/dev/null && { |
| 10144 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10145 | test ! -s conftest.err |
| 10146 | }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10147 | ac_header_preproc=yes |
| 10148 | else |
| 10149 | echo "$as_me: failed program was:" >&5 |
| 10150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10151 | |
| 10152 | ac_header_preproc=no |
| 10153 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10154 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10155 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10156 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10157 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10158 | |
| 10159 | # So? What about this header? |
| 10160 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10161 | yes:no: ) |
| 10162 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10163 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10165 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10166 | ac_header_preproc=yes |
| 10167 | ;; |
| 10168 | no:yes:* ) |
| 10169 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10170 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10171 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10172 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10173 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10174 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10175 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10176 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10178 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10179 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10180 | 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] | 10181 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10182 | ## ----------------------------------- ## |
| 10183 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10184 | ## ----------------------------------- ## |
| 10185 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10186 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10187 | ;; |
| 10188 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10189 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10191 | 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] | 10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10193 | else |
| 10194 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10195 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10196 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10197 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10198 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10199 | |
| 10200 | fi |
| 10201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10202 | cat >>confdefs.h <<_ACEOF |
| 10203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10204 | _ACEOF |
| 10205 | |
| 10206 | fi |
| 10207 | |
| 10208 | done |
| 10209 | |
| 10210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10211 | { echo "$as_me:$LINENO: checking for error_t" >&5 |
| 10212 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10213 | if test "${ac_cv_type_error_t+set}" = set; then |
| 10214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10215 | else |
| 10216 | cat >conftest.$ac_ext <<_ACEOF |
| 10217 | /* confdefs.h. */ |
| 10218 | _ACEOF |
| 10219 | cat confdefs.h >>conftest.$ac_ext |
| 10220 | cat >>conftest.$ac_ext <<_ACEOF |
| 10221 | /* end confdefs.h. */ |
| 10222 | #if HAVE_ARGZ_H |
| 10223 | # include <argz.h> |
| 10224 | #endif |
| 10225 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10226 | typedef error_t ac__type_new_; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10227 | int |
| 10228 | main () |
| 10229 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10230 | if ((ac__type_new_ *) 0) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10231 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10232 | if (sizeof (ac__type_new_)) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10233 | return 0; |
| 10234 | ; |
| 10235 | return 0; |
| 10236 | } |
| 10237 | _ACEOF |
| 10238 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10239 | if { (ac_try="$ac_compile" |
| 10240 | case "(($ac_try" in |
| 10241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10242 | *) ac_try_echo=$ac_try;; |
| 10243 | esac |
| 10244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10245 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10246 | ac_status=$? |
| 10247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10248 | rm -f conftest.er1 |
| 10249 | cat conftest.err >&5 |
| 10250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10251 | (exit $ac_status); } && { |
| 10252 | test -z "$ac_c_werror_flag" || |
| 10253 | test ! -s conftest.err |
| 10254 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10255 | ac_cv_type_error_t=yes |
| 10256 | else |
| 10257 | echo "$as_me: failed program was:" >&5 |
| 10258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10259 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10260 | ac_cv_type_error_t=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10261 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10262 | |
| 10263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10264 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10265 | { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 |
| 10266 | echo "${ECHO_T}$ac_cv_type_error_t" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10267 | if test $ac_cv_type_error_t = yes; then |
| 10268 | |
| 10269 | cat >>confdefs.h <<_ACEOF |
| 10270 | #define HAVE_ERROR_T 1 |
| 10271 | _ACEOF |
| 10272 | |
| 10273 | |
| 10274 | else |
| 10275 | |
| 10276 | cat >>confdefs.h <<\_ACEOF |
| 10277 | #define error_t int |
| 10278 | _ACEOF |
| 10279 | |
| 10280 | fi |
| 10281 | |
| 10282 | |
| 10283 | |
| 10284 | |
| 10285 | |
| 10286 | |
| 10287 | |
| 10288 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify |
| 10289 | do |
| 10290 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10291 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10292 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10293 | 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] | 10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10295 | else |
| 10296 | cat >conftest.$ac_ext <<_ACEOF |
| 10297 | /* confdefs.h. */ |
| 10298 | _ACEOF |
| 10299 | cat confdefs.h >>conftest.$ac_ext |
| 10300 | cat >>conftest.$ac_ext <<_ACEOF |
| 10301 | /* end confdefs.h. */ |
| 10302 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10303 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10304 | #define $ac_func innocuous_$ac_func |
| 10305 | |
| 10306 | /* System header to define __stub macros and hopefully few prototypes, |
| 10307 | which can conflict with char $ac_func (); below. |
| 10308 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10309 | <limits.h> exists even on freestanding compilers. */ |
| 10310 | |
| 10311 | #ifdef __STDC__ |
| 10312 | # include <limits.h> |
| 10313 | #else |
| 10314 | # include <assert.h> |
| 10315 | #endif |
| 10316 | |
| 10317 | #undef $ac_func |
| 10318 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10319 | /* Override any GCC internal prototype to avoid an error. |
| 10320 | Use char because int might match the return type of a GCC |
| 10321 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10322 | #ifdef __cplusplus |
| 10323 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10324 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10325 | char $ac_func (); |
| 10326 | /* The GNU C library defines this for functions which it implements |
| 10327 | to always fail with ENOSYS. Some functions are actually named |
| 10328 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10329 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10330 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10331 | #endif |
| 10332 | |
| 10333 | int |
| 10334 | main () |
| 10335 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10336 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10337 | ; |
| 10338 | return 0; |
| 10339 | } |
| 10340 | _ACEOF |
| 10341 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10342 | if { (ac_try="$ac_link" |
| 10343 | case "(($ac_try" in |
| 10344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10345 | *) ac_try_echo=$ac_try;; |
| 10346 | esac |
| 10347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10348 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10349 | ac_status=$? |
| 10350 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10351 | rm -f conftest.er1 |
| 10352 | cat conftest.err >&5 |
| 10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10354 | (exit $ac_status); } && { |
| 10355 | test -z "$ac_c_werror_flag" || |
| 10356 | test ! -s conftest.err |
| 10357 | } && test -s conftest$ac_exeext && |
| 10358 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10359 | eval "$as_ac_var=yes" |
| 10360 | else |
| 10361 | echo "$as_me: failed program was:" >&5 |
| 10362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10363 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10364 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10365 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10366 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10367 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10368 | conftest$ac_exeext conftest.$ac_ext |
| 10369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10370 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 10371 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10372 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10373 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10374 | cat >>confdefs.h <<_ACEOF |
| 10375 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10376 | _ACEOF |
| 10377 | |
| 10378 | fi |
| 10379 | done |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | |
| 10386 | |
| 10387 | |
| 10388 | |
| 10389 | |
| 10390 | |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | |
| 10396 | |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ |
| 10409 | stdio.h unistd.h |
| 10410 | do |
| 10411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10412 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10413 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10415 | 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] | 10416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10417 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10418 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10419 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10420 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10421 | else |
| 10422 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10423 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10425 | cat >conftest.$ac_ext <<_ACEOF |
| 10426 | /* confdefs.h. */ |
| 10427 | _ACEOF |
| 10428 | cat confdefs.h >>conftest.$ac_ext |
| 10429 | cat >>conftest.$ac_ext <<_ACEOF |
| 10430 | /* end confdefs.h. */ |
| 10431 | $ac_includes_default |
| 10432 | #include <$ac_header> |
| 10433 | _ACEOF |
| 10434 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10435 | if { (ac_try="$ac_compile" |
| 10436 | case "(($ac_try" in |
| 10437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10438 | *) ac_try_echo=$ac_try;; |
| 10439 | esac |
| 10440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10441 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10442 | ac_status=$? |
| 10443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10444 | rm -f conftest.er1 |
| 10445 | cat conftest.err >&5 |
| 10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10447 | (exit $ac_status); } && { |
| 10448 | test -z "$ac_c_werror_flag" || |
| 10449 | test ! -s conftest.err |
| 10450 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10451 | ac_header_compiler=yes |
| 10452 | else |
| 10453 | echo "$as_me: failed program was:" >&5 |
| 10454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10455 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10456 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10457 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10458 | |
| 10459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10460 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10461 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10462 | |
| 10463 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10464 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10466 | cat >conftest.$ac_ext <<_ACEOF |
| 10467 | /* confdefs.h. */ |
| 10468 | _ACEOF |
| 10469 | cat confdefs.h >>conftest.$ac_ext |
| 10470 | cat >>conftest.$ac_ext <<_ACEOF |
| 10471 | /* end confdefs.h. */ |
| 10472 | #include <$ac_header> |
| 10473 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10474 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10475 | case "(($ac_try" in |
| 10476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10477 | *) ac_try_echo=$ac_try;; |
| 10478 | esac |
| 10479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10480 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10481 | ac_status=$? |
| 10482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10483 | rm -f conftest.er1 |
| 10484 | cat conftest.err >&5 |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10486 | (exit $ac_status); } >/dev/null && { |
| 10487 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10488 | test ! -s conftest.err |
| 10489 | }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10490 | ac_header_preproc=yes |
| 10491 | else |
| 10492 | echo "$as_me: failed program was:" >&5 |
| 10493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10494 | |
| 10495 | ac_header_preproc=no |
| 10496 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10497 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10498 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10499 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10500 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10501 | |
| 10502 | # So? What about this header? |
| 10503 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10504 | yes:no: ) |
| 10505 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10506 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10508 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10509 | ac_header_preproc=yes |
| 10510 | ;; |
| 10511 | no:yes:* ) |
| 10512 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10513 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10514 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10515 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10516 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10517 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10518 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10519 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10520 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10521 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10522 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10523 | 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] | 10524 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10525 | ## ----------------------------------- ## |
| 10526 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10527 | ## ----------------------------------- ## |
| 10528 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10529 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10530 | ;; |
| 10531 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10532 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10534 | 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] | 10535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10536 | else |
| 10537 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10538 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10539 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10540 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10541 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10542 | |
| 10543 | fi |
| 10544 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10545 | cat >>confdefs.h <<_ACEOF |
| 10546 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10547 | _ACEOF |
| 10548 | |
| 10549 | fi |
| 10550 | |
| 10551 | done |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h |
| 10558 | do |
| 10559 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10561 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10563 | 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] | 10564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10565 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10566 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10567 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10568 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10569 | else |
| 10570 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10571 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10573 | cat >conftest.$ac_ext <<_ACEOF |
| 10574 | /* confdefs.h. */ |
| 10575 | _ACEOF |
| 10576 | cat confdefs.h >>conftest.$ac_ext |
| 10577 | cat >>conftest.$ac_ext <<_ACEOF |
| 10578 | /* end confdefs.h. */ |
| 10579 | $ac_includes_default |
| 10580 | #include <$ac_header> |
| 10581 | _ACEOF |
| 10582 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10583 | if { (ac_try="$ac_compile" |
| 10584 | case "(($ac_try" in |
| 10585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10586 | *) ac_try_echo=$ac_try;; |
| 10587 | esac |
| 10588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10589 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10590 | ac_status=$? |
| 10591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10592 | rm -f conftest.er1 |
| 10593 | cat conftest.err >&5 |
| 10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10595 | (exit $ac_status); } && { |
| 10596 | test -z "$ac_c_werror_flag" || |
| 10597 | test ! -s conftest.err |
| 10598 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10599 | ac_header_compiler=yes |
| 10600 | else |
| 10601 | echo "$as_me: failed program was:" >&5 |
| 10602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10603 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10604 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10606 | |
| 10607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10608 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10609 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10610 | |
| 10611 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10612 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10613 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10614 | cat >conftest.$ac_ext <<_ACEOF |
| 10615 | /* confdefs.h. */ |
| 10616 | _ACEOF |
| 10617 | cat confdefs.h >>conftest.$ac_ext |
| 10618 | cat >>conftest.$ac_ext <<_ACEOF |
| 10619 | /* end confdefs.h. */ |
| 10620 | #include <$ac_header> |
| 10621 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10622 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10623 | case "(($ac_try" in |
| 10624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10625 | *) ac_try_echo=$ac_try;; |
| 10626 | esac |
| 10627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10628 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10629 | ac_status=$? |
| 10630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10631 | rm -f conftest.er1 |
| 10632 | cat conftest.err >&5 |
| 10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10634 | (exit $ac_status); } >/dev/null && { |
| 10635 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10636 | test ! -s conftest.err |
| 10637 | }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10638 | ac_header_preproc=yes |
| 10639 | else |
| 10640 | echo "$as_me: failed program was:" >&5 |
| 10641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10642 | |
| 10643 | ac_header_preproc=no |
| 10644 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10645 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10646 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10647 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10648 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10649 | |
| 10650 | # So? What about this header? |
| 10651 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10652 | yes:no: ) |
| 10653 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10654 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10656 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10657 | ac_header_preproc=yes |
| 10658 | ;; |
| 10659 | no:yes:* ) |
| 10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10661 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10662 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10663 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10664 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10665 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10666 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10667 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10668 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10669 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10670 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10671 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10672 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10673 | ## ----------------------------------- ## |
| 10674 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10675 | ## ----------------------------------- ## |
| 10676 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10677 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10678 | ;; |
| 10679 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10680 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10682 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10684 | else |
| 10685 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10687 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10688 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10689 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10690 | |
| 10691 | fi |
| 10692 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10693 | cat >>confdefs.h <<_ACEOF |
| 10694 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10695 | _ACEOF |
| 10696 | |
| 10697 | fi |
| 10698 | |
| 10699 | done |
| 10700 | |
| 10701 | |
| 10702 | |
| 10703 | for ac_header in string.h strings.h |
| 10704 | do |
| 10705 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10706 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 10707 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10708 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10709 | 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] | 10710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10711 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10714 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10715 | else |
| 10716 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10717 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10718 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10719 | cat >conftest.$ac_ext <<_ACEOF |
| 10720 | /* confdefs.h. */ |
| 10721 | _ACEOF |
| 10722 | cat confdefs.h >>conftest.$ac_ext |
| 10723 | cat >>conftest.$ac_ext <<_ACEOF |
| 10724 | /* end confdefs.h. */ |
| 10725 | $ac_includes_default |
| 10726 | #include <$ac_header> |
| 10727 | _ACEOF |
| 10728 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10729 | if { (ac_try="$ac_compile" |
| 10730 | case "(($ac_try" in |
| 10731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10732 | *) ac_try_echo=$ac_try;; |
| 10733 | esac |
| 10734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10735 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10736 | ac_status=$? |
| 10737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10738 | rm -f conftest.er1 |
| 10739 | cat conftest.err >&5 |
| 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10741 | (exit $ac_status); } && { |
| 10742 | test -z "$ac_c_werror_flag" || |
| 10743 | test ! -s conftest.err |
| 10744 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10745 | ac_header_compiler=yes |
| 10746 | else |
| 10747 | echo "$as_me: failed program was:" >&5 |
| 10748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10749 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10750 | ac_header_compiler=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10751 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10752 | |
| 10753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10754 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10755 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10756 | |
| 10757 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10758 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10759 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10760 | cat >conftest.$ac_ext <<_ACEOF |
| 10761 | /* confdefs.h. */ |
| 10762 | _ACEOF |
| 10763 | cat confdefs.h >>conftest.$ac_ext |
| 10764 | cat >>conftest.$ac_ext <<_ACEOF |
| 10765 | /* end confdefs.h. */ |
| 10766 | #include <$ac_header> |
| 10767 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10768 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 10769 | case "(($ac_try" in |
| 10770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10771 | *) ac_try_echo=$ac_try;; |
| 10772 | esac |
| 10773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10774 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10775 | ac_status=$? |
| 10776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10777 | rm -f conftest.er1 |
| 10778 | cat conftest.err >&5 |
| 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10780 | (exit $ac_status); } >/dev/null && { |
| 10781 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 10782 | test ! -s conftest.err |
| 10783 | }; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10784 | ac_header_preproc=yes |
| 10785 | else |
| 10786 | echo "$as_me: failed program was:" >&5 |
| 10787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10788 | |
| 10789 | ac_header_preproc=no |
| 10790 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10791 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10792 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10793 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10794 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10795 | |
| 10796 | # So? What about this header? |
| 10797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10798 | yes:no: ) |
| 10799 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10800 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10802 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10803 | ac_header_preproc=yes |
| 10804 | ;; |
| 10805 | no:yes:* ) |
| 10806 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10807 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10808 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10809 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10810 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10811 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10812 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10813 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10814 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10815 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10816 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10817 | 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] | 10818 | ( cat <<\_ASBOX |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10819 | ## ----------------------------------- ## |
| 10820 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 10821 | ## ----------------------------------- ## |
| 10822 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10823 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10824 | ;; |
| 10825 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10826 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 10828 | 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] | 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10830 | else |
| 10831 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10832 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10833 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 10834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 10835 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10836 | |
| 10837 | fi |
| 10838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10839 | cat >>confdefs.h <<_ACEOF |
| 10840 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10841 | _ACEOF |
| 10842 | break |
| 10843 | fi |
| 10844 | |
| 10845 | done |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | for ac_func in strchr index |
| 10851 | do |
| 10852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10853 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10855 | 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] | 10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10857 | else |
| 10858 | cat >conftest.$ac_ext <<_ACEOF |
| 10859 | /* confdefs.h. */ |
| 10860 | _ACEOF |
| 10861 | cat confdefs.h >>conftest.$ac_ext |
| 10862 | cat >>conftest.$ac_ext <<_ACEOF |
| 10863 | /* end confdefs.h. */ |
| 10864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10866 | #define $ac_func innocuous_$ac_func |
| 10867 | |
| 10868 | /* System header to define __stub macros and hopefully few prototypes, |
| 10869 | which can conflict with char $ac_func (); below. |
| 10870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10871 | <limits.h> exists even on freestanding compilers. */ |
| 10872 | |
| 10873 | #ifdef __STDC__ |
| 10874 | # include <limits.h> |
| 10875 | #else |
| 10876 | # include <assert.h> |
| 10877 | #endif |
| 10878 | |
| 10879 | #undef $ac_func |
| 10880 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10881 | /* Override any GCC internal prototype to avoid an error. |
| 10882 | Use char because int might match the return type of a GCC |
| 10883 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10884 | #ifdef __cplusplus |
| 10885 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10886 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10887 | char $ac_func (); |
| 10888 | /* The GNU C library defines this for functions which it implements |
| 10889 | to always fail with ENOSYS. Some functions are actually named |
| 10890 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10891 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10892 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10893 | #endif |
| 10894 | |
| 10895 | int |
| 10896 | main () |
| 10897 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10898 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10899 | ; |
| 10900 | return 0; |
| 10901 | } |
| 10902 | _ACEOF |
| 10903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10904 | if { (ac_try="$ac_link" |
| 10905 | case "(($ac_try" in |
| 10906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10907 | *) ac_try_echo=$ac_try;; |
| 10908 | esac |
| 10909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10910 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10911 | ac_status=$? |
| 10912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10913 | rm -f conftest.er1 |
| 10914 | cat conftest.err >&5 |
| 10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10916 | (exit $ac_status); } && { |
| 10917 | test -z "$ac_c_werror_flag" || |
| 10918 | test ! -s conftest.err |
| 10919 | } && test -s conftest$ac_exeext && |
| 10920 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10921 | eval "$as_ac_var=yes" |
| 10922 | else |
| 10923 | echo "$as_me: failed program was:" >&5 |
| 10924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10925 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10926 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10927 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10928 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 10929 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10930 | conftest$ac_exeext conftest.$ac_ext |
| 10931 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10932 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 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 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10936 | cat >>confdefs.h <<_ACEOF |
| 10937 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10938 | _ACEOF |
| 10939 | break |
| 10940 | fi |
| 10941 | done |
| 10942 | |
| 10943 | |
| 10944 | |
| 10945 | for ac_func in strrchr rindex |
| 10946 | do |
| 10947 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10948 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10949 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 10950 | 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] | 10951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10952 | else |
| 10953 | cat >conftest.$ac_ext <<_ACEOF |
| 10954 | /* confdefs.h. */ |
| 10955 | _ACEOF |
| 10956 | cat confdefs.h >>conftest.$ac_ext |
| 10957 | cat >>conftest.$ac_ext <<_ACEOF |
| 10958 | /* end confdefs.h. */ |
| 10959 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10961 | #define $ac_func innocuous_$ac_func |
| 10962 | |
| 10963 | /* System header to define __stub macros and hopefully few prototypes, |
| 10964 | which can conflict with char $ac_func (); below. |
| 10965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10966 | <limits.h> exists even on freestanding compilers. */ |
| 10967 | |
| 10968 | #ifdef __STDC__ |
| 10969 | # include <limits.h> |
| 10970 | #else |
| 10971 | # include <assert.h> |
| 10972 | #endif |
| 10973 | |
| 10974 | #undef $ac_func |
| 10975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10976 | /* Override any GCC internal prototype to avoid an error. |
| 10977 | Use char because int might match the return type of a GCC |
| 10978 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10979 | #ifdef __cplusplus |
| 10980 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10981 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10982 | char $ac_func (); |
| 10983 | /* The GNU C library defines this for functions which it implements |
| 10984 | to always fail with ENOSYS. Some functions are actually named |
| 10985 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10986 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10987 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10988 | #endif |
| 10989 | |
| 10990 | int |
| 10991 | main () |
| 10992 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10993 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 10994 | ; |
| 10995 | return 0; |
| 10996 | } |
| 10997 | _ACEOF |
| 10998 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 10999 | if { (ac_try="$ac_link" |
| 11000 | case "(($ac_try" in |
| 11001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11002 | *) ac_try_echo=$ac_try;; |
| 11003 | esac |
| 11004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11005 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11006 | ac_status=$? |
| 11007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11008 | rm -f conftest.er1 |
| 11009 | cat conftest.err >&5 |
| 11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11011 | (exit $ac_status); } && { |
| 11012 | test -z "$ac_c_werror_flag" || |
| 11013 | test ! -s conftest.err |
| 11014 | } && test -s conftest$ac_exeext && |
| 11015 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11016 | eval "$as_ac_var=yes" |
| 11017 | else |
| 11018 | echo "$as_me: failed program was:" >&5 |
| 11019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11021 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11023 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11025 | conftest$ac_exeext conftest.$ac_ext |
| 11026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11027 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11029 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11030 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11031 | cat >>confdefs.h <<_ACEOF |
| 11032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11033 | _ACEOF |
| 11034 | break |
| 11035 | fi |
| 11036 | done |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | for ac_func in memcpy bcopy |
| 11041 | do |
| 11042 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11043 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11044 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11045 | 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] | 11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11047 | else |
| 11048 | cat >conftest.$ac_ext <<_ACEOF |
| 11049 | /* confdefs.h. */ |
| 11050 | _ACEOF |
| 11051 | cat confdefs.h >>conftest.$ac_ext |
| 11052 | cat >>conftest.$ac_ext <<_ACEOF |
| 11053 | /* end confdefs.h. */ |
| 11054 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11056 | #define $ac_func innocuous_$ac_func |
| 11057 | |
| 11058 | /* System header to define __stub macros and hopefully few prototypes, |
| 11059 | which can conflict with char $ac_func (); below. |
| 11060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11061 | <limits.h> exists even on freestanding compilers. */ |
| 11062 | |
| 11063 | #ifdef __STDC__ |
| 11064 | # include <limits.h> |
| 11065 | #else |
| 11066 | # include <assert.h> |
| 11067 | #endif |
| 11068 | |
| 11069 | #undef $ac_func |
| 11070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11071 | /* Override any GCC internal prototype to avoid an error. |
| 11072 | Use char because int might match the return type of a GCC |
| 11073 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11074 | #ifdef __cplusplus |
| 11075 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11076 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11077 | char $ac_func (); |
| 11078 | /* The GNU C library defines this for functions which it implements |
| 11079 | to always fail with ENOSYS. Some functions are actually named |
| 11080 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11081 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11082 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11083 | #endif |
| 11084 | |
| 11085 | int |
| 11086 | main () |
| 11087 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11088 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11089 | ; |
| 11090 | return 0; |
| 11091 | } |
| 11092 | _ACEOF |
| 11093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11094 | if { (ac_try="$ac_link" |
| 11095 | case "(($ac_try" in |
| 11096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11097 | *) ac_try_echo=$ac_try;; |
| 11098 | esac |
| 11099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11100 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11101 | ac_status=$? |
| 11102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11103 | rm -f conftest.er1 |
| 11104 | cat conftest.err >&5 |
| 11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11106 | (exit $ac_status); } && { |
| 11107 | test -z "$ac_c_werror_flag" || |
| 11108 | test ! -s conftest.err |
| 11109 | } && test -s conftest$ac_exeext && |
| 11110 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11111 | eval "$as_ac_var=yes" |
| 11112 | else |
| 11113 | echo "$as_me: failed program was:" >&5 |
| 11114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11115 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11116 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11117 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11118 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11119 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11120 | conftest$ac_exeext conftest.$ac_ext |
| 11121 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11122 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11123 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11124 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11125 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11126 | cat >>confdefs.h <<_ACEOF |
| 11127 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11128 | _ACEOF |
| 11129 | break |
| 11130 | fi |
| 11131 | done |
| 11132 | |
| 11133 | |
| 11134 | |
| 11135 | for ac_func in memmove strcmp |
| 11136 | do |
| 11137 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11138 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11139 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11140 | 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] | 11141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11142 | else |
| 11143 | cat >conftest.$ac_ext <<_ACEOF |
| 11144 | /* confdefs.h. */ |
| 11145 | _ACEOF |
| 11146 | cat confdefs.h >>conftest.$ac_ext |
| 11147 | cat >>conftest.$ac_ext <<_ACEOF |
| 11148 | /* end confdefs.h. */ |
| 11149 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11151 | #define $ac_func innocuous_$ac_func |
| 11152 | |
| 11153 | /* System header to define __stub macros and hopefully few prototypes, |
| 11154 | which can conflict with char $ac_func (); below. |
| 11155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11156 | <limits.h> exists even on freestanding compilers. */ |
| 11157 | |
| 11158 | #ifdef __STDC__ |
| 11159 | # include <limits.h> |
| 11160 | #else |
| 11161 | # include <assert.h> |
| 11162 | #endif |
| 11163 | |
| 11164 | #undef $ac_func |
| 11165 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11166 | /* Override any GCC internal prototype to avoid an error. |
| 11167 | Use char because int might match the return type of a GCC |
| 11168 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11169 | #ifdef __cplusplus |
| 11170 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11171 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11172 | char $ac_func (); |
| 11173 | /* The GNU C library defines this for functions which it implements |
| 11174 | to always fail with ENOSYS. Some functions are actually named |
| 11175 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11176 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11177 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11178 | #endif |
| 11179 | |
| 11180 | int |
| 11181 | main () |
| 11182 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11183 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11184 | ; |
| 11185 | return 0; |
| 11186 | } |
| 11187 | _ACEOF |
| 11188 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11189 | if { (ac_try="$ac_link" |
| 11190 | case "(($ac_try" in |
| 11191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11192 | *) ac_try_echo=$ac_try;; |
| 11193 | esac |
| 11194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11195 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11196 | ac_status=$? |
| 11197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11198 | rm -f conftest.er1 |
| 11199 | cat conftest.err >&5 |
| 11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11201 | (exit $ac_status); } && { |
| 11202 | test -z "$ac_c_werror_flag" || |
| 11203 | test ! -s conftest.err |
| 11204 | } && test -s conftest$ac_exeext && |
| 11205 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11206 | eval "$as_ac_var=yes" |
| 11207 | else |
| 11208 | echo "$as_me: failed program was:" >&5 |
| 11209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11211 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11212 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11213 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11214 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11215 | conftest$ac_exeext conftest.$ac_ext |
| 11216 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11217 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11218 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11219 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11220 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11221 | cat >>confdefs.h <<_ACEOF |
| 11222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11223 | _ACEOF |
| 11224 | |
| 11225 | fi |
| 11226 | done |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | |
| 11231 | for ac_func in closedir opendir readdir |
| 11232 | do |
| 11233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11234 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11236 | 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] | 11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11238 | else |
| 11239 | cat >conftest.$ac_ext <<_ACEOF |
| 11240 | /* confdefs.h. */ |
| 11241 | _ACEOF |
| 11242 | cat confdefs.h >>conftest.$ac_ext |
| 11243 | cat >>conftest.$ac_ext <<_ACEOF |
| 11244 | /* end confdefs.h. */ |
| 11245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11247 | #define $ac_func innocuous_$ac_func |
| 11248 | |
| 11249 | /* System header to define __stub macros and hopefully few prototypes, |
| 11250 | which can conflict with char $ac_func (); below. |
| 11251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11252 | <limits.h> exists even on freestanding compilers. */ |
| 11253 | |
| 11254 | #ifdef __STDC__ |
| 11255 | # include <limits.h> |
| 11256 | #else |
| 11257 | # include <assert.h> |
| 11258 | #endif |
| 11259 | |
| 11260 | #undef $ac_func |
| 11261 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11262 | /* Override any GCC internal prototype to avoid an error. |
| 11263 | Use char because int might match the return type of a GCC |
| 11264 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11265 | #ifdef __cplusplus |
| 11266 | extern "C" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11267 | #endif |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11268 | char $ac_func (); |
| 11269 | /* The GNU C library defines this for functions which it implements |
| 11270 | to always fail with ENOSYS. Some functions are actually named |
| 11271 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11272 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11273 | choke me |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11274 | #endif |
| 11275 | |
| 11276 | int |
| 11277 | main () |
| 11278 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11279 | return $ac_func (); |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11280 | ; |
| 11281 | return 0; |
| 11282 | } |
| 11283 | _ACEOF |
| 11284 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11285 | if { (ac_try="$ac_link" |
| 11286 | case "(($ac_try" in |
| 11287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11288 | *) ac_try_echo=$ac_try;; |
| 11289 | esac |
| 11290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11291 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11292 | ac_status=$? |
| 11293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11294 | rm -f conftest.er1 |
| 11295 | cat conftest.err >&5 |
| 11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11297 | (exit $ac_status); } && { |
| 11298 | test -z "$ac_c_werror_flag" || |
| 11299 | test ! -s conftest.err |
| 11300 | } && test -s conftest$ac_exeext && |
| 11301 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11302 | eval "$as_ac_var=yes" |
| 11303 | else |
| 11304 | echo "$as_me: failed program was:" >&5 |
| 11305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11306 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11307 | eval "$as_ac_var=no" |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11308 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11309 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11311 | conftest$ac_exeext conftest.$ac_ext |
| 11312 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11313 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11314 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11315 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11316 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11317 | cat >>confdefs.h <<_ACEOF |
| 11318 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11319 | _ACEOF |
| 11320 | |
| 11321 | fi |
| 11322 | done |
| 11323 | |
| 11324 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11325 | # Check whether --enable-shared was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11326 | if test "${enable_shared+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11327 | enableval=$enable_shared; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11328 | case $enableval in |
| 11329 | yes) enable_shared=yes ;; |
| 11330 | no) enable_shared=no ;; |
| 11331 | *) |
| 11332 | enable_shared=no |
| 11333 | # Look at the argument we got. We use all the common list separators. |
| 11334 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11335 | for pkg in $enableval; do |
| 11336 | IFS="$lt_save_ifs" |
| 11337 | if test "X$pkg" = "X$p"; then |
| 11338 | enable_shared=yes |
| 11339 | fi |
| 11340 | done |
| 11341 | IFS="$lt_save_ifs" |
| 11342 | ;; |
| 11343 | esac |
| 11344 | else |
| 11345 | enable_shared=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11346 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11347 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11348 | |
| 11349 | # Check whether --enable-static was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11350 | if test "${enable_static+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11351 | enableval=$enable_static; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11352 | case $enableval in |
| 11353 | yes) enable_static=yes ;; |
| 11354 | no) enable_static=no ;; |
| 11355 | *) |
| 11356 | enable_static=no |
| 11357 | # Look at the argument we got. We use all the common list separators. |
| 11358 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11359 | for pkg in $enableval; do |
| 11360 | IFS="$lt_save_ifs" |
| 11361 | if test "X$pkg" = "X$p"; then |
| 11362 | enable_static=yes |
| 11363 | fi |
| 11364 | done |
| 11365 | IFS="$lt_save_ifs" |
| 11366 | ;; |
| 11367 | esac |
| 11368 | else |
| 11369 | enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11370 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11371 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11372 | |
| 11373 | # Check whether --enable-fast-install was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11374 | if test "${enable_fast_install+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11375 | enableval=$enable_fast_install; p=${PACKAGE-default} |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11376 | case $enableval in |
| 11377 | yes) enable_fast_install=yes ;; |
| 11378 | no) enable_fast_install=no ;; |
| 11379 | *) |
| 11380 | enable_fast_install=no |
| 11381 | # Look at the argument we got. We use all the common list separators. |
| 11382 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11383 | for pkg in $enableval; do |
| 11384 | IFS="$lt_save_ifs" |
| 11385 | if test "X$pkg" = "X$p"; then |
| 11386 | enable_fast_install=yes |
| 11387 | fi |
| 11388 | done |
| 11389 | IFS="$lt_save_ifs" |
| 11390 | ;; |
| 11391 | esac |
| 11392 | else |
| 11393 | enable_fast_install=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11394 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11396 | |
| 11397 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 11398 | 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] | 11399 | if test "${lt_cv_path_SED+set}" = set; then |
| 11400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11401 | else |
| 11402 | # Loop through the user's path and test for sed and gsed. |
| 11403 | # Then use that list of sed's as ones to test for truncation. |
| 11404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11405 | for as_dir in $PATH |
| 11406 | do |
| 11407 | IFS=$as_save_IFS |
| 11408 | test -z "$as_dir" && as_dir=. |
| 11409 | for lt_ac_prog in sed gsed; do |
| 11410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11411 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 11412 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 11413 | fi |
| 11414 | done |
| 11415 | done |
| 11416 | done |
| 11417 | lt_ac_max=0 |
| 11418 | lt_ac_count=0 |
| 11419 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 11420 | # along with /bin/sed that truncates output. |
| 11421 | 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] | 11422 | test ! -f $lt_ac_sed && continue |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11423 | cat /dev/null > conftest.in |
| 11424 | lt_ac_count=0 |
| 11425 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 11426 | # Check for GNU sed and select it if it is found. |
| 11427 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 11428 | lt_cv_path_SED=$lt_ac_sed |
| 11429 | break |
| 11430 | fi |
| 11431 | while true; do |
| 11432 | cat conftest.in conftest.in >conftest.tmp |
| 11433 | mv conftest.tmp conftest.in |
| 11434 | cp conftest.in conftest.nl |
| 11435 | echo >>conftest.nl |
| 11436 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 11437 | cmp -s conftest.out conftest.nl || break |
| 11438 | # 10000 chars as input seems more than enough |
| 11439 | test $lt_ac_count -gt 10 && break |
| 11440 | lt_ac_count=`expr $lt_ac_count + 1` |
| 11441 | if test $lt_ac_count -gt $lt_ac_max; then |
| 11442 | lt_ac_max=$lt_ac_count |
| 11443 | lt_cv_path_SED=$lt_ac_sed |
| 11444 | fi |
| 11445 | done |
| 11446 | done |
| 11447 | |
| 11448 | fi |
| 11449 | |
| 11450 | SED=$lt_cv_path_SED |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11451 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11452 | echo "${ECHO_T}$SED" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11453 | |
| 11454 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11455 | # Check whether --with-gnu-ld was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11456 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11457 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11458 | else |
| 11459 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11460 | fi |
| 11461 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11462 | ac_prog=ld |
| 11463 | if test "$GCC" = yes; then |
| 11464 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11465 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11466 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11467 | case $host in |
| 11468 | *-*-mingw*) |
| 11469 | # gcc leaves a trailing carriage return which upsets mingw |
| 11470 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11471 | *) |
| 11472 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11473 | esac |
| 11474 | case $ac_prog in |
| 11475 | # Accept absolute paths. |
| 11476 | [\\/]* | ?:[\\/]*) |
| 11477 | re_direlt='/[^/][^/]*/\.\./' |
| 11478 | # Canonicalize the pathname of ld |
| 11479 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 11480 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 11481 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 11482 | done |
| 11483 | test -z "$LD" && LD="$ac_prog" |
| 11484 | ;; |
| 11485 | "") |
| 11486 | # If it fails, then pretend we aren't using GCC. |
| 11487 | ac_prog=ld |
| 11488 | ;; |
| 11489 | *) |
| 11490 | # If it is relative, then search for the first ld in PATH. |
| 11491 | with_gnu_ld=unknown |
| 11492 | ;; |
| 11493 | esac |
| 11494 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11495 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11496 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11497 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11498 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11499 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11500 | fi |
| 11501 | if test "${lt_cv_path_LD+set}" = set; then |
| 11502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11503 | else |
| 11504 | if test -z "$LD"; then |
| 11505 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11506 | for ac_dir in $PATH; do |
| 11507 | IFS="$lt_save_ifs" |
| 11508 | test -z "$ac_dir" && ac_dir=. |
| 11509 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11510 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11511 | # 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] | 11512 | # but apparently some variants of GNU ld only accept -v. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11513 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11514 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11515 | *GNU* | *'with BFD'*) |
| 11516 | test "$with_gnu_ld" != no && break |
| 11517 | ;; |
| 11518 | *) |
| 11519 | test "$with_gnu_ld" != yes && break |
| 11520 | ;; |
| 11521 | esac |
| 11522 | fi |
| 11523 | done |
| 11524 | IFS="$lt_save_ifs" |
| 11525 | else |
| 11526 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11527 | fi |
| 11528 | fi |
| 11529 | |
| 11530 | LD="$lt_cv_path_LD" |
| 11531 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11532 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 11533 | echo "${ECHO_T}$LD" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11534 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11535 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11536 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11537 | fi |
| 11538 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11539 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11540 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11541 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11542 | 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] | 11543 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11545 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11546 | # 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] | 11547 | case `$LD -v 2>&1 </dev/null` in |
| 11548 | *GNU* | *'with BFD'*) |
| 11549 | lt_cv_prog_gnu_ld=yes |
| 11550 | ;; |
| 11551 | *) |
| 11552 | lt_cv_prog_gnu_ld=no |
| 11553 | ;; |
| 11554 | esac |
| 11555 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11556 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11557 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11558 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11559 | |
| 11560 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11561 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 11562 | 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] | 11563 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 11564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11565 | else |
| 11566 | lt_cv_ld_reload_flag='-r' |
| 11567 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11568 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 11569 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11570 | reload_flag=$lt_cv_ld_reload_flag |
| 11571 | case $reload_flag in |
| 11572 | "" | " "*) ;; |
| 11573 | *) reload_flag=" $reload_flag" ;; |
| 11574 | esac |
| 11575 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 11576 | case $host_os in |
| 11577 | darwin*) |
| 11578 | if test "$GCC" = yes; then |
Evan Cheng | f4334c7 | 2006-08-09 05:40:14 +0000 | [diff] [blame] | 11579 | 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] | 11580 | else |
| 11581 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 11582 | fi |
| 11583 | ;; |
| 11584 | esac |
| 11585 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 11587 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11588 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11590 | else |
| 11591 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 11592 | lt_cv_file_magic_test_file= |
| 11593 | lt_cv_deplibs_check_method='unknown' |
| 11594 | # Need to set the preceding variable on all platforms that support |
| 11595 | # interlibrary dependencies. |
| 11596 | # 'none' -- dependencies not supported. |
| 11597 | # `unknown' -- same as none, but documents that we really don't know. |
| 11598 | # 'pass_all' -- all dependencies passed with no checks. |
| 11599 | # 'test_compile' -- check by making test program. |
| 11600 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 11601 | # which responds to the $file_magic_cmd with a given extended regex. |
| 11602 | # If you have `file' or equivalent on your system and you're not sure |
| 11603 | # whether `pass_all' will *always* work, you probably want this one. |
| 11604 | |
| 11605 | case $host_os in |
| 11606 | aix4* | aix5*) |
| 11607 | lt_cv_deplibs_check_method=pass_all |
| 11608 | ;; |
| 11609 | |
| 11610 | beos*) |
| 11611 | lt_cv_deplibs_check_method=pass_all |
| 11612 | ;; |
| 11613 | |
| 11614 | bsdi[45]*) |
| 11615 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 11616 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 11617 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 11618 | ;; |
| 11619 | |
| 11620 | cygwin*) |
| 11621 | # func_win32_libid is a shell function defined in ltmain.sh |
| 11622 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 11623 | lt_cv_file_magic_cmd='func_win32_libid' |
| 11624 | ;; |
| 11625 | |
| 11626 | mingw* | pw32*) |
| 11627 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 11628 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 11629 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 11630 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 11631 | ;; |
| 11632 | |
| 11633 | darwin* | rhapsody*) |
| 11634 | lt_cv_deplibs_check_method=pass_all |
| 11635 | ;; |
| 11636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11637 | freebsd* | kfreebsd*-gnu | dragonfly*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11638 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 11639 | case $host_cpu in |
| 11640 | i*86 ) |
| 11641 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 11642 | # Let's accept both of them until this is cleared up. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11643 | 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] | 11644 | lt_cv_file_magic_cmd=/usr/bin/file |
| 11645 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 11646 | ;; |
| 11647 | esac |
| 11648 | else |
| 11649 | lt_cv_deplibs_check_method=pass_all |
| 11650 | fi |
| 11651 | ;; |
| 11652 | |
| 11653 | gnu*) |
| 11654 | lt_cv_deplibs_check_method=pass_all |
| 11655 | ;; |
| 11656 | |
| 11657 | hpux10.20* | hpux11*) |
| 11658 | lt_cv_file_magic_cmd=/usr/bin/file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11659 | case $host_cpu in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11660 | ia64*) |
| 11661 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 11662 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 11663 | ;; |
| 11664 | hppa*64*) |
| 11665 | 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]' |
| 11666 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 11667 | ;; |
| 11668 | *) |
| 11669 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 11670 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 11671 | ;; |
| 11672 | esac |
| 11673 | ;; |
| 11674 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11675 | interix3*) |
| 11676 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 11677 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 11678 | ;; |
| 11679 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11680 | irix5* | irix6* | nonstopux*) |
| 11681 | case $LD in |
| 11682 | *-32|*"-32 ") libmagic=32-bit;; |
| 11683 | *-n32|*"-n32 ") libmagic=N32;; |
| 11684 | *-64|*"-64 ") libmagic=64-bit;; |
| 11685 | *) libmagic=never-match;; |
| 11686 | esac |
| 11687 | lt_cv_deplibs_check_method=pass_all |
| 11688 | ;; |
| 11689 | |
| 11690 | # This must be Linux ELF. |
| 11691 | linux*) |
| 11692 | lt_cv_deplibs_check_method=pass_all |
| 11693 | ;; |
| 11694 | |
| 11695 | netbsd*) |
| 11696 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 11697 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11698 | else |
| 11699 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 11700 | fi |
| 11701 | ;; |
| 11702 | |
| 11703 | newos6*) |
| 11704 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 11705 | lt_cv_file_magic_cmd=/usr/bin/file |
| 11706 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 11707 | ;; |
| 11708 | |
| 11709 | nto-qnx*) |
| 11710 | lt_cv_deplibs_check_method=unknown |
| 11711 | ;; |
| 11712 | |
| 11713 | openbsd*) |
| 11714 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11715 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 11716 | else |
| 11717 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11718 | fi |
| 11719 | ;; |
| 11720 | |
| 11721 | osf3* | osf4* | osf5*) |
| 11722 | lt_cv_deplibs_check_method=pass_all |
| 11723 | ;; |
| 11724 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11725 | solaris*) |
| 11726 | lt_cv_deplibs_check_method=pass_all |
| 11727 | ;; |
| 11728 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11729 | sysv4 | sysv4.3*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11730 | case $host_vendor in |
| 11731 | motorola) |
| 11732 | 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]' |
| 11733 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 11734 | ;; |
| 11735 | ncr) |
| 11736 | lt_cv_deplibs_check_method=pass_all |
| 11737 | ;; |
| 11738 | sequent) |
| 11739 | lt_cv_file_magic_cmd='/bin/file' |
| 11740 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 11741 | ;; |
| 11742 | sni) |
| 11743 | lt_cv_file_magic_cmd='/bin/file' |
| 11744 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 11745 | lt_cv_file_magic_test_file=/lib/libc.so |
| 11746 | ;; |
| 11747 | siemens) |
| 11748 | lt_cv_deplibs_check_method=pass_all |
| 11749 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11750 | pc) |
| 11751 | lt_cv_deplibs_check_method=pass_all |
| 11752 | ;; |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11753 | esac |
| 11754 | ;; |
| 11755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11756 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11757 | lt_cv_deplibs_check_method=pass_all |
| 11758 | ;; |
| 11759 | esac |
| 11760 | |
| 11761 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11762 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 11763 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11764 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 11765 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 11766 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 11767 | |
| 11768 | |
| 11769 | |
| 11770 | # If no C compiler was specified, use CC. |
| 11771 | LTCC=${LTCC-"$CC"} |
| 11772 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11773 | # If no C compiler flags were specified, use CFLAGS. |
| 11774 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11775 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11776 | # Allow CC to be a program name with arguments. |
| 11777 | compiler=$CC |
| 11778 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11779 | # Check whether --enable-libtool-lock was given. |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11780 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11781 | enableval=$enable_libtool_lock; |
| 11782 | fi |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11783 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11784 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11785 | |
| 11786 | # Some flags need to be propagated to the compiler or linker for good |
| 11787 | # libtool support. |
| 11788 | case $host in |
| 11789 | ia64-*-hpux*) |
| 11790 | # Find out which ABI we are using. |
| 11791 | echo 'int i;' > conftest.$ac_ext |
| 11792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11793 | (eval $ac_compile) 2>&5 |
| 11794 | ac_status=$? |
| 11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11796 | (exit $ac_status); }; then |
| 11797 | case `/usr/bin/file conftest.$ac_objext` in |
| 11798 | *ELF-32*) |
| 11799 | HPUX_IA64_MODE="32" |
| 11800 | ;; |
| 11801 | *ELF-64*) |
| 11802 | HPUX_IA64_MODE="64" |
| 11803 | ;; |
| 11804 | esac |
| 11805 | fi |
| 11806 | rm -rf conftest* |
| 11807 | ;; |
| 11808 | *-*-irix6*) |
| 11809 | # Find out which ABI we are using. |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 11810 | echo '#line 11809 "configure"' > conftest.$ac_ext |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11812 | (eval $ac_compile) 2>&5 |
| 11813 | ac_status=$? |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); }; then |
| 11816 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11817 | case `/usr/bin/file conftest.$ac_objext` in |
| 11818 | *32-bit*) |
| 11819 | LD="${LD-ld} -melf32bsmip" |
| 11820 | ;; |
| 11821 | *N32*) |
| 11822 | LD="${LD-ld} -melf32bmipn32" |
| 11823 | ;; |
| 11824 | *64-bit*) |
| 11825 | LD="${LD-ld} -melf64bmip" |
| 11826 | ;; |
| 11827 | esac |
| 11828 | else |
| 11829 | case `/usr/bin/file conftest.$ac_objext` in |
| 11830 | *32-bit*) |
| 11831 | LD="${LD-ld} -32" |
| 11832 | ;; |
| 11833 | *N32*) |
| 11834 | LD="${LD-ld} -n32" |
| 11835 | ;; |
| 11836 | *64-bit*) |
| 11837 | LD="${LD-ld} -64" |
| 11838 | ;; |
| 11839 | esac |
| 11840 | fi |
| 11841 | fi |
| 11842 | rm -rf conftest* |
| 11843 | ;; |
| 11844 | |
| 11845 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 11846 | # Find out which ABI we are using. |
| 11847 | echo 'int i;' > conftest.$ac_ext |
| 11848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11849 | (eval $ac_compile) 2>&5 |
| 11850 | ac_status=$? |
| 11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11852 | (exit $ac_status); }; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11853 | case `/usr/bin/file conftest.o` in |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11854 | *32-bit*) |
| 11855 | case $host in |
| 11856 | x86_64-*linux*) |
| 11857 | LD="${LD-ld} -m elf_i386" |
| 11858 | ;; |
| 11859 | ppc64-*linux*|powerpc64-*linux*) |
| 11860 | LD="${LD-ld} -m elf32ppclinux" |
| 11861 | ;; |
| 11862 | s390x-*linux*) |
| 11863 | LD="${LD-ld} -m elf_s390" |
| 11864 | ;; |
| 11865 | sparc64-*linux*) |
| 11866 | LD="${LD-ld} -m elf32_sparc" |
| 11867 | ;; |
| 11868 | esac |
| 11869 | ;; |
| 11870 | *64-bit*) |
| 11871 | case $host in |
| 11872 | x86_64-*linux*) |
| 11873 | LD="${LD-ld} -m elf_x86_64" |
| 11874 | ;; |
| 11875 | ppc*-*linux*|powerpc*-*linux*) |
| 11876 | LD="${LD-ld} -m elf64ppc" |
| 11877 | ;; |
| 11878 | s390*-*linux*) |
| 11879 | LD="${LD-ld} -m elf64_s390" |
| 11880 | ;; |
| 11881 | sparc*-*linux*) |
| 11882 | LD="${LD-ld} -m elf64_sparc" |
| 11883 | ;; |
| 11884 | esac |
| 11885 | ;; |
| 11886 | esac |
| 11887 | fi |
| 11888 | rm -rf conftest* |
| 11889 | ;; |
| 11890 | |
| 11891 | *-*-sco3.2v5*) |
| 11892 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 11893 | SAVE_CFLAGS="$CFLAGS" |
| 11894 | CFLAGS="$CFLAGS -belf" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11895 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 11896 | 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] | 11897 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 11898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11899 | else |
| 11900 | ac_ext=c |
| 11901 | ac_cpp='$CPP $CPPFLAGS' |
| 11902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11905 | |
| 11906 | cat >conftest.$ac_ext <<_ACEOF |
| 11907 | /* confdefs.h. */ |
| 11908 | _ACEOF |
| 11909 | cat confdefs.h >>conftest.$ac_ext |
| 11910 | cat >>conftest.$ac_ext <<_ACEOF |
| 11911 | /* end confdefs.h. */ |
| 11912 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11913 | int |
| 11914 | main () |
| 11915 | { |
| 11916 | |
| 11917 | ; |
| 11918 | return 0; |
| 11919 | } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11920 | _ACEOF |
| 11921 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11922 | if { (ac_try="$ac_link" |
| 11923 | case "(($ac_try" in |
| 11924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11925 | *) ac_try_echo=$ac_try;; |
| 11926 | esac |
| 11927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11928 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11929 | ac_status=$? |
| 11930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11931 | rm -f conftest.er1 |
| 11932 | cat conftest.err >&5 |
| 11933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11934 | (exit $ac_status); } && { |
| 11935 | test -z "$ac_c_werror_flag" || |
| 11936 | test ! -s conftest.err |
| 11937 | } && test -s conftest$ac_exeext && |
| 11938 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11939 | lt_cv_cc_needs_belf=yes |
| 11940 | else |
| 11941 | echo "$as_me: failed program was:" >&5 |
| 11942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11943 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11944 | lt_cv_cc_needs_belf=no |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11945 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11946 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 11947 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11948 | conftest$ac_exeext conftest.$ac_ext |
| 11949 | ac_ext=c |
| 11950 | ac_cpp='$CPP $CPPFLAGS' |
| 11951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11954 | |
| 11955 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11956 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 11957 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11958 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 11959 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 11960 | CFLAGS="$SAVE_CFLAGS" |
| 11961 | fi |
| 11962 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11963 | sparc*-*solaris*) |
| 11964 | # Find out which ABI we are using. |
| 11965 | echo 'int i;' > conftest.$ac_ext |
| 11966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11967 | (eval $ac_compile) 2>&5 |
| 11968 | ac_status=$? |
| 11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11970 | (exit $ac_status); }; then |
| 11971 | case `/usr/bin/file conftest.o` in |
| 11972 | *64-bit*) |
| 11973 | case $lt_cv_prog_gnu_ld in |
| 11974 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 11975 | *) LD="${LD-ld} -64" ;; |
| 11976 | esac |
| 11977 | ;; |
| 11978 | esac |
| 11979 | fi |
| 11980 | rm -rf conftest* |
| 11981 | ;; |
| 11982 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 11983 | |
| 11984 | esac |
| 11985 | |
| 11986 | need_locks="$enable_libtool_lock" |
| 11987 | |
| 11988 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 11989 | |
| 11990 | |
| 11991 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11992 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11993 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11994 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 11995 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 11999 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 12000 | 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] | 12001 | if test -z "$CXXCPP"; then |
| 12002 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12004 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12005 | # Double quotes because CXXCPP needs to be expanded |
| 12006 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12007 | do |
| 12008 | ac_preproc_ok=false |
| 12009 | for ac_cxx_preproc_warn_flag in '' yes |
| 12010 | do |
| 12011 | # Use a header file that comes with gcc, so configuring glibc |
| 12012 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12013 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12014 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12015 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12016 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12017 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12018 | /* confdefs.h. */ |
| 12019 | _ACEOF |
| 12020 | cat confdefs.h >>conftest.$ac_ext |
| 12021 | cat >>conftest.$ac_ext <<_ACEOF |
| 12022 | /* end confdefs.h. */ |
| 12023 | #ifdef __STDC__ |
| 12024 | # include <limits.h> |
| 12025 | #else |
| 12026 | # include <assert.h> |
| 12027 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12028 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12029 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12030 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12031 | case "(($ac_try" in |
| 12032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12033 | *) ac_try_echo=$ac_try;; |
| 12034 | esac |
| 12035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12036 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12037 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12038 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12039 | rm -f conftest.er1 |
| 12040 | cat conftest.err >&5 |
| 12041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12042 | (exit $ac_status); } >/dev/null && { |
| 12043 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 12044 | test ! -s conftest.err |
| 12045 | }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12046 | : |
| 12047 | else |
| 12048 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12049 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12050 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12051 | # Broken: fails on valid input. |
| 12052 | continue |
| 12053 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12054 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12055 | rm -f conftest.err conftest.$ac_ext |
| 12056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12057 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12058 | # can be detected and how. |
| 12059 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12060 | /* confdefs.h. */ |
| 12061 | _ACEOF |
| 12062 | cat confdefs.h >>conftest.$ac_ext |
| 12063 | cat >>conftest.$ac_ext <<_ACEOF |
| 12064 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12065 | #include <ac_nonexistent.h> |
| 12066 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12067 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12068 | case "(($ac_try" in |
| 12069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12070 | *) ac_try_echo=$ac_try;; |
| 12071 | esac |
| 12072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12073 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12074 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12075 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12076 | rm -f conftest.er1 |
| 12077 | cat conftest.err >&5 |
| 12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12079 | (exit $ac_status); } >/dev/null && { |
| 12080 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 12081 | test ! -s conftest.err |
| 12082 | }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12083 | # Broken: success on invalid input. |
| 12084 | continue |
| 12085 | else |
| 12086 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12088 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12089 | # Passes both tests. |
| 12090 | ac_preproc_ok=: |
| 12091 | break |
| 12092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12093 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12094 | rm -f conftest.err conftest.$ac_ext |
| 12095 | |
| 12096 | done |
| 12097 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12098 | rm -f conftest.err conftest.$ac_ext |
| 12099 | if $ac_preproc_ok; then |
| 12100 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12101 | fi |
| 12102 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12103 | done |
| 12104 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12105 | |
| 12106 | fi |
| 12107 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12108 | else |
| 12109 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12110 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12111 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 12112 | echo "${ECHO_T}$CXXCPP" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12113 | ac_preproc_ok=false |
| 12114 | for ac_cxx_preproc_warn_flag in '' yes |
| 12115 | do |
| 12116 | # Use a header file that comes with gcc, so configuring glibc |
| 12117 | # with a fresh cross-compiler works. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12118 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12119 | # <limits.h> exists even on freestanding compilers. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12120 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12121 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12122 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
| 12128 | #ifdef __STDC__ |
| 12129 | # include <limits.h> |
| 12130 | #else |
| 12131 | # include <assert.h> |
| 12132 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12133 | Syntax error |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12134 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12135 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12136 | case "(($ac_try" in |
| 12137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12138 | *) ac_try_echo=$ac_try;; |
| 12139 | esac |
| 12140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12142 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12143 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12144 | rm -f conftest.er1 |
| 12145 | cat conftest.err >&5 |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12147 | (exit $ac_status); } >/dev/null && { |
| 12148 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 12149 | test ! -s conftest.err |
| 12150 | }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12151 | : |
| 12152 | else |
| 12153 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12155 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12156 | # Broken: fails on valid input. |
| 12157 | continue |
| 12158 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12159 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12160 | rm -f conftest.err conftest.$ac_ext |
| 12161 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12162 | # OK, works on sane cases. Now check whether nonexistent headers |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12163 | # can be detected and how. |
| 12164 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12165 | /* confdefs.h. */ |
| 12166 | _ACEOF |
| 12167 | cat confdefs.h >>conftest.$ac_ext |
| 12168 | cat >>conftest.$ac_ext <<_ACEOF |
| 12169 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12170 | #include <ac_nonexistent.h> |
| 12171 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12172 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12173 | case "(($ac_try" in |
| 12174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12175 | *) ac_try_echo=$ac_try;; |
| 12176 | esac |
| 12177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12178 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12179 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12180 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12181 | rm -f conftest.er1 |
| 12182 | cat conftest.err >&5 |
| 12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12184 | (exit $ac_status); } >/dev/null && { |
| 12185 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 12186 | test ! -s conftest.err |
| 12187 | }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12188 | # Broken: success on invalid input. |
| 12189 | continue |
| 12190 | else |
| 12191 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12193 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12194 | # Passes both tests. |
| 12195 | ac_preproc_ok=: |
| 12196 | break |
| 12197 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12198 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12199 | rm -f conftest.err conftest.$ac_ext |
| 12200 | |
| 12201 | done |
| 12202 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12203 | rm -f conftest.err conftest.$ac_ext |
| 12204 | if $ac_preproc_ok; then |
| 12205 | : |
| 12206 | else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12207 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12208 | See \`config.log' for more details." >&5 |
| 12209 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12210 | See \`config.log' for more details." >&2;} |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12211 | { (exit 1); exit 1; }; } |
| 12212 | fi |
| 12213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12214 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12215 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12216 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12217 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12218 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12219 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12220 | fi |
| 12221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12222 | |
| 12223 | ac_ext=f |
| 12224 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 12225 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12226 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 12227 | if test -n "$ac_tool_prefix"; then |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12228 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12229 | do |
| 12230 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12231 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12232 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12234 | if test "${ac_cv_prog_F77+set}" = set; then |
| 12235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12236 | else |
| 12237 | if test -n "$F77"; then |
| 12238 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 12239 | else |
| 12240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12241 | for as_dir in $PATH |
| 12242 | do |
| 12243 | IFS=$as_save_IFS |
| 12244 | test -z "$as_dir" && as_dir=. |
| 12245 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12247 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 12248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12249 | break 2 |
| 12250 | fi |
| 12251 | done |
| 12252 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12253 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12254 | |
| 12255 | fi |
| 12256 | fi |
| 12257 | F77=$ac_cv_prog_F77 |
| 12258 | if test -n "$F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12259 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 12260 | echo "${ECHO_T}$F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12261 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12262 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12263 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12264 | fi |
| 12265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12266 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12267 | test -n "$F77" && break |
| 12268 | done |
| 12269 | fi |
| 12270 | if test -z "$F77"; then |
| 12271 | ac_ct_F77=$F77 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12272 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12273 | do |
| 12274 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12275 | set dummy $ac_prog; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12278 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 12279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12280 | else |
| 12281 | if test -n "$ac_ct_F77"; then |
| 12282 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 12283 | else |
| 12284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12285 | for as_dir in $PATH |
| 12286 | do |
| 12287 | IFS=$as_save_IFS |
| 12288 | test -z "$as_dir" && as_dir=. |
| 12289 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12291 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 12292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12293 | break 2 |
| 12294 | fi |
| 12295 | done |
| 12296 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12297 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12298 | |
| 12299 | fi |
| 12300 | fi |
| 12301 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 12302 | if test -n "$ac_ct_F77"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12303 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 12304 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12305 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12307 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12308 | fi |
| 12309 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12310 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12311 | test -n "$ac_ct_F77" && break |
| 12312 | done |
| 12313 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12314 | if test "x$ac_ct_F77" = x; then |
| 12315 | F77="" |
| 12316 | else |
| 12317 | case $cross_compiling:$ac_tool_warned in |
| 12318 | yes:) |
| 12319 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12320 | whose name does not start with the host triplet. If you think this |
| 12321 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12322 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12323 | whose name does not start with the host triplet. If you think this |
| 12324 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12325 | ac_tool_warned=yes ;; |
| 12326 | esac |
| 12327 | F77=$ac_ct_F77 |
| 12328 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12329 | fi |
| 12330 | |
| 12331 | |
| 12332 | # Provide some information about the compiler. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12333 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12334 | ac_compiler=`set X $ac_compile; echo $2` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12335 | { (ac_try="$ac_compiler --version >&5" |
| 12336 | case "(($ac_try" in |
| 12337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12338 | *) ac_try_echo=$ac_try;; |
| 12339 | esac |
| 12340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12341 | (eval "$ac_compiler --version >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12342 | ac_status=$? |
| 12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12344 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12345 | { (ac_try="$ac_compiler -v >&5" |
| 12346 | case "(($ac_try" in |
| 12347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12348 | *) ac_try_echo=$ac_try;; |
| 12349 | esac |
| 12350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12351 | (eval "$ac_compiler -v >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12352 | ac_status=$? |
| 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12354 | (exit $ac_status); } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12355 | { (ac_try="$ac_compiler -V >&5" |
| 12356 | case "(($ac_try" in |
| 12357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12358 | *) ac_try_echo=$ac_try;; |
| 12359 | esac |
| 12360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12361 | (eval "$ac_compiler -V >&5") 2>&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12362 | ac_status=$? |
| 12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12364 | (exit $ac_status); } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12365 | rm -f a.out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12366 | |
| 12367 | # 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] | 12368 | # input file. (Note that this only needs to work for GNU compilers.) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12369 | ac_save_ext=$ac_ext |
| 12370 | ac_ext=F |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12371 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 12372 | 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] | 12373 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 12374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12375 | else |
| 12376 | cat >conftest.$ac_ext <<_ACEOF |
| 12377 | program main |
| 12378 | #ifndef __GNUC__ |
| 12379 | choke me |
| 12380 | #endif |
| 12381 | |
| 12382 | end |
| 12383 | _ACEOF |
| 12384 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12385 | if { (ac_try="$ac_compile" |
| 12386 | case "(($ac_try" in |
| 12387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12388 | *) ac_try_echo=$ac_try;; |
| 12389 | esac |
| 12390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12391 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12392 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12394 | rm -f conftest.er1 |
| 12395 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12397 | (exit $ac_status); } && { |
| 12398 | test -z "$ac_f77_werror_flag" || |
| 12399 | test ! -s conftest.err |
| 12400 | } && test -s conftest.$ac_objext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12401 | ac_compiler_gnu=yes |
| 12402 | else |
| 12403 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12406 | ac_compiler_gnu=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12407 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12408 | |
| 12409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12410 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 12411 | |
| 12412 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12413 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 12414 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12415 | ac_ext=$ac_save_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12416 | ac_test_FFLAGS=${FFLAGS+set} |
| 12417 | ac_save_FFLAGS=$FFLAGS |
| 12418 | FFLAGS= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12419 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 12420 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12421 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 12422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12423 | else |
| 12424 | FFLAGS=-g |
| 12425 | cat >conftest.$ac_ext <<_ACEOF |
| 12426 | program main |
| 12427 | |
| 12428 | end |
| 12429 | _ACEOF |
| 12430 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12431 | if { (ac_try="$ac_compile" |
| 12432 | case "(($ac_try" in |
| 12433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12434 | *) ac_try_echo=$ac_try;; |
| 12435 | esac |
| 12436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12437 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12438 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12440 | rm -f conftest.er1 |
| 12441 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12443 | (exit $ac_status); } && { |
| 12444 | test -z "$ac_f77_werror_flag" || |
| 12445 | test ! -s conftest.err |
| 12446 | } && test -s conftest.$ac_objext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12447 | ac_cv_prog_f77_g=yes |
| 12448 | else |
| 12449 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 12450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12452 | ac_cv_prog_f77_g=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12453 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12454 | |
| 12455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12456 | |
| 12457 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12458 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 12459 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12460 | if test "$ac_test_FFLAGS" = set; then |
| 12461 | FFLAGS=$ac_save_FFLAGS |
| 12462 | elif test $ac_cv_prog_f77_g = yes; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12463 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12464 | FFLAGS="-g -O2" |
| 12465 | else |
| 12466 | FFLAGS="-g" |
| 12467 | fi |
| 12468 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12469 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12470 | FFLAGS="-O2" |
| 12471 | else |
| 12472 | FFLAGS= |
| 12473 | fi |
| 12474 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12475 | |
| 12476 | G77=`test $ac_compiler_gnu = yes && echo yes` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12477 | ac_ext=c |
| 12478 | ac_cpp='$CPP $CPPFLAGS' |
| 12479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12482 | |
| 12483 | |
| 12484 | |
| 12485 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 12486 | |
| 12487 | # find the maximum length of command line arguments |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12488 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 12489 | 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] | 12490 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 12491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12492 | else |
| 12493 | i=0 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12494 | teststring="ABCD" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12495 | |
| 12496 | case $build_os in |
| 12497 | msdosdjgpp*) |
| 12498 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 12499 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 12500 | # during glob expansion). Even if it were fixed, the result of this |
| 12501 | # check would be larger than it should be. |
| 12502 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 12503 | ;; |
| 12504 | |
| 12505 | gnu*) |
| 12506 | # Under GNU Hurd, this test is not required because there is |
| 12507 | # no limit to the length of command line arguments. |
| 12508 | # Libtool will interpret -1 as no limit whatsoever |
| 12509 | lt_cv_sys_max_cmd_len=-1; |
| 12510 | ;; |
| 12511 | |
| 12512 | cygwin* | mingw*) |
| 12513 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 12514 | # about 5 minutes as the teststring grows exponentially. |
| 12515 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 12516 | # you end up with a "frozen" computer, even though with patience |
| 12517 | # the test eventually succeeds (with a max line length of 256k). |
| 12518 | # Instead, let's just punt: use the minimum linelength reported by |
| 12519 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 12520 | lt_cv_sys_max_cmd_len=8192; |
| 12521 | ;; |
| 12522 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12523 | amigaos*) |
| 12524 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 12525 | # So we just punt and use a minimum line length of 8192. |
| 12526 | lt_cv_sys_max_cmd_len=8192; |
| 12527 | ;; |
| 12528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12529 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12530 | # This has been around since 386BSD, at least. Likely further. |
| 12531 | if test -x /sbin/sysctl; then |
| 12532 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 12533 | elif test -x /usr/sbin/sysctl; then |
| 12534 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 12535 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12536 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12537 | fi |
| 12538 | # And add a safety zone |
| 12539 | 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] | 12540 | 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] | 12541 | ;; |
| 12542 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12543 | interix*) |
| 12544 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 12545 | lt_cv_sys_max_cmd_len=196608 |
| 12546 | ;; |
| 12547 | |
| 12548 | osf*) |
| 12549 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 12550 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 12551 | # nice to cause kernel panics so lets avoid the loop below. |
| 12552 | # First set a reasonable default. |
| 12553 | lt_cv_sys_max_cmd_len=16384 |
| 12554 | # |
| 12555 | if test -x /sbin/sysconfig; then |
| 12556 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 12557 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 12558 | esac |
| 12559 | fi |
| 12560 | ;; |
| 12561 | sco3.2v5*) |
| 12562 | lt_cv_sys_max_cmd_len=102400 |
| 12563 | ;; |
| 12564 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 12565 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 12566 | if test -n "$kargmax"; then |
| 12567 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 12568 | else |
| 12569 | lt_cv_sys_max_cmd_len=32768 |
| 12570 | fi |
| 12571 | ;; |
| 12572 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12573 | # If test is not a shell built-in, we'll probably end up computing a |
| 12574 | # maximum length that is only half of the actual maximum length, but |
| 12575 | # we can't tell. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12576 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 12577 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 12578 | = "XX$teststring") >/dev/null 2>&1 && |
| 12579 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12580 | lt_cv_sys_max_cmd_len=$new_result && |
| 12581 | test $i != 17 # 1/2 MB should be enough |
| 12582 | do |
| 12583 | i=`expr $i + 1` |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12584 | teststring=$teststring$teststring |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12585 | done |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12586 | teststring= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12587 | # Add a significant safety factor because C++ compilers can tack on massive |
| 12588 | # amounts of additional arguments before passing them to the linker. |
| 12589 | # It appears as though 1/2 is a usable value. |
| 12590 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 12591 | ;; |
| 12592 | esac |
| 12593 | |
| 12594 | fi |
| 12595 | |
| 12596 | if test -n $lt_cv_sys_max_cmd_len ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12597 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 12598 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12599 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12600 | { echo "$as_me:$LINENO: result: none" >&5 |
| 12601 | echo "${ECHO_T}none" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12602 | fi |
| 12603 | |
| 12604 | |
| 12605 | |
| 12606 | |
| 12607 | # 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] | 12608 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 12609 | 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] | 12610 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 12611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12612 | else |
| 12613 | |
| 12614 | # These are sane defaults that work on at least a few old systems. |
| 12615 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 12616 | |
| 12617 | # Character class describing NM global symbol codes. |
| 12618 | symcode='[BCDEGRST]' |
| 12619 | |
| 12620 | # Regexp to match symbols that can be accessed directly from C. |
| 12621 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 12622 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12623 | # Transform an extracted symbol line into a proper C declaration |
| 12624 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 12625 | |
| 12626 | # Transform an extracted symbol line into symbol name and symbol address |
| 12627 | 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'" |
| 12628 | |
| 12629 | # Define system-specific variables. |
| 12630 | case $host_os in |
| 12631 | aix*) |
| 12632 | symcode='[BCDT]' |
| 12633 | ;; |
| 12634 | cygwin* | mingw* | pw32*) |
| 12635 | symcode='[ABCDGISTW]' |
| 12636 | ;; |
| 12637 | hpux*) # Its linker distinguishes data from code symbols |
| 12638 | if test "$host_cpu" = ia64; then |
| 12639 | symcode='[ABCDEGRST]' |
| 12640 | fi |
| 12641 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 12642 | 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'" |
| 12643 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12644 | linux*) |
| 12645 | if test "$host_cpu" = ia64; then |
| 12646 | symcode='[ABCDGIRSTW]' |
| 12647 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 12648 | 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'" |
| 12649 | fi |
| 12650 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12651 | irix* | nonstopux*) |
| 12652 | symcode='[BCDEGRST]' |
| 12653 | ;; |
| 12654 | osf*) |
| 12655 | symcode='[BCDEGQRST]' |
| 12656 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12657 | solaris*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12658 | symcode='[BDRT]' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12659 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12660 | sco3.2v5*) |
| 12661 | symcode='[DT]' |
| 12662 | ;; |
| 12663 | sysv4.2uw2*) |
| 12664 | symcode='[DT]' |
| 12665 | ;; |
| 12666 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 12667 | symcode='[ABDT]' |
| 12668 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12669 | sysv4) |
| 12670 | symcode='[DFNSTU]' |
| 12671 | ;; |
| 12672 | esac |
| 12673 | |
| 12674 | # Handle CRLF in mingw tool chain |
| 12675 | opt_cr= |
| 12676 | case $build_os in |
| 12677 | mingw*) |
| 12678 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 12679 | ;; |
| 12680 | esac |
| 12681 | |
| 12682 | # If we're using GNU nm, then use its standard symbol codes. |
| 12683 | case `$NM -V 2>&1` in |
| 12684 | *GNU* | *'with BFD'*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 12685 | symcode='[ABCDGIRSTW]' ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12686 | esac |
| 12687 | |
| 12688 | # Try without a prefix undercore, then with it. |
| 12689 | for ac_symprfx in "" "_"; do |
| 12690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12691 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 12692 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 12693 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12694 | # Write the raw and C identifiers. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12695 | 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] | 12696 | |
| 12697 | # Check to see that the pipe works correctly. |
| 12698 | pipe_works=no |
| 12699 | |
| 12700 | rm -f conftest* |
| 12701 | cat > conftest.$ac_ext <<EOF |
| 12702 | #ifdef __cplusplus |
| 12703 | extern "C" { |
| 12704 | #endif |
| 12705 | char nm_test_var; |
| 12706 | void nm_test_func(){} |
| 12707 | #ifdef __cplusplus |
| 12708 | } |
| 12709 | #endif |
| 12710 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 12711 | EOF |
| 12712 | |
| 12713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12714 | (eval $ac_compile) 2>&5 |
| 12715 | ac_status=$? |
| 12716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12717 | (exit $ac_status); }; then |
| 12718 | # Now try to grab the symbols. |
| 12719 | nlist=conftest.nm |
| 12720 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 12721 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 12722 | ac_status=$? |
| 12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12724 | (exit $ac_status); } && test -s "$nlist"; then |
| 12725 | # Try sorting and uniquifying the output. |
| 12726 | if sort "$nlist" | uniq > "$nlist"T; then |
| 12727 | mv -f "$nlist"T "$nlist" |
| 12728 | else |
| 12729 | rm -f "$nlist"T |
| 12730 | fi |
| 12731 | |
| 12732 | # Make sure that we snagged all the symbols we need. |
| 12733 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 12734 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 12735 | cat <<EOF > conftest.$ac_ext |
| 12736 | #ifdef __cplusplus |
| 12737 | extern "C" { |
| 12738 | #endif |
| 12739 | |
| 12740 | EOF |
| 12741 | # Now generate the symbol file. |
| 12742 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 12743 | |
| 12744 | cat <<EOF >> conftest.$ac_ext |
| 12745 | #if defined (__STDC__) && __STDC__ |
| 12746 | # define lt_ptr_t void * |
| 12747 | #else |
| 12748 | # define lt_ptr_t char * |
| 12749 | # define const |
| 12750 | #endif |
| 12751 | |
| 12752 | /* The mapping between symbol names and symbols. */ |
| 12753 | const struct { |
| 12754 | const char *name; |
| 12755 | lt_ptr_t address; |
| 12756 | } |
| 12757 | lt_preloaded_symbols[] = |
| 12758 | { |
| 12759 | EOF |
| 12760 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 12761 | cat <<\EOF >> conftest.$ac_ext |
| 12762 | {0, (lt_ptr_t) 0} |
| 12763 | }; |
| 12764 | |
| 12765 | #ifdef __cplusplus |
| 12766 | } |
| 12767 | #endif |
| 12768 | EOF |
| 12769 | # Now try linking the two files. |
| 12770 | mv conftest.$ac_objext conftstm.$ac_objext |
| 12771 | lt_save_LIBS="$LIBS" |
| 12772 | lt_save_CFLAGS="$CFLAGS" |
| 12773 | LIBS="conftstm.$ac_objext" |
| 12774 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 12775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12776 | (eval $ac_link) 2>&5 |
| 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 12780 | pipe_works=yes |
| 12781 | fi |
| 12782 | LIBS="$lt_save_LIBS" |
| 12783 | CFLAGS="$lt_save_CFLAGS" |
| 12784 | else |
| 12785 | echo "cannot find nm_test_func in $nlist" >&5 |
| 12786 | fi |
| 12787 | else |
| 12788 | echo "cannot find nm_test_var in $nlist" >&5 |
| 12789 | fi |
| 12790 | else |
| 12791 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 12792 | fi |
| 12793 | else |
| 12794 | echo "$progname: failed program was:" >&5 |
| 12795 | cat conftest.$ac_ext >&5 |
| 12796 | fi |
| 12797 | rm -f conftest* conftst* |
| 12798 | |
| 12799 | # Do not use the global_symbol_pipe unless it works. |
| 12800 | if test "$pipe_works" = yes; then |
| 12801 | break |
| 12802 | else |
| 12803 | lt_cv_sys_global_symbol_pipe= |
| 12804 | fi |
| 12805 | done |
| 12806 | |
| 12807 | fi |
| 12808 | |
| 12809 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 12810 | lt_cv_sys_global_symbol_to_cdecl= |
| 12811 | fi |
| 12812 | 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] | 12813 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 12814 | echo "${ECHO_T}failed" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12815 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12816 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 12817 | echo "${ECHO_T}ok" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12818 | fi |
| 12819 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12820 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 12821 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12822 | if test "${lt_cv_objdir+set}" = set; then |
| 12823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12824 | else |
| 12825 | rm -f .libs 2>/dev/null |
| 12826 | mkdir .libs 2>/dev/null |
| 12827 | if test -d .libs; then |
| 12828 | lt_cv_objdir=.libs |
| 12829 | else |
| 12830 | # MS-DOS does not allow filenames that begin with a dot. |
| 12831 | lt_cv_objdir=_libs |
| 12832 | fi |
| 12833 | rmdir .libs 2>/dev/null |
| 12834 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12835 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 12836 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12837 | objdir=$lt_cv_objdir |
| 12838 | |
| 12839 | |
| 12840 | |
| 12841 | |
| 12842 | |
| 12843 | case $host_os in |
| 12844 | aix3*) |
| 12845 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 12846 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 12847 | # vanish in a puff of smoke. |
| 12848 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 12849 | COLLECT_NAMES= |
| 12850 | export COLLECT_NAMES |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12851 | fi |
| 12852 | ;; |
| 12853 | esac |
| 12854 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12855 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 12856 | # metacharacters that are still active within double-quoted strings. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12857 | Xsed='sed -e 1s/^X//' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12858 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 12859 | |
| 12860 | # Same as above, but do not quote variable references. |
| 12861 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 12862 | |
| 12863 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 12864 | # double_quote_subst'ed string. |
| 12865 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 12866 | |
| 12867 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 12868 | no_glob_subst='s/\*/\\\*/g' |
| 12869 | |
| 12870 | # Constants: |
| 12871 | rm="rm -f" |
| 12872 | |
| 12873 | # Global variables: |
Reid Spencer | e4d18e4 | 2004-09-20 01:42:32 +0000 | [diff] [blame] | 12874 | default_ofile=mklib |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12875 | can_build_shared=yes |
| 12876 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12877 | # All known linkers require a `.a' archive for static linking (except MSVC, |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12878 | # which needs '.lib'). |
| 12879 | libext=a |
| 12880 | ltmain="$ac_aux_dir/ltmain.sh" |
| 12881 | ofile="$default_ofile" |
| 12882 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 12883 | |
| 12884 | if test -n "$ac_tool_prefix"; then |
| 12885 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 12886 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12887 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12889 | if test "${ac_cv_prog_AR+set}" = set; then |
| 12890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12891 | else |
| 12892 | if test -n "$AR"; then |
| 12893 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 12894 | else |
| 12895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12896 | for as_dir in $PATH |
| 12897 | do |
| 12898 | IFS=$as_save_IFS |
| 12899 | test -z "$as_dir" && as_dir=. |
| 12900 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12902 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 12903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12904 | break 2 |
| 12905 | fi |
| 12906 | done |
| 12907 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12908 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12909 | |
| 12910 | fi |
| 12911 | fi |
| 12912 | AR=$ac_cv_prog_AR |
| 12913 | if test -n "$AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12914 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 12915 | echo "${ECHO_T}$AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12916 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12917 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12918 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12919 | fi |
| 12920 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12921 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12922 | fi |
| 12923 | if test -z "$ac_cv_prog_AR"; then |
| 12924 | ac_ct_AR=$AR |
| 12925 | # Extract the first word of "ar", so it can be a program name with args. |
| 12926 | set dummy ar; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12929 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12931 | else |
| 12932 | if test -n "$ac_ct_AR"; then |
| 12933 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 12934 | else |
| 12935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12936 | for as_dir in $PATH |
| 12937 | do |
| 12938 | IFS=$as_save_IFS |
| 12939 | test -z "$as_dir" && as_dir=. |
| 12940 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12942 | ac_cv_prog_ac_ct_AR="ar" |
| 12943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12944 | break 2 |
| 12945 | fi |
| 12946 | done |
| 12947 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12948 | IFS=$as_save_IFS |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12949 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12950 | fi |
| 12951 | fi |
| 12952 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12953 | if test -n "$ac_ct_AR"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12954 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 12955 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12956 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12957 | { echo "$as_me:$LINENO: result: no" >&5 |
| 12958 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12959 | fi |
| 12960 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12961 | if test "x$ac_ct_AR" = x; then |
| 12962 | AR="false" |
| 12963 | else |
| 12964 | case $cross_compiling:$ac_tool_warned in |
| 12965 | yes:) |
| 12966 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 12967 | whose name does not start with the host triplet. If you think this |
| 12968 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 12969 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 12970 | whose name does not start with the host triplet. If you think this |
| 12971 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 12972 | ac_tool_warned=yes ;; |
| 12973 | esac |
| 12974 | AR=$ac_ct_AR |
| 12975 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 12976 | else |
| 12977 | AR="$ac_cv_prog_AR" |
| 12978 | fi |
| 12979 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12980 | if test -n "$ac_tool_prefix"; then |
| 12981 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 12982 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 12983 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12985 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 12986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12987 | else |
| 12988 | if test -n "$RANLIB"; then |
| 12989 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12990 | else |
| 12991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12992 | for as_dir in $PATH |
| 12993 | do |
| 12994 | IFS=$as_save_IFS |
| 12995 | test -z "$as_dir" && as_dir=. |
| 12996 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 12997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 12998 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 12999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13000 | break 2 |
| 13001 | fi |
| 13002 | done |
| 13003 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13004 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13005 | |
| 13006 | fi |
| 13007 | fi |
| 13008 | RANLIB=$ac_cv_prog_RANLIB |
| 13009 | if test -n "$RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13010 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 13011 | echo "${ECHO_T}$RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13012 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13013 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13014 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13015 | fi |
| 13016 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13017 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13018 | fi |
| 13019 | if test -z "$ac_cv_prog_RANLIB"; then |
| 13020 | ac_ct_RANLIB=$RANLIB |
| 13021 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 13022 | set dummy ranlib; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13025 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 13026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13027 | else |
| 13028 | if test -n "$ac_ct_RANLIB"; then |
| 13029 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 13030 | else |
| 13031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13032 | for as_dir in $PATH |
| 13033 | do |
| 13034 | IFS=$as_save_IFS |
| 13035 | test -z "$as_dir" && as_dir=. |
| 13036 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 13037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13038 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 13039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13040 | break 2 |
| 13041 | fi |
| 13042 | done |
| 13043 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13044 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13046 | fi |
| 13047 | fi |
| 13048 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 13049 | if test -n "$ac_ct_RANLIB"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13050 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 13051 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13052 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13053 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13054 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13055 | fi |
| 13056 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13057 | if test "x$ac_ct_RANLIB" = x; then |
| 13058 | RANLIB=":" |
| 13059 | else |
| 13060 | case $cross_compiling:$ac_tool_warned in |
| 13061 | yes:) |
| 13062 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13063 | whose name does not start with the host triplet. If you think this |
| 13064 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13065 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13066 | whose name does not start with the host triplet. If you think this |
| 13067 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13068 | ac_tool_warned=yes ;; |
| 13069 | esac |
| 13070 | RANLIB=$ac_ct_RANLIB |
| 13071 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13072 | else |
| 13073 | RANLIB="$ac_cv_prog_RANLIB" |
| 13074 | fi |
| 13075 | |
| 13076 | if test -n "$ac_tool_prefix"; then |
| 13077 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 13078 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13081 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 13082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13083 | else |
| 13084 | if test -n "$STRIP"; then |
| 13085 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 13086 | else |
| 13087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13088 | for as_dir in $PATH |
| 13089 | do |
| 13090 | IFS=$as_save_IFS |
| 13091 | test -z "$as_dir" && as_dir=. |
| 13092 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 13093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13094 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 13095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13096 | break 2 |
| 13097 | fi |
| 13098 | done |
| 13099 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13100 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13101 | |
| 13102 | fi |
| 13103 | fi |
| 13104 | STRIP=$ac_cv_prog_STRIP |
| 13105 | if test -n "$STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13106 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 13107 | echo "${ECHO_T}$STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13108 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13109 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13110 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13111 | fi |
| 13112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13113 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13114 | fi |
| 13115 | if test -z "$ac_cv_prog_STRIP"; then |
| 13116 | ac_ct_STRIP=$STRIP |
| 13117 | # Extract the first word of "strip", so it can be a program name with args. |
| 13118 | set dummy strip; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13119 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13121 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 13122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13123 | else |
| 13124 | if test -n "$ac_ct_STRIP"; then |
| 13125 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 13126 | else |
| 13127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13128 | for as_dir in $PATH |
| 13129 | do |
| 13130 | IFS=$as_save_IFS |
| 13131 | test -z "$as_dir" && as_dir=. |
| 13132 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 13133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13134 | ac_cv_prog_ac_ct_STRIP="strip" |
| 13135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13136 | break 2 |
| 13137 | fi |
| 13138 | done |
| 13139 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13140 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13141 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13142 | fi |
| 13143 | fi |
| 13144 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 13145 | if test -n "$ac_ct_STRIP"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13146 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 13147 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13148 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13149 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13150 | echo "${ECHO_T}no" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13151 | fi |
| 13152 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13153 | if test "x$ac_ct_STRIP" = x; then |
| 13154 | STRIP=":" |
| 13155 | else |
| 13156 | case $cross_compiling:$ac_tool_warned in |
| 13157 | yes:) |
| 13158 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 13159 | whose name does not start with the host triplet. If you think this |
| 13160 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 13161 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 13162 | whose name does not start with the host triplet. If you think this |
| 13163 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 13164 | ac_tool_warned=yes ;; |
| 13165 | esac |
| 13166 | STRIP=$ac_ct_STRIP |
| 13167 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13168 | else |
| 13169 | STRIP="$ac_cv_prog_STRIP" |
| 13170 | fi |
| 13171 | |
| 13172 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13173 | old_CC="$CC" |
| 13174 | old_CFLAGS="$CFLAGS" |
| 13175 | |
| 13176 | # Set sane defaults for various variables |
| 13177 | test -z "$AR" && AR=ar |
| 13178 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 13179 | test -z "$AS" && AS=as |
| 13180 | test -z "$CC" && CC=cc |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13181 | test -z "$LTCC" && LTCC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13182 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13183 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13184 | test -z "$LD" && LD=ld |
| 13185 | test -z "$LN_S" && LN_S="ln -s" |
| 13186 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13187 | test -z "$NM" && NM=nm |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13188 | test -z "$SED" && SED=sed |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13189 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13190 | test -z "$RANLIB" && RANLIB=: |
| 13191 | test -z "$STRIP" && STRIP=: |
| 13192 | test -z "$ac_objext" && ac_objext=o |
| 13193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13194 | # Determine commands to create old-style static archives. |
| 13195 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 13196 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13197 | old_postuninstall_cmds= |
| 13198 | |
| 13199 | if test -n "$RANLIB"; then |
| 13200 | case $host_os in |
| 13201 | openbsd*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13202 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13203 | ;; |
| 13204 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13205 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13206 | ;; |
| 13207 | esac |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13208 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13209 | fi |
| 13210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13211 | for cc_temp in $compiler""; do |
| 13212 | case $cc_temp in |
| 13213 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13214 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13215 | \-*) ;; |
| 13216 | *) break;; |
| 13217 | esac |
| 13218 | done |
| 13219 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 13220 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13221 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13222 | # Only perform the check for file, if the check method requires it |
| 13223 | case $deplibs_check_method in |
| 13224 | file_magic*) |
| 13225 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13226 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 13227 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13228 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13230 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13231 | case $MAGIC_CMD in |
| 13232 | [\\/*] | ?:[\\/]*) |
| 13233 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13234 | ;; |
| 13235 | *) |
| 13236 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13237 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13238 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13239 | for ac_dir in $ac_dummy; do |
| 13240 | IFS="$lt_save_ifs" |
| 13241 | test -z "$ac_dir" && ac_dir=. |
| 13242 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13243 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13244 | if test -n "$file_magic_test_file"; then |
| 13245 | case $deplibs_check_method in |
| 13246 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13247 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13248 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13249 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13250 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13251 | : |
| 13252 | else |
| 13253 | cat <<EOF 1>&2 |
| 13254 | |
| 13255 | *** Warning: the command libtool uses to detect shared libraries, |
| 13256 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13257 | *** The result is that libtool may fail to recognize shared libraries |
| 13258 | *** as such. This will affect the creation of libtool libraries that |
| 13259 | *** depend on shared libraries, but programs linked with such libtool |
| 13260 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13261 | *** may want to report the problem to your system manager and/or to |
| 13262 | *** bug-libtool@gnu.org |
| 13263 | |
| 13264 | EOF |
| 13265 | fi ;; |
| 13266 | esac |
| 13267 | fi |
| 13268 | break |
| 13269 | fi |
| 13270 | done |
| 13271 | IFS="$lt_save_ifs" |
| 13272 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13273 | ;; |
| 13274 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13275 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13276 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13277 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13278 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13279 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 13280 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13281 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13282 | { echo "$as_me:$LINENO: result: no" >&5 |
| 13283 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13284 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13285 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13286 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 13287 | if test -n "$ac_tool_prefix"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13288 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 13289 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13290 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 13291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13292 | else |
| 13293 | case $MAGIC_CMD in |
| 13294 | [\\/*] | ?:[\\/]*) |
| 13295 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13296 | ;; |
| 13297 | *) |
| 13298 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13299 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13300 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13301 | for ac_dir in $ac_dummy; do |
| 13302 | IFS="$lt_save_ifs" |
| 13303 | test -z "$ac_dir" && ac_dir=. |
| 13304 | if test -f $ac_dir/file; then |
| 13305 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 13306 | if test -n "$file_magic_test_file"; then |
| 13307 | case $deplibs_check_method in |
| 13308 | "file_magic "*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13309 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13310 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13311 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13312 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13313 | : |
| 13314 | else |
| 13315 | cat <<EOF 1>&2 |
| 13316 | |
| 13317 | *** Warning: the command libtool uses to detect shared libraries, |
| 13318 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13319 | *** The result is that libtool may fail to recognize shared libraries |
| 13320 | *** as such. This will affect the creation of libtool libraries that |
| 13321 | *** depend on shared libraries, but programs linked with such libtool |
| 13322 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13323 | *** may want to report the problem to your system manager and/or to |
| 13324 | *** bug-libtool@gnu.org |
| 13325 | |
| 13326 | EOF |
| 13327 | fi ;; |
| 13328 | esac |
| 13329 | fi |
| 13330 | break |
| 13331 | fi |
| 13332 | done |
| 13333 | IFS="$lt_save_ifs" |
| 13334 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13335 | ;; |
| 13336 | esac |
| 13337 | fi |
| 13338 | |
| 13339 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13340 | if test -n "$MAGIC_CMD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13341 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 13342 | echo "${ECHO_T}$MAGIC_CMD" >&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: no" >&5 |
| 13345 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13346 | fi |
| 13347 | |
| 13348 | else |
| 13349 | MAGIC_CMD=: |
| 13350 | fi |
| 13351 | fi |
| 13352 | |
| 13353 | fi |
| 13354 | ;; |
| 13355 | esac |
| 13356 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 13357 | enable_dlopen=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13358 | enable_win32_dll=no |
| 13359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13360 | # Check whether --enable-libtool-lock was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13361 | if test "${enable_libtool_lock+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13362 | enableval=$enable_libtool_lock; |
| 13363 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13364 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13365 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 13366 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13368 | # Check whether --with-pic was given. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13369 | if test "${with_pic+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13370 | withval=$with_pic; pic_mode="$withval" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13371 | else |
| 13372 | pic_mode=default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13373 | fi |
| 13374 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13375 | test -z "$pic_mode" && pic_mode=default |
| 13376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13377 | # Use C for the default configuration in the libtool script |
| 13378 | tagname= |
| 13379 | lt_save_CC="$CC" |
| 13380 | ac_ext=c |
| 13381 | ac_cpp='$CPP $CPPFLAGS' |
| 13382 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13383 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13384 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13385 | |
| 13386 | |
| 13387 | # Source file extension for C test sources. |
| 13388 | ac_ext=c |
| 13389 | |
| 13390 | # Object file extension for compiled C test sources. |
| 13391 | objext=o |
| 13392 | objext=$objext |
| 13393 | |
| 13394 | # Code to be used in simple compile tests |
| 13395 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 13396 | |
| 13397 | # Code to be used in simple link tests |
| 13398 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 13399 | |
| 13400 | |
| 13401 | # If no C compiler was specified, use CC. |
| 13402 | LTCC=${LTCC-"$CC"} |
| 13403 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13404 | # If no C compiler flags were specified, use CFLAGS. |
| 13405 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13407 | # Allow CC to be a program name with arguments. |
| 13408 | compiler=$CC |
| 13409 | |
| 13410 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13411 | # save warnings/boilerplate of simple test code |
| 13412 | ac_outfile=conftest.$ac_objext |
| 13413 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13414 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13415 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13416 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13418 | ac_outfile=conftest.$ac_objext |
| 13419 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13420 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13421 | _lt_linker_boilerplate=`cat conftest.err` |
| 13422 | $rm conftest* |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13423 | |
| 13424 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13425 | |
| 13426 | lt_prog_compiler_no_builtin_flag= |
| 13427 | |
| 13428 | if test "$GCC" = yes; then |
| 13429 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 13430 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13431 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13432 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 13433 | 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] | 13434 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 13435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13436 | else |
| 13437 | lt_cv_prog_compiler_rtti_exceptions=no |
| 13438 | ac_outfile=conftest.$ac_objext |
| 13439 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13440 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 13441 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13442 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13443 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13444 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13445 | # The option is referenced via a variable to avoid confusing sed. |
| 13446 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13447 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13448 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13449 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13450 | (eval echo "\"\$as_me:13449: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13451 | (eval "$lt_compile" 2>conftest.err) |
| 13452 | ac_status=$? |
| 13453 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13454 | echo "$as_me:13453: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13455 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13456 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13457 | # So say no if there are warnings other than the usual output. |
| 13458 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 13459 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13460 | 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] | 13461 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 13462 | fi |
| 13463 | fi |
| 13464 | $rm conftest* |
| 13465 | |
| 13466 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13467 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 13468 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13469 | |
| 13470 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 13471 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 13472 | else |
| 13473 | : |
| 13474 | fi |
| 13475 | |
| 13476 | fi |
| 13477 | |
| 13478 | lt_prog_compiler_wl= |
| 13479 | lt_prog_compiler_pic= |
| 13480 | lt_prog_compiler_static= |
| 13481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13482 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13483 | 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] | 13484 | |
| 13485 | if test "$GCC" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13486 | lt_prog_compiler_wl='-Wl,' |
| 13487 | lt_prog_compiler_static='-static' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13488 | |
| 13489 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13490 | aix*) |
| 13491 | # All AIX code is PIC. |
| 13492 | if test "$host_cpu" = ia64; then |
| 13493 | # AIX 5 now supports IA64 processor |
| 13494 | lt_prog_compiler_static='-Bstatic' |
| 13495 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13496 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13497 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13498 | amigaos*) |
| 13499 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13500 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13501 | # like `-m68040'. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13502 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13503 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13504 | |
| 13505 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13506 | # PIC is the default for these OSes. |
| 13507 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13508 | |
| 13509 | mingw* | pw32* | os2*) |
| 13510 | # This hack is so that the source file can tell whether it is being |
| 13511 | # built for inclusion in a dll (and should export symbols for example). |
| 13512 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13513 | ;; |
| 13514 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13515 | darwin* | rhapsody*) |
| 13516 | # PIC is the default on this platform |
| 13517 | # Common symbols not allowed in MH_DYLIB files |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13518 | lt_prog_compiler_pic='-fno-common' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13519 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13520 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13521 | interix3*) |
| 13522 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13523 | # Instead, we relocate shared libraries at runtime. |
| 13524 | ;; |
| 13525 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13526 | msdosdjgpp*) |
| 13527 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13528 | # on systems that don't support them. |
| 13529 | lt_prog_compiler_can_build_shared=no |
| 13530 | enable_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13531 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13532 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13533 | sysv4*MP*) |
| 13534 | if test -d /usr/nec; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13535 | lt_prog_compiler_pic=-Kconform_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13536 | fi |
| 13537 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13538 | |
| 13539 | hpux*) |
| 13540 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13541 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13542 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13543 | hppa*64*|ia64*) |
| 13544 | # +Z the default |
| 13545 | ;; |
| 13546 | *) |
| 13547 | lt_prog_compiler_pic='-fPIC' |
| 13548 | ;; |
| 13549 | esac |
| 13550 | ;; |
| 13551 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13552 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13553 | lt_prog_compiler_pic='-fPIC' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13554 | ;; |
| 13555 | esac |
| 13556 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13557 | # PORTME Check for flag to pass linker flags through the system compiler. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13558 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13559 | aix*) |
| 13560 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13561 | if test "$host_cpu" = ia64; then |
| 13562 | # AIX 5 now supports IA64 processor |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13563 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13564 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13565 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13566 | fi |
| 13567 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13568 | darwin*) |
| 13569 | # PIC is the default on this platform |
| 13570 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13571 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13572 | xlc*) |
| 13573 | lt_prog_compiler_pic='-qnocommon' |
| 13574 | lt_prog_compiler_wl='-Wl,' |
| 13575 | ;; |
| 13576 | esac |
| 13577 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13578 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13579 | mingw* | pw32* | os2*) |
| 13580 | # This hack is so that the source file can tell whether it is being |
| 13581 | # built for inclusion in a dll (and should export symbols for example). |
| 13582 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13583 | ;; |
| 13584 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13585 | hpux9* | hpux10* | hpux11*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13586 | lt_prog_compiler_wl='-Wl,' |
| 13587 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13588 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13589 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13590 | hppa*64*|ia64*) |
| 13591 | # +Z the default |
| 13592 | ;; |
| 13593 | *) |
| 13594 | lt_prog_compiler_pic='+Z' |
| 13595 | ;; |
| 13596 | esac |
| 13597 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13598 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13599 | ;; |
| 13600 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13601 | irix5* | irix6* | nonstopux*) |
| 13602 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13603 | # PIC (with -KPIC) is the default. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13604 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13605 | ;; |
| 13606 | |
| 13607 | newsos6) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13608 | lt_prog_compiler_pic='-KPIC' |
| 13609 | lt_prog_compiler_static='-Bstatic' |
| 13610 | ;; |
| 13611 | |
| 13612 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13613 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13614 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13615 | lt_prog_compiler_wl='-Wl,' |
| 13616 | lt_prog_compiler_pic='-KPIC' |
| 13617 | lt_prog_compiler_static='-static' |
| 13618 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13619 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 13620 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13621 | # which looks to be a dead project) |
| 13622 | lt_prog_compiler_wl='-Wl,' |
| 13623 | lt_prog_compiler_pic='-fpic' |
| 13624 | lt_prog_compiler_static='-Bstatic' |
| 13625 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13626 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13627 | lt_prog_compiler_wl='-Wl,' |
| 13628 | # All Alpha code is PIC. |
| 13629 | lt_prog_compiler_static='-non_shared' |
| 13630 | ;; |
| 13631 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13632 | ;; |
| 13633 | |
| 13634 | osf3* | osf4* | osf5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13635 | lt_prog_compiler_wl='-Wl,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13636 | # All OSF/1 code is PIC. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13637 | lt_prog_compiler_static='-non_shared' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13638 | ;; |
| 13639 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13640 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13641 | lt_prog_compiler_pic='-KPIC' |
| 13642 | lt_prog_compiler_static='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13643 | case $cc_basename in |
| 13644 | f77* | f90* | f95*) |
| 13645 | lt_prog_compiler_wl='-Qoption ld ';; |
| 13646 | *) |
| 13647 | lt_prog_compiler_wl='-Wl,';; |
| 13648 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13649 | ;; |
| 13650 | |
| 13651 | sunos4*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13652 | lt_prog_compiler_wl='-Qoption ld ' |
| 13653 | lt_prog_compiler_pic='-PIC' |
| 13654 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13655 | ;; |
| 13656 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13657 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13658 | lt_prog_compiler_wl='-Wl,' |
| 13659 | lt_prog_compiler_pic='-KPIC' |
| 13660 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13661 | ;; |
| 13662 | |
| 13663 | sysv4*MP*) |
| 13664 | if test -d /usr/nec ;then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13665 | lt_prog_compiler_pic='-Kconform_pic' |
| 13666 | lt_prog_compiler_static='-Bstatic' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13667 | fi |
| 13668 | ;; |
| 13669 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13670 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13671 | lt_prog_compiler_wl='-Wl,' |
| 13672 | lt_prog_compiler_pic='-KPIC' |
| 13673 | lt_prog_compiler_static='-Bstatic' |
| 13674 | ;; |
| 13675 | |
| 13676 | unicos*) |
| 13677 | lt_prog_compiler_wl='-Wl,' |
| 13678 | lt_prog_compiler_can_build_shared=no |
| 13679 | ;; |
| 13680 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13681 | uts4*) |
| 13682 | lt_prog_compiler_pic='-pic' |
| 13683 | lt_prog_compiler_static='-Bstatic' |
| 13684 | ;; |
| 13685 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13686 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13687 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13688 | ;; |
| 13689 | esac |
| 13690 | fi |
| 13691 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13692 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 13693 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13694 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13695 | # |
| 13696 | # Check to make sure the PIC flag actually works. |
| 13697 | # |
| 13698 | if test -n "$lt_prog_compiler_pic"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13699 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13700 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 13701 | 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] | 13702 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13704 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13705 | lt_prog_compiler_pic_works=no |
| 13706 | ac_outfile=conftest.$ac_objext |
| 13707 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13708 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 13709 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13710 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13711 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13712 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13713 | # The option is referenced via a variable to avoid confusing sed. |
| 13714 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13715 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13716 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13717 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13718 | (eval echo "\"\$as_me:13717: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13719 | (eval "$lt_compile" 2>conftest.err) |
| 13720 | ac_status=$? |
| 13721 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13722 | echo "$as_me:13721: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13723 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13724 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13725 | # So say no if there are warnings other than the usual output. |
| 13726 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 13727 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13728 | 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] | 13729 | lt_prog_compiler_pic_works=yes |
| 13730 | fi |
| 13731 | fi |
| 13732 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13733 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13734 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13735 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 13736 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13737 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13738 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 13739 | case $lt_prog_compiler_pic in |
| 13740 | "" | " "*) ;; |
| 13741 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 13742 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13743 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13744 | lt_prog_compiler_pic= |
| 13745 | lt_prog_compiler_can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13746 | fi |
| 13747 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13748 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13749 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13750 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13751 | *djgpp*) |
| 13752 | lt_prog_compiler_pic= |
| 13753 | ;; |
| 13754 | *) |
| 13755 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 13756 | ;; |
| 13757 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13758 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13759 | # |
| 13760 | # Check to make sure the static flag actually works. |
| 13761 | # |
| 13762 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 13763 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13764 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 13765 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 13766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13767 | else |
| 13768 | lt_prog_compiler_static_works=no |
| 13769 | save_LDFLAGS="$LDFLAGS" |
| 13770 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13771 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13772 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13773 | # The linker can only warn and ignore the option if not recognized |
| 13774 | # So say no if there are warnings |
| 13775 | if test -s conftest.err; then |
| 13776 | # Append any errors to the config.log. |
| 13777 | cat conftest.err 1>&5 |
| 13778 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 13779 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13780 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13781 | lt_prog_compiler_static_works=yes |
| 13782 | fi |
| 13783 | else |
| 13784 | lt_prog_compiler_static_works=yes |
| 13785 | fi |
| 13786 | fi |
| 13787 | $rm conftest* |
| 13788 | LDFLAGS="$save_LDFLAGS" |
| 13789 | |
| 13790 | fi |
| 13791 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 13792 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 13793 | |
| 13794 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 13795 | : |
| 13796 | else |
| 13797 | lt_prog_compiler_static= |
| 13798 | fi |
| 13799 | |
| 13800 | |
| 13801 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13802 | 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] | 13803 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13805 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13806 | lt_cv_prog_compiler_c_o=no |
| 13807 | $rm -r conftest 2>/dev/null |
| 13808 | mkdir conftest |
| 13809 | cd conftest |
| 13810 | mkdir out |
| 13811 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13812 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13813 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13814 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13815 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13816 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13817 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13818 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13819 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13820 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13821 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13822 | (eval echo "\"\$as_me:13821: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13823 | (eval "$lt_compile" 2>out/conftest.err) |
| 13824 | ac_status=$? |
| 13825 | cat out/conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 13826 | echo "$as_me:13825: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13827 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13828 | then |
| 13829 | # The compiler can only warn and ignore the option if not recognized |
| 13830 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13831 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13832 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13833 | 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] | 13834 | lt_cv_prog_compiler_c_o=yes |
| 13835 | fi |
| 13836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13837 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 13838 | $rm conftest* |
| 13839 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13840 | # template instantiation |
| 13841 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 13842 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13843 | cd .. |
| 13844 | rmdir conftest |
| 13845 | $rm conftest* |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13846 | |
| 13847 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13848 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13849 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13850 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13851 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13852 | hard_links="nottested" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13853 | 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] | 13854 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13855 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 13856 | 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] | 13857 | hard_links=yes |
| 13858 | $rm conftest* |
| 13859 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13860 | touch conftest.a |
| 13861 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13862 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13863 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 13864 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13865 | if test "$hard_links" = no; then |
| 13866 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13867 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13868 | need_locks=warn |
| 13869 | fi |
| 13870 | else |
| 13871 | need_locks=no |
| 13872 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 13873 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13874 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13875 | 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] | 13876 | |
| 13877 | runpath_var= |
| 13878 | allow_undefined_flag= |
| 13879 | enable_shared_with_static_runtimes=no |
| 13880 | archive_cmds= |
| 13881 | archive_expsym_cmds= |
| 13882 | old_archive_From_new_cmds= |
| 13883 | old_archive_from_expsyms_cmds= |
| 13884 | export_dynamic_flag_spec= |
| 13885 | whole_archive_flag_spec= |
| 13886 | thread_safe_flag_spec= |
| 13887 | hardcode_libdir_flag_spec= |
| 13888 | hardcode_libdir_flag_spec_ld= |
| 13889 | hardcode_libdir_separator= |
| 13890 | hardcode_direct=no |
| 13891 | hardcode_minus_L=no |
| 13892 | hardcode_shlibpath_var=unsupported |
| 13893 | link_all_deplibs=unknown |
| 13894 | hardcode_automatic=no |
| 13895 | module_cmds= |
| 13896 | module_expsym_cmds= |
| 13897 | always_export_symbols=no |
| 13898 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13899 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13900 | # included in the symbol list |
| 13901 | include_expsyms= |
| 13902 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13903 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13904 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13905 | # as well as any symbol that contains `d'. |
| 13906 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 13907 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13908 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13909 | # the symbol is explicitly referenced. Since portable code cannot |
| 13910 | # rely on this symbol name, it's probably fine to never include it in |
| 13911 | # preloaded symbol tables. |
| 13912 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13913 | # Just being paranoid about ensuring that cc_basename is set. |
| 13914 | for cc_temp in $compiler""; do |
| 13915 | case $cc_temp in |
| 13916 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13917 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13918 | \-*) ;; |
| 13919 | *) break;; |
| 13920 | esac |
| 13921 | done |
| 13922 | 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] | 13923 | |
| 13924 | case $host_os in |
| 13925 | cygwin* | mingw* | pw32*) |
| 13926 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13927 | # When not using gcc, we currently assume that we are using |
| 13928 | # Microsoft Visual C++. |
| 13929 | if test "$GCC" != yes; then |
| 13930 | with_gnu_ld=no |
| 13931 | fi |
| 13932 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13933 | interix*) |
| 13934 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 13935 | with_gnu_ld=yes |
| 13936 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13937 | openbsd*) |
| 13938 | with_gnu_ld=no |
| 13939 | ;; |
| 13940 | esac |
| 13941 | |
| 13942 | ld_shlibs=yes |
| 13943 | if test "$with_gnu_ld" = yes; then |
| 13944 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13945 | wlarc='${wl}' |
| 13946 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 13947 | # Set some defaults for GNU ld with shared library support. These |
| 13948 | # are reset later if shared libraries are not supported. Putting them |
| 13949 | # here allows them to be overridden if necessary. |
| 13950 | runpath_var=LD_RUN_PATH |
| 13951 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 13952 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 13953 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13954 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 13955 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13956 | else |
| 13957 | whole_archive_flag_spec= |
| 13958 | fi |
| 13959 | supports_anon_versioning=no |
| 13960 | case `$LD -v 2>/dev/null` in |
| 13961 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13962 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13963 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13964 | *\ 2.11.*) ;; # other 2.11 versions |
| 13965 | *) supports_anon_versioning=yes ;; |
| 13966 | esac |
| 13967 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 13968 | # See if GNU ld supports shared libraries. |
| 13969 | case $host_os in |
| 13970 | aix3* | aix4* | aix5*) |
| 13971 | # On AIX/PPC, the GNU linker is very broken |
| 13972 | if test "$host_cpu" != ia64; then |
| 13973 | ld_shlibs=no |
| 13974 | cat <<EOF 1>&2 |
| 13975 | |
| 13976 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 13977 | *** to be unable to reliably create shared libraries on AIX. |
| 13978 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13979 | *** really care for shared libraries, you may want to modify your PATH |
| 13980 | *** so that a non-GNU linker is found, and then restart. |
| 13981 | |
| 13982 | EOF |
| 13983 | fi |
| 13984 | ;; |
| 13985 | |
| 13986 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 13987 | 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] | 13988 | hardcode_libdir_flag_spec='-L$libdir' |
| 13989 | hardcode_minus_L=yes |
| 13990 | |
| 13991 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 13992 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 13993 | # to version 4, is to share data among multiple programs linked |
| 13994 | # with the same dynamic library. Since this doesn't match the |
| 13995 | # behavior of shared libraries on other platforms, we can't use |
| 13996 | # them. |
| 13997 | ld_shlibs=no |
| 13998 | ;; |
| 13999 | |
| 14000 | beos*) |
| 14001 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14002 | allow_undefined_flag=unsupported |
| 14003 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14004 | # support --undefined. This deserves some investigation. FIXME |
| 14005 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14006 | else |
| 14007 | ld_shlibs=no |
| 14008 | fi |
| 14009 | ;; |
| 14010 | |
| 14011 | cygwin* | mingw* | pw32*) |
| 14012 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14013 | # as there is no search path for DLLs. |
| 14014 | hardcode_libdir_flag_spec='-L$libdir' |
| 14015 | allow_undefined_flag=unsupported |
| 14016 | always_export_symbols=no |
| 14017 | enable_shared_with_static_runtimes=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14018 | 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] | 14019 | |
| 14020 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14021 | 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] | 14022 | # If the export-symbols file already is a .def file (1st line |
| 14023 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14024 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14025 | cp $export_symbols $output_objdir/$soname.def; |
| 14026 | else |
| 14027 | echo EXPORTS > $output_objdir/$soname.def; |
| 14028 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14029 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14030 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14031 | else |
| 14032 | ld_shlibs=no |
| 14033 | fi |
| 14034 | ;; |
| 14035 | |
| 14036 | interix3*) |
| 14037 | hardcode_direct=no |
| 14038 | hardcode_shlibpath_var=no |
| 14039 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14040 | export_dynamic_flag_spec='${wl}-E' |
| 14041 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14042 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14043 | # default) and relocated if they conflict, which is a slow very memory |
| 14044 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14045 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14046 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14047 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14048 | 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' |
| 14049 | ;; |
| 14050 | |
| 14051 | linux*) |
| 14052 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14053 | tmp_addflag= |
| 14054 | case $cc_basename,$host_cpu in |
| 14055 | pgcc*) # Portland Group C compiler |
| 14056 | 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' |
| 14057 | tmp_addflag=' $pic_flag' |
| 14058 | ;; |
| 14059 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14060 | 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' |
| 14061 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14062 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14063 | tmp_addflag=' -i_dynamic' ;; |
| 14064 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14065 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14066 | ifc* | ifort*) # Intel Fortran compiler |
| 14067 | tmp_addflag=' -nofor_main' ;; |
| 14068 | esac |
| 14069 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14070 | |
| 14071 | if test $supports_anon_versioning = yes; then |
| 14072 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14073 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14074 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14075 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14076 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14077 | else |
| 14078 | ld_shlibs=no |
| 14079 | fi |
| 14080 | ;; |
| 14081 | |
| 14082 | netbsd*) |
| 14083 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14084 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14085 | wlarc= |
| 14086 | else |
| 14087 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14088 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14089 | fi |
| 14090 | ;; |
| 14091 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14092 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14093 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14094 | ld_shlibs=no |
| 14095 | cat <<EOF 1>&2 |
| 14096 | |
| 14097 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14098 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14099 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14100 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14101 | *** your PATH or compiler configuration so that the native linker is |
| 14102 | *** used, and then restart. |
| 14103 | |
| 14104 | EOF |
| 14105 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14106 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14107 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14108 | else |
| 14109 | ld_shlibs=no |
| 14110 | fi |
| 14111 | ;; |
| 14112 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14113 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14114 | case `$LD -v 2>&1` in |
| 14115 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14116 | ld_shlibs=no |
| 14117 | cat <<_LT_EOF 1>&2 |
| 14118 | |
| 14119 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14120 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14121 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14122 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14123 | *** your PATH or compiler configuration so that the native linker is |
| 14124 | *** used, and then restart. |
| 14125 | |
| 14126 | _LT_EOF |
| 14127 | ;; |
| 14128 | *) |
| 14129 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14130 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14131 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14132 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14133 | else |
| 14134 | ld_shlibs=no |
| 14135 | fi |
| 14136 | ;; |
| 14137 | esac |
| 14138 | ;; |
| 14139 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14140 | sunos4*) |
| 14141 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14142 | wlarc= |
| 14143 | hardcode_direct=yes |
| 14144 | hardcode_shlibpath_var=no |
| 14145 | ;; |
| 14146 | |
| 14147 | *) |
| 14148 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14149 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14150 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14151 | else |
| 14152 | ld_shlibs=no |
| 14153 | fi |
| 14154 | ;; |
| 14155 | esac |
| 14156 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14157 | if test "$ld_shlibs" = no; then |
| 14158 | runpath_var= |
| 14159 | hardcode_libdir_flag_spec= |
| 14160 | export_dynamic_flag_spec= |
| 14161 | whole_archive_flag_spec= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14162 | fi |
| 14163 | else |
| 14164 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14165 | case $host_os in |
| 14166 | aix3*) |
| 14167 | allow_undefined_flag=unsupported |
| 14168 | always_export_symbols=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14169 | 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] | 14170 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14171 | # are no directories specified by -L. |
| 14172 | hardcode_minus_L=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14173 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14174 | # Neither direct hardcoding nor static linking is supported with a |
| 14175 | # broken collect2. |
| 14176 | hardcode_direct=unsupported |
| 14177 | fi |
| 14178 | ;; |
| 14179 | |
| 14180 | aix4* | aix5*) |
| 14181 | if test "$host_cpu" = ia64; then |
| 14182 | # On IA64, the linker does run time linking by default, so we don't |
| 14183 | # have to do anything special. |
| 14184 | aix_use_runtimelinking=no |
| 14185 | exp_sym_flag='-Bexport' |
| 14186 | no_entry_flag="" |
| 14187 | else |
| 14188 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14189 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14190 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14191 | 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' |
| 14192 | else |
| 14193 | 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' |
| 14194 | fi |
| 14195 | aix_use_runtimelinking=no |
| 14196 | |
| 14197 | # Test if we are trying to use run time linking or normal |
| 14198 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14199 | # need to do runtime linking. |
| 14200 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14201 | for ld_flag in $LDFLAGS; do |
| 14202 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14203 | aix_use_runtimelinking=yes |
| 14204 | break |
| 14205 | fi |
| 14206 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14207 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14208 | esac |
| 14209 | |
| 14210 | exp_sym_flag='-bexport' |
| 14211 | no_entry_flag='-bnoentry' |
| 14212 | fi |
| 14213 | |
| 14214 | # When large executables or shared objects are built, AIX ld can |
| 14215 | # have problems creating the table of contents. If linking a library |
| 14216 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14217 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14218 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14219 | |
| 14220 | archive_cmds='' |
| 14221 | hardcode_direct=yes |
| 14222 | hardcode_libdir_separator=':' |
| 14223 | link_all_deplibs=yes |
| 14224 | |
| 14225 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14226 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14227 | # We only want to do this on AIX 4.2 and lower, the check |
| 14228 | # below for broken collect2 doesn't work under 4.3+ |
| 14229 | collect2name=`${CC} -print-prog-name=collect2` |
| 14230 | if test -f "$collect2name" && \ |
| 14231 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14232 | then |
| 14233 | # We have reworked collect2 |
| 14234 | hardcode_direct=yes |
| 14235 | else |
| 14236 | # We have old collect2 |
| 14237 | hardcode_direct=unsupported |
| 14238 | # It fails to find uninstalled libraries when the uninstalled |
| 14239 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14240 | # to unsupported forces relinking |
| 14241 | hardcode_minus_L=yes |
| 14242 | hardcode_libdir_flag_spec='-L$libdir' |
| 14243 | hardcode_libdir_separator= |
| 14244 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14245 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14246 | esac |
| 14247 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14248 | if test "$aix_use_runtimelinking" = yes; then |
| 14249 | shared_flag="$shared_flag "'${wl}-G' |
| 14250 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14251 | else |
| 14252 | # not using gcc |
| 14253 | if test "$host_cpu" = ia64; then |
| 14254 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14255 | # chokes on -Wl,-G. The following line is correct: |
| 14256 | shared_flag='-G' |
| 14257 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14258 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14259 | shared_flag='${wl}-G' |
| 14260 | else |
| 14261 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14262 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14263 | fi |
| 14264 | fi |
| 14265 | |
| 14266 | # It seems that -bexpall does not export symbols beginning with |
| 14267 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14268 | always_export_symbols=yes |
| 14269 | if test "$aix_use_runtimelinking" = yes; then |
| 14270 | # Warning - without using the other runtime loading flags (-brtl), |
| 14271 | # -berok will link without error, but may produce a broken library. |
| 14272 | allow_undefined_flag='-berok' |
| 14273 | # Determine the default libpath from the value encoded in an empty executable. |
| 14274 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14275 | /* confdefs.h. */ |
| 14276 | _ACEOF |
| 14277 | cat confdefs.h >>conftest.$ac_ext |
| 14278 | cat >>conftest.$ac_ext <<_ACEOF |
| 14279 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14280 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14281 | int |
| 14282 | main () |
| 14283 | { |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14284 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14285 | ; |
| 14286 | return 0; |
| 14287 | } |
| 14288 | _ACEOF |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14290 | if { (ac_try="$ac_link" |
| 14291 | case "(($ac_try" in |
| 14292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14293 | *) ac_try_echo=$ac_try;; |
| 14294 | esac |
| 14295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14296 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14297 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14299 | rm -f conftest.er1 |
| 14300 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 14302 | (exit $ac_status); } && { |
| 14303 | test -z "$ac_c_werror_flag" || |
| 14304 | test ! -s conftest.err |
| 14305 | } && test -s conftest$ac_exeext && |
| 14306 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14307 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14308 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14309 | }'` |
| 14310 | # Check for a 64-bit object if we didn't find anything. |
| 14311 | 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; } |
| 14312 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14313 | else |
| 14314 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14316 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14317 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14318 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14319 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 14320 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14321 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14322 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14323 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14324 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14325 | 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] | 14326 | else |
| 14327 | if test "$host_cpu" = ia64; then |
| 14328 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 14329 | allow_undefined_flag="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14330 | 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] | 14331 | else |
| 14332 | # Determine the default libpath from the value encoded in an empty executable. |
| 14333 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14334 | /* confdefs.h. */ |
| 14335 | _ACEOF |
| 14336 | cat confdefs.h >>conftest.$ac_ext |
| 14337 | cat >>conftest.$ac_ext <<_ACEOF |
| 14338 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14339 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14340 | int |
| 14341 | main () |
| 14342 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14343 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14344 | ; |
| 14345 | return 0; |
| 14346 | } |
| 14347 | _ACEOF |
| 14348 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14349 | if { (ac_try="$ac_link" |
| 14350 | case "(($ac_try" in |
| 14351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14352 | *) ac_try_echo=$ac_try;; |
| 14353 | esac |
| 14354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14355 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14356 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14358 | rm -f conftest.er1 |
| 14359 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 14361 | (exit $ac_status); } && { |
| 14362 | test -z "$ac_c_werror_flag" || |
| 14363 | test ! -s conftest.err |
| 14364 | } && test -s conftest$ac_exeext && |
| 14365 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14366 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14367 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14368 | }'` |
| 14369 | # Check for a 64-bit object if we didn't find anything. |
| 14370 | 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; } |
| 14371 | }'`; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14372 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14373 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 14374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14376 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14378 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 14379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14380 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14381 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14382 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14383 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14384 | # Warning - without using the other run time loading flags, |
| 14385 | # -berok will link without error, but may produce a broken library. |
| 14386 | no_undefined_flag=' ${wl}-bernotok' |
| 14387 | allow_undefined_flag=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14388 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14389 | whole_archive_flag_spec='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14390 | archive_cmds_need_lc=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14391 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14392 | 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] | 14393 | fi |
| 14394 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14395 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14396 | |
| 14397 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14398 | 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] | 14399 | hardcode_libdir_flag_spec='-L$libdir' |
| 14400 | hardcode_minus_L=yes |
| 14401 | # see comment about different semantics on the GNU ld section |
| 14402 | ld_shlibs=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14403 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14404 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14405 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14406 | export_dynamic_flag_spec=-rdynamic |
| 14407 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14408 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14409 | cygwin* | mingw* | pw32*) |
| 14410 | # When not using gcc, we currently assume that we are using |
| 14411 | # Microsoft Visual C++. |
| 14412 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14413 | # no search path for DLLs. |
| 14414 | hardcode_libdir_flag_spec=' ' |
| 14415 | allow_undefined_flag=unsupported |
| 14416 | # Tell ltmain to make .lib files, not .a files. |
| 14417 | libext=lib |
| 14418 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14419 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14420 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14421 | 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] | 14422 | # The linker will automatically build a .lib file if we build a DLL. |
| 14423 | old_archive_From_new_cmds='true' |
| 14424 | # FIXME: Should let the user specify the lib program. |
| 14425 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 14426 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 14427 | enable_shared_with_static_runtimes=yes |
| 14428 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14429 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14430 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14431 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14432 | rhapsody* | darwin1.[012]) |
| 14433 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 14434 | ;; |
| 14435 | *) # Darwin 1.3 on |
| 14436 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 14437 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14438 | else |
| 14439 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 14440 | 10.[012]) |
| 14441 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14442 | ;; |
| 14443 | 10.*) |
| 14444 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 14445 | ;; |
| 14446 | esac |
| 14447 | fi |
| 14448 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14449 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14450 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14451 | hardcode_direct=no |
| 14452 | hardcode_automatic=yes |
| 14453 | hardcode_shlibpath_var=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14454 | whole_archive_flag_spec='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14455 | link_all_deplibs=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14456 | if test "$GCC" = yes ; then |
| 14457 | output_verbose_link_cmd='echo' |
| 14458 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 14459 | 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] | 14460 | # 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] | 14461 | 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}' |
| 14462 | 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] | 14463 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14464 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14465 | xlc*) |
| 14466 | output_verbose_link_cmd='echo' |
| 14467 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 14468 | 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] | 14469 | # 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] | 14470 | 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}' |
| 14471 | 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] | 14472 | ;; |
| 14473 | *) |
| 14474 | ld_shlibs=no |
| 14475 | ;; |
| 14476 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14477 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14478 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14479 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14480 | dgux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14481 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14482 | hardcode_libdir_flag_spec='-L$libdir' |
| 14483 | hardcode_shlibpath_var=no |
| 14484 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14485 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14486 | freebsd1*) |
| 14487 | ld_shlibs=no |
| 14488 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14490 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14491 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14492 | # does not break anything, and helps significantly (at the cost of a little |
| 14493 | # extra space). |
| 14494 | freebsd2.2*) |
| 14495 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14496 | hardcode_libdir_flag_spec='-R$libdir' |
| 14497 | hardcode_direct=yes |
| 14498 | hardcode_shlibpath_var=no |
| 14499 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14500 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14501 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14502 | freebsd2*) |
| 14503 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14504 | hardcode_direct=yes |
| 14505 | hardcode_minus_L=yes |
| 14506 | hardcode_shlibpath_var=no |
| 14507 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14508 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14509 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14510 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14511 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14512 | hardcode_libdir_flag_spec='-R$libdir' |
| 14513 | hardcode_direct=yes |
| 14514 | hardcode_shlibpath_var=no |
| 14515 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14516 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14517 | hpux9*) |
| 14518 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14519 | 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] | 14520 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14521 | 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] | 14522 | fi |
| 14523 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14524 | hardcode_libdir_separator=: |
| 14525 | hardcode_direct=yes |
| 14526 | |
| 14527 | # hardcode_minus_L: Not really in the search PATH, |
| 14528 | # but as the default location of the library. |
| 14529 | hardcode_minus_L=yes |
| 14530 | export_dynamic_flag_spec='${wl}-E' |
| 14531 | ;; |
| 14532 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14533 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14534 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14535 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14536 | else |
| 14537 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14538 | fi |
| 14539 | if test "$with_gnu_ld" = no; then |
| 14540 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14541 | hardcode_libdir_separator=: |
| 14542 | |
| 14543 | hardcode_direct=yes |
| 14544 | export_dynamic_flag_spec='${wl}-E' |
| 14545 | |
| 14546 | # hardcode_minus_L: Not really in the search PATH, |
| 14547 | # but as the default location of the library. |
| 14548 | hardcode_minus_L=yes |
| 14549 | fi |
| 14550 | ;; |
| 14551 | |
| 14552 | hpux11*) |
| 14553 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14554 | case $host_cpu in |
| 14555 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14556 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14557 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14558 | ia64*) |
| 14559 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14560 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14561 | *) |
| 14562 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14563 | ;; |
| 14564 | esac |
| 14565 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14566 | case $host_cpu in |
| 14567 | hppa*64*) |
| 14568 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14569 | ;; |
| 14570 | ia64*) |
| 14571 | 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] | 14572 | ;; |
| 14573 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14574 | 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] | 14575 | ;; |
| 14576 | esac |
| 14577 | fi |
| 14578 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14579 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14580 | hardcode_libdir_separator=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14581 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14582 | case $host_cpu in |
| 14583 | hppa*64*|ia64*) |
| 14584 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 14585 | hardcode_direct=no |
| 14586 | hardcode_shlibpath_var=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14587 | ;; |
| 14588 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14589 | hardcode_direct=yes |
| 14590 | export_dynamic_flag_spec='${wl}-E' |
| 14591 | |
| 14592 | # hardcode_minus_L: Not really in the search PATH, |
| 14593 | # but as the default location of the library. |
| 14594 | hardcode_minus_L=yes |
| 14595 | ;; |
| 14596 | esac |
| 14597 | fi |
| 14598 | ;; |
| 14599 | |
| 14600 | irix5* | irix6* | nonstopux*) |
| 14601 | if test "$GCC" = yes; then |
| 14602 | 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' |
| 14603 | else |
| 14604 | 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' |
| 14605 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 14606 | fi |
| 14607 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14608 | hardcode_libdir_separator=: |
| 14609 | link_all_deplibs=yes |
| 14610 | ;; |
| 14611 | |
| 14612 | netbsd*) |
| 14613 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14614 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14615 | else |
| 14616 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14617 | fi |
| 14618 | hardcode_libdir_flag_spec='-R$libdir' |
| 14619 | hardcode_direct=yes |
| 14620 | hardcode_shlibpath_var=no |
| 14621 | ;; |
| 14622 | |
| 14623 | newsos6) |
| 14624 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14625 | hardcode_direct=yes |
| 14626 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14627 | hardcode_libdir_separator=: |
| 14628 | hardcode_shlibpath_var=no |
| 14629 | ;; |
| 14630 | |
| 14631 | openbsd*) |
| 14632 | hardcode_direct=yes |
| 14633 | hardcode_shlibpath_var=no |
| 14634 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14635 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14636 | 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] | 14637 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14638 | export_dynamic_flag_spec='${wl}-E' |
| 14639 | else |
| 14640 | case $host_os in |
| 14641 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14642 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14643 | hardcode_libdir_flag_spec='-R$libdir' |
| 14644 | ;; |
| 14645 | *) |
| 14646 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14647 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14648 | ;; |
| 14649 | esac |
| 14650 | fi |
| 14651 | ;; |
| 14652 | |
| 14653 | os2*) |
| 14654 | hardcode_libdir_flag_spec='-L$libdir' |
| 14655 | hardcode_minus_L=yes |
| 14656 | allow_undefined_flag=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 14657 | 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] | 14658 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14659 | ;; |
| 14660 | |
| 14661 | osf3*) |
| 14662 | if test "$GCC" = yes; then |
| 14663 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 14664 | 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' |
| 14665 | else |
| 14666 | allow_undefined_flag=' -expect_unresolved \*' |
| 14667 | 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' |
| 14668 | fi |
| 14669 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14670 | hardcode_libdir_separator=: |
| 14671 | ;; |
| 14672 | |
| 14673 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14674 | if test "$GCC" = yes; then |
| 14675 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 14676 | 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' |
| 14677 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14678 | else |
| 14679 | allow_undefined_flag=' -expect_unresolved \*' |
| 14680 | 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] | 14681 | 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] | 14682 | $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] | 14683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14684 | # Both c and cxx compiler support -rpath directly |
| 14685 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 14686 | fi |
| 14687 | hardcode_libdir_separator=: |
| 14688 | ;; |
| 14689 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14690 | solaris*) |
| 14691 | no_undefined_flag=' -z text' |
| 14692 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14693 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14694 | 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] | 14695 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14696 | $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] | 14697 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14698 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14699 | 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] | 14700 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14701 | $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] | 14702 | fi |
| 14703 | hardcode_libdir_flag_spec='-R$libdir' |
| 14704 | hardcode_shlibpath_var=no |
| 14705 | case $host_os in |
| 14706 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14707 | *) |
| 14708 | # The compiler driver will combine linker options so we |
| 14709 | # cannot just pass the convience library names through |
| 14710 | # without $wl, iff we do not link with $LD. |
| 14711 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 14712 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14713 | case $wlarc in |
| 14714 | '') |
| 14715 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 14716 | *) |
| 14717 | 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' ;; |
| 14718 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14719 | esac |
| 14720 | link_all_deplibs=yes |
| 14721 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14722 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14723 | sunos4*) |
| 14724 | if test "x$host_vendor" = xsequent; then |
| 14725 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14726 | # files that make .init and .fini sections work. |
| 14727 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14728 | else |
| 14729 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14730 | fi |
| 14731 | hardcode_libdir_flag_spec='-L$libdir' |
| 14732 | hardcode_direct=yes |
| 14733 | hardcode_minus_L=yes |
| 14734 | hardcode_shlibpath_var=no |
| 14735 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14736 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14737 | sysv4) |
| 14738 | case $host_vendor in |
| 14739 | sni) |
| 14740 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14741 | hardcode_direct=yes # is this really true??? |
| 14742 | ;; |
| 14743 | siemens) |
| 14744 | ## LD is ld it makes a PLAMLIB |
| 14745 | ## CC just makes a GrossModule. |
| 14746 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14747 | reload_cmds='$CC -r -o $output$reload_objs' |
| 14748 | hardcode_direct=no |
| 14749 | ;; |
| 14750 | motorola) |
| 14751 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14752 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 14753 | ;; |
| 14754 | esac |
| 14755 | runpath_var='LD_RUN_PATH' |
| 14756 | hardcode_shlibpath_var=no |
| 14757 | ;; |
| 14758 | |
| 14759 | sysv4.3*) |
| 14760 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14761 | hardcode_shlibpath_var=no |
| 14762 | export_dynamic_flag_spec='-Bexport' |
| 14763 | ;; |
| 14764 | |
| 14765 | sysv4*MP*) |
| 14766 | if test -d /usr/nec; then |
| 14767 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14768 | hardcode_shlibpath_var=no |
| 14769 | runpath_var=LD_RUN_PATH |
| 14770 | hardcode_runpath_var=yes |
| 14771 | ld_shlibs=yes |
| 14772 | fi |
| 14773 | ;; |
| 14774 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14775 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 14776 | no_undefined_flag='${wl}-z,text' |
| 14777 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14778 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14779 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14781 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14782 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14783 | 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] | 14784 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14785 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14786 | 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] | 14787 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14788 | ;; |
| 14789 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14790 | sysv5* | sco3.2v5* | sco5v6*) |
| 14791 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14792 | # link with -lc, and that would cause any symbols used from libc to |
| 14793 | # always be unresolved, which means just about no library would |
| 14794 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14795 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14796 | # as -z defs. |
| 14797 | no_undefined_flag='${wl}-z,text' |
| 14798 | allow_undefined_flag='${wl}-z,nodefs' |
| 14799 | archive_cmds_need_lc=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14800 | hardcode_shlibpath_var=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14801 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 14802 | hardcode_libdir_separator=':' |
| 14803 | link_all_deplibs=yes |
| 14804 | export_dynamic_flag_spec='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14805 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14806 | |
| 14807 | if test "$GCC" = yes; then |
| 14808 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14809 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14810 | else |
| 14811 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14812 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14813 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14814 | ;; |
| 14815 | |
| 14816 | uts4*) |
| 14817 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14818 | hardcode_libdir_flag_spec='-L$libdir' |
| 14819 | hardcode_shlibpath_var=no |
| 14820 | ;; |
| 14821 | |
| 14822 | *) |
| 14823 | ld_shlibs=no |
| 14824 | ;; |
| 14825 | esac |
| 14826 | fi |
| 14827 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14828 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 14829 | echo "${ECHO_T}$ld_shlibs" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14830 | test "$ld_shlibs" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14831 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14832 | # |
| 14833 | # Do we need to explicitly link libc? |
| 14834 | # |
| 14835 | case "x$archive_cmds_need_lc" in |
| 14836 | x|xyes) |
| 14837 | # Assume -lc should be added |
| 14838 | archive_cmds_need_lc=yes |
| 14839 | |
| 14840 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14841 | case $archive_cmds in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14842 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14843 | # FIXME: we may have to deal with multi-command sequences. |
| 14844 | ;; |
| 14845 | '$CC '*) |
| 14846 | # Test whether the compiler implicitly links with -lc since on some |
| 14847 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14848 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14849 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 14850 | 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] | 14851 | $rm conftest* |
| 14852 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14853 | |
| 14854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14855 | (eval $ac_compile) 2>&5 |
| 14856 | ac_status=$? |
| 14857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14858 | (exit $ac_status); } 2>conftest.err; then |
| 14859 | soname=conftest |
| 14860 | lib=conftest |
| 14861 | libobjs=conftest.$ac_objext |
| 14862 | deplibs= |
| 14863 | wl=$lt_prog_compiler_wl |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14864 | pic_flag=$lt_prog_compiler_pic |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14865 | compiler_flags=-v |
| 14866 | linker_flags=-v |
| 14867 | verstring= |
| 14868 | output_objdir=. |
| 14869 | libname=conftest |
| 14870 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 14871 | allow_undefined_flag= |
| 14872 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 14873 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14874 | ac_status=$? |
| 14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14876 | (exit $ac_status); } |
| 14877 | then |
| 14878 | archive_cmds_need_lc=no |
| 14879 | else |
| 14880 | archive_cmds_need_lc=yes |
| 14881 | fi |
| 14882 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 14883 | else |
| 14884 | cat conftest.err 1>&5 |
| 14885 | fi |
| 14886 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14887 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 14888 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14889 | ;; |
| 14890 | esac |
| 14891 | fi |
| 14892 | ;; |
| 14893 | esac |
| 14894 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 14895 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 14896 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14897 | library_names_spec= |
| 14898 | libname_spec='lib$name' |
| 14899 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14900 | shrext_cmds=".so" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14901 | postinstall_cmds= |
| 14902 | postuninstall_cmds= |
| 14903 | finish_cmds= |
| 14904 | finish_eval= |
| 14905 | shlibpath_var= |
| 14906 | shlibpath_overrides_runpath=unknown |
| 14907 | version_type=none |
| 14908 | dynamic_linker="$host_os ld.so" |
| 14909 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14910 | if test "$GCC" = yes; then |
| 14911 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 14912 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 14913 | # if the path contains ";" then we assume it to be the separator |
| 14914 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14915 | # assumed that no part of a normal pathname contains ";" but that should |
| 14916 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14917 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14918 | else |
| 14919 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14920 | fi |
| 14921 | else |
| 14922 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14923 | fi |
| 14924 | need_lib_prefix=unknown |
| 14925 | hardcode_into_libs=no |
| 14926 | |
| 14927 | # when you set need_version to no, make sure it does not cause -set_version |
| 14928 | # flags to be left without arguments |
| 14929 | need_version=unknown |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14930 | |
| 14931 | case $host_os in |
| 14932 | aix3*) |
| 14933 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14934 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14935 | shlibpath_var=LIBPATH |
| 14936 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14937 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14938 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14939 | ;; |
| 14940 | |
| 14941 | aix4* | aix5*) |
| 14942 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14943 | need_lib_prefix=no |
| 14944 | need_version=no |
| 14945 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14946 | if test "$host_cpu" = ia64; then |
| 14947 | # AIX 5 supports IA64 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14948 | 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] | 14949 | shlibpath_var=LD_LIBRARY_PATH |
| 14950 | else |
| 14951 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14952 | # for dependence libraries. The import file would start with |
| 14953 | # the line `#! .'. This would cause the generated library to |
| 14954 | # depend on `.', always an invalid library. This was fixed in |
| 14955 | # development snapshots of GCC prior to 3.0. |
| 14956 | case $host_os in |
| 14957 | aix4 | aix4.[01] | aix4.[01].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14958 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14959 | echo ' yes ' |
| 14960 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 14961 | : |
| 14962 | else |
| 14963 | can_build_shared=no |
| 14964 | fi |
| 14965 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14966 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14967 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14968 | # soname into executable. Probably we can add versioning support to |
| 14969 | # collect2, so additional links can be useful in future. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14970 | if test "$aix_use_runtimelinking" = yes; then |
| 14971 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14972 | # instead of lib<name>.a to let people know that these are not |
| 14973 | # typical AIX shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14974 | 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] | 14975 | else |
| 14976 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14977 | # and later when we are not doing run time linking. |
| 14978 | library_names_spec='${libname}${release}.a $libname.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14979 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14980 | fi |
| 14981 | shlibpath_var=LIBPATH |
| 14982 | fi |
| 14983 | ;; |
| 14984 | |
| 14985 | amigaos*) |
| 14986 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14987 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14988 | 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] | 14989 | ;; |
| 14990 | |
| 14991 | beos*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 14992 | library_names_spec='${libname}${shared_ext}' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14993 | dynamic_linker="$host_os ld.so" |
| 14994 | shlibpath_var=LIBRARY_PATH |
| 14995 | ;; |
| 14996 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 14997 | bsdi[45]*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 14998 | version_type=linux |
| 14999 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15001 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15003 | shlibpath_var=LD_LIBRARY_PATH |
| 15004 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15005 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15006 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15007 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15008 | # libtool to hard-code these into programs |
| 15009 | ;; |
| 15010 | |
| 15011 | cygwin* | mingw* | pw32*) |
| 15012 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15013 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15014 | need_version=no |
| 15015 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15016 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15017 | case $GCC,$host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15018 | yes,cygwin* | yes,mingw* | yes,pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15019 | library_names_spec='$libname.dll.a' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15020 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15021 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15022 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15023 | dldir=$destdir/`dirname \$dlpath`~ |
| 15024 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15025 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15026 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 15027 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15028 | dlpath=$dir/\$dldll~ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15029 | $rm \$dlpath' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15030 | shlibpath_overrides_runpath=yes |
| 15031 | |
| 15032 | case $host_os in |
| 15033 | cygwin*) |
| 15034 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15035 | 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] | 15036 | 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] | 15037 | ;; |
| 15038 | mingw*) |
| 15039 | # MinGW DLLs use traditional 'lib' prefix |
| 15040 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15041 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15042 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15043 | # It is most probably a Windows format PATH printed by |
| 15044 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15045 | # path with ; separators, and with drive letters. We can handle the |
| 15046 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15047 | # especially as we might pass files found there to a mingw objdump, |
| 15048 | # which wouldn't understand a cygwinified path. Ahh. |
| 15049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15050 | else |
| 15051 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15052 | fi |
| 15053 | ;; |
| 15054 | pw32*) |
| 15055 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15056 | 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] | 15057 | ;; |
| 15058 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15059 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15060 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15061 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15062 | 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] | 15063 | ;; |
| 15064 | esac |
| 15065 | dynamic_linker='Win32 ld.exe' |
| 15066 | # FIXME: first we should search . and the directory the executable is in |
| 15067 | shlibpath_var=PATH |
| 15068 | ;; |
| 15069 | |
| 15070 | darwin* | rhapsody*) |
| 15071 | dynamic_linker="$host_os dyld" |
| 15072 | version_type=darwin |
| 15073 | need_lib_prefix=no |
| 15074 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15075 | 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] | 15076 | soname_spec='${libname}${release}${major}$shared_ext' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15077 | shlibpath_overrides_runpath=yes |
| 15078 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 15079 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15080 | # 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] | 15081 | if test "$GCC" = yes; then |
| 15082 | 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"` |
| 15083 | else |
| 15084 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15085 | fi |
| 15086 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15087 | ;; |
| 15088 | |
| 15089 | dgux*) |
| 15090 | version_type=linux |
| 15091 | need_lib_prefix=no |
| 15092 | need_version=no |
| 15093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15095 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15096 | ;; |
| 15097 | |
| 15098 | freebsd1*) |
| 15099 | dynamic_linker=no |
| 15100 | ;; |
| 15101 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15102 | kfreebsd*-gnu) |
| 15103 | version_type=linux |
| 15104 | need_lib_prefix=no |
| 15105 | need_version=no |
| 15106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15107 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15108 | shlibpath_var=LD_LIBRARY_PATH |
| 15109 | shlibpath_overrides_runpath=no |
| 15110 | hardcode_into_libs=yes |
| 15111 | dynamic_linker='GNU ld.so' |
| 15112 | ;; |
| 15113 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15114 | freebsd* | dragonfly*) |
| 15115 | # DragonFly does not have aout. When/if they implement a new |
| 15116 | # versioning mechanism, adjust this. |
| 15117 | if test -x /usr/bin/objformat; then |
| 15118 | objformat=`/usr/bin/objformat` |
| 15119 | else |
| 15120 | case $host_os in |
| 15121 | freebsd[123]*) objformat=aout ;; |
| 15122 | *) objformat=elf ;; |
| 15123 | esac |
| 15124 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15125 | version_type=freebsd-$objformat |
| 15126 | case $version_type in |
| 15127 | freebsd-elf*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15128 | 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] | 15129 | need_version=no |
| 15130 | need_lib_prefix=no |
| 15131 | ;; |
| 15132 | freebsd-*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15133 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15134 | need_version=yes |
| 15135 | ;; |
| 15136 | esac |
| 15137 | shlibpath_var=LD_LIBRARY_PATH |
| 15138 | case $host_os in |
| 15139 | freebsd2*) |
| 15140 | shlibpath_overrides_runpath=yes |
| 15141 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15142 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15143 | shlibpath_overrides_runpath=yes |
| 15144 | hardcode_into_libs=yes |
| 15145 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15146 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15147 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15148 | shlibpath_overrides_runpath=no |
| 15149 | hardcode_into_libs=yes |
| 15150 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15151 | freebsd*) # from 4.6 on |
| 15152 | shlibpath_overrides_runpath=yes |
| 15153 | hardcode_into_libs=yes |
| 15154 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15155 | esac |
| 15156 | ;; |
| 15157 | |
| 15158 | gnu*) |
| 15159 | version_type=linux |
| 15160 | need_lib_prefix=no |
| 15161 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15162 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15163 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15164 | shlibpath_var=LD_LIBRARY_PATH |
| 15165 | hardcode_into_libs=yes |
| 15166 | ;; |
| 15167 | |
| 15168 | hpux9* | hpux10* | hpux11*) |
| 15169 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15170 | # link against other versions. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15171 | version_type=sunos |
| 15172 | need_lib_prefix=no |
| 15173 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15174 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15175 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15176 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15177 | hardcode_into_libs=yes |
| 15178 | dynamic_linker="$host_os dld.so" |
| 15179 | shlibpath_var=LD_LIBRARY_PATH |
| 15180 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15182 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15183 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15184 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15185 | else |
| 15186 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15187 | fi |
| 15188 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15189 | ;; |
| 15190 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15191 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15192 | hardcode_into_libs=yes |
| 15193 | dynamic_linker="$host_os dld.sl" |
| 15194 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15195 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15197 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15198 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15199 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15200 | ;; |
| 15201 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15202 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15203 | dynamic_linker="$host_os dld.sl" |
| 15204 | shlibpath_var=SHLIB_PATH |
| 15205 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15208 | ;; |
| 15209 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15210 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15211 | postinstall_cmds='chmod 555 $lib' |
| 15212 | ;; |
| 15213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15214 | interix3*) |
| 15215 | version_type=linux |
| 15216 | need_lib_prefix=no |
| 15217 | need_version=no |
| 15218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15219 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15220 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15221 | shlibpath_var=LD_LIBRARY_PATH |
| 15222 | shlibpath_overrides_runpath=no |
| 15223 | hardcode_into_libs=yes |
| 15224 | ;; |
| 15225 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15226 | irix5* | irix6* | nonstopux*) |
| 15227 | case $host_os in |
| 15228 | nonstopux*) version_type=nonstopux ;; |
| 15229 | *) |
| 15230 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15231 | version_type=linux |
| 15232 | else |
| 15233 | version_type=irix |
| 15234 | fi ;; |
| 15235 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15236 | need_lib_prefix=no |
| 15237 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15238 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15239 | 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] | 15240 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15241 | irix5* | nonstopux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15242 | libsuff= shlibsuff= |
| 15243 | ;; |
| 15244 | *) |
| 15245 | 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] | 15246 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15247 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15248 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15249 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15250 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15251 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15252 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15253 | esac |
| 15254 | ;; |
| 15255 | esac |
| 15256 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15257 | shlibpath_overrides_runpath=no |
| 15258 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15259 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15260 | hardcode_into_libs=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15261 | ;; |
| 15262 | |
| 15263 | # No shared lib support for Linux oldld, aout, or coff. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15264 | linux*oldld* | linux*aout* | linux*coff*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15265 | dynamic_linker=no |
| 15266 | ;; |
| 15267 | |
| 15268 | # This must be Linux ELF. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15269 | linux*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15270 | version_type=linux |
| 15271 | need_lib_prefix=no |
| 15272 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15274 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15275 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15276 | shlibpath_var=LD_LIBRARY_PATH |
| 15277 | shlibpath_overrides_runpath=no |
| 15278 | # This implies no fast_install, which is unacceptable. |
| 15279 | # Some rework will be needed to allow for fast_install |
| 15280 | # before this can be enabled. |
| 15281 | hardcode_into_libs=yes |
| 15282 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15283 | # Append ld.so.conf contents to the search path |
| 15284 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15285 | 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] | 15286 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15287 | fi |
| 15288 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15289 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15290 | # powerpc, because MkLinux only supported shared libraries with the |
| 15291 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15292 | # most powerpc-linux boxes support dynamic linking these days and |
| 15293 | # people can always --disable-shared, the test was removed, and we |
| 15294 | # assume the GNU/Linux dynamic linker is in use. |
| 15295 | dynamic_linker='GNU/Linux ld.so' |
| 15296 | ;; |
| 15297 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15298 | knetbsd*-gnu) |
| 15299 | version_type=linux |
| 15300 | need_lib_prefix=no |
| 15301 | need_version=no |
| 15302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15304 | shlibpath_var=LD_LIBRARY_PATH |
| 15305 | shlibpath_overrides_runpath=no |
| 15306 | hardcode_into_libs=yes |
| 15307 | dynamic_linker='GNU ld.so' |
| 15308 | ;; |
| 15309 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15310 | netbsd*) |
| 15311 | version_type=sunos |
| 15312 | need_lib_prefix=no |
| 15313 | need_version=no |
| 15314 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15316 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15317 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15318 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15319 | 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] | 15320 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15321 | dynamic_linker='NetBSD ld.elf_so' |
| 15322 | fi |
| 15323 | shlibpath_var=LD_LIBRARY_PATH |
| 15324 | shlibpath_overrides_runpath=yes |
| 15325 | hardcode_into_libs=yes |
| 15326 | ;; |
| 15327 | |
| 15328 | newsos6) |
| 15329 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15331 | shlibpath_var=LD_LIBRARY_PATH |
| 15332 | shlibpath_overrides_runpath=yes |
| 15333 | ;; |
| 15334 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15335 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15336 | version_type=linux |
| 15337 | need_lib_prefix=no |
| 15338 | need_version=no |
| 15339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15340 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15341 | shlibpath_var=LD_LIBRARY_PATH |
| 15342 | shlibpath_overrides_runpath=yes |
| 15343 | ;; |
| 15344 | |
| 15345 | openbsd*) |
| 15346 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15347 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15348 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15349 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15350 | case $host_os in |
| 15351 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15352 | *) need_version=no ;; |
| 15353 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15355 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15356 | shlibpath_var=LD_LIBRARY_PATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15357 | 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] | 15358 | case $host_os in |
| 15359 | openbsd2.[89] | openbsd2.[89].*) |
| 15360 | shlibpath_overrides_runpath=no |
| 15361 | ;; |
| 15362 | *) |
| 15363 | shlibpath_overrides_runpath=yes |
| 15364 | ;; |
| 15365 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15366 | else |
| 15367 | shlibpath_overrides_runpath=yes |
| 15368 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15369 | ;; |
| 15370 | |
| 15371 | os2*) |
| 15372 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15373 | shrext_cmds=".dll" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15374 | need_lib_prefix=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15375 | library_names_spec='$libname${shared_ext} $libname.a' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15376 | dynamic_linker='OS/2 ld.exe' |
| 15377 | shlibpath_var=LIBPATH |
| 15378 | ;; |
| 15379 | |
| 15380 | osf3* | osf4* | osf5*) |
| 15381 | version_type=osf |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15382 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15383 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15384 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15385 | 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] | 15386 | shlibpath_var=LD_LIBRARY_PATH |
| 15387 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15388 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15389 | ;; |
| 15390 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15391 | solaris*) |
| 15392 | version_type=linux |
| 15393 | need_lib_prefix=no |
| 15394 | need_version=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15396 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15397 | shlibpath_var=LD_LIBRARY_PATH |
| 15398 | shlibpath_overrides_runpath=yes |
| 15399 | hardcode_into_libs=yes |
| 15400 | # ldd complains unless libraries are executable |
| 15401 | postinstall_cmds='chmod +x $lib' |
| 15402 | ;; |
| 15403 | |
| 15404 | sunos4*) |
| 15405 | version_type=sunos |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15407 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15408 | shlibpath_var=LD_LIBRARY_PATH |
| 15409 | shlibpath_overrides_runpath=yes |
| 15410 | if test "$with_gnu_ld" = yes; then |
| 15411 | need_lib_prefix=no |
| 15412 | fi |
| 15413 | need_version=yes |
| 15414 | ;; |
| 15415 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15416 | sysv4 | sysv4.3*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15417 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15419 | soname_spec='${libname}${release}${shared_ext}$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15420 | shlibpath_var=LD_LIBRARY_PATH |
| 15421 | case $host_vendor in |
| 15422 | sni) |
| 15423 | shlibpath_overrides_runpath=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15424 | need_lib_prefix=no |
| 15425 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15426 | runpath_var=LD_RUN_PATH |
| 15427 | ;; |
| 15428 | siemens) |
| 15429 | need_lib_prefix=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15430 | ;; |
| 15431 | motorola) |
| 15432 | need_lib_prefix=no |
| 15433 | need_version=no |
| 15434 | shlibpath_overrides_runpath=no |
| 15435 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15436 | ;; |
| 15437 | esac |
| 15438 | ;; |
| 15439 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15440 | sysv4*MP*) |
| 15441 | if test -d /usr/nec ;then |
| 15442 | version_type=linux |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15443 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15444 | soname_spec='$libname${shared_ext}.$major' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15445 | shlibpath_var=LD_LIBRARY_PATH |
| 15446 | fi |
| 15447 | ;; |
| 15448 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15449 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15450 | version_type=freebsd-elf |
| 15451 | need_lib_prefix=no |
| 15452 | need_version=no |
| 15453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15454 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15455 | shlibpath_var=LD_LIBRARY_PATH |
| 15456 | hardcode_into_libs=yes |
| 15457 | if test "$with_gnu_ld" = yes; then |
| 15458 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15459 | shlibpath_overrides_runpath=no |
| 15460 | else |
| 15461 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15462 | shlibpath_overrides_runpath=yes |
| 15463 | case $host_os in |
| 15464 | sco3.2v5*) |
| 15465 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15466 | ;; |
| 15467 | esac |
| 15468 | fi |
| 15469 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15470 | ;; |
| 15471 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15472 | uts4*) |
| 15473 | version_type=linux |
| 15474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15475 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15476 | shlibpath_var=LD_LIBRARY_PATH |
| 15477 | ;; |
| 15478 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15479 | *) |
| 15480 | dynamic_linker=no |
| 15481 | ;; |
| 15482 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15483 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 15484 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15485 | test "$dynamic_linker" = no && can_build_shared=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15487 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15488 | if test "$GCC" = yes; then |
| 15489 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15490 | fi |
| 15491 | |
| 15492 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15493 | 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] | 15494 | hardcode_action= |
| 15495 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 15496 | test -n "$runpath_var" || \ |
| 15497 | test "X$hardcode_automatic" = "Xyes" ; then |
| 15498 | |
| 15499 | # We can hardcode non-existant directories. |
| 15500 | if test "$hardcode_direct" != no && |
| 15501 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15502 | # have to relink, otherwise we might link with an installed library |
| 15503 | # when we should be linking with a yet-to-be-installed one |
| 15504 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 15505 | test "$hardcode_minus_L" != no; then |
| 15506 | # Linking always hardcodes the temporary library directory. |
| 15507 | hardcode_action=relink |
| 15508 | else |
| 15509 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15510 | hardcode_action=immediate |
| 15511 | fi |
| 15512 | else |
| 15513 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15514 | # directories. |
| 15515 | hardcode_action=unsupported |
| 15516 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15517 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 15518 | echo "${ECHO_T}$hardcode_action" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15519 | |
| 15520 | if test "$hardcode_action" = relink; then |
| 15521 | # Fast installation is not supported |
| 15522 | enable_fast_install=no |
| 15523 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15524 | test "$enable_shared" = no; then |
| 15525 | # Fast installation is not necessary |
| 15526 | enable_fast_install=needless |
| 15527 | fi |
| 15528 | |
| 15529 | striplib= |
| 15530 | old_striplib= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15531 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 15532 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15533 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 15534 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 15535 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15536 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15537 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15538 | else |
| 15539 | # FIXME - insert some real tests, host_os isn't really good enough |
| 15540 | case $host_os in |
| 15541 | darwin*) |
| 15542 | if test -n "$STRIP" ; then |
| 15543 | striplib="$STRIP -x" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15544 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 15545 | echo "${ECHO_T}yes" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15546 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15547 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15548 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15549 | fi |
| 15550 | ;; |
| 15551 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15552 | { echo "$as_me:$LINENO: result: no" >&5 |
| 15553 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15554 | ;; |
| 15555 | esac |
| 15556 | fi |
| 15557 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15558 | if test "x$enable_dlopen" != xyes; then |
| 15559 | enable_dlopen=unknown |
| 15560 | enable_dlopen_self=unknown |
| 15561 | enable_dlopen_self_static=unknown |
| 15562 | else |
| 15563 | lt_cv_dlopen=no |
| 15564 | lt_cv_dlopen_libs= |
| 15565 | |
| 15566 | case $host_os in |
| 15567 | beos*) |
| 15568 | lt_cv_dlopen="load_add_on" |
| 15569 | lt_cv_dlopen_libs= |
| 15570 | lt_cv_dlopen_self=yes |
| 15571 | ;; |
| 15572 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15573 | mingw* | pw32*) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15574 | lt_cv_dlopen="LoadLibrary" |
| 15575 | lt_cv_dlopen_libs= |
| 15576 | ;; |
| 15577 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15578 | cygwin*) |
| 15579 | lt_cv_dlopen="dlopen" |
| 15580 | lt_cv_dlopen_libs= |
| 15581 | ;; |
| 15582 | |
| 15583 | darwin*) |
| 15584 | # if libdl is installed we need to link against it |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15585 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15586 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15587 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15589 | else |
| 15590 | ac_check_lib_save_LIBS=$LIBS |
| 15591 | LIBS="-ldl $LIBS" |
| 15592 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15593 | /* confdefs.h. */ |
| 15594 | _ACEOF |
| 15595 | cat confdefs.h >>conftest.$ac_ext |
| 15596 | cat >>conftest.$ac_ext <<_ACEOF |
| 15597 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15598 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15599 | /* Override any GCC internal prototype to avoid an error. |
| 15600 | Use char because int might match the return type of a GCC |
| 15601 | builtin and then its argument prototype would still apply. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15602 | #ifdef __cplusplus |
| 15603 | extern "C" |
| 15604 | #endif |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15605 | char dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15606 | int |
| 15607 | main () |
| 15608 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15609 | return dlopen (); |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15610 | ; |
| 15611 | return 0; |
| 15612 | } |
| 15613 | _ACEOF |
| 15614 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15615 | if { (ac_try="$ac_link" |
| 15616 | case "(($ac_try" in |
| 15617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15618 | *) ac_try_echo=$ac_try;; |
| 15619 | esac |
| 15620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15621 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15622 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15624 | rm -f conftest.er1 |
| 15625 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15627 | (exit $ac_status); } && { |
| 15628 | test -z "$ac_c_werror_flag" || |
| 15629 | test ! -s conftest.err |
| 15630 | } && test -s conftest$ac_exeext && |
| 15631 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15632 | ac_cv_lib_dl_dlopen=yes |
| 15633 | else |
| 15634 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15635 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15637 | ac_cv_lib_dl_dlopen=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15638 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15639 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15640 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15641 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15642 | LIBS=$ac_check_lib_save_LIBS |
| 15643 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15644 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15645 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 15646 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 15647 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 15648 | else |
| 15649 | |
| 15650 | lt_cv_dlopen="dyld" |
| 15651 | lt_cv_dlopen_libs= |
| 15652 | lt_cv_dlopen_self=yes |
| 15653 | |
| 15654 | fi |
| 15655 | |
| 15656 | ;; |
| 15657 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15658 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15659 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 15660 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15661 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 15662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15663 | else |
| 15664 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15665 | /* confdefs.h. */ |
| 15666 | _ACEOF |
| 15667 | cat confdefs.h >>conftest.$ac_ext |
| 15668 | cat >>conftest.$ac_ext <<_ACEOF |
| 15669 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15670 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 15671 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15672 | #define shl_load innocuous_shl_load |
| 15673 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15674 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15675 | which can conflict with char shl_load (); below. |
| 15676 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15677 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15678 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15679 | #ifdef __STDC__ |
| 15680 | # include <limits.h> |
| 15681 | #else |
| 15682 | # include <assert.h> |
| 15683 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15684 | |
| 15685 | #undef shl_load |
| 15686 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15687 | /* Override any GCC internal prototype to avoid an error. |
| 15688 | Use char because int might match the return type of a GCC |
| 15689 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15690 | #ifdef __cplusplus |
| 15691 | extern "C" |
| 15692 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15693 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15694 | /* The GNU C library defines this for functions which it implements |
| 15695 | to always fail with ENOSYS. Some functions are actually named |
| 15696 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15697 | #if defined __stub_shl_load || defined __stub___shl_load |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15698 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15699 | #endif |
| 15700 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15701 | int |
| 15702 | main () |
| 15703 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15704 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15705 | ; |
| 15706 | return 0; |
| 15707 | } |
| 15708 | _ACEOF |
| 15709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15710 | if { (ac_try="$ac_link" |
| 15711 | case "(($ac_try" in |
| 15712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15713 | *) ac_try_echo=$ac_try;; |
| 15714 | esac |
| 15715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15716 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15717 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15719 | rm -f conftest.er1 |
| 15720 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15722 | (exit $ac_status); } && { |
| 15723 | test -z "$ac_c_werror_flag" || |
| 15724 | test ! -s conftest.err |
| 15725 | } && test -s conftest$ac_exeext && |
| 15726 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15727 | ac_cv_func_shl_load=yes |
| 15728 | else |
| 15729 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15731 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15732 | ac_cv_func_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15733 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15734 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15736 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15737 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15738 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 15739 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15740 | if test $ac_cv_func_shl_load = yes; then |
| 15741 | lt_cv_dlopen="shl_load" |
| 15742 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15743 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 15744 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15745 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 15746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15747 | else |
| 15748 | ac_check_lib_save_LIBS=$LIBS |
| 15749 | LIBS="-ldld $LIBS" |
| 15750 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15751 | /* confdefs.h. */ |
| 15752 | _ACEOF |
| 15753 | cat confdefs.h >>conftest.$ac_ext |
| 15754 | cat >>conftest.$ac_ext <<_ACEOF |
| 15755 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15756 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15757 | /* Override any GCC internal prototype to avoid an error. |
| 15758 | Use char because int might match the return type of a GCC |
| 15759 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15760 | #ifdef __cplusplus |
| 15761 | extern "C" |
| 15762 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15763 | char shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15764 | int |
| 15765 | main () |
| 15766 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15767 | return shl_load (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15768 | ; |
| 15769 | return 0; |
| 15770 | } |
| 15771 | _ACEOF |
| 15772 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15773 | if { (ac_try="$ac_link" |
| 15774 | case "(($ac_try" in |
| 15775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15776 | *) ac_try_echo=$ac_try;; |
| 15777 | esac |
| 15778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15779 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15780 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15782 | rm -f conftest.er1 |
| 15783 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15785 | (exit $ac_status); } && { |
| 15786 | test -z "$ac_c_werror_flag" || |
| 15787 | test ! -s conftest.err |
| 15788 | } && test -s conftest$ac_exeext && |
| 15789 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15790 | ac_cv_lib_dld_shl_load=yes |
| 15791 | else |
| 15792 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15794 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15795 | ac_cv_lib_dld_shl_load=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15796 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15797 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15798 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15799 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15800 | LIBS=$ac_check_lib_save_LIBS |
| 15801 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15802 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15803 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15804 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 15805 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 15806 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15807 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 15808 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15809 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 15810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15811 | else |
| 15812 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15813 | /* confdefs.h. */ |
| 15814 | _ACEOF |
| 15815 | cat confdefs.h >>conftest.$ac_ext |
| 15816 | cat >>conftest.$ac_ext <<_ACEOF |
| 15817 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15818 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 15819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15820 | #define dlopen innocuous_dlopen |
| 15821 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15822 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15823 | which can conflict with char dlopen (); below. |
| 15824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15825 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15826 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15827 | #ifdef __STDC__ |
| 15828 | # include <limits.h> |
| 15829 | #else |
| 15830 | # include <assert.h> |
| 15831 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15832 | |
| 15833 | #undef dlopen |
| 15834 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15835 | /* Override any GCC internal prototype to avoid an error. |
| 15836 | Use char because int might match the return type of a GCC |
| 15837 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15838 | #ifdef __cplusplus |
| 15839 | extern "C" |
| 15840 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15841 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15842 | /* The GNU C library defines this for functions which it implements |
| 15843 | to always fail with ENOSYS. Some functions are actually named |
| 15844 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15845 | #if defined __stub_dlopen || defined __stub___dlopen |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15846 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15847 | #endif |
| 15848 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15849 | int |
| 15850 | main () |
| 15851 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15852 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15853 | ; |
| 15854 | return 0; |
| 15855 | } |
| 15856 | _ACEOF |
| 15857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15858 | if { (ac_try="$ac_link" |
| 15859 | case "(($ac_try" in |
| 15860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15861 | *) ac_try_echo=$ac_try;; |
| 15862 | esac |
| 15863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15864 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15865 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15867 | rm -f conftest.er1 |
| 15868 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15870 | (exit $ac_status); } && { |
| 15871 | test -z "$ac_c_werror_flag" || |
| 15872 | test ! -s conftest.err |
| 15873 | } && test -s conftest$ac_exeext && |
| 15874 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15875 | ac_cv_func_dlopen=yes |
| 15876 | else |
| 15877 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15879 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15880 | ac_cv_func_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15881 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15882 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15884 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15885 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15886 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 15887 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15888 | if test $ac_cv_func_dlopen = yes; then |
| 15889 | lt_cv_dlopen="dlopen" |
| 15890 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15891 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15892 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15893 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15895 | else |
| 15896 | ac_check_lib_save_LIBS=$LIBS |
| 15897 | LIBS="-ldl $LIBS" |
| 15898 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15899 | /* confdefs.h. */ |
| 15900 | _ACEOF |
| 15901 | cat confdefs.h >>conftest.$ac_ext |
| 15902 | cat >>conftest.$ac_ext <<_ACEOF |
| 15903 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15905 | /* Override any GCC internal prototype to avoid an error. |
| 15906 | Use char because int might match the return type of a GCC |
| 15907 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15908 | #ifdef __cplusplus |
| 15909 | extern "C" |
| 15910 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15911 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15912 | int |
| 15913 | main () |
| 15914 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15915 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15916 | ; |
| 15917 | return 0; |
| 15918 | } |
| 15919 | _ACEOF |
| 15920 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15921 | if { (ac_try="$ac_link" |
| 15922 | case "(($ac_try" in |
| 15923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15924 | *) ac_try_echo=$ac_try;; |
| 15925 | esac |
| 15926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15927 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15928 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15930 | rm -f conftest.er1 |
| 15931 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15933 | (exit $ac_status); } && { |
| 15934 | test -z "$ac_c_werror_flag" || |
| 15935 | test ! -s conftest.err |
| 15936 | } && test -s conftest$ac_exeext && |
| 15937 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15938 | ac_cv_lib_dl_dlopen=yes |
| 15939 | else |
| 15940 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15942 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15943 | ac_cv_lib_dl_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15945 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15946 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15947 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15948 | LIBS=$ac_check_lib_save_LIBS |
| 15949 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15950 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15951 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15952 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 15953 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 15954 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15955 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 15956 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15957 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 15958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15959 | else |
| 15960 | ac_check_lib_save_LIBS=$LIBS |
| 15961 | LIBS="-lsvld $LIBS" |
| 15962 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 15963 | /* confdefs.h. */ |
| 15964 | _ACEOF |
| 15965 | cat confdefs.h >>conftest.$ac_ext |
| 15966 | cat >>conftest.$ac_ext <<_ACEOF |
| 15967 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15968 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15969 | /* Override any GCC internal prototype to avoid an error. |
| 15970 | Use char because int might match the return type of a GCC |
| 15971 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15972 | #ifdef __cplusplus |
| 15973 | extern "C" |
| 15974 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15975 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15976 | int |
| 15977 | main () |
| 15978 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15979 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15980 | ; |
| 15981 | return 0; |
| 15982 | } |
| 15983 | _ACEOF |
| 15984 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 15985 | if { (ac_try="$ac_link" |
| 15986 | case "(($ac_try" in |
| 15987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15988 | *) ac_try_echo=$ac_try;; |
| 15989 | esac |
| 15990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15991 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15992 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 15993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15994 | rm -f conftest.er1 |
| 15995 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 15996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 15997 | (exit $ac_status); } && { |
| 15998 | test -z "$ac_c_werror_flag" || |
| 15999 | test ! -s conftest.err |
| 16000 | } && test -s conftest$ac_exeext && |
| 16001 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16002 | ac_cv_lib_svld_dlopen=yes |
| 16003 | else |
| 16004 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16007 | ac_cv_lib_svld_dlopen=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16008 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16009 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 16010 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16011 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16012 | LIBS=$ac_check_lib_save_LIBS |
| 16013 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16014 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16015 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16016 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 16017 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16018 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16019 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 16020 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16021 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 16022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16023 | else |
| 16024 | ac_check_lib_save_LIBS=$LIBS |
| 16025 | LIBS="-ldld $LIBS" |
| 16026 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16027 | /* confdefs.h. */ |
| 16028 | _ACEOF |
| 16029 | cat confdefs.h >>conftest.$ac_ext |
| 16030 | cat >>conftest.$ac_ext <<_ACEOF |
| 16031 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16033 | /* Override any GCC internal prototype to avoid an error. |
| 16034 | Use char because int might match the return type of a GCC |
| 16035 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16036 | #ifdef __cplusplus |
| 16037 | extern "C" |
| 16038 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16039 | char dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16040 | int |
| 16041 | main () |
| 16042 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16043 | return dld_link (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16044 | ; |
| 16045 | return 0; |
| 16046 | } |
| 16047 | _ACEOF |
| 16048 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16049 | if { (ac_try="$ac_link" |
| 16050 | case "(($ac_try" in |
| 16051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 16052 | *) ac_try_echo=$ac_try;; |
| 16053 | esac |
| 16054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 16055 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16056 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16058 | rm -f conftest.er1 |
| 16059 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 16061 | (exit $ac_status); } && { |
| 16062 | test -z "$ac_c_werror_flag" || |
| 16063 | test ! -s conftest.err |
| 16064 | } && test -s conftest$ac_exeext && |
| 16065 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16066 | ac_cv_lib_dld_dld_link=yes |
| 16067 | else |
| 16068 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 16069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16070 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16071 | ac_cv_lib_dld_dld_link=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16072 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16073 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 16074 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16075 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16076 | LIBS=$ac_check_lib_save_LIBS |
| 16077 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16078 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16079 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16080 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 16081 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 16082 | fi |
| 16083 | |
| 16084 | |
| 16085 | fi |
| 16086 | |
| 16087 | |
| 16088 | fi |
| 16089 | |
| 16090 | |
| 16091 | fi |
| 16092 | |
| 16093 | |
| 16094 | fi |
| 16095 | |
| 16096 | |
| 16097 | fi |
| 16098 | |
| 16099 | ;; |
| 16100 | esac |
| 16101 | |
| 16102 | if test "x$lt_cv_dlopen" != xno; then |
| 16103 | enable_dlopen=yes |
| 16104 | else |
| 16105 | enable_dlopen=no |
| 16106 | fi |
| 16107 | |
| 16108 | case $lt_cv_dlopen in |
| 16109 | dlopen) |
| 16110 | save_CPPFLAGS="$CPPFLAGS" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16111 | 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] | 16112 | |
| 16113 | save_LDFLAGS="$LDFLAGS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16114 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16115 | |
| 16116 | save_LIBS="$LIBS" |
| 16117 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16118 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16119 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 16120 | 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] | 16121 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 16122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16123 | else |
| 16124 | if test "$cross_compiling" = yes; then : |
| 16125 | lt_cv_dlopen_self=cross |
| 16126 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16127 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16128 | lt_status=$lt_dlunknown |
| 16129 | cat > conftest.$ac_ext <<EOF |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 16130 | #line 16129 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16131 | #include "confdefs.h" |
| 16132 | |
| 16133 | #if HAVE_DLFCN_H |
| 16134 | #include <dlfcn.h> |
| 16135 | #endif |
| 16136 | |
| 16137 | #include <stdio.h> |
| 16138 | |
| 16139 | #ifdef RTLD_GLOBAL |
| 16140 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16141 | #else |
| 16142 | # ifdef DL_GLOBAL |
| 16143 | # define LT_DLGLOBAL DL_GLOBAL |
| 16144 | # else |
| 16145 | # define LT_DLGLOBAL 0 |
| 16146 | # endif |
| 16147 | #endif |
| 16148 | |
| 16149 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16150 | find out it does not work in some platform. */ |
| 16151 | #ifndef LT_DLLAZY_OR_NOW |
| 16152 | # ifdef RTLD_LAZY |
| 16153 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16154 | # else |
| 16155 | # ifdef DL_LAZY |
| 16156 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16157 | # else |
| 16158 | # ifdef RTLD_NOW |
| 16159 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16160 | # else |
| 16161 | # ifdef DL_NOW |
| 16162 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16163 | # else |
| 16164 | # define LT_DLLAZY_OR_NOW 0 |
| 16165 | # endif |
| 16166 | # endif |
| 16167 | # endif |
| 16168 | # endif |
| 16169 | #endif |
| 16170 | |
| 16171 | #ifdef __cplusplus |
| 16172 | extern "C" void exit (int); |
| 16173 | #endif |
| 16174 | |
| 16175 | void fnord() { int i=42;} |
| 16176 | int main () |
| 16177 | { |
| 16178 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16179 | int status = $lt_dlunknown; |
| 16180 | |
| 16181 | if (self) |
| 16182 | { |
| 16183 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16184 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16185 | /* dlclose (self); */ |
| 16186 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16187 | else |
| 16188 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16189 | |
| 16190 | exit (status); |
| 16191 | } |
| 16192 | EOF |
| 16193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16194 | (eval $ac_link) 2>&5 |
| 16195 | ac_status=$? |
| 16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16197 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16198 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16199 | lt_status=$? |
| 16200 | case x$lt_status in |
| 16201 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 16202 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16203 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16204 | esac |
| 16205 | else : |
| 16206 | # compilation failed |
| 16207 | lt_cv_dlopen_self=no |
| 16208 | fi |
| 16209 | fi |
| 16210 | rm -fr conftest* |
| 16211 | |
| 16212 | |
| 16213 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16214 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 16215 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16216 | |
| 16217 | if test "x$lt_cv_dlopen_self" = xyes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16218 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 16219 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 16220 | 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] | 16221 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 16222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16223 | else |
| 16224 | if test "$cross_compiling" = yes; then : |
| 16225 | lt_cv_dlopen_self_static=cross |
| 16226 | else |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16227 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16228 | lt_status=$lt_dlunknown |
| 16229 | cat > conftest.$ac_ext <<EOF |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 16230 | #line 16229 "configure" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16231 | #include "confdefs.h" |
| 16232 | |
| 16233 | #if HAVE_DLFCN_H |
| 16234 | #include <dlfcn.h> |
| 16235 | #endif |
| 16236 | |
| 16237 | #include <stdio.h> |
| 16238 | |
| 16239 | #ifdef RTLD_GLOBAL |
| 16240 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16241 | #else |
| 16242 | # ifdef DL_GLOBAL |
| 16243 | # define LT_DLGLOBAL DL_GLOBAL |
| 16244 | # else |
| 16245 | # define LT_DLGLOBAL 0 |
| 16246 | # endif |
| 16247 | #endif |
| 16248 | |
| 16249 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16250 | find out it does not work in some platform. */ |
| 16251 | #ifndef LT_DLLAZY_OR_NOW |
| 16252 | # ifdef RTLD_LAZY |
| 16253 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16254 | # else |
| 16255 | # ifdef DL_LAZY |
| 16256 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16257 | # else |
| 16258 | # ifdef RTLD_NOW |
| 16259 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16260 | # else |
| 16261 | # ifdef DL_NOW |
| 16262 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16263 | # else |
| 16264 | # define LT_DLLAZY_OR_NOW 0 |
| 16265 | # endif |
| 16266 | # endif |
| 16267 | # endif |
| 16268 | # endif |
| 16269 | #endif |
| 16270 | |
| 16271 | #ifdef __cplusplus |
| 16272 | extern "C" void exit (int); |
| 16273 | #endif |
| 16274 | |
| 16275 | void fnord() { int i=42;} |
| 16276 | int main () |
| 16277 | { |
| 16278 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16279 | int status = $lt_dlunknown; |
| 16280 | |
| 16281 | if (self) |
| 16282 | { |
| 16283 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16284 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16285 | /* dlclose (self); */ |
| 16286 | } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16287 | else |
| 16288 | puts (dlerror ()); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16289 | |
| 16290 | exit (status); |
| 16291 | } |
| 16292 | EOF |
| 16293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16294 | (eval $ac_link) 2>&5 |
| 16295 | ac_status=$? |
| 16296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16297 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16298 | (./conftest; exit; ) >&5 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16299 | lt_status=$? |
| 16300 | case x$lt_status in |
| 16301 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16302 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16303 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16304 | esac |
| 16305 | else : |
| 16306 | # compilation failed |
| 16307 | lt_cv_dlopen_self_static=no |
| 16308 | fi |
| 16309 | fi |
| 16310 | rm -fr conftest* |
| 16311 | |
| 16312 | |
| 16313 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16314 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 16315 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16316 | fi |
| 16317 | |
| 16318 | CPPFLAGS="$save_CPPFLAGS" |
| 16319 | LDFLAGS="$save_LDFLAGS" |
| 16320 | LIBS="$save_LIBS" |
| 16321 | ;; |
| 16322 | esac |
| 16323 | |
| 16324 | case $lt_cv_dlopen_self in |
| 16325 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16326 | *) enable_dlopen_self=unknown ;; |
| 16327 | esac |
| 16328 | |
| 16329 | case $lt_cv_dlopen_self_static in |
| 16330 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16331 | *) enable_dlopen_self_static=unknown ;; |
| 16332 | esac |
| 16333 | fi |
| 16334 | |
| 16335 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16336 | # Report which library types will actually be built |
| 16337 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 16338 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 16339 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 16340 | echo "${ECHO_T}$can_build_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16342 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 16343 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16344 | test "$can_build_shared" = "no" && enable_shared=no |
| 16345 | |
| 16346 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 16347 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16348 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16349 | aix3*) |
| 16350 | test "$enable_shared" = yes && enable_static=no |
| 16351 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 16352 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16353 | postinstall_cmds='$RANLIB $lib' |
| 16354 | fi |
| 16355 | ;; |
| 16356 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16357 | aix4* | aix5*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16358 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 16359 | test "$enable_shared" = yes && enable_static=no |
| 16360 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16361 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16362 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16363 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 16364 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16365 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16366 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 16367 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16368 | # Make sure either enable_shared or enable_static is yes. |
| 16369 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16370 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 16371 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16372 | |
| 16373 | # The else clause should only fire when bootstrapping the |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16374 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16375 | # with your package, and you will get complaints that there are |
| 16376 | # no rules to generate ltmain.sh. |
| 16377 | if test -f "$ltmain"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16378 | # See if we are running on zsh, and set the options which allow our commands through |
| 16379 | # without removal of \ escapes. |
| 16380 | if test -n "${ZSH_VERSION+set}" ; then |
| 16381 | setopt NO_GLOB_SUBST |
| 16382 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16383 | # Now quote all the things that may contain metacharacters while being |
| 16384 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16385 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16386 | 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] | 16387 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16388 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16389 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16390 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16391 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16392 | lt_cv_sys_global_symbol_to_c_name_address \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16393 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16394 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16395 | compiler \ |
| 16396 | CC \ |
| 16397 | LD \ |
| 16398 | lt_prog_compiler_wl \ |
| 16399 | lt_prog_compiler_pic \ |
| 16400 | lt_prog_compiler_static \ |
| 16401 | lt_prog_compiler_no_builtin_flag \ |
| 16402 | export_dynamic_flag_spec \ |
| 16403 | thread_safe_flag_spec \ |
| 16404 | whole_archive_flag_spec \ |
| 16405 | enable_shared_with_static_runtimes \ |
| 16406 | old_archive_cmds \ |
| 16407 | old_archive_from_new_cmds \ |
| 16408 | predep_objects \ |
| 16409 | postdep_objects \ |
| 16410 | predeps \ |
| 16411 | postdeps \ |
| 16412 | compiler_lib_search_path \ |
| 16413 | archive_cmds \ |
| 16414 | archive_expsym_cmds \ |
| 16415 | postinstall_cmds \ |
| 16416 | postuninstall_cmds \ |
| 16417 | old_archive_from_expsyms_cmds \ |
| 16418 | allow_undefined_flag \ |
| 16419 | no_undefined_flag \ |
| 16420 | export_symbols_cmds \ |
| 16421 | hardcode_libdir_flag_spec \ |
| 16422 | hardcode_libdir_flag_spec_ld \ |
| 16423 | hardcode_libdir_separator \ |
| 16424 | hardcode_automatic \ |
| 16425 | module_cmds \ |
| 16426 | module_expsym_cmds \ |
| 16427 | lt_cv_prog_compiler_c_o \ |
| 16428 | exclude_expsyms \ |
| 16429 | include_expsyms; do |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16430 | |
| 16431 | case $var in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16432 | old_archive_cmds | \ |
| 16433 | old_archive_from_new_cmds | \ |
| 16434 | archive_cmds | \ |
| 16435 | archive_expsym_cmds | \ |
| 16436 | module_cmds | \ |
| 16437 | module_expsym_cmds | \ |
| 16438 | old_archive_from_expsyms_cmds | \ |
| 16439 | export_symbols_cmds | \ |
| 16440 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16441 | postinstall_cmds | postuninstall_cmds | \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16442 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16443 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16444 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16445 | 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] | 16446 | ;; |
| 16447 | *) |
| 16448 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16449 | ;; |
| 16450 | esac |
| 16451 | done |
| 16452 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16453 | case $lt_echo in |
| 16454 | *'\$0 --fallback-echo"') |
| 16455 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16456 | ;; |
| 16457 | esac |
| 16458 | |
| 16459 | cfgfile="${ofile}T" |
| 16460 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 16461 | $rm -f "$cfgfile" |
| 16462 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 16463 | echo "$as_me: creating $ofile" >&6;} |
| 16464 | |
| 16465 | cat <<__EOF__ >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16466 | #! $SHELL |
| 16467 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16468 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16469 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 16470 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16471 | # |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16472 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 16473 | # Free Software Foundation, Inc. |
| 16474 | # |
| 16475 | # This file is part of GNU Libtool: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16476 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 16477 | # |
| 16478 | # This program is free software; you can redistribute it and/or modify |
| 16479 | # it under the terms of the GNU General Public License as published by |
| 16480 | # the Free Software Foundation; either version 2 of the License, or |
| 16481 | # (at your option) any later version. |
| 16482 | # |
| 16483 | # This program is distributed in the hope that it will be useful, but |
| 16484 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16485 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16486 | # General Public License for more details. |
| 16487 | # |
| 16488 | # You should have received a copy of the GNU General Public License |
| 16489 | # along with this program; if not, write to the Free Software |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16490 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16491 | # |
| 16492 | # As a special exception to the GNU General Public License, if you |
| 16493 | # distribute this file as part of a program that contains a |
| 16494 | # configuration script generated by Autoconf, you may include it under |
| 16495 | # the same distribution terms that you use for the rest of that program. |
| 16496 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16497 | # A sed program that does not truncate output. |
| 16498 | SED=$lt_SED |
| 16499 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16500 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16501 | Xsed="$SED -e 1s/^X//" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16502 | |
| 16503 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 16504 | # if CDPATH is set. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16505 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16506 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16507 | # The names of the tagged configurations supported by this script. |
| 16508 | available_tags= |
| 16509 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16510 | # ### BEGIN LIBTOOL CONFIG |
| 16511 | |
| 16512 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16513 | |
| 16514 | # Shell to use when invoking shell scripts. |
| 16515 | SHELL=$lt_SHELL |
| 16516 | |
| 16517 | # Whether or not to build shared libraries. |
| 16518 | build_libtool_libs=$enable_shared |
| 16519 | |
| 16520 | # Whether or not to build static libraries. |
| 16521 | build_old_libs=$enable_static |
| 16522 | |
| 16523 | # Whether or not to add -lc for building shared libraries. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16524 | build_libtool_need_lc=$archive_cmds_need_lc |
| 16525 | |
| 16526 | # Whether or not to disallow shared libs when runtime libs are static |
| 16527 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16528 | |
| 16529 | # Whether or not to optimize for fast installation. |
| 16530 | fast_install=$enable_fast_install |
| 16531 | |
| 16532 | # The host system. |
| 16533 | host_alias=$host_alias |
| 16534 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16535 | host_os=$host_os |
| 16536 | |
| 16537 | # The build system. |
| 16538 | build_alias=$build_alias |
| 16539 | build=$build |
| 16540 | build_os=$build_os |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16541 | |
| 16542 | # An echo program that does not interpret backslashes. |
| 16543 | echo=$lt_echo |
| 16544 | |
| 16545 | # The archiver. |
| 16546 | AR=$lt_AR |
| 16547 | AR_FLAGS=$lt_AR_FLAGS |
| 16548 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16549 | # A C compiler. |
| 16550 | LTCC=$lt_LTCC |
| 16551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16552 | # LTCC compiler flags. |
| 16553 | LTCFLAGS=$lt_LTCFLAGS |
| 16554 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16555 | # A language-specific compiler. |
| 16556 | CC=$lt_compiler |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16557 | |
| 16558 | # Is the compiler the GNU C compiler? |
| 16559 | with_gcc=$GCC |
| 16560 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16561 | # An ERE matcher. |
| 16562 | EGREP=$lt_EGREP |
| 16563 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16564 | # The linker used to build libraries. |
| 16565 | LD=$lt_LD |
| 16566 | |
| 16567 | # Whether we need hard or soft links. |
| 16568 | LN_S=$lt_LN_S |
| 16569 | |
| 16570 | # A BSD-compatible nm program. |
| 16571 | NM=$lt_NM |
| 16572 | |
| 16573 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16574 | STRIP=$lt_STRIP |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16575 | |
| 16576 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16577 | MAGIC_CMD=$MAGIC_CMD |
| 16578 | |
| 16579 | # Used on cygwin: DLL creation program. |
| 16580 | DLLTOOL="$DLLTOOL" |
| 16581 | |
| 16582 | # Used on cygwin: object dumper. |
| 16583 | OBJDUMP="$OBJDUMP" |
| 16584 | |
| 16585 | # Used on cygwin: assembler. |
| 16586 | AS="$AS" |
| 16587 | |
| 16588 | # The name of the directory that contains temporary libtool files. |
| 16589 | objdir=$objdir |
| 16590 | |
| 16591 | # How to create reloadable object files. |
| 16592 | reload_flag=$lt_reload_flag |
| 16593 | reload_cmds=$lt_reload_cmds |
| 16594 | |
| 16595 | # How to pass a linker flag through the compiler. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16596 | wl=$lt_lt_prog_compiler_wl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16597 | |
| 16598 | # Object file suffix (normally "o"). |
| 16599 | objext="$ac_objext" |
| 16600 | |
| 16601 | # Old archive suffix (normally "a"). |
| 16602 | libext="$libext" |
| 16603 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16604 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16605 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16606 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16607 | # Executable file suffix (normally ""). |
| 16608 | exeext="$exeext" |
| 16609 | |
| 16610 | # Additional compiler flags for building library objects. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16611 | pic_flag=$lt_lt_prog_compiler_pic |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16612 | pic_mode=$pic_mode |
| 16613 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16614 | # What is the maximum length of a command? |
| 16615 | max_cmd_len=$lt_cv_sys_max_cmd_len |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16616 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16617 | # Does compiler simultaneously support -c and -o options? |
| 16618 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16619 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16620 | # Must we lock files when doing compilation? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16621 | need_locks=$lt_need_locks |
| 16622 | |
| 16623 | # Do we need the lib prefix for modules? |
| 16624 | need_lib_prefix=$need_lib_prefix |
| 16625 | |
| 16626 | # Do we need a version for libraries? |
| 16627 | need_version=$need_version |
| 16628 | |
| 16629 | # Whether dlopen is supported. |
| 16630 | dlopen_support=$enable_dlopen |
| 16631 | |
| 16632 | # Whether dlopen of programs is supported. |
| 16633 | dlopen_self=$enable_dlopen_self |
| 16634 | |
| 16635 | # Whether dlopen of statically linked programs is supported. |
| 16636 | dlopen_self_static=$enable_dlopen_self_static |
| 16637 | |
| 16638 | # Compiler flag to prevent dynamic linking. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16639 | link_static_flag=$lt_lt_prog_compiler_static |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16640 | |
| 16641 | # Compiler flag to turn off builtin functions. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16642 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16643 | |
| 16644 | # Compiler flag to allow reflexive dlopens. |
| 16645 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16646 | |
| 16647 | # Compiler flag to generate shared objects directly from archives. |
| 16648 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16649 | |
| 16650 | # Compiler flag to generate thread-safe objects. |
| 16651 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 16652 | |
| 16653 | # Library versioning type. |
| 16654 | version_type=$version_type |
| 16655 | |
| 16656 | # Format of library name prefix. |
| 16657 | libname_spec=$lt_libname_spec |
| 16658 | |
| 16659 | # List of archive names. First name is the real one, the rest are links. |
| 16660 | # The last name is the one that the linker finds with -lNAME. |
| 16661 | library_names_spec=$lt_library_names_spec |
| 16662 | |
| 16663 | # The coded name of the library, if different from the real name. |
| 16664 | soname_spec=$lt_soname_spec |
| 16665 | |
| 16666 | # Commands used to build and install an old-style archive. |
| 16667 | RANLIB=$lt_RANLIB |
| 16668 | old_archive_cmds=$lt_old_archive_cmds |
| 16669 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16670 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16671 | |
| 16672 | # Create an old-style archive from a shared archive. |
| 16673 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16674 | |
| 16675 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16676 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16677 | |
| 16678 | # Commands used to build and install a shared archive. |
| 16679 | archive_cmds=$lt_archive_cmds |
| 16680 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16681 | postinstall_cmds=$lt_postinstall_cmds |
| 16682 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16683 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16684 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16685 | module_cmds=$lt_module_cmds |
| 16686 | module_expsym_cmds=$lt_module_expsym_cmds |
| 16687 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16688 | # Commands to strip libraries. |
| 16689 | old_striplib=$lt_old_striplib |
| 16690 | striplib=$lt_striplib |
| 16691 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16692 | # Dependencies to place before the objects being linked to create a |
| 16693 | # shared library. |
| 16694 | predep_objects=$lt_predep_objects |
| 16695 | |
| 16696 | # Dependencies to place after the objects being linked to create a |
| 16697 | # shared library. |
| 16698 | postdep_objects=$lt_postdep_objects |
| 16699 | |
| 16700 | # Dependencies to place before the objects being linked to create a |
| 16701 | # shared library. |
| 16702 | predeps=$lt_predeps |
| 16703 | |
| 16704 | # Dependencies to place after the objects being linked to create a |
| 16705 | # shared library. |
| 16706 | postdeps=$lt_postdeps |
| 16707 | |
| 16708 | # The library search path used internally by the compiler when linking |
| 16709 | # a shared library. |
| 16710 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 16711 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16712 | # Method to check whether dependent libraries are shared objects. |
| 16713 | deplibs_check_method=$lt_deplibs_check_method |
| 16714 | |
| 16715 | # Command to use when deplibs_check_method == file_magic. |
| 16716 | file_magic_cmd=$lt_file_magic_cmd |
| 16717 | |
| 16718 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16719 | allow_undefined_flag=$lt_allow_undefined_flag |
| 16720 | |
| 16721 | # Flag that forces no undefined symbols. |
| 16722 | no_undefined_flag=$lt_no_undefined_flag |
| 16723 | |
| 16724 | # Commands used to finish a libtool library installation in a directory. |
| 16725 | finish_cmds=$lt_finish_cmds |
| 16726 | |
| 16727 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16728 | finish_eval=$lt_finish_eval |
| 16729 | |
| 16730 | # 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] | 16731 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16732 | |
| 16733 | # Transform the output of nm in a proper C declaration |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16734 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16735 | |
| 16736 | # Transform the output of nm in a C name address pair |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16737 | 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] | 16738 | |
| 16739 | # This is the shared library runtime path variable. |
| 16740 | runpath_var=$runpath_var |
| 16741 | |
| 16742 | # This is the shared library path variable. |
| 16743 | shlibpath_var=$shlibpath_var |
| 16744 | |
| 16745 | # Is shlibpath searched before the hard-coded library search path? |
| 16746 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16747 | |
| 16748 | # How to hardcode a shared library path into an executable. |
| 16749 | hardcode_action=$hardcode_action |
| 16750 | |
| 16751 | # Whether we should hardcode library paths into libraries. |
| 16752 | hardcode_into_libs=$hardcode_into_libs |
| 16753 | |
| 16754 | # Flag to hardcode \$libdir into a binary during linking. |
| 16755 | # This must work even if \$libdir does not exist. |
| 16756 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16757 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16758 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16759 | # a binary during linking. This must work even if \$libdir does |
| 16760 | # not exist. |
| 16761 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 16762 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16763 | # Whether we need a single -rpath flag with a separated argument. |
| 16764 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16765 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16766 | # 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] | 16767 | # resulting binary. |
| 16768 | hardcode_direct=$hardcode_direct |
| 16769 | |
| 16770 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16771 | # resulting binary. |
| 16772 | hardcode_minus_L=$hardcode_minus_L |
| 16773 | |
| 16774 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16775 | # the resulting binary. |
| 16776 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 16777 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16778 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16779 | # and all subsequent libraries and executables linked against it. |
| 16780 | hardcode_automatic=$hardcode_automatic |
| 16781 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16782 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16783 | # restored at relink time. |
| 16784 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16785 | |
| 16786 | # Whether libtool must link a program against all its dependency libraries. |
| 16787 | link_all_deplibs=$link_all_deplibs |
| 16788 | |
| 16789 | # Compile-time system search path for libraries |
| 16790 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16791 | |
| 16792 | # Run-time system search path for libraries |
| 16793 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16794 | |
| 16795 | # Fix the shell variable \$srcfile for the compiler. |
| 16796 | fix_srcfile_path="$fix_srcfile_path" |
| 16797 | |
| 16798 | # Set to yes if exported symbols are required. |
| 16799 | always_export_symbols=$always_export_symbols |
| 16800 | |
| 16801 | # The commands to list exported symbols. |
| 16802 | export_symbols_cmds=$lt_export_symbols_cmds |
| 16803 | |
| 16804 | # The commands to extract the exported symbol list from a shared archive. |
| 16805 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16806 | |
| 16807 | # Symbols that should not be listed in the preloaded symbols. |
| 16808 | exclude_expsyms=$lt_exclude_expsyms |
| 16809 | |
| 16810 | # Symbols that must always be exported. |
| 16811 | include_expsyms=$lt_include_expsyms |
| 16812 | |
| 16813 | # ### END LIBTOOL CONFIG |
| 16814 | |
| 16815 | __EOF__ |
| 16816 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16817 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16818 | case $host_os in |
| 16819 | aix3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16820 | cat <<\EOF >> "$cfgfile" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16821 | |
| 16822 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 16823 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 16824 | # vanish in a puff of smoke. |
| 16825 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 16826 | COLLECT_NAMES= |
| 16827 | export COLLECT_NAMES |
| 16828 | fi |
| 16829 | EOF |
| 16830 | ;; |
| 16831 | esac |
| 16832 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16833 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 16834 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 16835 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 16836 | # is reportedly fixed, but why not run on old versions too? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16837 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16838 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16839 | mv -f "$cfgfile" "$ofile" || \ |
| 16840 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16841 | chmod +x "$ofile" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16842 | |
| 16843 | else |
| 16844 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16845 | # `config.status --recheck' to rerun these tests and create the |
| 16846 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16847 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16848 | if test -f "$ltmain_in"; then |
| 16849 | test -f Makefile && make "$ltmain" |
| 16850 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16851 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 16852 | |
| 16853 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16854 | ac_ext=c |
| 16855 | ac_cpp='$CPP $CPPFLAGS' |
| 16856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16859 | |
| 16860 | CC="$lt_save_CC" |
| 16861 | |
| 16862 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16863 | # Check whether --with-tags was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16864 | if test "${with_tags+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16865 | withval=$with_tags; tagnames="$withval" |
| 16866 | fi |
| 16867 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16868 | |
| 16869 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 16870 | if test ! -f "${ofile}"; then |
| 16871 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 16872 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 16873 | fi |
| 16874 | |
| 16875 | if test -z "$LTCC"; then |
| 16876 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 16877 | if test -z "$LTCC"; then |
| 16878 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 16879 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 16880 | else |
| 16881 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 16882 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 16883 | fi |
| 16884 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16885 | if test -z "$LTCFLAGS"; then |
| 16886 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 16887 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16888 | |
| 16889 | # Extract list of available tagged configurations in $ofile. |
| 16890 | # Note that this assumes the entire list is on one line. |
| 16891 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 16892 | |
| 16893 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 16894 | for tagname in $tagnames; do |
| 16895 | IFS="$lt_save_ifs" |
| 16896 | # Check whether tagname contains only valid characters |
| 16897 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 16898 | "") ;; |
| 16899 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 16900 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 16901 | { (exit 1); exit 1; }; } |
| 16902 | ;; |
| 16903 | esac |
| 16904 | |
| 16905 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 16906 | then |
| 16907 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 16908 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 16909 | { (exit 1); exit 1; }; } |
| 16910 | fi |
| 16911 | |
| 16912 | # Update the list of available tags. |
| 16913 | if test -n "$tagname"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16914 | echo appending configuration tag \"$tagname\" to $ofile |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16915 | |
| 16916 | case $tagname in |
| 16917 | CXX) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 16918 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 16919 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 16920 | (test "X$CXX" != "Xg++"))) ; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16921 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16922 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16926 | |
| 16927 | |
| 16928 | |
| 16929 | |
| 16930 | archive_cmds_need_lc_CXX=no |
| 16931 | allow_undefined_flag_CXX= |
| 16932 | always_export_symbols_CXX=no |
| 16933 | archive_expsym_cmds_CXX= |
| 16934 | export_dynamic_flag_spec_CXX= |
| 16935 | hardcode_direct_CXX=no |
| 16936 | hardcode_libdir_flag_spec_CXX= |
| 16937 | hardcode_libdir_flag_spec_ld_CXX= |
| 16938 | hardcode_libdir_separator_CXX= |
| 16939 | hardcode_minus_L_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16940 | hardcode_shlibpath_var_CXX=unsupported |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16941 | hardcode_automatic_CXX=no |
| 16942 | module_cmds_CXX= |
| 16943 | module_expsym_cmds_CXX= |
| 16944 | link_all_deplibs_CXX=unknown |
| 16945 | old_archive_cmds_CXX=$old_archive_cmds |
| 16946 | no_undefined_flag_CXX= |
| 16947 | whole_archive_flag_spec_CXX= |
| 16948 | enable_shared_with_static_runtimes_CXX=no |
| 16949 | |
| 16950 | # Dependencies to place before and after the object being linked: |
| 16951 | predep_objects_CXX= |
| 16952 | postdep_objects_CXX= |
| 16953 | predeps_CXX= |
| 16954 | postdeps_CXX= |
| 16955 | compiler_lib_search_path_CXX= |
| 16956 | |
| 16957 | # Source file extension for C++ test sources. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16958 | ac_ext=cpp |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16959 | |
| 16960 | # Object file extension for compiled C++ test sources. |
| 16961 | objext=o |
| 16962 | objext_CXX=$objext |
| 16963 | |
| 16964 | # Code to be used in simple compile tests |
| 16965 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 16966 | |
| 16967 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16968 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16969 | |
| 16970 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16971 | |
| 16972 | # If no C compiler was specified, use CC. |
| 16973 | LTCC=${LTCC-"$CC"} |
| 16974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16975 | # If no C compiler flags were specified, use CFLAGS. |
| 16976 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16977 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16978 | # Allow CC to be a program name with arguments. |
| 16979 | compiler=$CC |
| 16980 | |
| 16981 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 16982 | # save warnings/boilerplate of simple test code |
| 16983 | ac_outfile=conftest.$ac_objext |
| 16984 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16985 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16986 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16987 | $rm conftest* |
| 16988 | |
| 16989 | ac_outfile=conftest.$ac_objext |
| 16990 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16991 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16992 | _lt_linker_boilerplate=`cat conftest.err` |
| 16993 | $rm conftest* |
| 16994 | |
| 16995 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 16996 | # Allow CC to be a program name with arguments. |
| 16997 | lt_save_CC=$CC |
| 16998 | lt_save_LD=$LD |
| 16999 | lt_save_GCC=$GCC |
| 17000 | GCC=$GXX |
| 17001 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17002 | lt_save_path_LD=$lt_cv_path_LD |
| 17003 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17004 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17005 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17006 | $as_unset lt_cv_prog_gnu_ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17007 | fi |
| 17008 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17009 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17010 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17011 | $as_unset lt_cv_path_LD |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17012 | fi |
| 17013 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17014 | CC=${CXX-"c++"} |
| 17015 | compiler=$CC |
| 17016 | compiler_CXX=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17017 | for cc_temp in $compiler""; do |
| 17018 | case $cc_temp in |
| 17019 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17020 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17021 | \-*) ;; |
| 17022 | *) break;; |
| 17023 | esac |
| 17024 | done |
| 17025 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 17026 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17027 | |
| 17028 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 17029 | # no_builtin_flag separately |
| 17030 | if test "$GXX" = yes; then |
| 17031 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17032 | else |
| 17033 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17034 | fi |
| 17035 | |
| 17036 | if test "$GXX" = yes; then |
| 17037 | # Set up default GNU C++ configuration |
| 17038 | |
| 17039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17040 | # Check whether --with-gnu-ld was given. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17041 | if test "${with_gnu_ld+set}" = set; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17042 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17043 | else |
| 17044 | with_gnu_ld=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17045 | fi |
| 17046 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17047 | ac_prog=ld |
| 17048 | if test "$GCC" = yes; then |
| 17049 | # Check if gcc -print-prog-name=ld gives a path. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17050 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 17051 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17052 | case $host in |
| 17053 | *-*-mingw*) |
| 17054 | # gcc leaves a trailing carriage return which upsets mingw |
| 17055 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17056 | *) |
| 17057 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17058 | esac |
| 17059 | case $ac_prog in |
| 17060 | # Accept absolute paths. |
| 17061 | [\\/]* | ?:[\\/]*) |
| 17062 | re_direlt='/[^/][^/]*/\.\./' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17063 | # Canonicalize the pathname of ld |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17064 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 17065 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 17066 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 17067 | done |
| 17068 | test -z "$LD" && LD="$ac_prog" |
| 17069 | ;; |
| 17070 | "") |
| 17071 | # If it fails, then pretend we aren't using GCC. |
| 17072 | ac_prog=ld |
| 17073 | ;; |
| 17074 | *) |
| 17075 | # If it is relative, then search for the first ld in PATH. |
| 17076 | with_gnu_ld=unknown |
| 17077 | ;; |
| 17078 | esac |
| 17079 | elif test "$with_gnu_ld" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17080 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 17081 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17082 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17083 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 17084 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17085 | fi |
| 17086 | if test "${lt_cv_path_LD+set}" = set; then |
| 17087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17088 | else |
| 17089 | if test -z "$LD"; then |
| 17090 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17091 | for ac_dir in $PATH; do |
| 17092 | IFS="$lt_save_ifs" |
| 17093 | test -z "$ac_dir" && ac_dir=. |
| 17094 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17095 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17096 | # 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] | 17097 | # but apparently some variants of GNU ld only accept -v. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17098 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17099 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17100 | *GNU* | *'with BFD'*) |
| 17101 | test "$with_gnu_ld" != no && break |
| 17102 | ;; |
| 17103 | *) |
| 17104 | test "$with_gnu_ld" != yes && break |
| 17105 | ;; |
| 17106 | esac |
| 17107 | fi |
| 17108 | done |
| 17109 | IFS="$lt_save_ifs" |
| 17110 | else |
| 17111 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17112 | fi |
| 17113 | fi |
| 17114 | |
| 17115 | LD="$lt_cv_path_LD" |
| 17116 | if test -n "$LD"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17117 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 17118 | echo "${ECHO_T}$LD" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17119 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17120 | { echo "$as_me:$LINENO: result: no" >&5 |
| 17121 | echo "${ECHO_T}no" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17122 | fi |
| 17123 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 17124 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 17125 | { (exit 1); exit 1; }; } |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17126 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 17127 | 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] | 17128 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 17129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17130 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17131 | # 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] | 17132 | case `$LD -v 2>&1 </dev/null` in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17133 | *GNU* | *'with BFD'*) |
| 17134 | lt_cv_prog_gnu_ld=yes |
| 17135 | ;; |
| 17136 | *) |
| 17137 | lt_cv_prog_gnu_ld=no |
| 17138 | ;; |
| 17139 | esac |
| 17140 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17141 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 17142 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17143 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 17144 | |
| 17145 | |
| 17146 | |
| 17147 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17148 | # archiving commands below assume that GNU ld is being used. |
| 17149 | if test "$with_gnu_ld" = yes; then |
| 17150 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17151 | 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' |
| 17152 | |
| 17153 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17154 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17155 | |
| 17156 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17157 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17158 | # investigate it a little bit more. (MM) |
| 17159 | wlarc='${wl}' |
| 17160 | |
| 17161 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17162 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 17163 | grep 'no-whole-archive' > /dev/null; then |
| 17164 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17165 | else |
| 17166 | whole_archive_flag_spec_CXX= |
| 17167 | fi |
| 17168 | else |
| 17169 | with_gnu_ld=no |
| 17170 | wlarc= |
| 17171 | |
| 17172 | # A generic and very simple default shared library creation |
| 17173 | # command for GNU C++ for the case where it uses the native |
| 17174 | # linker, instead of GNU ld. If possible, this setting should |
| 17175 | # overridden to take advantage of the native linker features on |
| 17176 | # the platform it is being used on. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17177 | 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] | 17178 | fi |
| 17179 | |
| 17180 | # Commands to make compiler produce verbose output that lists |
| 17181 | # what "hidden" libraries, object files and flags are used when |
| 17182 | # linking a shared library. |
| 17183 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 17184 | |
| 17185 | else |
| 17186 | GXX=no |
| 17187 | with_gnu_ld=no |
| 17188 | wlarc= |
| 17189 | fi |
| 17190 | |
| 17191 | # PORTME: fill in a description of your system's C++ link characteristics |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17192 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17193 | 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] | 17194 | ld_shlibs_CXX=yes |
| 17195 | case $host_os in |
| 17196 | aix3*) |
| 17197 | # FIXME: insert proper C++ library support |
| 17198 | ld_shlibs_CXX=no |
| 17199 | ;; |
| 17200 | aix4* | aix5*) |
| 17201 | if test "$host_cpu" = ia64; then |
| 17202 | # On IA64, the linker does run time linking by default, so we don't |
| 17203 | # have to do anything special. |
| 17204 | aix_use_runtimelinking=no |
| 17205 | exp_sym_flag='-Bexport' |
| 17206 | no_entry_flag="" |
| 17207 | else |
| 17208 | aix_use_runtimelinking=no |
| 17209 | |
| 17210 | # Test if we are trying to use run time linking or normal |
| 17211 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17212 | # need to do runtime linking. |
| 17213 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17214 | for ld_flag in $LDFLAGS; do |
| 17215 | case $ld_flag in |
| 17216 | *-brtl*) |
| 17217 | aix_use_runtimelinking=yes |
| 17218 | break |
| 17219 | ;; |
| 17220 | esac |
| 17221 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17222 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17223 | esac |
| 17224 | |
| 17225 | exp_sym_flag='-bexport' |
| 17226 | no_entry_flag='-bnoentry' |
| 17227 | fi |
| 17228 | |
| 17229 | # When large executables or shared objects are built, AIX ld can |
| 17230 | # have problems creating the table of contents. If linking a library |
| 17231 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17232 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17233 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17234 | |
| 17235 | archive_cmds_CXX='' |
| 17236 | hardcode_direct_CXX=yes |
| 17237 | hardcode_libdir_separator_CXX=':' |
| 17238 | link_all_deplibs_CXX=yes |
| 17239 | |
| 17240 | if test "$GXX" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17241 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17242 | # We only want to do this on AIX 4.2 and lower, the check |
| 17243 | # below for broken collect2 doesn't work under 4.3+ |
| 17244 | collect2name=`${CC} -print-prog-name=collect2` |
| 17245 | if test -f "$collect2name" && \ |
| 17246 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17247 | then |
| 17248 | # We have reworked collect2 |
| 17249 | hardcode_direct_CXX=yes |
| 17250 | else |
| 17251 | # We have old collect2 |
| 17252 | hardcode_direct_CXX=unsupported |
| 17253 | # It fails to find uninstalled libraries when the uninstalled |
| 17254 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17255 | # to unsupported forces relinking |
| 17256 | hardcode_minus_L_CXX=yes |
| 17257 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17258 | hardcode_libdir_separator_CXX= |
| 17259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17260 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17261 | esac |
| 17262 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17263 | if test "$aix_use_runtimelinking" = yes; then |
| 17264 | shared_flag="$shared_flag "'${wl}-G' |
| 17265 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17266 | else |
| 17267 | # not using gcc |
| 17268 | if test "$host_cpu" = ia64; then |
| 17269 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17270 | # chokes on -Wl,-G. The following line is correct: |
| 17271 | shared_flag='-G' |
| 17272 | else |
| 17273 | if test "$aix_use_runtimelinking" = yes; then |
| 17274 | shared_flag='${wl}-G' |
| 17275 | else |
| 17276 | shared_flag='${wl}-bM:SRE' |
| 17277 | fi |
| 17278 | fi |
| 17279 | fi |
| 17280 | |
| 17281 | # It seems that -bexpall does not export symbols beginning with |
| 17282 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17283 | always_export_symbols_CXX=yes |
| 17284 | if test "$aix_use_runtimelinking" = yes; then |
| 17285 | # Warning - without using the other runtime loading flags (-brtl), |
| 17286 | # -berok will link without error, but may produce a broken library. |
| 17287 | allow_undefined_flag_CXX='-berok' |
| 17288 | # Determine the default libpath from the value encoded in an empty executable. |
| 17289 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17290 | /* confdefs.h. */ |
| 17291 | _ACEOF |
| 17292 | cat confdefs.h >>conftest.$ac_ext |
| 17293 | cat >>conftest.$ac_ext <<_ACEOF |
| 17294 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17295 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17296 | int |
| 17297 | main () |
| 17298 | { |
| 17299 | |
| 17300 | ; |
| 17301 | return 0; |
| 17302 | } |
| 17303 | _ACEOF |
| 17304 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17305 | if { (ac_try="$ac_link" |
| 17306 | case "(($ac_try" in |
| 17307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17308 | *) ac_try_echo=$ac_try;; |
| 17309 | esac |
| 17310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17311 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17312 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17314 | rm -f conftest.er1 |
| 17315 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 17317 | (exit $ac_status); } && { |
| 17318 | test -z "$ac_cxx_werror_flag" || |
| 17319 | test ! -s conftest.err |
| 17320 | } && test -s conftest$ac_exeext && |
| 17321 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17322 | |
| 17323 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17324 | }'` |
| 17325 | # Check for a 64-bit object if we didn't find anything. |
| 17326 | 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; } |
| 17327 | }'`; fi |
| 17328 | else |
| 17329 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17332 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17333 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17334 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 17335 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17336 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17337 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17338 | |
| 17339 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17340 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17341 | 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] | 17342 | else |
| 17343 | if test "$host_cpu" = ia64; then |
| 17344 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 17345 | allow_undefined_flag_CXX="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17346 | 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] | 17347 | else |
| 17348 | # Determine the default libpath from the value encoded in an empty executable. |
| 17349 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17350 | /* confdefs.h. */ |
| 17351 | _ACEOF |
| 17352 | cat confdefs.h >>conftest.$ac_ext |
| 17353 | cat >>conftest.$ac_ext <<_ACEOF |
| 17354 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17355 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17356 | int |
| 17357 | main () |
| 17358 | { |
| 17359 | |
| 17360 | ; |
| 17361 | return 0; |
| 17362 | } |
| 17363 | _ACEOF |
| 17364 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17365 | if { (ac_try="$ac_link" |
| 17366 | case "(($ac_try" in |
| 17367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17368 | *) ac_try_echo=$ac_try;; |
| 17369 | esac |
| 17370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17371 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17372 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17374 | rm -f conftest.er1 |
| 17375 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 17377 | (exit $ac_status); } && { |
| 17378 | test -z "$ac_cxx_werror_flag" || |
| 17379 | test ! -s conftest.err |
| 17380 | } && test -s conftest$ac_exeext && |
| 17381 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17382 | |
| 17383 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17384 | }'` |
| 17385 | # Check for a 64-bit object if we didn't find anything. |
| 17386 | 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; } |
| 17387 | }'`; fi |
| 17388 | else |
| 17389 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 17390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17391 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17392 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17393 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17394 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 17395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17396 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17397 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17398 | |
| 17399 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17400 | # Warning - without using the other run time loading flags, |
| 17401 | # -berok will link without error, but may produce a broken library. |
| 17402 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 17403 | allow_undefined_flag_CXX=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17404 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17405 | whole_archive_flag_spec_CXX='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17406 | archive_cmds_need_lc_CXX=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17407 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17408 | 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] | 17409 | fi |
| 17410 | fi |
| 17411 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17412 | |
| 17413 | beos*) |
| 17414 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17415 | allow_undefined_flag_CXX=unsupported |
| 17416 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17417 | # support --undefined. This deserves some investigation. FIXME |
| 17418 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17419 | else |
| 17420 | ld_shlibs_CXX=no |
| 17421 | fi |
| 17422 | ;; |
| 17423 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17424 | chorus*) |
| 17425 | case $cc_basename in |
| 17426 | *) |
| 17427 | # FIXME: insert proper C++ library support |
| 17428 | ld_shlibs_CXX=no |
| 17429 | ;; |
| 17430 | esac |
| 17431 | ;; |
| 17432 | |
| 17433 | cygwin* | mingw* | pw32*) |
| 17434 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 17435 | # as there is no search path for DLLs. |
| 17436 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17437 | allow_undefined_flag_CXX=unsupported |
| 17438 | always_export_symbols_CXX=no |
| 17439 | enable_shared_with_static_runtimes_CXX=yes |
| 17440 | |
| 17441 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17442 | 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] | 17443 | # If the export-symbols file already is a .def file (1st line |
| 17444 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17445 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17446 | cp $export_symbols $output_objdir/$soname.def; |
| 17447 | else |
| 17448 | echo EXPORTS > $output_objdir/$soname.def; |
| 17449 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17450 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17451 | $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] | 17452 | else |
| 17453 | ld_shlibs_CXX=no |
| 17454 | fi |
| 17455 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17456 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17457 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17458 | rhapsody* | darwin1.[012]) |
| 17459 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 17460 | ;; |
| 17461 | *) # Darwin 1.3 on |
| 17462 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17463 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17464 | else |
| 17465 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17466 | 10.[012]) |
| 17467 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17468 | ;; |
| 17469 | 10.*) |
| 17470 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 17471 | ;; |
| 17472 | esac |
| 17473 | fi |
| 17474 | ;; |
| 17475 | esac |
| 17476 | archive_cmds_need_lc_CXX=no |
| 17477 | hardcode_direct_CXX=no |
| 17478 | hardcode_automatic_CXX=yes |
| 17479 | hardcode_shlibpath_var_CXX=unsupported |
| 17480 | whole_archive_flag_spec_CXX='' |
| 17481 | link_all_deplibs_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17482 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17483 | if test "$GXX" = yes ; then |
| 17484 | lt_int_apple_cc_single_mod=no |
| 17485 | output_verbose_link_cmd='echo' |
| 17486 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 17487 | lt_int_apple_cc_single_mod=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17488 | fi |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17489 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17490 | 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] | 17491 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17492 | 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] | 17493 | fi |
| 17494 | 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] | 17495 | # 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] | 17496 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17497 | 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] | 17498 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17499 | 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] | 17500 | fi |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17501 | 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] | 17502 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17503 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17504 | xlc*) |
| 17505 | output_verbose_link_cmd='echo' |
| 17506 | 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' |
| 17507 | 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] | 17508 | # 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] | 17509 | 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}' |
| 17510 | 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] | 17511 | ;; |
| 17512 | *) |
| 17513 | ld_shlibs_CXX=no |
| 17514 | ;; |
| 17515 | esac |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 17516 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17517 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17518 | |
| 17519 | dgux*) |
| 17520 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17521 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17522 | # FIXME: insert proper C++ library support |
| 17523 | ld_shlibs_CXX=no |
| 17524 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17525 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17526 | # Green Hills C++ Compiler |
| 17527 | # FIXME: insert proper C++ library support |
| 17528 | ld_shlibs_CXX=no |
| 17529 | ;; |
| 17530 | *) |
| 17531 | # FIXME: insert proper C++ library support |
| 17532 | ld_shlibs_CXX=no |
| 17533 | ;; |
| 17534 | esac |
| 17535 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17536 | freebsd[12]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17537 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 17538 | ld_shlibs_CXX=no |
| 17539 | ;; |
| 17540 | freebsd-elf*) |
| 17541 | archive_cmds_need_lc_CXX=no |
| 17542 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17543 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17544 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 17545 | # conventions |
| 17546 | ld_shlibs_CXX=yes |
| 17547 | ;; |
| 17548 | gnu*) |
| 17549 | ;; |
| 17550 | hpux9*) |
| 17551 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17552 | hardcode_libdir_separator_CXX=: |
| 17553 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17554 | hardcode_direct_CXX=yes |
| 17555 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17556 | # but as the default |
| 17557 | # location of the library. |
| 17558 | |
| 17559 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17560 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17561 | # FIXME: insert proper C++ library support |
| 17562 | ld_shlibs_CXX=no |
| 17563 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17564 | aCC*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17565 | 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] | 17566 | # Commands to make compiler produce verbose output that lists |
| 17567 | # what "hidden" libraries, object files and flags are used when |
| 17568 | # linking a shared library. |
| 17569 | # |
| 17570 | # There doesn't appear to be a way to prevent this compiler from |
| 17571 | # explicitly linking system object files so we need to strip them |
| 17572 | # from the output so that they don't get included in the library |
| 17573 | # dependencies. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17574 | 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] | 17575 | ;; |
| 17576 | *) |
| 17577 | if test "$GXX" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 17578 | 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] | 17579 | else |
| 17580 | # FIXME: insert proper C++ library support |
| 17581 | ld_shlibs_CXX=no |
| 17582 | fi |
| 17583 | ;; |
| 17584 | esac |
| 17585 | ;; |
| 17586 | hpux10*|hpux11*) |
| 17587 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17588 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17589 | hardcode_libdir_separator_CXX=: |
| 17590 | |
| 17591 | case $host_cpu in |
| 17592 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17593 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17594 | ;; |
| 17595 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17596 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17597 | ;; |
| 17598 | esac |
| 17599 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17600 | case $host_cpu in |
| 17601 | hppa*64*|ia64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17602 | hardcode_direct_CXX=no |
| 17603 | hardcode_shlibpath_var_CXX=no |
| 17604 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17605 | *) |
| 17606 | hardcode_direct_CXX=yes |
| 17607 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17608 | # but as the default |
| 17609 | # location of the library. |
| 17610 | ;; |
| 17611 | esac |
| 17612 | |
| 17613 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17614 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17615 | # FIXME: insert proper C++ library support |
| 17616 | ld_shlibs_CXX=no |
| 17617 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17618 | aCC*) |
| 17619 | case $host_cpu in |
| 17620 | hppa*64*) |
| 17621 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17622 | ;; |
| 17623 | ia64*) |
| 17624 | 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] | 17625 | ;; |
| 17626 | *) |
| 17627 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17628 | ;; |
| 17629 | esac |
| 17630 | # Commands to make compiler produce verbose output that lists |
| 17631 | # what "hidden" libraries, object files and flags are used when |
| 17632 | # linking a shared library. |
| 17633 | # |
| 17634 | # There doesn't appear to be a way to prevent this compiler from |
| 17635 | # explicitly linking system object files so we need to strip them |
| 17636 | # from the output so that they don't get included in the library |
| 17637 | # dependencies. |
| 17638 | 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' |
| 17639 | ;; |
| 17640 | *) |
| 17641 | if test "$GXX" = yes; then |
| 17642 | if test $with_gnu_ld = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17643 | case $host_cpu in |
| 17644 | hppa*64*) |
| 17645 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17646 | ;; |
| 17647 | ia64*) |
| 17648 | 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] | 17649 | ;; |
| 17650 | *) |
| 17651 | 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' |
| 17652 | ;; |
| 17653 | esac |
| 17654 | fi |
| 17655 | else |
| 17656 | # FIXME: insert proper C++ library support |
| 17657 | ld_shlibs_CXX=no |
| 17658 | fi |
| 17659 | ;; |
| 17660 | esac |
| 17661 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17662 | interix3*) |
| 17663 | hardcode_direct_CXX=no |
| 17664 | hardcode_shlibpath_var_CXX=no |
| 17665 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17666 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17667 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17668 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17669 | # default) and relocated if they conflict, which is a slow very memory |
| 17670 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17671 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17672 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17673 | 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' |
| 17674 | 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' |
| 17675 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17676 | irix5* | irix6*) |
| 17677 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17678 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17679 | # SGI C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17680 | 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] | 17681 | |
| 17682 | # Archives containing C++ object files must be created using |
| 17683 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 17684 | # necessary to make sure instantiated templates are included |
| 17685 | # in the archive. |
| 17686 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 17687 | ;; |
| 17688 | *) |
| 17689 | if test "$GXX" = yes; then |
| 17690 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17691 | 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] | 17692 | else |
| 17693 | 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' |
| 17694 | fi |
| 17695 | fi |
| 17696 | link_all_deplibs_CXX=yes |
| 17697 | ;; |
| 17698 | esac |
| 17699 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17700 | hardcode_libdir_separator_CXX=: |
| 17701 | ;; |
| 17702 | linux*) |
| 17703 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17704 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17705 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17706 | |
| 17707 | # KCC will only create a shared library if the output file |
| 17708 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17709 | # to its proper name (with version) after linking. |
| 17710 | 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' |
| 17711 | 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' |
| 17712 | # Commands to make compiler produce verbose output that lists |
| 17713 | # what "hidden" libraries, object files and flags are used when |
| 17714 | # linking a shared library. |
| 17715 | # |
| 17716 | # There doesn't appear to be a way to prevent this compiler from |
| 17717 | # explicitly linking system object files so we need to strip them |
| 17718 | # from the output so that they don't get included in the library |
| 17719 | # dependencies. |
| 17720 | 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' |
| 17721 | |
| 17722 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 17723 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17724 | |
| 17725 | # Archives containing C++ object files must be created using |
| 17726 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 17727 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 17728 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17729 | icpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17730 | # Intel C++ |
| 17731 | with_gnu_ld=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17732 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 17733 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 17734 | # earlier do not add the objects themselves. |
| 17735 | case `$CC -V 2>&1` in |
| 17736 | *"Version 7."*) |
| 17737 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17738 | 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' |
| 17739 | ;; |
| 17740 | *) # Version 8.0 or newer |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17741 | tmp_idyn= |
| 17742 | case $host_cpu in |
| 17743 | ia64*) tmp_idyn=' -i_dynamic';; |
| 17744 | esac |
| 17745 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17746 | 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] | 17747 | ;; |
| 17748 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17749 | archive_cmds_need_lc_CXX=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17750 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17751 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17752 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 17753 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17754 | pgCC*) |
| 17755 | # Portland Group C++ compiler |
| 17756 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 17757 | 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' |
| 17758 | |
| 17759 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17760 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17761 | 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' |
| 17762 | ;; |
| 17763 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17764 | # Compaq C++ |
| 17765 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17766 | 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' |
| 17767 | |
| 17768 | runpath_var=LD_RUN_PATH |
| 17769 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17770 | hardcode_libdir_separator_CXX=: |
| 17771 | |
| 17772 | # Commands to make compiler produce verbose output that lists |
| 17773 | # what "hidden" libraries, object files and flags are used when |
| 17774 | # linking a shared library. |
| 17775 | # |
| 17776 | # There doesn't appear to be a way to prevent this compiler from |
| 17777 | # explicitly linking system object files so we need to strip them |
| 17778 | # from the output so that they don't get included in the library |
| 17779 | # dependencies. |
| 17780 | 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' |
| 17781 | ;; |
| 17782 | esac |
| 17783 | ;; |
| 17784 | lynxos*) |
| 17785 | # FIXME: insert proper C++ library support |
| 17786 | ld_shlibs_CXX=no |
| 17787 | ;; |
| 17788 | m88k*) |
| 17789 | # FIXME: insert proper C++ library support |
| 17790 | ld_shlibs_CXX=no |
| 17791 | ;; |
| 17792 | mvs*) |
| 17793 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17794 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17795 | # FIXME: insert proper C++ library support |
| 17796 | ld_shlibs_CXX=no |
| 17797 | ;; |
| 17798 | *) |
| 17799 | # FIXME: insert proper C++ library support |
| 17800 | ld_shlibs_CXX=no |
| 17801 | ;; |
| 17802 | esac |
| 17803 | ;; |
| 17804 | netbsd*) |
| 17805 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17806 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 17807 | wlarc= |
| 17808 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17809 | hardcode_direct_CXX=yes |
| 17810 | hardcode_shlibpath_var_CXX=no |
| 17811 | fi |
| 17812 | # Workaround some broken pre-1.5 toolchains |
| 17813 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 17814 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 17815 | openbsd2*) |
| 17816 | # C++ shared libraries are fairly broken |
| 17817 | ld_shlibs_CXX=no |
| 17818 | ;; |
| 17819 | openbsd*) |
| 17820 | hardcode_direct_CXX=yes |
| 17821 | hardcode_shlibpath_var_CXX=no |
| 17822 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17823 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17824 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17825 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 17826 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17827 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17828 | fi |
| 17829 | output_verbose_link_cmd='echo' |
| 17830 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17831 | osf3*) |
| 17832 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17833 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17834 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17835 | |
| 17836 | # KCC will only create a shared library if the output file |
| 17837 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17838 | # to its proper name (with version) after linking. |
| 17839 | 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' |
| 17840 | |
| 17841 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17842 | hardcode_libdir_separator_CXX=: |
| 17843 | |
| 17844 | # Archives containing C++ object files must be created using |
| 17845 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 17846 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 17847 | |
| 17848 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17849 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17850 | # Rational C++ 2.4.1 |
| 17851 | # FIXME: insert proper C++ library support |
| 17852 | ld_shlibs_CXX=no |
| 17853 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17854 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17855 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17856 | 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] | 17857 | |
| 17858 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17859 | hardcode_libdir_separator_CXX=: |
| 17860 | |
| 17861 | # Commands to make compiler produce verbose output that lists |
| 17862 | # what "hidden" libraries, object files and flags are used when |
| 17863 | # linking a shared library. |
| 17864 | # |
| 17865 | # There doesn't appear to be a way to prevent this compiler from |
| 17866 | # explicitly linking system object files so we need to strip them |
| 17867 | # from the output so that they don't get included in the library |
| 17868 | # dependencies. |
| 17869 | 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' |
| 17870 | ;; |
| 17871 | *) |
| 17872 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 17873 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17874 | 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] | 17875 | |
| 17876 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17877 | hardcode_libdir_separator_CXX=: |
| 17878 | |
| 17879 | # Commands to make compiler produce verbose output that lists |
| 17880 | # what "hidden" libraries, object files and flags are used when |
| 17881 | # linking a shared library. |
| 17882 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 17883 | |
| 17884 | else |
| 17885 | # FIXME: insert proper C++ library support |
| 17886 | ld_shlibs_CXX=no |
| 17887 | fi |
| 17888 | ;; |
| 17889 | esac |
| 17890 | ;; |
| 17891 | osf4* | osf5*) |
| 17892 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17893 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17894 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17895 | |
| 17896 | # KCC will only create a shared library if the output file |
| 17897 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17898 | # to its proper name (with version) after linking. |
| 17899 | 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' |
| 17900 | |
| 17901 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17902 | hardcode_libdir_separator_CXX=: |
| 17903 | |
| 17904 | # Archives containing C++ object files must be created using |
| 17905 | # the KAI C++ compiler. |
| 17906 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 17907 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17908 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17909 | # Rational C++ 2.4.1 |
| 17910 | # FIXME: insert proper C++ library support |
| 17911 | ld_shlibs_CXX=no |
| 17912 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17913 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17914 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17915 | 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] | 17916 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 17917 | echo "-hidden">> $lib.exp~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17918 | $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] | 17919 | $rm $lib.exp' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17920 | |
| 17921 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17922 | hardcode_libdir_separator_CXX=: |
| 17923 | |
| 17924 | # Commands to make compiler produce verbose output that lists |
| 17925 | # what "hidden" libraries, object files and flags are used when |
| 17926 | # linking a shared library. |
| 17927 | # |
| 17928 | # There doesn't appear to be a way to prevent this compiler from |
| 17929 | # explicitly linking system object files so we need to strip them |
| 17930 | # from the output so that they don't get included in the library |
| 17931 | # dependencies. |
| 17932 | 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' |
| 17933 | ;; |
| 17934 | *) |
| 17935 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 17936 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17937 | 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] | 17938 | |
| 17939 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17940 | hardcode_libdir_separator_CXX=: |
| 17941 | |
| 17942 | # Commands to make compiler produce verbose output that lists |
| 17943 | # what "hidden" libraries, object files and flags are used when |
| 17944 | # linking a shared library. |
| 17945 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 17946 | |
| 17947 | else |
| 17948 | # FIXME: insert proper C++ library support |
| 17949 | ld_shlibs_CXX=no |
| 17950 | fi |
| 17951 | ;; |
| 17952 | esac |
| 17953 | ;; |
| 17954 | psos*) |
| 17955 | # FIXME: insert proper C++ library support |
| 17956 | ld_shlibs_CXX=no |
| 17957 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17958 | sunos4*) |
| 17959 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17960 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17961 | # Sun C++ 4.x |
| 17962 | # FIXME: insert proper C++ library support |
| 17963 | ld_shlibs_CXX=no |
| 17964 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17965 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17966 | # Lucid |
| 17967 | # FIXME: insert proper C++ library support |
| 17968 | ld_shlibs_CXX=no |
| 17969 | ;; |
| 17970 | *) |
| 17971 | # FIXME: insert proper C++ library support |
| 17972 | ld_shlibs_CXX=no |
| 17973 | ;; |
| 17974 | esac |
| 17975 | ;; |
| 17976 | solaris*) |
| 17977 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17978 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17979 | # Sun C++ 4.2, 5.x and Centerline C++ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17980 | archive_cmds_need_lc_CXX=yes |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17981 | no_undefined_flag_CXX=' -zdefs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17982 | 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] | 17983 | 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] | 17984 | $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] | 17985 | |
| 17986 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17987 | hardcode_shlibpath_var_CXX=no |
| 17988 | case $host_os in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17989 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17990 | *) |
| 17991 | # The C++ compiler is used as linker so we must use $wl |
| 17992 | # flag to pass the commands to the underlying system |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17993 | # linker. We must also pass each convience library through |
| 17994 | # to the system linker between allextract/defaultextract. |
| 17995 | # The C++ compiler will combine linker options so we |
| 17996 | # cannot just pass the convience library names through |
| 17997 | # without $wl. |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 17998 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 17999 | 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] | 18000 | ;; |
| 18001 | esac |
| 18002 | link_all_deplibs_CXX=yes |
| 18003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18004 | output_verbose_link_cmd='echo' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18005 | |
| 18006 | # Archives containing C++ object files must be created using |
| 18007 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18008 | # necessary to make sure instantiated templates are included |
| 18009 | # in the archive. |
| 18010 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18011 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18012 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18013 | # Green Hills C++ Compiler |
| 18014 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18015 | |
| 18016 | # The C++ compiler must be used to create the archive. |
| 18017 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18018 | ;; |
| 18019 | *) |
| 18020 | # GNU C++ compiler with Solaris linker |
| 18021 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18022 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18023 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18024 | 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] | 18025 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18026 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 18027 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18028 | # Commands to make compiler produce verbose output that lists |
| 18029 | # what "hidden" libraries, object files and flags are used when |
| 18030 | # linking a shared library. |
Reid Spencer | 9751dbf | 2004-09-07 18:04:45 +0000 | [diff] [blame] | 18031 | 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] | 18032 | else |
| 18033 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18034 | # platform. |
| 18035 | 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] | 18036 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 18037 | $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] | 18038 | |
| 18039 | # Commands to make compiler produce verbose output that lists |
| 18040 | # what "hidden" libraries, object files and flags are used when |
| 18041 | # linking a shared library. |
| 18042 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 18043 | fi |
| 18044 | |
| 18045 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18046 | fi |
| 18047 | ;; |
| 18048 | esac |
| 18049 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18050 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 18051 | no_undefined_flag_CXX='${wl}-z,text' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18052 | archive_cmds_need_lc_CXX=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18053 | hardcode_shlibpath_var_CXX=no |
| 18054 | runpath_var='LD_RUN_PATH' |
| 18055 | |
| 18056 | case $cc_basename in |
| 18057 | CC*) |
| 18058 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18059 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18060 | ;; |
| 18061 | *) |
| 18062 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18063 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18064 | ;; |
| 18065 | esac |
| 18066 | ;; |
| 18067 | sysv5* | sco3.2v5* | sco5v6*) |
| 18068 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 18069 | # link with -lc, and that would cause any symbols used from libc to |
| 18070 | # always be unresolved, which means just about no library would |
| 18071 | # ever link correctly. If we're not using GNU ld we use -z text |
| 18072 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18073 | # as -z defs. |
| 18074 | # For security reasons, it is highly recommended that you always |
| 18075 | # use absolute paths for naming shared libraries, and exclude the |
| 18076 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 18077 | # requires that you compile everything twice, which is a pain. |
| 18078 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 18079 | # non-empty value in the environment. Most likely only useful for |
| 18080 | # creating official distributions of packages. |
| 18081 | # This is a hack until libtool officially supports absolute path |
| 18082 | # names for shared libraries. |
| 18083 | no_undefined_flag_CXX='${wl}-z,text' |
| 18084 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18085 | archive_cmds_need_lc_CXX=no |
| 18086 | hardcode_shlibpath_var_CXX=no |
| 18087 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18088 | hardcode_libdir_separator_CXX=':' |
| 18089 | link_all_deplibs_CXX=yes |
| 18090 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18091 | runpath_var='LD_RUN_PATH' |
| 18092 | |
| 18093 | case $cc_basename in |
| 18094 | CC*) |
| 18095 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18096 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18097 | ;; |
| 18098 | *) |
| 18099 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18100 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18101 | ;; |
| 18102 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18103 | ;; |
| 18104 | tandem*) |
| 18105 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18106 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18107 | # NonStop-UX NCC 3.20 |
| 18108 | # FIXME: insert proper C++ library support |
| 18109 | ld_shlibs_CXX=no |
| 18110 | ;; |
| 18111 | *) |
| 18112 | # FIXME: insert proper C++ library support |
| 18113 | ld_shlibs_CXX=no |
| 18114 | ;; |
| 18115 | esac |
| 18116 | ;; |
| 18117 | vxworks*) |
| 18118 | # FIXME: insert proper C++ library support |
| 18119 | ld_shlibs_CXX=no |
| 18120 | ;; |
| 18121 | *) |
| 18122 | # FIXME: insert proper C++ library support |
| 18123 | ld_shlibs_CXX=no |
| 18124 | ;; |
| 18125 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18126 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 18127 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18128 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18129 | |
| 18130 | GCC_CXX="$GXX" |
| 18131 | LD_CXX="$LD" |
| 18132 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18133 | |
| 18134 | cat > conftest.$ac_ext <<EOF |
| 18135 | class Foo |
| 18136 | { |
| 18137 | public: |
| 18138 | Foo (void) { a = 0; } |
| 18139 | private: |
| 18140 | int a; |
| 18141 | }; |
| 18142 | EOF |
| 18143 | |
| 18144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18145 | (eval $ac_compile) 2>&5 |
| 18146 | ac_status=$? |
| 18147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18148 | (exit $ac_status); }; then |
| 18149 | # Parse the compiler output and extract the necessary |
| 18150 | # objects, libraries and library flags. |
| 18151 | |
| 18152 | # Sentinel used to keep track of whether or not we are before |
| 18153 | # the conftest object file. |
| 18154 | pre_test_object_deps_done=no |
| 18155 | |
| 18156 | # The `*' in the case matches for architectures that use `case' in |
| 18157 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 18158 | # eval without this substitution. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18159 | 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] | 18160 | |
| 18161 | for p in `eval $output_verbose_link_cmd`; do |
| 18162 | case $p in |
| 18163 | |
| 18164 | -L* | -R* | -l*) |
| 18165 | # Some compilers place space between "-{L,R}" and the path. |
| 18166 | # Remove the space. |
| 18167 | if test $p = "-L" \ |
| 18168 | || test $p = "-R"; then |
| 18169 | prev=$p |
| 18170 | continue |
| 18171 | else |
| 18172 | prev= |
| 18173 | fi |
| 18174 | |
| 18175 | if test "$pre_test_object_deps_done" = no; then |
| 18176 | case $p in |
| 18177 | -L* | -R*) |
| 18178 | # Internal compiler library paths should come after those |
| 18179 | # provided the user. The postdeps already come after the |
| 18180 | # user supplied libs so there is no need to process them. |
| 18181 | if test -z "$compiler_lib_search_path_CXX"; then |
| 18182 | compiler_lib_search_path_CXX="${prev}${p}" |
| 18183 | else |
| 18184 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 18185 | fi |
| 18186 | ;; |
| 18187 | # The "-l" case would never come before the object being |
| 18188 | # linked, so don't bother handling this case. |
| 18189 | esac |
| 18190 | else |
| 18191 | if test -z "$postdeps_CXX"; then |
| 18192 | postdeps_CXX="${prev}${p}" |
| 18193 | else |
| 18194 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 18195 | fi |
| 18196 | fi |
| 18197 | ;; |
| 18198 | |
| 18199 | *.$objext) |
| 18200 | # This assumes that the test object file only shows up |
| 18201 | # once in the compiler output. |
| 18202 | if test "$p" = "conftest.$objext"; then |
| 18203 | pre_test_object_deps_done=yes |
| 18204 | continue |
| 18205 | fi |
| 18206 | |
| 18207 | if test "$pre_test_object_deps_done" = no; then |
| 18208 | if test -z "$predep_objects_CXX"; then |
| 18209 | predep_objects_CXX="$p" |
| 18210 | else |
| 18211 | predep_objects_CXX="$predep_objects_CXX $p" |
| 18212 | fi |
| 18213 | else |
| 18214 | if test -z "$postdep_objects_CXX"; then |
| 18215 | postdep_objects_CXX="$p" |
| 18216 | else |
| 18217 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 18218 | fi |
| 18219 | fi |
| 18220 | ;; |
| 18221 | |
| 18222 | *) ;; # Ignore the rest. |
| 18223 | |
| 18224 | esac |
| 18225 | done |
| 18226 | |
| 18227 | # Clean up. |
| 18228 | rm -f a.out a.exe |
| 18229 | else |
| 18230 | echo "libtool.m4: error: problem compiling CXX test program" |
| 18231 | fi |
| 18232 | |
| 18233 | $rm -f confest.$objext |
| 18234 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18235 | # PORTME: override above test on systems where it is broken |
| 18236 | case $host_os in |
| 18237 | interix3*) |
| 18238 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 18239 | # hack all around it, let's just trust "g++" to DTRT. |
| 18240 | predep_objects_CXX= |
| 18241 | postdep_objects_CXX= |
| 18242 | postdeps_CXX= |
| 18243 | ;; |
| 18244 | |
| 18245 | solaris*) |
| 18246 | case $cc_basename in |
| 18247 | CC*) |
| 18248 | # Adding this requires a known-good setup of shared libraries for |
| 18249 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 18250 | # archive will be linked into the output, leading to subtle bugs. |
| 18251 | postdeps_CXX='-lCstd -lCrun' |
| 18252 | ;; |
| 18253 | esac |
| 18254 | ;; |
| 18255 | esac |
| 18256 | |
| 18257 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18258 | case " $postdeps_CXX " in |
| 18259 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 18260 | esac |
| 18261 | |
| 18262 | lt_prog_compiler_wl_CXX= |
| 18263 | lt_prog_compiler_pic_CXX= |
| 18264 | lt_prog_compiler_static_CXX= |
| 18265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18266 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 18267 | 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] | 18268 | |
| 18269 | # C++ specific cases for pic, static, wl, etc. |
| 18270 | if test "$GXX" = yes; then |
| 18271 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18272 | lt_prog_compiler_static_CXX='-static' |
| 18273 | |
| 18274 | case $host_os in |
| 18275 | aix*) |
| 18276 | # All AIX code is PIC. |
| 18277 | if test "$host_cpu" = ia64; then |
| 18278 | # AIX 5 now supports IA64 processor |
| 18279 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18280 | fi |
| 18281 | ;; |
| 18282 | amigaos*) |
| 18283 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18284 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18285 | # like `-m68040'. |
| 18286 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 18287 | ;; |
| 18288 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18289 | # PIC is the default for these OSes. |
| 18290 | ;; |
| 18291 | mingw* | os2* | pw32*) |
| 18292 | # This hack is so that the source file can tell whether it is being |
| 18293 | # built for inclusion in a dll (and should export symbols for example). |
| 18294 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18295 | ;; |
| 18296 | darwin* | rhapsody*) |
| 18297 | # PIC is the default on this platform |
| 18298 | # Common symbols not allowed in MH_DYLIB files |
| 18299 | lt_prog_compiler_pic_CXX='-fno-common' |
| 18300 | ;; |
| 18301 | *djgpp*) |
| 18302 | # DJGPP does not support shared libraries at all |
| 18303 | lt_prog_compiler_pic_CXX= |
| 18304 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18305 | interix3*) |
| 18306 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 18307 | # Instead, we relocate shared libraries at runtime. |
| 18308 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18309 | sysv4*MP*) |
| 18310 | if test -d /usr/nec; then |
| 18311 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 18312 | fi |
| 18313 | ;; |
| 18314 | hpux*) |
| 18315 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 18316 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18317 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18318 | hppa*64*|ia64*) |
| 18319 | ;; |
| 18320 | *) |
| 18321 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18322 | ;; |
| 18323 | esac |
| 18324 | ;; |
| 18325 | *) |
| 18326 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18327 | ;; |
| 18328 | esac |
| 18329 | else |
| 18330 | case $host_os in |
| 18331 | aix4* | aix5*) |
| 18332 | # All AIX code is PIC. |
| 18333 | if test "$host_cpu" = ia64; then |
| 18334 | # AIX 5 now supports IA64 processor |
| 18335 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18336 | else |
| 18337 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 18338 | fi |
| 18339 | ;; |
| 18340 | chorus*) |
| 18341 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18342 | cxch68*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18343 | # Green Hills C++ Compiler |
| 18344 | # _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" |
| 18345 | ;; |
| 18346 | esac |
| 18347 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18348 | darwin*) |
| 18349 | # PIC is the default on this platform |
| 18350 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18351 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18352 | xlc*) |
| 18353 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 18354 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18355 | ;; |
| 18356 | esac |
| 18357 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18358 | dgux*) |
| 18359 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18360 | ec++*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18361 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18362 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18363 | ghcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18364 | # Green Hills C++ Compiler |
| 18365 | lt_prog_compiler_pic_CXX='-pic' |
| 18366 | ;; |
| 18367 | *) |
| 18368 | ;; |
| 18369 | esac |
| 18370 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18371 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18372 | # FreeBSD uses GNU C++ |
| 18373 | ;; |
| 18374 | hpux9* | hpux10* | hpux11*) |
| 18375 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18376 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18377 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18378 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18379 | if test "$host_cpu" != ia64; then |
| 18380 | lt_prog_compiler_pic_CXX='+Z' |
| 18381 | fi |
| 18382 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18383 | aCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18384 | lt_prog_compiler_wl_CXX='-Wl,' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18385 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 18386 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18387 | hppa*64*|ia64*) |
| 18388 | # +Z the default |
| 18389 | ;; |
| 18390 | *) |
| 18391 | lt_prog_compiler_pic_CXX='+Z' |
| 18392 | ;; |
| 18393 | esac |
| 18394 | ;; |
| 18395 | *) |
| 18396 | ;; |
| 18397 | esac |
| 18398 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18399 | interix*) |
| 18400 | # This is c89, which is MS Visual C++ (no shared libs) |
| 18401 | # Anyone wants to do a port? |
| 18402 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18403 | irix5* | irix6* | nonstopux*) |
| 18404 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18405 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18406 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18407 | lt_prog_compiler_static_CXX='-non_shared' |
| 18408 | # CC pic flag -KPIC is the default. |
| 18409 | ;; |
| 18410 | *) |
| 18411 | ;; |
| 18412 | esac |
| 18413 | ;; |
| 18414 | linux*) |
| 18415 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18416 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18417 | # KAI C++ Compiler |
| 18418 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18419 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18420 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18421 | icpc* | ecpc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18422 | # Intel C++ |
| 18423 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18424 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18425 | lt_prog_compiler_static_CXX='-static' |
| 18426 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18427 | pgCC*) |
| 18428 | # Portland Group C++ compiler. |
| 18429 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18430 | lt_prog_compiler_pic_CXX='-fpic' |
| 18431 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18432 | ;; |
| 18433 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18434 | # Compaq C++ |
| 18435 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18436 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18437 | lt_prog_compiler_pic_CXX= |
| 18438 | lt_prog_compiler_static_CXX='-non_shared' |
| 18439 | ;; |
| 18440 | *) |
| 18441 | ;; |
| 18442 | esac |
| 18443 | ;; |
| 18444 | lynxos*) |
| 18445 | ;; |
| 18446 | m88k*) |
| 18447 | ;; |
| 18448 | mvs*) |
| 18449 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18450 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18451 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 18452 | ;; |
| 18453 | *) |
| 18454 | ;; |
| 18455 | esac |
| 18456 | ;; |
| 18457 | netbsd*) |
| 18458 | ;; |
| 18459 | osf3* | osf4* | osf5*) |
| 18460 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18461 | KCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18462 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18463 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18464 | RCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18465 | # Rational C++ 2.4.1 |
| 18466 | lt_prog_compiler_pic_CXX='-pic' |
| 18467 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18468 | cxx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18469 | # Digital/Compaq C++ |
| 18470 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18471 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18472 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18473 | lt_prog_compiler_pic_CXX= |
| 18474 | lt_prog_compiler_static_CXX='-non_shared' |
| 18475 | ;; |
| 18476 | *) |
| 18477 | ;; |
| 18478 | esac |
| 18479 | ;; |
| 18480 | psos*) |
| 18481 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18482 | solaris*) |
| 18483 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18484 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18485 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18486 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18487 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18488 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18489 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18490 | gcx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18491 | # Green Hills C++ Compiler |
| 18492 | lt_prog_compiler_pic_CXX='-PIC' |
| 18493 | ;; |
| 18494 | *) |
| 18495 | ;; |
| 18496 | esac |
| 18497 | ;; |
| 18498 | sunos4*) |
| 18499 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18500 | CC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18501 | # Sun C++ 4.x |
| 18502 | lt_prog_compiler_pic_CXX='-pic' |
| 18503 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18504 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18505 | lcc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18506 | # Lucid |
| 18507 | lt_prog_compiler_pic_CXX='-pic' |
| 18508 | ;; |
| 18509 | *) |
| 18510 | ;; |
| 18511 | esac |
| 18512 | ;; |
| 18513 | tandem*) |
| 18514 | case $cc_basename in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18515 | NCC*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18516 | # NonStop-UX NCC 3.20 |
| 18517 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18518 | ;; |
| 18519 | *) |
| 18520 | ;; |
| 18521 | esac |
| 18522 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18523 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 18524 | case $cc_basename in |
| 18525 | CC*) |
| 18526 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18527 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18528 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18529 | ;; |
| 18530 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18531 | ;; |
| 18532 | vxworks*) |
| 18533 | ;; |
| 18534 | *) |
| 18535 | lt_prog_compiler_can_build_shared_CXX=no |
| 18536 | ;; |
| 18537 | esac |
| 18538 | fi |
| 18539 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18540 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 18541 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18542 | |
| 18543 | # |
| 18544 | # Check to make sure the PIC flag actually works. |
| 18545 | # |
| 18546 | if test -n "$lt_prog_compiler_pic_CXX"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18547 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18548 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 18549 | 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] | 18550 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 18551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18552 | else |
| 18553 | lt_prog_compiler_pic_works_CXX=no |
| 18554 | ac_outfile=conftest.$ac_objext |
| 18555 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18556 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 18557 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18558 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18559 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18560 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18561 | # The option is referenced via a variable to avoid confusing sed. |
| 18562 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18563 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18564 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18565 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 18566 | (eval echo "\"\$as_me:18565: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18567 | (eval "$lt_compile" 2>conftest.err) |
| 18568 | ac_status=$? |
| 18569 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 18570 | echo "$as_me:18569: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18571 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18572 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18573 | # So say no if there are warnings other than the usual output. |
| 18574 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 18575 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18576 | 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] | 18577 | lt_prog_compiler_pic_works_CXX=yes |
| 18578 | fi |
| 18579 | fi |
| 18580 | $rm conftest* |
| 18581 | |
| 18582 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18583 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 18584 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18585 | |
| 18586 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 18587 | case $lt_prog_compiler_pic_CXX in |
| 18588 | "" | " "*) ;; |
| 18589 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 18590 | esac |
| 18591 | else |
| 18592 | lt_prog_compiler_pic_CXX= |
| 18593 | lt_prog_compiler_can_build_shared_CXX=no |
| 18594 | fi |
| 18595 | |
| 18596 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18597 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18598 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 18599 | *djgpp*) |
| 18600 | lt_prog_compiler_pic_CXX= |
| 18601 | ;; |
| 18602 | *) |
| 18603 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 18604 | ;; |
| 18605 | esac |
| 18606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18607 | # |
| 18608 | # Check to make sure the static flag actually works. |
| 18609 | # |
| 18610 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 18611 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 18612 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 18613 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 18614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18615 | else |
| 18616 | lt_prog_compiler_static_works_CXX=no |
| 18617 | save_LDFLAGS="$LDFLAGS" |
| 18618 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 18619 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 18620 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 18621 | # The linker can only warn and ignore the option if not recognized |
| 18622 | # So say no if there are warnings |
| 18623 | if test -s conftest.err; then |
| 18624 | # Append any errors to the config.log. |
| 18625 | cat conftest.err 1>&5 |
| 18626 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 18627 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18628 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 18629 | lt_prog_compiler_static_works_CXX=yes |
| 18630 | fi |
| 18631 | else |
| 18632 | lt_prog_compiler_static_works_CXX=yes |
| 18633 | fi |
| 18634 | fi |
| 18635 | $rm conftest* |
| 18636 | LDFLAGS="$save_LDFLAGS" |
| 18637 | |
| 18638 | fi |
| 18639 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 18640 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 18641 | |
| 18642 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 18643 | : |
| 18644 | else |
| 18645 | lt_prog_compiler_static_CXX= |
| 18646 | fi |
| 18647 | |
| 18648 | |
| 18649 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18650 | 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] | 18651 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 18652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18653 | else |
| 18654 | lt_cv_prog_compiler_c_o_CXX=no |
| 18655 | $rm -r conftest 2>/dev/null |
| 18656 | mkdir conftest |
| 18657 | cd conftest |
| 18658 | mkdir out |
| 18659 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18660 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18661 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18662 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18663 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18664 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18665 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18666 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18667 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18668 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18669 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 18670 | (eval echo "\"\$as_me:18669: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18671 | (eval "$lt_compile" 2>out/conftest.err) |
| 18672 | ac_status=$? |
| 18673 | cat out/conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 18674 | echo "$as_me:18673: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18675 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18676 | then |
| 18677 | # The compiler can only warn and ignore the option if not recognized |
| 18678 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18679 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 18680 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18681 | 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] | 18682 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18683 | fi |
| 18684 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18685 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18686 | $rm conftest* |
| 18687 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18688 | # template instantiation |
| 18689 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 18690 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18691 | cd .. |
| 18692 | rmdir conftest |
| 18693 | $rm conftest* |
| 18694 | |
| 18695 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18696 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18697 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18698 | |
| 18699 | |
| 18700 | hard_links="nottested" |
| 18701 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 18702 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18703 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 18704 | 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] | 18705 | hard_links=yes |
| 18706 | $rm conftest* |
| 18707 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18708 | touch conftest.a |
| 18709 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18710 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18711 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 18712 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18713 | if test "$hard_links" = no; then |
| 18714 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 18715 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 18716 | need_locks=warn |
| 18717 | fi |
| 18718 | else |
| 18719 | need_locks=no |
| 18720 | fi |
| 18721 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18722 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18723 | 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] | 18724 | |
| 18725 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 18726 | case $host_os in |
| 18727 | aix4* | aix5*) |
| 18728 | # If we're using GNU nm, then we don't want the "-C" option. |
| 18729 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 18730 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 18731 | 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' |
| 18732 | else |
| 18733 | 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' |
| 18734 | fi |
| 18735 | ;; |
| 18736 | pw32*) |
| 18737 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 18738 | ;; |
| 18739 | cygwin* | mingw*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18740 | 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] | 18741 | ;; |
| 18742 | *) |
| 18743 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 18744 | ;; |
| 18745 | esac |
| 18746 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18747 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 18748 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18749 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18750 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18751 | # |
| 18752 | # Do we need to explicitly link libc? |
| 18753 | # |
| 18754 | case "x$archive_cmds_need_lc_CXX" in |
| 18755 | x|xyes) |
| 18756 | # Assume -lc should be added |
| 18757 | archive_cmds_need_lc_CXX=yes |
| 18758 | |
| 18759 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18760 | case $archive_cmds_CXX in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18761 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18762 | # FIXME: we may have to deal with multi-command sequences. |
| 18763 | ;; |
| 18764 | '$CC '*) |
| 18765 | # Test whether the compiler implicitly links with -lc since on some |
| 18766 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18767 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18768 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18769 | 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] | 18770 | $rm conftest* |
| 18771 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18772 | |
| 18773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18774 | (eval $ac_compile) 2>&5 |
| 18775 | ac_status=$? |
| 18776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18777 | (exit $ac_status); } 2>conftest.err; then |
| 18778 | soname=conftest |
| 18779 | lib=conftest |
| 18780 | libobjs=conftest.$ac_objext |
| 18781 | deplibs= |
| 18782 | wl=$lt_prog_compiler_wl_CXX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18783 | pic_flag=$lt_prog_compiler_pic_CXX |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18784 | compiler_flags=-v |
| 18785 | linker_flags=-v |
| 18786 | verstring= |
| 18787 | output_objdir=. |
| 18788 | libname=conftest |
| 18789 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 18790 | allow_undefined_flag_CXX= |
| 18791 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18792 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18793 | ac_status=$? |
| 18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18795 | (exit $ac_status); } |
| 18796 | then |
| 18797 | archive_cmds_need_lc_CXX=no |
| 18798 | else |
| 18799 | archive_cmds_need_lc_CXX=yes |
| 18800 | fi |
| 18801 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 18802 | else |
| 18803 | cat conftest.err 1>&5 |
| 18804 | fi |
| 18805 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18806 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 18807 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18808 | ;; |
| 18809 | esac |
| 18810 | fi |
| 18811 | ;; |
| 18812 | esac |
| 18813 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18814 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18815 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18816 | library_names_spec= |
| 18817 | libname_spec='lib$name' |
| 18818 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18819 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18820 | postinstall_cmds= |
| 18821 | postuninstall_cmds= |
| 18822 | finish_cmds= |
| 18823 | finish_eval= |
| 18824 | shlibpath_var= |
| 18825 | shlibpath_overrides_runpath=unknown |
| 18826 | version_type=none |
| 18827 | dynamic_linker="$host_os ld.so" |
| 18828 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18829 | if test "$GCC" = yes; then |
| 18830 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18831 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18832 | # if the path contains ";" then we assume it to be the separator |
| 18833 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18834 | # assumed that no part of a normal pathname contains ";" but that should |
| 18835 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18836 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18837 | else |
| 18838 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18839 | fi |
| 18840 | else |
| 18841 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18842 | fi |
| 18843 | need_lib_prefix=unknown |
| 18844 | hardcode_into_libs=no |
| 18845 | |
| 18846 | # when you set need_version to no, make sure it does not cause -set_version |
| 18847 | # flags to be left without arguments |
| 18848 | need_version=unknown |
| 18849 | |
| 18850 | case $host_os in |
| 18851 | aix3*) |
| 18852 | version_type=linux |
| 18853 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18854 | shlibpath_var=LIBPATH |
| 18855 | |
| 18856 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18857 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18858 | ;; |
| 18859 | |
| 18860 | aix4* | aix5*) |
| 18861 | version_type=linux |
| 18862 | need_lib_prefix=no |
| 18863 | need_version=no |
| 18864 | hardcode_into_libs=yes |
| 18865 | if test "$host_cpu" = ia64; then |
| 18866 | # AIX 5 supports IA64 |
| 18867 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18868 | shlibpath_var=LD_LIBRARY_PATH |
| 18869 | else |
| 18870 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18871 | # for dependence libraries. The import file would start with |
| 18872 | # the line `#! .'. This would cause the generated library to |
| 18873 | # depend on `.', always an invalid library. This was fixed in |
| 18874 | # development snapshots of GCC prior to 3.0. |
| 18875 | case $host_os in |
| 18876 | aix4 | aix4.[01] | aix4.[01].*) |
| 18877 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18878 | echo ' yes ' |
| 18879 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18880 | : |
| 18881 | else |
| 18882 | can_build_shared=no |
| 18883 | fi |
| 18884 | ;; |
| 18885 | esac |
| 18886 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18887 | # soname into executable. Probably we can add versioning support to |
| 18888 | # collect2, so additional links can be useful in future. |
| 18889 | if test "$aix_use_runtimelinking" = yes; then |
| 18890 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18891 | # instead of lib<name>.a to let people know that these are not |
| 18892 | # typical AIX shared libraries. |
| 18893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18894 | else |
| 18895 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18896 | # and later when we are not doing run time linking. |
| 18897 | library_names_spec='${libname}${release}.a $libname.a' |
| 18898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18899 | fi |
| 18900 | shlibpath_var=LIBPATH |
| 18901 | fi |
| 18902 | ;; |
| 18903 | |
| 18904 | amigaos*) |
| 18905 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18906 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18907 | 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] | 18908 | ;; |
| 18909 | |
| 18910 | beos*) |
| 18911 | library_names_spec='${libname}${shared_ext}' |
| 18912 | dynamic_linker="$host_os ld.so" |
| 18913 | shlibpath_var=LIBRARY_PATH |
| 18914 | ;; |
| 18915 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18916 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18917 | version_type=linux |
| 18918 | need_version=no |
| 18919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18920 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18921 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18922 | shlibpath_var=LD_LIBRARY_PATH |
| 18923 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18924 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18925 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18926 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18927 | # libtool to hard-code these into programs |
| 18928 | ;; |
| 18929 | |
| 18930 | cygwin* | mingw* | pw32*) |
| 18931 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18932 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18933 | need_version=no |
| 18934 | need_lib_prefix=no |
| 18935 | |
| 18936 | case $GCC,$host_os in |
| 18937 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18938 | library_names_spec='$libname.dll.a' |
| 18939 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18940 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18941 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18942 | dldir=$destdir/`dirname \$dlpath`~ |
| 18943 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18944 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18945 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 18946 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18947 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18948 | $rm \$dlpath' |
| 18949 | shlibpath_overrides_runpath=yes |
| 18950 | |
| 18951 | case $host_os in |
| 18952 | cygwin*) |
| 18953 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18954 | 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] | 18955 | 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] | 18956 | ;; |
| 18957 | mingw*) |
| 18958 | # MinGW DLLs use traditional 'lib' prefix |
| 18959 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18960 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18961 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18962 | # It is most probably a Windows format PATH printed by |
| 18963 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18964 | # path with ; separators, and with drive letters. We can handle the |
| 18965 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18966 | # especially as we might pass files found there to a mingw objdump, |
| 18967 | # which wouldn't understand a cygwinified path. Ahh. |
| 18968 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18969 | else |
| 18970 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18971 | fi |
| 18972 | ;; |
| 18973 | pw32*) |
| 18974 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 18975 | 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] | 18976 | ;; |
| 18977 | esac |
| 18978 | ;; |
| 18979 | |
| 18980 | *) |
| 18981 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18982 | ;; |
| 18983 | esac |
| 18984 | dynamic_linker='Win32 ld.exe' |
| 18985 | # FIXME: first we should search . and the directory the executable is in |
| 18986 | shlibpath_var=PATH |
| 18987 | ;; |
| 18988 | |
| 18989 | darwin* | rhapsody*) |
| 18990 | dynamic_linker="$host_os dyld" |
| 18991 | version_type=darwin |
| 18992 | need_lib_prefix=no |
| 18993 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 18994 | 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] | 18995 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18996 | shlibpath_overrides_runpath=yes |
| 18997 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 18998 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 18999 | # 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] | 19000 | if test "$GCC" = yes; then |
| 19001 | 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"` |
| 19002 | else |
| 19003 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19004 | fi |
| 19005 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19006 | ;; |
| 19007 | |
| 19008 | dgux*) |
| 19009 | version_type=linux |
| 19010 | need_lib_prefix=no |
| 19011 | need_version=no |
| 19012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19014 | shlibpath_var=LD_LIBRARY_PATH |
| 19015 | ;; |
| 19016 | |
| 19017 | freebsd1*) |
| 19018 | dynamic_linker=no |
| 19019 | ;; |
| 19020 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19021 | kfreebsd*-gnu) |
| 19022 | version_type=linux |
| 19023 | need_lib_prefix=no |
| 19024 | need_version=no |
| 19025 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19026 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19027 | shlibpath_var=LD_LIBRARY_PATH |
| 19028 | shlibpath_overrides_runpath=no |
| 19029 | hardcode_into_libs=yes |
| 19030 | dynamic_linker='GNU ld.so' |
| 19031 | ;; |
| 19032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19033 | freebsd* | dragonfly*) |
| 19034 | # DragonFly does not have aout. When/if they implement a new |
| 19035 | # versioning mechanism, adjust this. |
| 19036 | if test -x /usr/bin/objformat; then |
| 19037 | objformat=`/usr/bin/objformat` |
| 19038 | else |
| 19039 | case $host_os in |
| 19040 | freebsd[123]*) objformat=aout ;; |
| 19041 | *) objformat=elf ;; |
| 19042 | esac |
| 19043 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19044 | version_type=freebsd-$objformat |
| 19045 | case $version_type in |
| 19046 | freebsd-elf*) |
| 19047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19048 | need_version=no |
| 19049 | need_lib_prefix=no |
| 19050 | ;; |
| 19051 | freebsd-*) |
| 19052 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19053 | need_version=yes |
| 19054 | ;; |
| 19055 | esac |
| 19056 | shlibpath_var=LD_LIBRARY_PATH |
| 19057 | case $host_os in |
| 19058 | freebsd2*) |
| 19059 | shlibpath_overrides_runpath=yes |
| 19060 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19061 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19062 | shlibpath_overrides_runpath=yes |
| 19063 | hardcode_into_libs=yes |
| 19064 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19065 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19066 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19067 | shlibpath_overrides_runpath=no |
| 19068 | hardcode_into_libs=yes |
| 19069 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19070 | freebsd*) # from 4.6 on |
| 19071 | shlibpath_overrides_runpath=yes |
| 19072 | hardcode_into_libs=yes |
| 19073 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19074 | esac |
| 19075 | ;; |
| 19076 | |
| 19077 | gnu*) |
| 19078 | version_type=linux |
| 19079 | need_lib_prefix=no |
| 19080 | need_version=no |
| 19081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19083 | shlibpath_var=LD_LIBRARY_PATH |
| 19084 | hardcode_into_libs=yes |
| 19085 | ;; |
| 19086 | |
| 19087 | hpux9* | hpux10* | hpux11*) |
| 19088 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19089 | # link against other versions. |
| 19090 | version_type=sunos |
| 19091 | need_lib_prefix=no |
| 19092 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19093 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19094 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19095 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19096 | hardcode_into_libs=yes |
| 19097 | dynamic_linker="$host_os dld.so" |
| 19098 | shlibpath_var=LD_LIBRARY_PATH |
| 19099 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19102 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19103 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19104 | else |
| 19105 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19106 | fi |
| 19107 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19108 | ;; |
| 19109 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19110 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19111 | hardcode_into_libs=yes |
| 19112 | dynamic_linker="$host_os dld.sl" |
| 19113 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19114 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19117 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19118 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19119 | ;; |
| 19120 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19121 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19122 | dynamic_linker="$host_os dld.sl" |
| 19123 | shlibpath_var=SHLIB_PATH |
| 19124 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19126 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19127 | ;; |
| 19128 | esac |
| 19129 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 19130 | postinstall_cmds='chmod 555 $lib' |
| 19131 | ;; |
| 19132 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19133 | interix3*) |
| 19134 | version_type=linux |
| 19135 | need_lib_prefix=no |
| 19136 | need_version=no |
| 19137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19138 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19139 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19140 | shlibpath_var=LD_LIBRARY_PATH |
| 19141 | shlibpath_overrides_runpath=no |
| 19142 | hardcode_into_libs=yes |
| 19143 | ;; |
| 19144 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19145 | irix5* | irix6* | nonstopux*) |
| 19146 | case $host_os in |
| 19147 | nonstopux*) version_type=nonstopux ;; |
| 19148 | *) |
| 19149 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 19150 | version_type=linux |
| 19151 | else |
| 19152 | version_type=irix |
| 19153 | fi ;; |
| 19154 | esac |
| 19155 | need_lib_prefix=no |
| 19156 | need_version=no |
| 19157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19158 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19159 | case $host_os in |
| 19160 | irix5* | nonstopux*) |
| 19161 | libsuff= shlibsuff= |
| 19162 | ;; |
| 19163 | *) |
| 19164 | case $LD in # libtool.m4 will add one of these switches to LD |
| 19165 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19166 | libsuff= shlibsuff= libmagic=32-bit;; |
| 19167 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19168 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19169 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19170 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19171 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 19172 | esac |
| 19173 | ;; |
| 19174 | esac |
| 19175 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19176 | shlibpath_overrides_runpath=no |
| 19177 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 19178 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 19179 | hardcode_into_libs=yes |
| 19180 | ;; |
| 19181 | |
| 19182 | # No shared lib support for Linux oldld, aout, or coff. |
| 19183 | linux*oldld* | linux*aout* | linux*coff*) |
| 19184 | dynamic_linker=no |
| 19185 | ;; |
| 19186 | |
| 19187 | # This must be Linux ELF. |
| 19188 | linux*) |
| 19189 | version_type=linux |
| 19190 | need_lib_prefix=no |
| 19191 | need_version=no |
| 19192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19195 | shlibpath_var=LD_LIBRARY_PATH |
| 19196 | shlibpath_overrides_runpath=no |
| 19197 | # This implies no fast_install, which is unacceptable. |
| 19198 | # Some rework will be needed to allow for fast_install |
| 19199 | # before this can be enabled. |
| 19200 | hardcode_into_libs=yes |
| 19201 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19202 | # Append ld.so.conf contents to the search path |
| 19203 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19204 | 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] | 19205 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 19206 | fi |
| 19207 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19208 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19209 | # powerpc, because MkLinux only supported shared libraries with the |
| 19210 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 19211 | # most powerpc-linux boxes support dynamic linking these days and |
| 19212 | # people can always --disable-shared, the test was removed, and we |
| 19213 | # assume the GNU/Linux dynamic linker is in use. |
| 19214 | dynamic_linker='GNU/Linux ld.so' |
| 19215 | ;; |
| 19216 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19217 | knetbsd*-gnu) |
| 19218 | version_type=linux |
| 19219 | need_lib_prefix=no |
| 19220 | need_version=no |
| 19221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19223 | shlibpath_var=LD_LIBRARY_PATH |
| 19224 | shlibpath_overrides_runpath=no |
| 19225 | hardcode_into_libs=yes |
| 19226 | dynamic_linker='GNU ld.so' |
| 19227 | ;; |
| 19228 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19229 | netbsd*) |
| 19230 | version_type=sunos |
| 19231 | need_lib_prefix=no |
| 19232 | need_version=no |
| 19233 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 19234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19235 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19236 | dynamic_linker='NetBSD (a.out) ld.so' |
| 19237 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19238 | 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] | 19239 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19240 | dynamic_linker='NetBSD ld.elf_so' |
| 19241 | fi |
| 19242 | shlibpath_var=LD_LIBRARY_PATH |
| 19243 | shlibpath_overrides_runpath=yes |
| 19244 | hardcode_into_libs=yes |
| 19245 | ;; |
| 19246 | |
| 19247 | newsos6) |
| 19248 | version_type=linux |
| 19249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19250 | shlibpath_var=LD_LIBRARY_PATH |
| 19251 | shlibpath_overrides_runpath=yes |
| 19252 | ;; |
| 19253 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19254 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19255 | version_type=linux |
| 19256 | need_lib_prefix=no |
| 19257 | need_version=no |
| 19258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19259 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19260 | shlibpath_var=LD_LIBRARY_PATH |
| 19261 | shlibpath_overrides_runpath=yes |
| 19262 | ;; |
| 19263 | |
| 19264 | openbsd*) |
| 19265 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19266 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19267 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19268 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 19269 | case $host_os in |
| 19270 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 19271 | *) need_version=no ;; |
| 19272 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19274 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19275 | shlibpath_var=LD_LIBRARY_PATH |
| 19276 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19277 | case $host_os in |
| 19278 | openbsd2.[89] | openbsd2.[89].*) |
| 19279 | shlibpath_overrides_runpath=no |
| 19280 | ;; |
| 19281 | *) |
| 19282 | shlibpath_overrides_runpath=yes |
| 19283 | ;; |
| 19284 | esac |
| 19285 | else |
| 19286 | shlibpath_overrides_runpath=yes |
| 19287 | fi |
| 19288 | ;; |
| 19289 | |
| 19290 | os2*) |
| 19291 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19292 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19293 | need_lib_prefix=no |
| 19294 | library_names_spec='$libname${shared_ext} $libname.a' |
| 19295 | dynamic_linker='OS/2 ld.exe' |
| 19296 | shlibpath_var=LIBPATH |
| 19297 | ;; |
| 19298 | |
| 19299 | osf3* | osf4* | osf5*) |
| 19300 | version_type=osf |
| 19301 | need_lib_prefix=no |
| 19302 | need_version=no |
| 19303 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19305 | shlibpath_var=LD_LIBRARY_PATH |
| 19306 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 19307 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 19308 | ;; |
| 19309 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19310 | solaris*) |
| 19311 | version_type=linux |
| 19312 | need_lib_prefix=no |
| 19313 | need_version=no |
| 19314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19315 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19316 | shlibpath_var=LD_LIBRARY_PATH |
| 19317 | shlibpath_overrides_runpath=yes |
| 19318 | hardcode_into_libs=yes |
| 19319 | # ldd complains unless libraries are executable |
| 19320 | postinstall_cmds='chmod +x $lib' |
| 19321 | ;; |
| 19322 | |
| 19323 | sunos4*) |
| 19324 | version_type=sunos |
| 19325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19326 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19327 | shlibpath_var=LD_LIBRARY_PATH |
| 19328 | shlibpath_overrides_runpath=yes |
| 19329 | if test "$with_gnu_ld" = yes; then |
| 19330 | need_lib_prefix=no |
| 19331 | fi |
| 19332 | need_version=yes |
| 19333 | ;; |
| 19334 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19335 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19336 | version_type=linux |
| 19337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19338 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19339 | shlibpath_var=LD_LIBRARY_PATH |
| 19340 | case $host_vendor in |
| 19341 | sni) |
| 19342 | shlibpath_overrides_runpath=no |
| 19343 | need_lib_prefix=no |
| 19344 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 19345 | runpath_var=LD_RUN_PATH |
| 19346 | ;; |
| 19347 | siemens) |
| 19348 | need_lib_prefix=no |
| 19349 | ;; |
| 19350 | motorola) |
| 19351 | need_lib_prefix=no |
| 19352 | need_version=no |
| 19353 | shlibpath_overrides_runpath=no |
| 19354 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 19355 | ;; |
| 19356 | esac |
| 19357 | ;; |
| 19358 | |
| 19359 | sysv4*MP*) |
| 19360 | if test -d /usr/nec ;then |
| 19361 | version_type=linux |
| 19362 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 19363 | soname_spec='$libname${shared_ext}.$major' |
| 19364 | shlibpath_var=LD_LIBRARY_PATH |
| 19365 | fi |
| 19366 | ;; |
| 19367 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19368 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19369 | version_type=freebsd-elf |
| 19370 | need_lib_prefix=no |
| 19371 | need_version=no |
| 19372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19374 | shlibpath_var=LD_LIBRARY_PATH |
| 19375 | hardcode_into_libs=yes |
| 19376 | if test "$with_gnu_ld" = yes; then |
| 19377 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 19378 | shlibpath_overrides_runpath=no |
| 19379 | else |
| 19380 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 19381 | shlibpath_overrides_runpath=yes |
| 19382 | case $host_os in |
| 19383 | sco3.2v5*) |
| 19384 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19385 | ;; |
| 19386 | esac |
| 19387 | fi |
| 19388 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 19389 | ;; |
| 19390 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19391 | uts4*) |
| 19392 | version_type=linux |
| 19393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19395 | shlibpath_var=LD_LIBRARY_PATH |
| 19396 | ;; |
| 19397 | |
| 19398 | *) |
| 19399 | dynamic_linker=no |
| 19400 | ;; |
| 19401 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19402 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 19403 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19404 | test "$dynamic_linker" = no && can_build_shared=no |
| 19405 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19406 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19407 | if test "$GCC" = yes; then |
| 19408 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19409 | fi |
| 19410 | |
| 19411 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 19412 | 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] | 19413 | hardcode_action_CXX= |
| 19414 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| 19415 | test -n "$runpath_var_CXX" || \ |
| 19416 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 19417 | |
| 19418 | # We can hardcode non-existant directories. |
| 19419 | if test "$hardcode_direct_CXX" != no && |
| 19420 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 19421 | # have to relink, otherwise we might link with an installed library |
| 19422 | # when we should be linking with a yet-to-be-installed one |
| 19423 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 19424 | test "$hardcode_minus_L_CXX" != no; then |
| 19425 | # Linking always hardcodes the temporary library directory. |
| 19426 | hardcode_action_CXX=relink |
| 19427 | else |
| 19428 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 19429 | hardcode_action_CXX=immediate |
| 19430 | fi |
| 19431 | else |
| 19432 | # We cannot hardcode anything, or else we can only hardcode existing |
| 19433 | # directories. |
| 19434 | hardcode_action_CXX=unsupported |
| 19435 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19436 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 19437 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19438 | |
| 19439 | if test "$hardcode_action_CXX" = relink; then |
| 19440 | # Fast installation is not supported |
| 19441 | enable_fast_install=no |
| 19442 | elif test "$shlibpath_overrides_runpath" = yes || |
| 19443 | test "$enable_shared" = no; then |
| 19444 | # Fast installation is not necessary |
| 19445 | enable_fast_install=needless |
| 19446 | fi |
| 19447 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19448 | |
| 19449 | # The else clause should only fire when bootstrapping the |
| 19450 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19451 | # with your package, and you will get complaints that there are |
| 19452 | # no rules to generate ltmain.sh. |
| 19453 | if test -f "$ltmain"; then |
| 19454 | # See if we are running on zsh, and set the options which allow our commands through |
| 19455 | # without removal of \ escapes. |
| 19456 | if test -n "${ZSH_VERSION+set}" ; then |
| 19457 | setopt NO_GLOB_SUBST |
| 19458 | fi |
| 19459 | # Now quote all the things that may contain metacharacters while being |
| 19460 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19461 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19462 | 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] | 19463 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19464 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19465 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19466 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19467 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19468 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19469 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19470 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19471 | compiler_CXX \ |
| 19472 | CC_CXX \ |
| 19473 | LD_CXX \ |
| 19474 | lt_prog_compiler_wl_CXX \ |
| 19475 | lt_prog_compiler_pic_CXX \ |
| 19476 | lt_prog_compiler_static_CXX \ |
| 19477 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 19478 | export_dynamic_flag_spec_CXX \ |
| 19479 | thread_safe_flag_spec_CXX \ |
| 19480 | whole_archive_flag_spec_CXX \ |
| 19481 | enable_shared_with_static_runtimes_CXX \ |
| 19482 | old_archive_cmds_CXX \ |
| 19483 | old_archive_from_new_cmds_CXX \ |
| 19484 | predep_objects_CXX \ |
| 19485 | postdep_objects_CXX \ |
| 19486 | predeps_CXX \ |
| 19487 | postdeps_CXX \ |
| 19488 | compiler_lib_search_path_CXX \ |
| 19489 | archive_cmds_CXX \ |
| 19490 | archive_expsym_cmds_CXX \ |
| 19491 | postinstall_cmds_CXX \ |
| 19492 | postuninstall_cmds_CXX \ |
| 19493 | old_archive_from_expsyms_cmds_CXX \ |
| 19494 | allow_undefined_flag_CXX \ |
| 19495 | no_undefined_flag_CXX \ |
| 19496 | export_symbols_cmds_CXX \ |
| 19497 | hardcode_libdir_flag_spec_CXX \ |
| 19498 | hardcode_libdir_flag_spec_ld_CXX \ |
| 19499 | hardcode_libdir_separator_CXX \ |
| 19500 | hardcode_automatic_CXX \ |
| 19501 | module_cmds_CXX \ |
| 19502 | module_expsym_cmds_CXX \ |
| 19503 | lt_cv_prog_compiler_c_o_CXX \ |
| 19504 | exclude_expsyms_CXX \ |
| 19505 | include_expsyms_CXX; do |
| 19506 | |
| 19507 | case $var in |
| 19508 | old_archive_cmds_CXX | \ |
| 19509 | old_archive_from_new_cmds_CXX | \ |
| 19510 | archive_cmds_CXX | \ |
| 19511 | archive_expsym_cmds_CXX | \ |
| 19512 | module_cmds_CXX | \ |
| 19513 | module_expsym_cmds_CXX | \ |
| 19514 | old_archive_from_expsyms_cmds_CXX | \ |
| 19515 | export_symbols_cmds_CXX | \ |
| 19516 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19517 | postinstall_cmds | postuninstall_cmds | \ |
| 19518 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19519 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19520 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19521 | 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] | 19522 | ;; |
| 19523 | *) |
| 19524 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19525 | ;; |
| 19526 | esac |
| 19527 | done |
| 19528 | |
| 19529 | case $lt_echo in |
| 19530 | *'\$0 --fallback-echo"') |
| 19531 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19532 | ;; |
| 19533 | esac |
| 19534 | |
| 19535 | cfgfile="$ofile" |
| 19536 | |
| 19537 | cat <<__EOF__ >> "$cfgfile" |
| 19538 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19539 | |
| 19540 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19541 | |
| 19542 | # Shell to use when invoking shell scripts. |
| 19543 | SHELL=$lt_SHELL |
| 19544 | |
| 19545 | # Whether or not to build shared libraries. |
| 19546 | build_libtool_libs=$enable_shared |
| 19547 | |
| 19548 | # Whether or not to build static libraries. |
| 19549 | build_old_libs=$enable_static |
| 19550 | |
| 19551 | # Whether or not to add -lc for building shared libraries. |
| 19552 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 19553 | |
| 19554 | # Whether or not to disallow shared libs when runtime libs are static |
| 19555 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 19556 | |
| 19557 | # Whether or not to optimize for fast installation. |
| 19558 | fast_install=$enable_fast_install |
| 19559 | |
| 19560 | # The host system. |
| 19561 | host_alias=$host_alias |
| 19562 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19563 | host_os=$host_os |
| 19564 | |
| 19565 | # The build system. |
| 19566 | build_alias=$build_alias |
| 19567 | build=$build |
| 19568 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19569 | |
| 19570 | # An echo program that does not interpret backslashes. |
| 19571 | echo=$lt_echo |
| 19572 | |
| 19573 | # The archiver. |
| 19574 | AR=$lt_AR |
| 19575 | AR_FLAGS=$lt_AR_FLAGS |
| 19576 | |
| 19577 | # A C compiler. |
| 19578 | LTCC=$lt_LTCC |
| 19579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19580 | # LTCC compiler flags. |
| 19581 | LTCFLAGS=$lt_LTCFLAGS |
| 19582 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19583 | # A language-specific compiler. |
| 19584 | CC=$lt_compiler_CXX |
| 19585 | |
| 19586 | # Is the compiler the GNU C compiler? |
| 19587 | with_gcc=$GCC_CXX |
| 19588 | |
| 19589 | # An ERE matcher. |
| 19590 | EGREP=$lt_EGREP |
| 19591 | |
| 19592 | # The linker used to build libraries. |
| 19593 | LD=$lt_LD_CXX |
| 19594 | |
| 19595 | # Whether we need hard or soft links. |
| 19596 | LN_S=$lt_LN_S |
| 19597 | |
| 19598 | # A BSD-compatible nm program. |
| 19599 | NM=$lt_NM |
| 19600 | |
| 19601 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19602 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19603 | |
| 19604 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19605 | MAGIC_CMD=$MAGIC_CMD |
| 19606 | |
| 19607 | # Used on cygwin: DLL creation program. |
| 19608 | DLLTOOL="$DLLTOOL" |
| 19609 | |
| 19610 | # Used on cygwin: object dumper. |
| 19611 | OBJDUMP="$OBJDUMP" |
| 19612 | |
| 19613 | # Used on cygwin: assembler. |
| 19614 | AS="$AS" |
| 19615 | |
| 19616 | # The name of the directory that contains temporary libtool files. |
| 19617 | objdir=$objdir |
| 19618 | |
| 19619 | # How to create reloadable object files. |
| 19620 | reload_flag=$lt_reload_flag |
| 19621 | reload_cmds=$lt_reload_cmds |
| 19622 | |
| 19623 | # How to pass a linker flag through the compiler. |
| 19624 | wl=$lt_lt_prog_compiler_wl_CXX |
| 19625 | |
| 19626 | # Object file suffix (normally "o"). |
| 19627 | objext="$ac_objext" |
| 19628 | |
| 19629 | # Old archive suffix (normally "a"). |
| 19630 | libext="$libext" |
| 19631 | |
| 19632 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19633 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19634 | |
| 19635 | # Executable file suffix (normally ""). |
| 19636 | exeext="$exeext" |
| 19637 | |
| 19638 | # Additional compiler flags for building library objects. |
| 19639 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 19640 | pic_mode=$pic_mode |
| 19641 | |
| 19642 | # What is the maximum length of a command? |
| 19643 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19644 | |
| 19645 | # Does compiler simultaneously support -c and -o options? |
| 19646 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 19647 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19648 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19649 | need_locks=$lt_need_locks |
| 19650 | |
| 19651 | # Do we need the lib prefix for modules? |
| 19652 | need_lib_prefix=$need_lib_prefix |
| 19653 | |
| 19654 | # Do we need a version for libraries? |
| 19655 | need_version=$need_version |
| 19656 | |
| 19657 | # Whether dlopen is supported. |
| 19658 | dlopen_support=$enable_dlopen |
| 19659 | |
| 19660 | # Whether dlopen of programs is supported. |
| 19661 | dlopen_self=$enable_dlopen_self |
| 19662 | |
| 19663 | # Whether dlopen of statically linked programs is supported. |
| 19664 | dlopen_self_static=$enable_dlopen_self_static |
| 19665 | |
| 19666 | # Compiler flag to prevent dynamic linking. |
| 19667 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 19668 | |
| 19669 | # Compiler flag to turn off builtin functions. |
| 19670 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 19671 | |
| 19672 | # Compiler flag to allow reflexive dlopens. |
| 19673 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 19674 | |
| 19675 | # Compiler flag to generate shared objects directly from archives. |
| 19676 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 19677 | |
| 19678 | # Compiler flag to generate thread-safe objects. |
| 19679 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 19680 | |
| 19681 | # Library versioning type. |
| 19682 | version_type=$version_type |
| 19683 | |
| 19684 | # Format of library name prefix. |
| 19685 | libname_spec=$lt_libname_spec |
| 19686 | |
| 19687 | # List of archive names. First name is the real one, the rest are links. |
| 19688 | # The last name is the one that the linker finds with -lNAME. |
| 19689 | library_names_spec=$lt_library_names_spec |
| 19690 | |
| 19691 | # The coded name of the library, if different from the real name. |
| 19692 | soname_spec=$lt_soname_spec |
| 19693 | |
| 19694 | # Commands used to build and install an old-style archive. |
| 19695 | RANLIB=$lt_RANLIB |
| 19696 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 19697 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19698 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19699 | |
| 19700 | # Create an old-style archive from a shared archive. |
| 19701 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 19702 | |
| 19703 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19704 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 19705 | |
| 19706 | # Commands used to build and install a shared archive. |
| 19707 | archive_cmds=$lt_archive_cmds_CXX |
| 19708 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 19709 | postinstall_cmds=$lt_postinstall_cmds |
| 19710 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19711 | |
| 19712 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19713 | module_cmds=$lt_module_cmds_CXX |
| 19714 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 19715 | |
| 19716 | # Commands to strip libraries. |
| 19717 | old_striplib=$lt_old_striplib |
| 19718 | striplib=$lt_striplib |
| 19719 | |
| 19720 | # Dependencies to place before the objects being linked to create a |
| 19721 | # shared library. |
| 19722 | predep_objects=$lt_predep_objects_CXX |
| 19723 | |
| 19724 | # Dependencies to place after the objects being linked to create a |
| 19725 | # shared library. |
| 19726 | postdep_objects=$lt_postdep_objects_CXX |
| 19727 | |
| 19728 | # Dependencies to place before the objects being linked to create a |
| 19729 | # shared library. |
| 19730 | predeps=$lt_predeps_CXX |
| 19731 | |
| 19732 | # Dependencies to place after the objects being linked to create a |
| 19733 | # shared library. |
| 19734 | postdeps=$lt_postdeps_CXX |
| 19735 | |
| 19736 | # The library search path used internally by the compiler when linking |
| 19737 | # a shared library. |
| 19738 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 19739 | |
| 19740 | # Method to check whether dependent libraries are shared objects. |
| 19741 | deplibs_check_method=$lt_deplibs_check_method |
| 19742 | |
| 19743 | # Command to use when deplibs_check_method == file_magic. |
| 19744 | file_magic_cmd=$lt_file_magic_cmd |
| 19745 | |
| 19746 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19747 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 19748 | |
| 19749 | # Flag that forces no undefined symbols. |
| 19750 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 19751 | |
| 19752 | # Commands used to finish a libtool library installation in a directory. |
| 19753 | finish_cmds=$lt_finish_cmds |
| 19754 | |
| 19755 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19756 | finish_eval=$lt_finish_eval |
| 19757 | |
| 19758 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19759 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19760 | |
| 19761 | # Transform the output of nm in a proper C declaration |
| 19762 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19763 | |
| 19764 | # Transform the output of nm in a C name address pair |
| 19765 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19766 | |
| 19767 | # This is the shared library runtime path variable. |
| 19768 | runpath_var=$runpath_var |
| 19769 | |
| 19770 | # This is the shared library path variable. |
| 19771 | shlibpath_var=$shlibpath_var |
| 19772 | |
| 19773 | # Is shlibpath searched before the hard-coded library search path? |
| 19774 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19775 | |
| 19776 | # How to hardcode a shared library path into an executable. |
| 19777 | hardcode_action=$hardcode_action_CXX |
| 19778 | |
| 19779 | # Whether we should hardcode library paths into libraries. |
| 19780 | hardcode_into_libs=$hardcode_into_libs |
| 19781 | |
| 19782 | # Flag to hardcode \$libdir into a binary during linking. |
| 19783 | # This must work even if \$libdir does not exist. |
| 19784 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 19785 | |
| 19786 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19787 | # a binary during linking. This must work even if \$libdir does |
| 19788 | # not exist. |
| 19789 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 19790 | |
| 19791 | # Whether we need a single -rpath flag with a separated argument. |
| 19792 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 19793 | |
| 19794 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19795 | # resulting binary. |
| 19796 | hardcode_direct=$hardcode_direct_CXX |
| 19797 | |
| 19798 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19799 | # resulting binary. |
| 19800 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 19801 | |
| 19802 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19803 | # the resulting binary. |
| 19804 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 19805 | |
| 19806 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19807 | # and all subsequent libraries and executables linked against it. |
| 19808 | hardcode_automatic=$hardcode_automatic_CXX |
| 19809 | |
| 19810 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19811 | # restored at relink time. |
| 19812 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19813 | |
| 19814 | # Whether libtool must link a program against all its dependency libraries. |
| 19815 | link_all_deplibs=$link_all_deplibs_CXX |
| 19816 | |
| 19817 | # Compile-time system search path for libraries |
| 19818 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19819 | |
| 19820 | # Run-time system search path for libraries |
| 19821 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19822 | |
| 19823 | # Fix the shell variable \$srcfile for the compiler. |
| 19824 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 19825 | |
| 19826 | # Set to yes if exported symbols are required. |
| 19827 | always_export_symbols=$always_export_symbols_CXX |
| 19828 | |
| 19829 | # The commands to list exported symbols. |
| 19830 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 19831 | |
| 19832 | # The commands to extract the exported symbol list from a shared archive. |
| 19833 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19834 | |
| 19835 | # Symbols that should not be listed in the preloaded symbols. |
| 19836 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 19837 | |
| 19838 | # Symbols that must always be exported. |
| 19839 | include_expsyms=$lt_include_expsyms_CXX |
| 19840 | |
| 19841 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19842 | |
| 19843 | __EOF__ |
| 19844 | |
| 19845 | |
| 19846 | else |
| 19847 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19848 | # `config.status --recheck' to rerun these tests and create the |
| 19849 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19850 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19851 | if test -f "$ltmain_in"; then |
| 19852 | test -f Makefile && make "$ltmain" |
| 19853 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19854 | fi |
| 19855 | |
| 19856 | |
| 19857 | ac_ext=c |
| 19858 | ac_cpp='$CPP $CPPFLAGS' |
| 19859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19862 | |
| 19863 | CC=$lt_save_CC |
| 19864 | LDCXX=$LD |
| 19865 | LD=$lt_save_LD |
| 19866 | GCC=$lt_save_GCC |
| 19867 | with_gnu_ldcxx=$with_gnu_ld |
| 19868 | with_gnu_ld=$lt_save_with_gnu_ld |
| 19869 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 19870 | lt_cv_path_LD=$lt_save_path_LD |
| 19871 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 19872 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 19873 | |
| 19874 | else |
| 19875 | tagname="" |
| 19876 | fi |
| 19877 | ;; |
| 19878 | |
| 19879 | F77) |
| 19880 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 19881 | |
| 19882 | ac_ext=f |
| 19883 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 19884 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19885 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 19886 | |
| 19887 | |
| 19888 | archive_cmds_need_lc_F77=no |
| 19889 | allow_undefined_flag_F77= |
| 19890 | always_export_symbols_F77=no |
| 19891 | archive_expsym_cmds_F77= |
| 19892 | export_dynamic_flag_spec_F77= |
| 19893 | hardcode_direct_F77=no |
| 19894 | hardcode_libdir_flag_spec_F77= |
| 19895 | hardcode_libdir_flag_spec_ld_F77= |
| 19896 | hardcode_libdir_separator_F77= |
| 19897 | hardcode_minus_L_F77=no |
| 19898 | hardcode_automatic_F77=no |
| 19899 | module_cmds_F77= |
| 19900 | module_expsym_cmds_F77= |
| 19901 | link_all_deplibs_F77=unknown |
| 19902 | old_archive_cmds_F77=$old_archive_cmds |
| 19903 | no_undefined_flag_F77= |
| 19904 | whole_archive_flag_spec_F77= |
| 19905 | enable_shared_with_static_runtimes_F77=no |
| 19906 | |
| 19907 | # Source file extension for f77 test sources. |
| 19908 | ac_ext=f |
| 19909 | |
| 19910 | # Object file extension for compiled f77 test sources. |
| 19911 | objext=o |
| 19912 | objext_F77=$objext |
| 19913 | |
| 19914 | # Code to be used in simple compile tests |
| 19915 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 19916 | |
| 19917 | # Code to be used in simple link tests |
| 19918 | lt_simple_link_test_code=" program t\n end\n" |
| 19919 | |
| 19920 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19921 | |
| 19922 | # If no C compiler was specified, use CC. |
| 19923 | LTCC=${LTCC-"$CC"} |
| 19924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19925 | # If no C compiler flags were specified, use CFLAGS. |
| 19926 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19927 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19928 | # Allow CC to be a program name with arguments. |
| 19929 | compiler=$CC |
| 19930 | |
| 19931 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19932 | # save warnings/boilerplate of simple test code |
| 19933 | ac_outfile=conftest.$ac_objext |
| 19934 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19935 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19936 | _lt_compiler_boilerplate=`cat conftest.err` |
| 19937 | $rm conftest* |
| 19938 | |
| 19939 | ac_outfile=conftest.$ac_objext |
| 19940 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19941 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19942 | _lt_linker_boilerplate=`cat conftest.err` |
| 19943 | $rm conftest* |
| 19944 | |
| 19945 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19946 | # Allow CC to be a program name with arguments. |
| 19947 | lt_save_CC="$CC" |
| 19948 | CC=${F77-"f77"} |
| 19949 | compiler=$CC |
| 19950 | compiler_F77=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19951 | for cc_temp in $compiler""; do |
| 19952 | case $cc_temp in |
| 19953 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19954 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19955 | \-*) ;; |
| 19956 | *) break;; |
| 19957 | esac |
| 19958 | done |
| 19959 | 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] | 19960 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19961 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19962 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 19963 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 19964 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 19965 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 19966 | |
| 19967 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 19968 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19969 | test "$can_build_shared" = "no" && enable_shared=no |
| 19970 | |
| 19971 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 19972 | # are all built from PIC. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19973 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19974 | aix3*) |
| 19975 | test "$enable_shared" = yes && enable_static=no |
| 19976 | if test -n "$RANLIB"; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 19977 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19978 | postinstall_cmds='$RANLIB $lib' |
| 19979 | fi |
| 19980 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 19981 | aix4* | aix5*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19982 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 19983 | test "$enable_shared" = yes && enable_static=no |
| 19984 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19985 | ;; |
| 19986 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19987 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 19988 | echo "${ECHO_T}$enable_shared" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19990 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 19991 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19992 | # Make sure either enable_shared or enable_static is yes. |
| 19993 | test "$enable_shared" = yes || enable_static=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 19994 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 19995 | echo "${ECHO_T}$enable_static" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 19996 | |
| 19997 | GCC_F77="$G77" |
| 19998 | LD_F77="$LD" |
| 19999 | |
| 20000 | lt_prog_compiler_wl_F77= |
| 20001 | lt_prog_compiler_pic_F77= |
| 20002 | lt_prog_compiler_static_F77= |
| 20003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20004 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 20005 | 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] | 20006 | |
| 20007 | if test "$GCC" = yes; then |
| 20008 | lt_prog_compiler_wl_F77='-Wl,' |
| 20009 | lt_prog_compiler_static_F77='-static' |
| 20010 | |
| 20011 | case $host_os in |
| 20012 | aix*) |
| 20013 | # All AIX code is PIC. |
| 20014 | if test "$host_cpu" = ia64; then |
| 20015 | # AIX 5 now supports IA64 processor |
| 20016 | lt_prog_compiler_static_F77='-Bstatic' |
| 20017 | fi |
| 20018 | ;; |
| 20019 | |
| 20020 | amigaos*) |
| 20021 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 20022 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 20023 | # like `-m68040'. |
| 20024 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 20025 | ;; |
| 20026 | |
| 20027 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 20028 | # PIC is the default for these OSes. |
| 20029 | ;; |
| 20030 | |
| 20031 | mingw* | pw32* | os2*) |
| 20032 | # This hack is so that the source file can tell whether it is being |
| 20033 | # built for inclusion in a dll (and should export symbols for example). |
| 20034 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20035 | ;; |
| 20036 | |
| 20037 | darwin* | rhapsody*) |
| 20038 | # PIC is the default on this platform |
| 20039 | # Common symbols not allowed in MH_DYLIB files |
| 20040 | lt_prog_compiler_pic_F77='-fno-common' |
| 20041 | ;; |
| 20042 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20043 | interix3*) |
| 20044 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 20045 | # Instead, we relocate shared libraries at runtime. |
| 20046 | ;; |
| 20047 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20048 | msdosdjgpp*) |
| 20049 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 20050 | # on systems that don't support them. |
| 20051 | lt_prog_compiler_can_build_shared_F77=no |
| 20052 | enable_shared=no |
| 20053 | ;; |
| 20054 | |
| 20055 | sysv4*MP*) |
| 20056 | if test -d /usr/nec; then |
| 20057 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 20058 | fi |
| 20059 | ;; |
| 20060 | |
| 20061 | hpux*) |
| 20062 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20063 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20064 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20065 | hppa*64*|ia64*) |
| 20066 | # +Z the default |
| 20067 | ;; |
| 20068 | *) |
| 20069 | lt_prog_compiler_pic_F77='-fPIC' |
| 20070 | ;; |
| 20071 | esac |
| 20072 | ;; |
| 20073 | |
| 20074 | *) |
| 20075 | lt_prog_compiler_pic_F77='-fPIC' |
| 20076 | ;; |
| 20077 | esac |
| 20078 | else |
| 20079 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 20080 | case $host_os in |
| 20081 | aix*) |
| 20082 | lt_prog_compiler_wl_F77='-Wl,' |
| 20083 | if test "$host_cpu" = ia64; then |
| 20084 | # AIX 5 now supports IA64 processor |
| 20085 | lt_prog_compiler_static_F77='-Bstatic' |
| 20086 | else |
| 20087 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 20088 | fi |
| 20089 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20090 | darwin*) |
| 20091 | # PIC is the default on this platform |
| 20092 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20093 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20094 | xlc*) |
| 20095 | lt_prog_compiler_pic_F77='-qnocommon' |
| 20096 | lt_prog_compiler_wl_F77='-Wl,' |
| 20097 | ;; |
| 20098 | esac |
| 20099 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20100 | |
| 20101 | mingw* | pw32* | os2*) |
| 20102 | # This hack is so that the source file can tell whether it is being |
| 20103 | # built for inclusion in a dll (and should export symbols for example). |
| 20104 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 20105 | ;; |
| 20106 | |
| 20107 | hpux9* | hpux10* | hpux11*) |
| 20108 | lt_prog_compiler_wl_F77='-Wl,' |
| 20109 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 20110 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20111 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20112 | hppa*64*|ia64*) |
| 20113 | # +Z the default |
| 20114 | ;; |
| 20115 | *) |
| 20116 | lt_prog_compiler_pic_F77='+Z' |
| 20117 | ;; |
| 20118 | esac |
| 20119 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 20120 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 20121 | ;; |
| 20122 | |
| 20123 | irix5* | irix6* | nonstopux*) |
| 20124 | lt_prog_compiler_wl_F77='-Wl,' |
| 20125 | # PIC (with -KPIC) is the default. |
| 20126 | lt_prog_compiler_static_F77='-non_shared' |
| 20127 | ;; |
| 20128 | |
| 20129 | newsos6) |
| 20130 | lt_prog_compiler_pic_F77='-KPIC' |
| 20131 | lt_prog_compiler_static_F77='-Bstatic' |
| 20132 | ;; |
| 20133 | |
| 20134 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20135 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20136 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20137 | lt_prog_compiler_wl_F77='-Wl,' |
| 20138 | lt_prog_compiler_pic_F77='-KPIC' |
| 20139 | lt_prog_compiler_static_F77='-static' |
| 20140 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20141 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 20142 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 20143 | # which looks to be a dead project) |
| 20144 | lt_prog_compiler_wl_F77='-Wl,' |
| 20145 | lt_prog_compiler_pic_F77='-fpic' |
| 20146 | lt_prog_compiler_static_F77='-Bstatic' |
| 20147 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20148 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20149 | lt_prog_compiler_wl_F77='-Wl,' |
| 20150 | # All Alpha code is PIC. |
| 20151 | lt_prog_compiler_static_F77='-non_shared' |
| 20152 | ;; |
| 20153 | esac |
| 20154 | ;; |
| 20155 | |
| 20156 | osf3* | osf4* | osf5*) |
| 20157 | lt_prog_compiler_wl_F77='-Wl,' |
| 20158 | # All OSF/1 code is PIC. |
| 20159 | lt_prog_compiler_static_F77='-non_shared' |
| 20160 | ;; |
| 20161 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20162 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20163 | lt_prog_compiler_pic_F77='-KPIC' |
| 20164 | lt_prog_compiler_static_F77='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20165 | case $cc_basename in |
| 20166 | f77* | f90* | f95*) |
| 20167 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 20168 | *) |
| 20169 | lt_prog_compiler_wl_F77='-Wl,';; |
| 20170 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20171 | ;; |
| 20172 | |
| 20173 | sunos4*) |
| 20174 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 20175 | lt_prog_compiler_pic_F77='-PIC' |
| 20176 | lt_prog_compiler_static_F77='-Bstatic' |
| 20177 | ;; |
| 20178 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20179 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20180 | lt_prog_compiler_wl_F77='-Wl,' |
| 20181 | lt_prog_compiler_pic_F77='-KPIC' |
| 20182 | lt_prog_compiler_static_F77='-Bstatic' |
| 20183 | ;; |
| 20184 | |
| 20185 | sysv4*MP*) |
| 20186 | if test -d /usr/nec ;then |
| 20187 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 20188 | lt_prog_compiler_static_F77='-Bstatic' |
| 20189 | fi |
| 20190 | ;; |
| 20191 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20192 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 20193 | lt_prog_compiler_wl_F77='-Wl,' |
| 20194 | lt_prog_compiler_pic_F77='-KPIC' |
| 20195 | lt_prog_compiler_static_F77='-Bstatic' |
| 20196 | ;; |
| 20197 | |
| 20198 | unicos*) |
| 20199 | lt_prog_compiler_wl_F77='-Wl,' |
| 20200 | lt_prog_compiler_can_build_shared_F77=no |
| 20201 | ;; |
| 20202 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20203 | uts4*) |
| 20204 | lt_prog_compiler_pic_F77='-pic' |
| 20205 | lt_prog_compiler_static_F77='-Bstatic' |
| 20206 | ;; |
| 20207 | |
| 20208 | *) |
| 20209 | lt_prog_compiler_can_build_shared_F77=no |
| 20210 | ;; |
| 20211 | esac |
| 20212 | fi |
| 20213 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20214 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 20215 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20216 | |
| 20217 | # |
| 20218 | # Check to make sure the PIC flag actually works. |
| 20219 | # |
| 20220 | if test -n "$lt_prog_compiler_pic_F77"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20221 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20222 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 20223 | 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] | 20224 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 20225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20226 | else |
| 20227 | lt_prog_compiler_pic_works_F77=no |
| 20228 | ac_outfile=conftest.$ac_objext |
| 20229 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20230 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 20231 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20232 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20233 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20234 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20235 | # The option is referenced via a variable to avoid confusing sed. |
| 20236 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20239 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 20240 | (eval echo "\"\$as_me:20239: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20241 | (eval "$lt_compile" 2>conftest.err) |
| 20242 | ac_status=$? |
| 20243 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 20244 | echo "$as_me:20243: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20245 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 20246 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20247 | # So say no if there are warnings other than the usual output. |
| 20248 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 20249 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20250 | 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] | 20251 | lt_prog_compiler_pic_works_F77=yes |
| 20252 | fi |
| 20253 | fi |
| 20254 | $rm conftest* |
| 20255 | |
| 20256 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20257 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 20258 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20259 | |
| 20260 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 20261 | case $lt_prog_compiler_pic_F77 in |
| 20262 | "" | " "*) ;; |
| 20263 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 20264 | esac |
| 20265 | else |
| 20266 | lt_prog_compiler_pic_F77= |
| 20267 | lt_prog_compiler_can_build_shared_F77=no |
| 20268 | fi |
| 20269 | |
| 20270 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20271 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20272 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 20273 | *djgpp*) |
| 20274 | lt_prog_compiler_pic_F77= |
| 20275 | ;; |
| 20276 | *) |
| 20277 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 20278 | ;; |
| 20279 | esac |
| 20280 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20281 | # |
| 20282 | # Check to make sure the static flag actually works. |
| 20283 | # |
| 20284 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 20285 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 20286 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 20287 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 20288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20289 | else |
| 20290 | lt_prog_compiler_static_works_F77=no |
| 20291 | save_LDFLAGS="$LDFLAGS" |
| 20292 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 20293 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 20294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 20295 | # The linker can only warn and ignore the option if not recognized |
| 20296 | # So say no if there are warnings |
| 20297 | if test -s conftest.err; then |
| 20298 | # Append any errors to the config.log. |
| 20299 | cat conftest.err 1>&5 |
| 20300 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 20301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 20302 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 20303 | lt_prog_compiler_static_works_F77=yes |
| 20304 | fi |
| 20305 | else |
| 20306 | lt_prog_compiler_static_works_F77=yes |
| 20307 | fi |
| 20308 | fi |
| 20309 | $rm conftest* |
| 20310 | LDFLAGS="$save_LDFLAGS" |
| 20311 | |
| 20312 | fi |
| 20313 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 20314 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 20315 | |
| 20316 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 20317 | : |
| 20318 | else |
| 20319 | lt_prog_compiler_static_F77= |
| 20320 | fi |
| 20321 | |
| 20322 | |
| 20323 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 20324 | 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] | 20325 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 20326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20327 | else |
| 20328 | lt_cv_prog_compiler_c_o_F77=no |
| 20329 | $rm -r conftest 2>/dev/null |
| 20330 | mkdir conftest |
| 20331 | cd conftest |
| 20332 | mkdir out |
| 20333 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 20334 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20335 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 20336 | # Insert the option either (1) after the last *FLAGS variable, or |
| 20337 | # (2) before a word containing "conftest.", or (3) at the end. |
| 20338 | # Note that $ac_compile itself does not contain backslashes and begins |
| 20339 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 20340 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 20343 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 20344 | (eval echo "\"\$as_me:20343: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20345 | (eval "$lt_compile" 2>out/conftest.err) |
| 20346 | ac_status=$? |
| 20347 | cat out/conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 20348 | echo "$as_me:20347: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20349 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 20350 | then |
| 20351 | # The compiler can only warn and ignore the option if not recognized |
| 20352 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20353 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 20354 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 20355 | 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] | 20356 | lt_cv_prog_compiler_c_o_F77=yes |
| 20357 | fi |
| 20358 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20359 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20360 | $rm conftest* |
| 20361 | # SGI C++ compiler will create directory out/ii_files/ for |
| 20362 | # template instantiation |
| 20363 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 20364 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20365 | cd .. |
| 20366 | rmdir conftest |
| 20367 | $rm conftest* |
| 20368 | |
| 20369 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20370 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 20371 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20372 | |
| 20373 | |
| 20374 | hard_links="nottested" |
| 20375 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 20376 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20377 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 20378 | 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] | 20379 | hard_links=yes |
| 20380 | $rm conftest* |
| 20381 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 20382 | touch conftest.a |
| 20383 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 20384 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20385 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 20386 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20387 | if test "$hard_links" = no; then |
| 20388 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 20389 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 20390 | need_locks=warn |
| 20391 | fi |
| 20392 | else |
| 20393 | need_locks=no |
| 20394 | fi |
| 20395 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20396 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 20397 | 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] | 20398 | |
| 20399 | runpath_var= |
| 20400 | allow_undefined_flag_F77= |
| 20401 | enable_shared_with_static_runtimes_F77=no |
| 20402 | archive_cmds_F77= |
| 20403 | archive_expsym_cmds_F77= |
| 20404 | old_archive_From_new_cmds_F77= |
| 20405 | old_archive_from_expsyms_cmds_F77= |
| 20406 | export_dynamic_flag_spec_F77= |
| 20407 | whole_archive_flag_spec_F77= |
| 20408 | thread_safe_flag_spec_F77= |
| 20409 | hardcode_libdir_flag_spec_F77= |
| 20410 | hardcode_libdir_flag_spec_ld_F77= |
| 20411 | hardcode_libdir_separator_F77= |
| 20412 | hardcode_direct_F77=no |
| 20413 | hardcode_minus_L_F77=no |
| 20414 | hardcode_shlibpath_var_F77=unsupported |
| 20415 | link_all_deplibs_F77=unknown |
| 20416 | hardcode_automatic_F77=no |
| 20417 | module_cmds_F77= |
| 20418 | module_expsym_cmds_F77= |
| 20419 | always_export_symbols_F77=no |
| 20420 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 20421 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 20422 | # included in the symbol list |
| 20423 | include_expsyms_F77= |
| 20424 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 20425 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 20426 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 20427 | # as well as any symbol that contains `d'. |
| 20428 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 20429 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 20430 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 20431 | # the symbol is explicitly referenced. Since portable code cannot |
| 20432 | # rely on this symbol name, it's probably fine to never include it in |
| 20433 | # preloaded symbol tables. |
| 20434 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20435 | # Just being paranoid about ensuring that cc_basename is set. |
| 20436 | for cc_temp in $compiler""; do |
| 20437 | case $cc_temp in |
| 20438 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 20439 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 20440 | \-*) ;; |
| 20441 | *) break;; |
| 20442 | esac |
| 20443 | done |
| 20444 | 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] | 20445 | |
| 20446 | case $host_os in |
| 20447 | cygwin* | mingw* | pw32*) |
| 20448 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 20449 | # When not using gcc, we currently assume that we are using |
| 20450 | # Microsoft Visual C++. |
| 20451 | if test "$GCC" != yes; then |
| 20452 | with_gnu_ld=no |
| 20453 | fi |
| 20454 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20455 | interix*) |
| 20456 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 20457 | with_gnu_ld=yes |
| 20458 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20459 | openbsd*) |
| 20460 | with_gnu_ld=no |
| 20461 | ;; |
| 20462 | esac |
| 20463 | |
| 20464 | ld_shlibs_F77=yes |
| 20465 | if test "$with_gnu_ld" = yes; then |
| 20466 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 20467 | wlarc='${wl}' |
| 20468 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20469 | # Set some defaults for GNU ld with shared library support. These |
| 20470 | # are reset later if shared libraries are not supported. Putting them |
| 20471 | # here allows them to be overridden if necessary. |
| 20472 | runpath_var=LD_RUN_PATH |
| 20473 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 20474 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 20475 | # ancient GNU ld didn't support --whole-archive et. al. |
| 20476 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 20477 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 20478 | else |
| 20479 | whole_archive_flag_spec_F77= |
| 20480 | fi |
| 20481 | supports_anon_versioning=no |
| 20482 | case `$LD -v 2>/dev/null` in |
| 20483 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 20484 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 20485 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 20486 | *\ 2.11.*) ;; # other 2.11 versions |
| 20487 | *) supports_anon_versioning=yes ;; |
| 20488 | esac |
| 20489 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20490 | # See if GNU ld supports shared libraries. |
| 20491 | case $host_os in |
| 20492 | aix3* | aix4* | aix5*) |
| 20493 | # On AIX/PPC, the GNU linker is very broken |
| 20494 | if test "$host_cpu" != ia64; then |
| 20495 | ld_shlibs_F77=no |
| 20496 | cat <<EOF 1>&2 |
| 20497 | |
| 20498 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 20499 | *** to be unable to reliably create shared libraries on AIX. |
| 20500 | *** Therefore, libtool is disabling shared libraries support. If you |
| 20501 | *** really care for shared libraries, you may want to modify your PATH |
| 20502 | *** so that a non-GNU linker is found, and then restart. |
| 20503 | |
| 20504 | EOF |
| 20505 | fi |
| 20506 | ;; |
| 20507 | |
| 20508 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20509 | 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] | 20510 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20511 | hardcode_minus_L_F77=yes |
| 20512 | |
| 20513 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 20514 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 20515 | # to version 4, is to share data among multiple programs linked |
| 20516 | # with the same dynamic library. Since this doesn't match the |
| 20517 | # behavior of shared libraries on other platforms, we can't use |
| 20518 | # them. |
| 20519 | ld_shlibs_F77=no |
| 20520 | ;; |
| 20521 | |
| 20522 | beos*) |
| 20523 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 20524 | allow_undefined_flag_F77=unsupported |
| 20525 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 20526 | # support --undefined. This deserves some investigation. FIXME |
| 20527 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 20528 | else |
| 20529 | ld_shlibs_F77=no |
| 20530 | fi |
| 20531 | ;; |
| 20532 | |
| 20533 | cygwin* | mingw* | pw32*) |
| 20534 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 20535 | # as there is no search path for DLLs. |
| 20536 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20537 | allow_undefined_flag_F77=unsupported |
| 20538 | always_export_symbols_F77=no |
| 20539 | enable_shared_with_static_runtimes_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20540 | 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] | 20541 | |
| 20542 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20543 | 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] | 20544 | # If the export-symbols file already is a .def file (1st line |
| 20545 | # is EXPORTS), use it as is; otherwise, prepend... |
| 20546 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 20547 | cp $export_symbols $output_objdir/$soname.def; |
| 20548 | else |
| 20549 | echo EXPORTS > $output_objdir/$soname.def; |
| 20550 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20551 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20552 | $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] | 20553 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20554 | ld_shlibs_F77=no |
| 20555 | fi |
| 20556 | ;; |
| 20557 | |
| 20558 | interix3*) |
| 20559 | hardcode_direct_F77=no |
| 20560 | hardcode_shlibpath_var_F77=no |
| 20561 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 20562 | export_dynamic_flag_spec_F77='${wl}-E' |
| 20563 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 20564 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 20565 | # default) and relocated if they conflict, which is a slow very memory |
| 20566 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 20567 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 20568 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 20569 | 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' |
| 20570 | 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' |
| 20571 | ;; |
| 20572 | |
| 20573 | linux*) |
| 20574 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 20575 | tmp_addflag= |
| 20576 | case $cc_basename,$host_cpu in |
| 20577 | pgcc*) # Portland Group C compiler |
| 20578 | 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' |
| 20579 | tmp_addflag=' $pic_flag' |
| 20580 | ;; |
| 20581 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 20582 | 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' |
| 20583 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 20584 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 20585 | tmp_addflag=' -i_dynamic' ;; |
| 20586 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 20587 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 20588 | ifc* | ifort*) # Intel Fortran compiler |
| 20589 | tmp_addflag=' -nofor_main' ;; |
| 20590 | esac |
| 20591 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 20592 | |
| 20593 | if test $supports_anon_versioning = yes; then |
| 20594 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 20595 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 20596 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 20597 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 20598 | fi |
| 20599 | else |
| 20600 | ld_shlibs_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20601 | fi |
| 20602 | ;; |
| 20603 | |
| 20604 | netbsd*) |
| 20605 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 20606 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 20607 | wlarc= |
| 20608 | else |
| 20609 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 20610 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 20611 | fi |
| 20612 | ;; |
| 20613 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20614 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20615 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 20616 | ld_shlibs_F77=no |
| 20617 | cat <<EOF 1>&2 |
| 20618 | |
| 20619 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 20620 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 20621 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 20622 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 20623 | *** your PATH or compiler configuration so that the native linker is |
| 20624 | *** used, and then restart. |
| 20625 | |
| 20626 | EOF |
| 20627 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 20628 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 20629 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 20630 | else |
| 20631 | ld_shlibs_F77=no |
| 20632 | fi |
| 20633 | ;; |
| 20634 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20635 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 20636 | case `$LD -v 2>&1` in |
| 20637 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 20638 | ld_shlibs_F77=no |
| 20639 | cat <<_LT_EOF 1>&2 |
| 20640 | |
| 20641 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 20642 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 20643 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 20644 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 20645 | *** your PATH or compiler configuration so that the native linker is |
| 20646 | *** used, and then restart. |
| 20647 | |
| 20648 | _LT_EOF |
| 20649 | ;; |
| 20650 | *) |
| 20651 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 20652 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 20653 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 20654 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 20655 | else |
| 20656 | ld_shlibs_F77=no |
| 20657 | fi |
| 20658 | ;; |
| 20659 | esac |
| 20660 | ;; |
| 20661 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20662 | sunos4*) |
| 20663 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 20664 | wlarc= |
| 20665 | hardcode_direct_F77=yes |
| 20666 | hardcode_shlibpath_var_F77=no |
| 20667 | ;; |
| 20668 | |
| 20669 | *) |
| 20670 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 20671 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 20672 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 20673 | else |
| 20674 | ld_shlibs_F77=no |
| 20675 | fi |
| 20676 | ;; |
| 20677 | esac |
| 20678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20679 | if test "$ld_shlibs_F77" = no; then |
| 20680 | runpath_var= |
| 20681 | hardcode_libdir_flag_spec_F77= |
| 20682 | export_dynamic_flag_spec_F77= |
| 20683 | whole_archive_flag_spec_F77= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20684 | fi |
| 20685 | else |
| 20686 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 20687 | case $host_os in |
| 20688 | aix3*) |
| 20689 | allow_undefined_flag_F77=unsupported |
| 20690 | always_export_symbols_F77=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20691 | 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] | 20692 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 20693 | # are no directories specified by -L. |
| 20694 | hardcode_minus_L_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20695 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20696 | # Neither direct hardcoding nor static linking is supported with a |
| 20697 | # broken collect2. |
| 20698 | hardcode_direct_F77=unsupported |
| 20699 | fi |
| 20700 | ;; |
| 20701 | |
| 20702 | aix4* | aix5*) |
| 20703 | if test "$host_cpu" = ia64; then |
| 20704 | # On IA64, the linker does run time linking by default, so we don't |
| 20705 | # have to do anything special. |
| 20706 | aix_use_runtimelinking=no |
| 20707 | exp_sym_flag='-Bexport' |
| 20708 | no_entry_flag="" |
| 20709 | else |
| 20710 | # If we're using GNU nm, then we don't want the "-C" option. |
| 20711 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 20712 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 20713 | 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' |
| 20714 | else |
| 20715 | 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' |
| 20716 | fi |
| 20717 | aix_use_runtimelinking=no |
| 20718 | |
| 20719 | # Test if we are trying to use run time linking or normal |
| 20720 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 20721 | # need to do runtime linking. |
| 20722 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 20723 | for ld_flag in $LDFLAGS; do |
| 20724 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 20725 | aix_use_runtimelinking=yes |
| 20726 | break |
| 20727 | fi |
| 20728 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20729 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20730 | esac |
| 20731 | |
| 20732 | exp_sym_flag='-bexport' |
| 20733 | no_entry_flag='-bnoentry' |
| 20734 | fi |
| 20735 | |
| 20736 | # When large executables or shared objects are built, AIX ld can |
| 20737 | # have problems creating the table of contents. If linking a library |
| 20738 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 20739 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 20740 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 20741 | |
| 20742 | archive_cmds_F77='' |
| 20743 | hardcode_direct_F77=yes |
| 20744 | hardcode_libdir_separator_F77=':' |
| 20745 | link_all_deplibs_F77=yes |
| 20746 | |
| 20747 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20748 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20749 | # We only want to do this on AIX 4.2 and lower, the check |
| 20750 | # below for broken collect2 doesn't work under 4.3+ |
| 20751 | collect2name=`${CC} -print-prog-name=collect2` |
| 20752 | if test -f "$collect2name" && \ |
| 20753 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 20754 | then |
| 20755 | # We have reworked collect2 |
| 20756 | hardcode_direct_F77=yes |
| 20757 | else |
| 20758 | # We have old collect2 |
| 20759 | hardcode_direct_F77=unsupported |
| 20760 | # It fails to find uninstalled libraries when the uninstalled |
| 20761 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 20762 | # to unsupported forces relinking |
| 20763 | hardcode_minus_L_F77=yes |
| 20764 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20765 | hardcode_libdir_separator_F77= |
| 20766 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20767 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20768 | esac |
| 20769 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20770 | if test "$aix_use_runtimelinking" = yes; then |
| 20771 | shared_flag="$shared_flag "'${wl}-G' |
| 20772 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20773 | else |
| 20774 | # not using gcc |
| 20775 | if test "$host_cpu" = ia64; then |
| 20776 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 20777 | # chokes on -Wl,-G. The following line is correct: |
| 20778 | shared_flag='-G' |
| 20779 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20780 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20781 | shared_flag='${wl}-G' |
| 20782 | else |
| 20783 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20784 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20785 | fi |
| 20786 | fi |
| 20787 | |
| 20788 | # It seems that -bexpall does not export symbols beginning with |
| 20789 | # underscore (_), so it is better to generate a list of symbols to export. |
| 20790 | always_export_symbols_F77=yes |
| 20791 | if test "$aix_use_runtimelinking" = yes; then |
| 20792 | # Warning - without using the other runtime loading flags (-brtl), |
| 20793 | # -berok will link without error, but may produce a broken library. |
| 20794 | allow_undefined_flag_F77='-berok' |
| 20795 | # Determine the default libpath from the value encoded in an empty executable. |
| 20796 | cat >conftest.$ac_ext <<_ACEOF |
| 20797 | program main |
| 20798 | |
| 20799 | end |
| 20800 | _ACEOF |
| 20801 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20802 | if { (ac_try="$ac_link" |
| 20803 | case "(($ac_try" in |
| 20804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20805 | *) ac_try_echo=$ac_try;; |
| 20806 | esac |
| 20807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20808 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20809 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20811 | rm -f conftest.er1 |
| 20812 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 20814 | (exit $ac_status); } && { |
| 20815 | test -z "$ac_f77_werror_flag" || |
| 20816 | test ! -s conftest.err |
| 20817 | } && test -s conftest$ac_exeext && |
| 20818 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20819 | |
| 20820 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 20821 | }'` |
| 20822 | # Check for a 64-bit object if we didn't find anything. |
| 20823 | 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; } |
| 20824 | }'`; fi |
| 20825 | else |
| 20826 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20828 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20829 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20830 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20831 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 20832 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20833 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20834 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 20835 | |
| 20836 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20837 | 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] | 20838 | else |
| 20839 | if test "$host_cpu" = ia64; then |
| 20840 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 20841 | allow_undefined_flag_F77="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20842 | 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] | 20843 | else |
| 20844 | # Determine the default libpath from the value encoded in an empty executable. |
| 20845 | cat >conftest.$ac_ext <<_ACEOF |
| 20846 | program main |
| 20847 | |
| 20848 | end |
| 20849 | _ACEOF |
| 20850 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20851 | if { (ac_try="$ac_link" |
| 20852 | case "(($ac_try" in |
| 20853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 20854 | *) ac_try_echo=$ac_try;; |
| 20855 | esac |
| 20856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 20857 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20858 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20860 | rm -f conftest.er1 |
| 20861 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 20863 | (exit $ac_status); } && { |
| 20864 | test -z "$ac_f77_werror_flag" || |
| 20865 | test ! -s conftest.err |
| 20866 | } && test -s conftest$ac_exeext && |
| 20867 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20868 | |
| 20869 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 20870 | }'` |
| 20871 | # Check for a 64-bit object if we didn't find anything. |
| 20872 | 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; } |
| 20873 | }'`; fi |
| 20874 | else |
| 20875 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 20876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20877 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20878 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20879 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20880 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 20881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20882 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20883 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 20884 | |
| 20885 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 20886 | # Warning - without using the other run time loading flags, |
| 20887 | # -berok will link without error, but may produce a broken library. |
| 20888 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 20889 | allow_undefined_flag_F77=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20890 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20891 | whole_archive_flag_spec_F77='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20892 | archive_cmds_need_lc_F77=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20893 | # This is similar to how AIX traditionally builds its shared libraries. |
| 20894 | 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] | 20895 | fi |
| 20896 | fi |
| 20897 | ;; |
| 20898 | |
| 20899 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20900 | 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] | 20901 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20902 | hardcode_minus_L_F77=yes |
| 20903 | # see comment about different semantics on the GNU ld section |
| 20904 | ld_shlibs_F77=no |
| 20905 | ;; |
| 20906 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20907 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20908 | export_dynamic_flag_spec_F77=-rdynamic |
| 20909 | ;; |
| 20910 | |
| 20911 | cygwin* | mingw* | pw32*) |
| 20912 | # When not using gcc, we currently assume that we are using |
| 20913 | # Microsoft Visual C++. |
| 20914 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 20915 | # no search path for DLLs. |
| 20916 | hardcode_libdir_flag_spec_F77=' ' |
| 20917 | allow_undefined_flag_F77=unsupported |
| 20918 | # Tell ltmain to make .lib files, not .a files. |
| 20919 | libext=lib |
| 20920 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20921 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20922 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 20923 | 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] | 20924 | # The linker will automatically build a .lib file if we build a DLL. |
| 20925 | old_archive_From_new_cmds_F77='true' |
| 20926 | # FIXME: Should let the user specify the lib program. |
| 20927 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20928 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20929 | enable_shared_with_static_runtimes_F77=yes |
| 20930 | ;; |
| 20931 | |
| 20932 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20933 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20934 | rhapsody* | darwin1.[012]) |
| 20935 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 20936 | ;; |
| 20937 | *) # Darwin 1.3 on |
| 20938 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 20939 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 20940 | else |
| 20941 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 20942 | 10.[012]) |
| 20943 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 20944 | ;; |
| 20945 | 10.*) |
| 20946 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 20947 | ;; |
| 20948 | esac |
| 20949 | fi |
| 20950 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20951 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20952 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20953 | hardcode_direct_F77=no |
| 20954 | hardcode_automatic_F77=yes |
| 20955 | hardcode_shlibpath_var_F77=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20956 | whole_archive_flag_spec_F77='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20957 | link_all_deplibs_F77=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20958 | if test "$GCC" = yes ; then |
| 20959 | output_verbose_link_cmd='echo' |
| 20960 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 20961 | 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] | 20962 | # 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] | 20963 | 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}' |
| 20964 | 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] | 20965 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 20966 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 20967 | xlc*) |
| 20968 | output_verbose_link_cmd='echo' |
| 20969 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 20970 | 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] | 20971 | # 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] | 20972 | 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}' |
| 20973 | 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] | 20974 | ;; |
| 20975 | *) |
| 20976 | ld_shlibs_F77=no |
| 20977 | ;; |
| 20978 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 20979 | fi |
| 20980 | ;; |
| 20981 | |
| 20982 | dgux*) |
| 20983 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 20984 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 20985 | hardcode_shlibpath_var_F77=no |
| 20986 | ;; |
| 20987 | |
| 20988 | freebsd1*) |
| 20989 | ld_shlibs_F77=no |
| 20990 | ;; |
| 20991 | |
| 20992 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 20993 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 20994 | # does not break anything, and helps significantly (at the cost of a little |
| 20995 | # extra space). |
| 20996 | freebsd2.2*) |
| 20997 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 20998 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 20999 | hardcode_direct_F77=yes |
| 21000 | hardcode_shlibpath_var_F77=no |
| 21001 | ;; |
| 21002 | |
| 21003 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 21004 | freebsd2*) |
| 21005 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21006 | hardcode_direct_F77=yes |
| 21007 | hardcode_minus_L_F77=yes |
| 21008 | hardcode_shlibpath_var_F77=no |
| 21009 | ;; |
| 21010 | |
| 21011 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21012 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21013 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 21014 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21015 | hardcode_direct_F77=yes |
| 21016 | hardcode_shlibpath_var_F77=no |
| 21017 | ;; |
| 21018 | |
| 21019 | hpux9*) |
| 21020 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21021 | 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] | 21022 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21023 | 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] | 21024 | fi |
| 21025 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21026 | hardcode_libdir_separator_F77=: |
| 21027 | hardcode_direct_F77=yes |
| 21028 | |
| 21029 | # hardcode_minus_L: Not really in the search PATH, |
| 21030 | # but as the default location of the library. |
| 21031 | hardcode_minus_L_F77=yes |
| 21032 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21033 | ;; |
| 21034 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21035 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21036 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21037 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21038 | else |
| 21039 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 21040 | fi |
| 21041 | if test "$with_gnu_ld" = no; then |
| 21042 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21043 | hardcode_libdir_separator_F77=: |
| 21044 | |
| 21045 | hardcode_direct_F77=yes |
| 21046 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21047 | |
| 21048 | # hardcode_minus_L: Not really in the search PATH, |
| 21049 | # but as the default location of the library. |
| 21050 | hardcode_minus_L_F77=yes |
| 21051 | fi |
| 21052 | ;; |
| 21053 | |
| 21054 | hpux11*) |
| 21055 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 21056 | case $host_cpu in |
| 21057 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21058 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21059 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21060 | ia64*) |
| 21061 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 21062 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21063 | *) |
| 21064 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 21065 | ;; |
| 21066 | esac |
| 21067 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21068 | case $host_cpu in |
| 21069 | hppa*64*) |
| 21070 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21071 | ;; |
| 21072 | ia64*) |
| 21073 | 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] | 21074 | ;; |
| 21075 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21076 | 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] | 21077 | ;; |
| 21078 | esac |
| 21079 | fi |
| 21080 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21081 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 21082 | hardcode_libdir_separator_F77=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21083 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21084 | case $host_cpu in |
| 21085 | hppa*64*|ia64*) |
| 21086 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 21087 | hardcode_direct_F77=no |
| 21088 | hardcode_shlibpath_var_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21089 | ;; |
| 21090 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21091 | hardcode_direct_F77=yes |
| 21092 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21093 | |
| 21094 | # hardcode_minus_L: Not really in the search PATH, |
| 21095 | # but as the default location of the library. |
| 21096 | hardcode_minus_L_F77=yes |
| 21097 | ;; |
| 21098 | esac |
| 21099 | fi |
| 21100 | ;; |
| 21101 | |
| 21102 | irix5* | irix6* | nonstopux*) |
| 21103 | if test "$GCC" = yes; then |
| 21104 | 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' |
| 21105 | else |
| 21106 | 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' |
| 21107 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 21108 | fi |
| 21109 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 21110 | hardcode_libdir_separator_F77=: |
| 21111 | link_all_deplibs_F77=yes |
| 21112 | ;; |
| 21113 | |
| 21114 | netbsd*) |
| 21115 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21116 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 21117 | else |
| 21118 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 21119 | fi |
| 21120 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21121 | hardcode_direct_F77=yes |
| 21122 | hardcode_shlibpath_var_F77=no |
| 21123 | ;; |
| 21124 | |
| 21125 | newsos6) |
| 21126 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21127 | hardcode_direct_F77=yes |
| 21128 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 21129 | hardcode_libdir_separator_F77=: |
| 21130 | hardcode_shlibpath_var_F77=no |
| 21131 | ;; |
| 21132 | |
| 21133 | openbsd*) |
| 21134 | hardcode_direct_F77=yes |
| 21135 | hardcode_shlibpath_var_F77=no |
| 21136 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 21137 | 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] | 21138 | 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] | 21139 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21140 | export_dynamic_flag_spec_F77='${wl}-E' |
| 21141 | else |
| 21142 | case $host_os in |
| 21143 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 21144 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 21145 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21146 | ;; |
| 21147 | *) |
| 21148 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 21149 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 21150 | ;; |
| 21151 | esac |
| 21152 | fi |
| 21153 | ;; |
| 21154 | |
| 21155 | os2*) |
| 21156 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21157 | hardcode_minus_L_F77=yes |
| 21158 | allow_undefined_flag_F77=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21159 | 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] | 21160 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 21161 | ;; |
| 21162 | |
| 21163 | osf3*) |
| 21164 | if test "$GCC" = yes; then |
| 21165 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 21166 | 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' |
| 21167 | else |
| 21168 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 21169 | 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' |
| 21170 | fi |
| 21171 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 21172 | hardcode_libdir_separator_F77=: |
| 21173 | ;; |
| 21174 | |
| 21175 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 21176 | if test "$GCC" = yes; then |
| 21177 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 21178 | 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' |
| 21179 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 21180 | else |
| 21181 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 21182 | 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] | 21183 | 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] | 21184 | $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] | 21185 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21186 | # Both c and cxx compiler support -rpath directly |
| 21187 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 21188 | fi |
| 21189 | hardcode_libdir_separator_F77=: |
| 21190 | ;; |
| 21191 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21192 | solaris*) |
| 21193 | no_undefined_flag_F77=' -z text' |
| 21194 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21195 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21196 | 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] | 21197 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 21198 | $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] | 21199 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21200 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21201 | 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] | 21202 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 21203 | $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] | 21204 | fi |
| 21205 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 21206 | hardcode_shlibpath_var_F77=no |
| 21207 | case $host_os in |
| 21208 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21209 | *) |
| 21210 | # The compiler driver will combine linker options so we |
| 21211 | # cannot just pass the convience library names through |
| 21212 | # without $wl, iff we do not link with $LD. |
| 21213 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 21214 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 21215 | case $wlarc in |
| 21216 | '') |
| 21217 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 21218 | *) |
| 21219 | 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' ;; |
| 21220 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21221 | esac |
| 21222 | link_all_deplibs_F77=yes |
| 21223 | ;; |
| 21224 | |
| 21225 | sunos4*) |
| 21226 | if test "x$host_vendor" = xsequent; then |
| 21227 | # Use $CC to link under sequent, because it throws in some extra .o |
| 21228 | # files that make .init and .fini sections work. |
| 21229 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21230 | else |
| 21231 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 21232 | fi |
| 21233 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21234 | hardcode_direct_F77=yes |
| 21235 | hardcode_minus_L_F77=yes |
| 21236 | hardcode_shlibpath_var_F77=no |
| 21237 | ;; |
| 21238 | |
| 21239 | sysv4) |
| 21240 | case $host_vendor in |
| 21241 | sni) |
| 21242 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21243 | hardcode_direct_F77=yes # is this really true??? |
| 21244 | ;; |
| 21245 | siemens) |
| 21246 | ## LD is ld it makes a PLAMLIB |
| 21247 | ## CC just makes a GrossModule. |
| 21248 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 21249 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 21250 | hardcode_direct_F77=no |
| 21251 | ;; |
| 21252 | motorola) |
| 21253 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21254 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 21255 | ;; |
| 21256 | esac |
| 21257 | runpath_var='LD_RUN_PATH' |
| 21258 | hardcode_shlibpath_var_F77=no |
| 21259 | ;; |
| 21260 | |
| 21261 | sysv4.3*) |
| 21262 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21263 | hardcode_shlibpath_var_F77=no |
| 21264 | export_dynamic_flag_spec_F77='-Bexport' |
| 21265 | ;; |
| 21266 | |
| 21267 | sysv4*MP*) |
| 21268 | if test -d /usr/nec; then |
| 21269 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21270 | hardcode_shlibpath_var_F77=no |
| 21271 | runpath_var=LD_RUN_PATH |
| 21272 | hardcode_runpath_var=yes |
| 21273 | ld_shlibs_F77=yes |
| 21274 | fi |
| 21275 | ;; |
| 21276 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21277 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 21278 | no_undefined_flag_F77='${wl}-z,text' |
| 21279 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21280 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21281 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21282 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21283 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21284 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21285 | 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] | 21286 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21287 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21288 | 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] | 21289 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21290 | ;; |
| 21291 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21292 | sysv5* | sco3.2v5* | sco5v6*) |
| 21293 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 21294 | # link with -lc, and that would cause any symbols used from libc to |
| 21295 | # always be unresolved, which means just about no library would |
| 21296 | # ever link correctly. If we're not using GNU ld we use -z text |
| 21297 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 21298 | # as -z defs. |
| 21299 | no_undefined_flag_F77='${wl}-z,text' |
| 21300 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 21301 | archive_cmds_need_lc_F77=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21302 | hardcode_shlibpath_var_F77=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21303 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 21304 | hardcode_libdir_separator_F77=':' |
| 21305 | link_all_deplibs_F77=yes |
| 21306 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21307 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21308 | |
| 21309 | if test "$GCC" = yes; then |
| 21310 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21311 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21312 | else |
| 21313 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21314 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 21315 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21316 | ;; |
| 21317 | |
| 21318 | uts4*) |
| 21319 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 21320 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 21321 | hardcode_shlibpath_var_F77=no |
| 21322 | ;; |
| 21323 | |
| 21324 | *) |
| 21325 | ld_shlibs_F77=no |
| 21326 | ;; |
| 21327 | esac |
| 21328 | fi |
| 21329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21330 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 21331 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21332 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 21333 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21334 | # |
| 21335 | # Do we need to explicitly link libc? |
| 21336 | # |
| 21337 | case "x$archive_cmds_need_lc_F77" in |
| 21338 | x|xyes) |
| 21339 | # Assume -lc should be added |
| 21340 | archive_cmds_need_lc_F77=yes |
| 21341 | |
| 21342 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 21343 | case $archive_cmds_F77 in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21344 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21345 | # FIXME: we may have to deal with multi-command sequences. |
| 21346 | ;; |
| 21347 | '$CC '*) |
| 21348 | # Test whether the compiler implicitly links with -lc since on some |
| 21349 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 21350 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21351 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 21352 | 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] | 21353 | $rm conftest* |
| 21354 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 21355 | |
| 21356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21357 | (eval $ac_compile) 2>&5 |
| 21358 | ac_status=$? |
| 21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21360 | (exit $ac_status); } 2>conftest.err; then |
| 21361 | soname=conftest |
| 21362 | lib=conftest |
| 21363 | libobjs=conftest.$ac_objext |
| 21364 | deplibs= |
| 21365 | wl=$lt_prog_compiler_wl_F77 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21366 | pic_flag=$lt_prog_compiler_pic_F77 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21367 | compiler_flags=-v |
| 21368 | linker_flags=-v |
| 21369 | verstring= |
| 21370 | output_objdir=. |
| 21371 | libname=conftest |
| 21372 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 21373 | allow_undefined_flag_F77= |
| 21374 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 21375 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 21376 | ac_status=$? |
| 21377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21378 | (exit $ac_status); } |
| 21379 | then |
| 21380 | archive_cmds_need_lc_F77=no |
| 21381 | else |
| 21382 | archive_cmds_need_lc_F77=yes |
| 21383 | fi |
| 21384 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 21385 | else |
| 21386 | cat conftest.err 1>&5 |
| 21387 | fi |
| 21388 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21389 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 21390 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21391 | ;; |
| 21392 | esac |
| 21393 | fi |
| 21394 | ;; |
| 21395 | esac |
| 21396 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21397 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 21398 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21399 | library_names_spec= |
| 21400 | libname_spec='lib$name' |
| 21401 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21402 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21403 | postinstall_cmds= |
| 21404 | postuninstall_cmds= |
| 21405 | finish_cmds= |
| 21406 | finish_eval= |
| 21407 | shlibpath_var= |
| 21408 | shlibpath_overrides_runpath=unknown |
| 21409 | version_type=none |
| 21410 | dynamic_linker="$host_os ld.so" |
| 21411 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 21412 | if test "$GCC" = yes; then |
| 21413 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 21414 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 21415 | # if the path contains ";" then we assume it to be the separator |
| 21416 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 21417 | # assumed that no part of a normal pathname contains ";" but that should |
| 21418 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 21419 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 21420 | else |
| 21421 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 21422 | fi |
| 21423 | else |
| 21424 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 21425 | fi |
| 21426 | need_lib_prefix=unknown |
| 21427 | hardcode_into_libs=no |
| 21428 | |
| 21429 | # when you set need_version to no, make sure it does not cause -set_version |
| 21430 | # flags to be left without arguments |
| 21431 | need_version=unknown |
| 21432 | |
| 21433 | case $host_os in |
| 21434 | aix3*) |
| 21435 | version_type=linux |
| 21436 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 21437 | shlibpath_var=LIBPATH |
| 21438 | |
| 21439 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 21440 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21441 | ;; |
| 21442 | |
| 21443 | aix4* | aix5*) |
| 21444 | version_type=linux |
| 21445 | need_lib_prefix=no |
| 21446 | need_version=no |
| 21447 | hardcode_into_libs=yes |
| 21448 | if test "$host_cpu" = ia64; then |
| 21449 | # AIX 5 supports IA64 |
| 21450 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 21451 | shlibpath_var=LD_LIBRARY_PATH |
| 21452 | else |
| 21453 | # With GCC up to 2.95.x, collect2 would create an import file |
| 21454 | # for dependence libraries. The import file would start with |
| 21455 | # the line `#! .'. This would cause the generated library to |
| 21456 | # depend on `.', always an invalid library. This was fixed in |
| 21457 | # development snapshots of GCC prior to 3.0. |
| 21458 | case $host_os in |
| 21459 | aix4 | aix4.[01] | aix4.[01].*) |
| 21460 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 21461 | echo ' yes ' |
| 21462 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 21463 | : |
| 21464 | else |
| 21465 | can_build_shared=no |
| 21466 | fi |
| 21467 | ;; |
| 21468 | esac |
| 21469 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 21470 | # soname into executable. Probably we can add versioning support to |
| 21471 | # collect2, so additional links can be useful in future. |
| 21472 | if test "$aix_use_runtimelinking" = yes; then |
| 21473 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 21474 | # instead of lib<name>.a to let people know that these are not |
| 21475 | # typical AIX shared libraries. |
| 21476 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21477 | else |
| 21478 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 21479 | # and later when we are not doing run time linking. |
| 21480 | library_names_spec='${libname}${release}.a $libname.a' |
| 21481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21482 | fi |
| 21483 | shlibpath_var=LIBPATH |
| 21484 | fi |
| 21485 | ;; |
| 21486 | |
| 21487 | amigaos*) |
| 21488 | library_names_spec='$libname.ixlibrary $libname.a' |
| 21489 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21490 | 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] | 21491 | ;; |
| 21492 | |
| 21493 | beos*) |
| 21494 | library_names_spec='${libname}${shared_ext}' |
| 21495 | dynamic_linker="$host_os ld.so" |
| 21496 | shlibpath_var=LIBRARY_PATH |
| 21497 | ;; |
| 21498 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21499 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21500 | version_type=linux |
| 21501 | need_version=no |
| 21502 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 21505 | shlibpath_var=LD_LIBRARY_PATH |
| 21506 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 21507 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 21508 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 21509 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 21510 | # libtool to hard-code these into programs |
| 21511 | ;; |
| 21512 | |
| 21513 | cygwin* | mingw* | pw32*) |
| 21514 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21515 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21516 | need_version=no |
| 21517 | need_lib_prefix=no |
| 21518 | |
| 21519 | case $GCC,$host_os in |
| 21520 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 21521 | library_names_spec='$libname.dll.a' |
| 21522 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21523 | postinstall_cmds='base_file=`basename \${file}`~ |
| 21524 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 21525 | dldir=$destdir/`dirname \$dlpath`~ |
| 21526 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21527 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 21528 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 21529 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 21530 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21531 | $rm \$dlpath' |
| 21532 | shlibpath_overrides_runpath=yes |
| 21533 | |
| 21534 | case $host_os in |
| 21535 | cygwin*) |
| 21536 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 21537 | 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] | 21538 | 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] | 21539 | ;; |
| 21540 | mingw*) |
| 21541 | # MinGW DLLs use traditional 'lib' prefix |
| 21542 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 21543 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 21544 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 21545 | # It is most probably a Windows format PATH printed by |
| 21546 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 21547 | # path with ; separators, and with drive letters. We can handle the |
| 21548 | # drive letters (cygwin fileutils understands them), so leave them, |
| 21549 | # especially as we might pass files found there to a mingw objdump, |
| 21550 | # which wouldn't understand a cygwinified path. Ahh. |
| 21551 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 21552 | else |
| 21553 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 21554 | fi |
| 21555 | ;; |
| 21556 | pw32*) |
| 21557 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21558 | 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] | 21559 | ;; |
| 21560 | esac |
| 21561 | ;; |
| 21562 | |
| 21563 | *) |
| 21564 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 21565 | ;; |
| 21566 | esac |
| 21567 | dynamic_linker='Win32 ld.exe' |
| 21568 | # FIXME: first we should search . and the directory the executable is in |
| 21569 | shlibpath_var=PATH |
| 21570 | ;; |
| 21571 | |
| 21572 | darwin* | rhapsody*) |
| 21573 | dynamic_linker="$host_os dyld" |
| 21574 | version_type=darwin |
| 21575 | need_lib_prefix=no |
| 21576 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21577 | 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] | 21578 | soname_spec='${libname}${release}${major}$shared_ext' |
| 21579 | shlibpath_overrides_runpath=yes |
| 21580 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 21581 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21582 | # 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] | 21583 | if test "$GCC" = yes; then |
| 21584 | 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"` |
| 21585 | else |
| 21586 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21587 | fi |
| 21588 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 21589 | ;; |
| 21590 | |
| 21591 | dgux*) |
| 21592 | version_type=linux |
| 21593 | need_lib_prefix=no |
| 21594 | need_version=no |
| 21595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 21596 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21597 | shlibpath_var=LD_LIBRARY_PATH |
| 21598 | ;; |
| 21599 | |
| 21600 | freebsd1*) |
| 21601 | dynamic_linker=no |
| 21602 | ;; |
| 21603 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21604 | kfreebsd*-gnu) |
| 21605 | version_type=linux |
| 21606 | need_lib_prefix=no |
| 21607 | need_version=no |
| 21608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 21609 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21610 | shlibpath_var=LD_LIBRARY_PATH |
| 21611 | shlibpath_overrides_runpath=no |
| 21612 | hardcode_into_libs=yes |
| 21613 | dynamic_linker='GNU ld.so' |
| 21614 | ;; |
| 21615 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21616 | freebsd* | dragonfly*) |
| 21617 | # DragonFly does not have aout. When/if they implement a new |
| 21618 | # versioning mechanism, adjust this. |
| 21619 | if test -x /usr/bin/objformat; then |
| 21620 | objformat=`/usr/bin/objformat` |
| 21621 | else |
| 21622 | case $host_os in |
| 21623 | freebsd[123]*) objformat=aout ;; |
| 21624 | *) objformat=elf ;; |
| 21625 | esac |
| 21626 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21627 | version_type=freebsd-$objformat |
| 21628 | case $version_type in |
| 21629 | freebsd-elf*) |
| 21630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 21631 | need_version=no |
| 21632 | need_lib_prefix=no |
| 21633 | ;; |
| 21634 | freebsd-*) |
| 21635 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 21636 | need_version=yes |
| 21637 | ;; |
| 21638 | esac |
| 21639 | shlibpath_var=LD_LIBRARY_PATH |
| 21640 | case $host_os in |
| 21641 | freebsd2*) |
| 21642 | shlibpath_overrides_runpath=yes |
| 21643 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21644 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21645 | shlibpath_overrides_runpath=yes |
| 21646 | hardcode_into_libs=yes |
| 21647 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21648 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 21649 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21650 | shlibpath_overrides_runpath=no |
| 21651 | hardcode_into_libs=yes |
| 21652 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21653 | freebsd*) # from 4.6 on |
| 21654 | shlibpath_overrides_runpath=yes |
| 21655 | hardcode_into_libs=yes |
| 21656 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21657 | esac |
| 21658 | ;; |
| 21659 | |
| 21660 | gnu*) |
| 21661 | version_type=linux |
| 21662 | need_lib_prefix=no |
| 21663 | need_version=no |
| 21664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 21665 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21666 | shlibpath_var=LD_LIBRARY_PATH |
| 21667 | hardcode_into_libs=yes |
| 21668 | ;; |
| 21669 | |
| 21670 | hpux9* | hpux10* | hpux11*) |
| 21671 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 21672 | # link against other versions. |
| 21673 | version_type=sunos |
| 21674 | need_lib_prefix=no |
| 21675 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21676 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21677 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21678 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21679 | hardcode_into_libs=yes |
| 21680 | dynamic_linker="$host_os dld.so" |
| 21681 | shlibpath_var=LD_LIBRARY_PATH |
| 21682 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 21683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21684 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21685 | if test "X$HPUX_IA64_MODE" = X32; then |
| 21686 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 21687 | else |
| 21688 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 21689 | fi |
| 21690 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 21691 | ;; |
| 21692 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21693 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21694 | hardcode_into_libs=yes |
| 21695 | dynamic_linker="$host_os dld.sl" |
| 21696 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 21697 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 21698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21699 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21700 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 21701 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 21702 | ;; |
| 21703 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21704 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21705 | dynamic_linker="$host_os dld.sl" |
| 21706 | shlibpath_var=SHLIB_PATH |
| 21707 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 21708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21709 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21710 | ;; |
| 21711 | esac |
| 21712 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 21713 | postinstall_cmds='chmod 555 $lib' |
| 21714 | ;; |
| 21715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21716 | interix3*) |
| 21717 | version_type=linux |
| 21718 | need_lib_prefix=no |
| 21719 | need_version=no |
| 21720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 21721 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21722 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 21723 | shlibpath_var=LD_LIBRARY_PATH |
| 21724 | shlibpath_overrides_runpath=no |
| 21725 | hardcode_into_libs=yes |
| 21726 | ;; |
| 21727 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21728 | irix5* | irix6* | nonstopux*) |
| 21729 | case $host_os in |
| 21730 | nonstopux*) version_type=nonstopux ;; |
| 21731 | *) |
| 21732 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 21733 | version_type=linux |
| 21734 | else |
| 21735 | version_type=irix |
| 21736 | fi ;; |
| 21737 | esac |
| 21738 | need_lib_prefix=no |
| 21739 | need_version=no |
| 21740 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21741 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 21742 | case $host_os in |
| 21743 | irix5* | nonstopux*) |
| 21744 | libsuff= shlibsuff= |
| 21745 | ;; |
| 21746 | *) |
| 21747 | case $LD in # libtool.m4 will add one of these switches to LD |
| 21748 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 21749 | libsuff= shlibsuff= libmagic=32-bit;; |
| 21750 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 21751 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 21752 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 21753 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 21754 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 21755 | esac |
| 21756 | ;; |
| 21757 | esac |
| 21758 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 21759 | shlibpath_overrides_runpath=no |
| 21760 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 21761 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 21762 | hardcode_into_libs=yes |
| 21763 | ;; |
| 21764 | |
| 21765 | # No shared lib support for Linux oldld, aout, or coff. |
| 21766 | linux*oldld* | linux*aout* | linux*coff*) |
| 21767 | dynamic_linker=no |
| 21768 | ;; |
| 21769 | |
| 21770 | # This must be Linux ELF. |
| 21771 | linux*) |
| 21772 | version_type=linux |
| 21773 | need_lib_prefix=no |
| 21774 | need_version=no |
| 21775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21776 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21777 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 21778 | shlibpath_var=LD_LIBRARY_PATH |
| 21779 | shlibpath_overrides_runpath=no |
| 21780 | # This implies no fast_install, which is unacceptable. |
| 21781 | # Some rework will be needed to allow for fast_install |
| 21782 | # before this can be enabled. |
| 21783 | hardcode_into_libs=yes |
| 21784 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21785 | # Append ld.so.conf contents to the search path |
| 21786 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21787 | 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] | 21788 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 21789 | fi |
| 21790 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21791 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 21792 | # powerpc, because MkLinux only supported shared libraries with the |
| 21793 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 21794 | # most powerpc-linux boxes support dynamic linking these days and |
| 21795 | # people can always --disable-shared, the test was removed, and we |
| 21796 | # assume the GNU/Linux dynamic linker is in use. |
| 21797 | dynamic_linker='GNU/Linux ld.so' |
| 21798 | ;; |
| 21799 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21800 | knetbsd*-gnu) |
| 21801 | version_type=linux |
| 21802 | need_lib_prefix=no |
| 21803 | need_version=no |
| 21804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 21805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21806 | shlibpath_var=LD_LIBRARY_PATH |
| 21807 | shlibpath_overrides_runpath=no |
| 21808 | hardcode_into_libs=yes |
| 21809 | dynamic_linker='GNU ld.so' |
| 21810 | ;; |
| 21811 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21812 | netbsd*) |
| 21813 | version_type=sunos |
| 21814 | need_lib_prefix=no |
| 21815 | need_version=no |
| 21816 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 21817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 21818 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 21819 | dynamic_linker='NetBSD (a.out) ld.so' |
| 21820 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21821 | 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] | 21822 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21823 | dynamic_linker='NetBSD ld.elf_so' |
| 21824 | fi |
| 21825 | shlibpath_var=LD_LIBRARY_PATH |
| 21826 | shlibpath_overrides_runpath=yes |
| 21827 | hardcode_into_libs=yes |
| 21828 | ;; |
| 21829 | |
| 21830 | newsos6) |
| 21831 | version_type=linux |
| 21832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21833 | shlibpath_var=LD_LIBRARY_PATH |
| 21834 | shlibpath_overrides_runpath=yes |
| 21835 | ;; |
| 21836 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21837 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21838 | version_type=linux |
| 21839 | need_lib_prefix=no |
| 21840 | need_version=no |
| 21841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21843 | shlibpath_var=LD_LIBRARY_PATH |
| 21844 | shlibpath_overrides_runpath=yes |
| 21845 | ;; |
| 21846 | |
| 21847 | openbsd*) |
| 21848 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21849 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21850 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21851 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 21852 | case $host_os in |
| 21853 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 21854 | *) need_version=no ;; |
| 21855 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 21857 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 21858 | shlibpath_var=LD_LIBRARY_PATH |
| 21859 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 21860 | case $host_os in |
| 21861 | openbsd2.[89] | openbsd2.[89].*) |
| 21862 | shlibpath_overrides_runpath=no |
| 21863 | ;; |
| 21864 | *) |
| 21865 | shlibpath_overrides_runpath=yes |
| 21866 | ;; |
| 21867 | esac |
| 21868 | else |
| 21869 | shlibpath_overrides_runpath=yes |
| 21870 | fi |
| 21871 | ;; |
| 21872 | |
| 21873 | os2*) |
| 21874 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 21875 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21876 | need_lib_prefix=no |
| 21877 | library_names_spec='$libname${shared_ext} $libname.a' |
| 21878 | dynamic_linker='OS/2 ld.exe' |
| 21879 | shlibpath_var=LIBPATH |
| 21880 | ;; |
| 21881 | |
| 21882 | osf3* | osf4* | osf5*) |
| 21883 | version_type=osf |
| 21884 | need_lib_prefix=no |
| 21885 | need_version=no |
| 21886 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21888 | shlibpath_var=LD_LIBRARY_PATH |
| 21889 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 21890 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 21891 | ;; |
| 21892 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21893 | solaris*) |
| 21894 | version_type=linux |
| 21895 | need_lib_prefix=no |
| 21896 | need_version=no |
| 21897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21898 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21899 | shlibpath_var=LD_LIBRARY_PATH |
| 21900 | shlibpath_overrides_runpath=yes |
| 21901 | hardcode_into_libs=yes |
| 21902 | # ldd complains unless libraries are executable |
| 21903 | postinstall_cmds='chmod +x $lib' |
| 21904 | ;; |
| 21905 | |
| 21906 | sunos4*) |
| 21907 | version_type=sunos |
| 21908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 21909 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 21910 | shlibpath_var=LD_LIBRARY_PATH |
| 21911 | shlibpath_overrides_runpath=yes |
| 21912 | if test "$with_gnu_ld" = yes; then |
| 21913 | need_lib_prefix=no |
| 21914 | fi |
| 21915 | need_version=yes |
| 21916 | ;; |
| 21917 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21918 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21919 | version_type=linux |
| 21920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21921 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21922 | shlibpath_var=LD_LIBRARY_PATH |
| 21923 | case $host_vendor in |
| 21924 | sni) |
| 21925 | shlibpath_overrides_runpath=no |
| 21926 | need_lib_prefix=no |
| 21927 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 21928 | runpath_var=LD_RUN_PATH |
| 21929 | ;; |
| 21930 | siemens) |
| 21931 | need_lib_prefix=no |
| 21932 | ;; |
| 21933 | motorola) |
| 21934 | need_lib_prefix=no |
| 21935 | need_version=no |
| 21936 | shlibpath_overrides_runpath=no |
| 21937 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 21938 | ;; |
| 21939 | esac |
| 21940 | ;; |
| 21941 | |
| 21942 | sysv4*MP*) |
| 21943 | if test -d /usr/nec ;then |
| 21944 | version_type=linux |
| 21945 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 21946 | soname_spec='$libname${shared_ext}.$major' |
| 21947 | shlibpath_var=LD_LIBRARY_PATH |
| 21948 | fi |
| 21949 | ;; |
| 21950 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21951 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 21952 | version_type=freebsd-elf |
| 21953 | need_lib_prefix=no |
| 21954 | need_version=no |
| 21955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 21956 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21957 | shlibpath_var=LD_LIBRARY_PATH |
| 21958 | hardcode_into_libs=yes |
| 21959 | if test "$with_gnu_ld" = yes; then |
| 21960 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 21961 | shlibpath_overrides_runpath=no |
| 21962 | else |
| 21963 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 21964 | shlibpath_overrides_runpath=yes |
| 21965 | case $host_os in |
| 21966 | sco3.2v5*) |
| 21967 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 21968 | ;; |
| 21969 | esac |
| 21970 | fi |
| 21971 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 21972 | ;; |
| 21973 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21974 | uts4*) |
| 21975 | version_type=linux |
| 21976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 21977 | soname_spec='${libname}${release}${shared_ext}$major' |
| 21978 | shlibpath_var=LD_LIBRARY_PATH |
| 21979 | ;; |
| 21980 | |
| 21981 | *) |
| 21982 | dynamic_linker=no |
| 21983 | ;; |
| 21984 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21985 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 21986 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 21987 | test "$dynamic_linker" = no && can_build_shared=no |
| 21988 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 21989 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 21990 | if test "$GCC" = yes; then |
| 21991 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 21992 | fi |
| 21993 | |
| 21994 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 21995 | 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] | 21996 | hardcode_action_F77= |
| 21997 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| 21998 | test -n "$runpath_var_F77" || \ |
| 21999 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| 22000 | |
| 22001 | # We can hardcode non-existant directories. |
| 22002 | if test "$hardcode_direct_F77" != no && |
| 22003 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 22004 | # have to relink, otherwise we might link with an installed library |
| 22005 | # when we should be linking with a yet-to-be-installed one |
| 22006 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 22007 | test "$hardcode_minus_L_F77" != no; then |
| 22008 | # Linking always hardcodes the temporary library directory. |
| 22009 | hardcode_action_F77=relink |
| 22010 | else |
| 22011 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 22012 | hardcode_action_F77=immediate |
| 22013 | fi |
| 22014 | else |
| 22015 | # We cannot hardcode anything, or else we can only hardcode existing |
| 22016 | # directories. |
| 22017 | hardcode_action_F77=unsupported |
| 22018 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22019 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 22020 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22021 | |
| 22022 | if test "$hardcode_action_F77" = relink; then |
| 22023 | # Fast installation is not supported |
| 22024 | enable_fast_install=no |
| 22025 | elif test "$shlibpath_overrides_runpath" = yes || |
| 22026 | test "$enable_shared" = no; then |
| 22027 | # Fast installation is not necessary |
| 22028 | enable_fast_install=needless |
| 22029 | fi |
| 22030 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22031 | |
| 22032 | # The else clause should only fire when bootstrapping the |
| 22033 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 22034 | # with your package, and you will get complaints that there are |
| 22035 | # no rules to generate ltmain.sh. |
| 22036 | if test -f "$ltmain"; then |
| 22037 | # See if we are running on zsh, and set the options which allow our commands through |
| 22038 | # without removal of \ escapes. |
| 22039 | if test -n "${ZSH_VERSION+set}" ; then |
| 22040 | setopt NO_GLOB_SUBST |
| 22041 | fi |
| 22042 | # Now quote all the things that may contain metacharacters while being |
| 22043 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 22044 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22045 | 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] | 22046 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22047 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 22048 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 22049 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 22050 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 22051 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 22052 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 22053 | old_postinstall_cmds old_postuninstall_cmds \ |
| 22054 | compiler_F77 \ |
| 22055 | CC_F77 \ |
| 22056 | LD_F77 \ |
| 22057 | lt_prog_compiler_wl_F77 \ |
| 22058 | lt_prog_compiler_pic_F77 \ |
| 22059 | lt_prog_compiler_static_F77 \ |
| 22060 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 22061 | export_dynamic_flag_spec_F77 \ |
| 22062 | thread_safe_flag_spec_F77 \ |
| 22063 | whole_archive_flag_spec_F77 \ |
| 22064 | enable_shared_with_static_runtimes_F77 \ |
| 22065 | old_archive_cmds_F77 \ |
| 22066 | old_archive_from_new_cmds_F77 \ |
| 22067 | predep_objects_F77 \ |
| 22068 | postdep_objects_F77 \ |
| 22069 | predeps_F77 \ |
| 22070 | postdeps_F77 \ |
| 22071 | compiler_lib_search_path_F77 \ |
| 22072 | archive_cmds_F77 \ |
| 22073 | archive_expsym_cmds_F77 \ |
| 22074 | postinstall_cmds_F77 \ |
| 22075 | postuninstall_cmds_F77 \ |
| 22076 | old_archive_from_expsyms_cmds_F77 \ |
| 22077 | allow_undefined_flag_F77 \ |
| 22078 | no_undefined_flag_F77 \ |
| 22079 | export_symbols_cmds_F77 \ |
| 22080 | hardcode_libdir_flag_spec_F77 \ |
| 22081 | hardcode_libdir_flag_spec_ld_F77 \ |
| 22082 | hardcode_libdir_separator_F77 \ |
| 22083 | hardcode_automatic_F77 \ |
| 22084 | module_cmds_F77 \ |
| 22085 | module_expsym_cmds_F77 \ |
| 22086 | lt_cv_prog_compiler_c_o_F77 \ |
| 22087 | exclude_expsyms_F77 \ |
| 22088 | include_expsyms_F77; do |
| 22089 | |
| 22090 | case $var in |
| 22091 | old_archive_cmds_F77 | \ |
| 22092 | old_archive_from_new_cmds_F77 | \ |
| 22093 | archive_cmds_F77 | \ |
| 22094 | archive_expsym_cmds_F77 | \ |
| 22095 | module_cmds_F77 | \ |
| 22096 | module_expsym_cmds_F77 | \ |
| 22097 | old_archive_from_expsyms_cmds_F77 | \ |
| 22098 | export_symbols_cmds_F77 | \ |
| 22099 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 22100 | postinstall_cmds | postuninstall_cmds | \ |
| 22101 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 22102 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 22103 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22104 | 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] | 22105 | ;; |
| 22106 | *) |
| 22107 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 22108 | ;; |
| 22109 | esac |
| 22110 | done |
| 22111 | |
| 22112 | case $lt_echo in |
| 22113 | *'\$0 --fallback-echo"') |
| 22114 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 22115 | ;; |
| 22116 | esac |
| 22117 | |
| 22118 | cfgfile="$ofile" |
| 22119 | |
| 22120 | cat <<__EOF__ >> "$cfgfile" |
| 22121 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 22122 | |
| 22123 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 22124 | |
| 22125 | # Shell to use when invoking shell scripts. |
| 22126 | SHELL=$lt_SHELL |
| 22127 | |
| 22128 | # Whether or not to build shared libraries. |
| 22129 | build_libtool_libs=$enable_shared |
| 22130 | |
| 22131 | # Whether or not to build static libraries. |
| 22132 | build_old_libs=$enable_static |
| 22133 | |
| 22134 | # Whether or not to add -lc for building shared libraries. |
| 22135 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 22136 | |
| 22137 | # Whether or not to disallow shared libs when runtime libs are static |
| 22138 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 22139 | |
| 22140 | # Whether or not to optimize for fast installation. |
| 22141 | fast_install=$enable_fast_install |
| 22142 | |
| 22143 | # The host system. |
| 22144 | host_alias=$host_alias |
| 22145 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22146 | host_os=$host_os |
| 22147 | |
| 22148 | # The build system. |
| 22149 | build_alias=$build_alias |
| 22150 | build=$build |
| 22151 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22152 | |
| 22153 | # An echo program that does not interpret backslashes. |
| 22154 | echo=$lt_echo |
| 22155 | |
| 22156 | # The archiver. |
| 22157 | AR=$lt_AR |
| 22158 | AR_FLAGS=$lt_AR_FLAGS |
| 22159 | |
| 22160 | # A C compiler. |
| 22161 | LTCC=$lt_LTCC |
| 22162 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22163 | # LTCC compiler flags. |
| 22164 | LTCFLAGS=$lt_LTCFLAGS |
| 22165 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22166 | # A language-specific compiler. |
| 22167 | CC=$lt_compiler_F77 |
| 22168 | |
| 22169 | # Is the compiler the GNU C compiler? |
| 22170 | with_gcc=$GCC_F77 |
| 22171 | |
| 22172 | # An ERE matcher. |
| 22173 | EGREP=$lt_EGREP |
| 22174 | |
| 22175 | # The linker used to build libraries. |
| 22176 | LD=$lt_LD_F77 |
| 22177 | |
| 22178 | # Whether we need hard or soft links. |
| 22179 | LN_S=$lt_LN_S |
| 22180 | |
| 22181 | # A BSD-compatible nm program. |
| 22182 | NM=$lt_NM |
| 22183 | |
| 22184 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22185 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22186 | |
| 22187 | # Used to examine libraries when file_magic_cmd begins "file" |
| 22188 | MAGIC_CMD=$MAGIC_CMD |
| 22189 | |
| 22190 | # Used on cygwin: DLL creation program. |
| 22191 | DLLTOOL="$DLLTOOL" |
| 22192 | |
| 22193 | # Used on cygwin: object dumper. |
| 22194 | OBJDUMP="$OBJDUMP" |
| 22195 | |
| 22196 | # Used on cygwin: assembler. |
| 22197 | AS="$AS" |
| 22198 | |
| 22199 | # The name of the directory that contains temporary libtool files. |
| 22200 | objdir=$objdir |
| 22201 | |
| 22202 | # How to create reloadable object files. |
| 22203 | reload_flag=$lt_reload_flag |
| 22204 | reload_cmds=$lt_reload_cmds |
| 22205 | |
| 22206 | # How to pass a linker flag through the compiler. |
| 22207 | wl=$lt_lt_prog_compiler_wl_F77 |
| 22208 | |
| 22209 | # Object file suffix (normally "o"). |
| 22210 | objext="$ac_objext" |
| 22211 | |
| 22212 | # Old archive suffix (normally "a"). |
| 22213 | libext="$libext" |
| 22214 | |
| 22215 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22216 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22217 | |
| 22218 | # Executable file suffix (normally ""). |
| 22219 | exeext="$exeext" |
| 22220 | |
| 22221 | # Additional compiler flags for building library objects. |
| 22222 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 22223 | pic_mode=$pic_mode |
| 22224 | |
| 22225 | # What is the maximum length of a command? |
| 22226 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 22227 | |
| 22228 | # Does compiler simultaneously support -c and -o options? |
| 22229 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 22230 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22231 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22232 | need_locks=$lt_need_locks |
| 22233 | |
| 22234 | # Do we need the lib prefix for modules? |
| 22235 | need_lib_prefix=$need_lib_prefix |
| 22236 | |
| 22237 | # Do we need a version for libraries? |
| 22238 | need_version=$need_version |
| 22239 | |
| 22240 | # Whether dlopen is supported. |
| 22241 | dlopen_support=$enable_dlopen |
| 22242 | |
| 22243 | # Whether dlopen of programs is supported. |
| 22244 | dlopen_self=$enable_dlopen_self |
| 22245 | |
| 22246 | # Whether dlopen of statically linked programs is supported. |
| 22247 | dlopen_self_static=$enable_dlopen_self_static |
| 22248 | |
| 22249 | # Compiler flag to prevent dynamic linking. |
| 22250 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 22251 | |
| 22252 | # Compiler flag to turn off builtin functions. |
| 22253 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 22254 | |
| 22255 | # Compiler flag to allow reflexive dlopens. |
| 22256 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 22257 | |
| 22258 | # Compiler flag to generate shared objects directly from archives. |
| 22259 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 22260 | |
| 22261 | # Compiler flag to generate thread-safe objects. |
| 22262 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 22263 | |
| 22264 | # Library versioning type. |
| 22265 | version_type=$version_type |
| 22266 | |
| 22267 | # Format of library name prefix. |
| 22268 | libname_spec=$lt_libname_spec |
| 22269 | |
| 22270 | # List of archive names. First name is the real one, the rest are links. |
| 22271 | # The last name is the one that the linker finds with -lNAME. |
| 22272 | library_names_spec=$lt_library_names_spec |
| 22273 | |
| 22274 | # The coded name of the library, if different from the real name. |
| 22275 | soname_spec=$lt_soname_spec |
| 22276 | |
| 22277 | # Commands used to build and install an old-style archive. |
| 22278 | RANLIB=$lt_RANLIB |
| 22279 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 22280 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 22281 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 22282 | |
| 22283 | # Create an old-style archive from a shared archive. |
| 22284 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 22285 | |
| 22286 | # Create a temporary old-style archive to link instead of a shared archive. |
| 22287 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 22288 | |
| 22289 | # Commands used to build and install a shared archive. |
| 22290 | archive_cmds=$lt_archive_cmds_F77 |
| 22291 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 22292 | postinstall_cmds=$lt_postinstall_cmds |
| 22293 | postuninstall_cmds=$lt_postuninstall_cmds |
| 22294 | |
| 22295 | # Commands used to build a loadable module (assumed same as above if empty) |
| 22296 | module_cmds=$lt_module_cmds_F77 |
| 22297 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 22298 | |
| 22299 | # Commands to strip libraries. |
| 22300 | old_striplib=$lt_old_striplib |
| 22301 | striplib=$lt_striplib |
| 22302 | |
| 22303 | # Dependencies to place before the objects being linked to create a |
| 22304 | # shared library. |
| 22305 | predep_objects=$lt_predep_objects_F77 |
| 22306 | |
| 22307 | # Dependencies to place after the objects being linked to create a |
| 22308 | # shared library. |
| 22309 | postdep_objects=$lt_postdep_objects_F77 |
| 22310 | |
| 22311 | # Dependencies to place before the objects being linked to create a |
| 22312 | # shared library. |
| 22313 | predeps=$lt_predeps_F77 |
| 22314 | |
| 22315 | # Dependencies to place after the objects being linked to create a |
| 22316 | # shared library. |
| 22317 | postdeps=$lt_postdeps_F77 |
| 22318 | |
| 22319 | # The library search path used internally by the compiler when linking |
| 22320 | # a shared library. |
| 22321 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 22322 | |
| 22323 | # Method to check whether dependent libraries are shared objects. |
| 22324 | deplibs_check_method=$lt_deplibs_check_method |
| 22325 | |
| 22326 | # Command to use when deplibs_check_method == file_magic. |
| 22327 | file_magic_cmd=$lt_file_magic_cmd |
| 22328 | |
| 22329 | # Flag that allows shared libraries with undefined symbols to be built. |
| 22330 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 22331 | |
| 22332 | # Flag that forces no undefined symbols. |
| 22333 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 22334 | |
| 22335 | # Commands used to finish a libtool library installation in a directory. |
| 22336 | finish_cmds=$lt_finish_cmds |
| 22337 | |
| 22338 | # Same as above, but a single script fragment to be evaled but not shown. |
| 22339 | finish_eval=$lt_finish_eval |
| 22340 | |
| 22341 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 22342 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 22343 | |
| 22344 | # Transform the output of nm in a proper C declaration |
| 22345 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 22346 | |
| 22347 | # Transform the output of nm in a C name address pair |
| 22348 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 22349 | |
| 22350 | # This is the shared library runtime path variable. |
| 22351 | runpath_var=$runpath_var |
| 22352 | |
| 22353 | # This is the shared library path variable. |
| 22354 | shlibpath_var=$shlibpath_var |
| 22355 | |
| 22356 | # Is shlibpath searched before the hard-coded library search path? |
| 22357 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 22358 | |
| 22359 | # How to hardcode a shared library path into an executable. |
| 22360 | hardcode_action=$hardcode_action_F77 |
| 22361 | |
| 22362 | # Whether we should hardcode library paths into libraries. |
| 22363 | hardcode_into_libs=$hardcode_into_libs |
| 22364 | |
| 22365 | # Flag to hardcode \$libdir into a binary during linking. |
| 22366 | # This must work even if \$libdir does not exist. |
| 22367 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 22368 | |
| 22369 | # If ld is used when linking, flag to hardcode \$libdir into |
| 22370 | # a binary during linking. This must work even if \$libdir does |
| 22371 | # not exist. |
| 22372 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 22373 | |
| 22374 | # Whether we need a single -rpath flag with a separated argument. |
| 22375 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 22376 | |
| 22377 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 22378 | # resulting binary. |
| 22379 | hardcode_direct=$hardcode_direct_F77 |
| 22380 | |
| 22381 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 22382 | # resulting binary. |
| 22383 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 22384 | |
| 22385 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 22386 | # the resulting binary. |
| 22387 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 22388 | |
| 22389 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 22390 | # and all subsequent libraries and executables linked against it. |
| 22391 | hardcode_automatic=$hardcode_automatic_F77 |
| 22392 | |
| 22393 | # Variables whose values should be saved in libtool wrapper scripts and |
| 22394 | # restored at relink time. |
| 22395 | variables_saved_for_relink="$variables_saved_for_relink" |
| 22396 | |
| 22397 | # Whether libtool must link a program against all its dependency libraries. |
| 22398 | link_all_deplibs=$link_all_deplibs_F77 |
| 22399 | |
| 22400 | # Compile-time system search path for libraries |
| 22401 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 22402 | |
| 22403 | # Run-time system search path for libraries |
| 22404 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 22405 | |
| 22406 | # Fix the shell variable \$srcfile for the compiler. |
| 22407 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 22408 | |
| 22409 | # Set to yes if exported symbols are required. |
| 22410 | always_export_symbols=$always_export_symbols_F77 |
| 22411 | |
| 22412 | # The commands to list exported symbols. |
| 22413 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 22414 | |
| 22415 | # The commands to extract the exported symbol list from a shared archive. |
| 22416 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 22417 | |
| 22418 | # Symbols that should not be listed in the preloaded symbols. |
| 22419 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 22420 | |
| 22421 | # Symbols that must always be exported. |
| 22422 | include_expsyms=$lt_include_expsyms_F77 |
| 22423 | |
| 22424 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 22425 | |
| 22426 | __EOF__ |
| 22427 | |
| 22428 | |
| 22429 | else |
| 22430 | # If there is no Makefile yet, we rely on a make rule to execute |
| 22431 | # `config.status --recheck' to rerun these tests and create the |
| 22432 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22433 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 22434 | if test -f "$ltmain_in"; then |
| 22435 | test -f Makefile && make "$ltmain" |
| 22436 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22437 | fi |
| 22438 | |
| 22439 | |
| 22440 | ac_ext=c |
| 22441 | ac_cpp='$CPP $CPPFLAGS' |
| 22442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22445 | |
| 22446 | CC="$lt_save_CC" |
| 22447 | |
| 22448 | else |
| 22449 | tagname="" |
| 22450 | fi |
| 22451 | ;; |
| 22452 | |
| 22453 | GCJ) |
| 22454 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22455 | ac_ext=c |
| 22456 | ac_cpp='$CPP $CPPFLAGS' |
| 22457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22460 | |
| 22461 | |
| 22462 | # Source file extension for Java test sources. |
| 22463 | ac_ext=java |
| 22464 | |
| 22465 | # Object file extension for compiled Java test sources. |
| 22466 | objext=o |
| 22467 | objext_GCJ=$objext |
| 22468 | |
| 22469 | # Code to be used in simple compile tests |
| 22470 | lt_simple_compile_test_code="class foo {}\n" |
| 22471 | |
| 22472 | # Code to be used in simple link tests |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22473 | 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] | 22474 | |
| 22475 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 22476 | |
| 22477 | # If no C compiler was specified, use CC. |
| 22478 | LTCC=${LTCC-"$CC"} |
| 22479 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22480 | # If no C compiler flags were specified, use CFLAGS. |
| 22481 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 22482 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22483 | # Allow CC to be a program name with arguments. |
| 22484 | compiler=$CC |
| 22485 | |
| 22486 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22487 | # save warnings/boilerplate of simple test code |
| 22488 | ac_outfile=conftest.$ac_objext |
| 22489 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 22490 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 22491 | _lt_compiler_boilerplate=`cat conftest.err` |
| 22492 | $rm conftest* |
| 22493 | |
| 22494 | ac_outfile=conftest.$ac_objext |
| 22495 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 22496 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 22497 | _lt_linker_boilerplate=`cat conftest.err` |
| 22498 | $rm conftest* |
| 22499 | |
| 22500 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22501 | # Allow CC to be a program name with arguments. |
| 22502 | lt_save_CC="$CC" |
| 22503 | CC=${GCJ-"gcj"} |
| 22504 | compiler=$CC |
| 22505 | compiler_GCJ=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22506 | for cc_temp in $compiler""; do |
| 22507 | case $cc_temp in |
| 22508 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 22509 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 22510 | \-*) ;; |
| 22511 | *) break;; |
| 22512 | esac |
| 22513 | done |
| 22514 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 22515 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22516 | |
| 22517 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 22518 | archive_cmds_need_lc_GCJ=no |
| 22519 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22520 | old_archive_cmds_GCJ=$old_archive_cmds |
| 22521 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22522 | |
| 22523 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 22524 | |
| 22525 | if test "$GCC" = yes; then |
| 22526 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 22527 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22528 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22529 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 22530 | 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] | 22531 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 22532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22533 | else |
| 22534 | lt_cv_prog_compiler_rtti_exceptions=no |
| 22535 | ac_outfile=conftest.$ac_objext |
| 22536 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22537 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 22538 | # Insert the option either (1) after the last *FLAGS variable, or |
| 22539 | # (2) before a word containing "conftest.", or (3) at the end. |
| 22540 | # Note that $ac_compile itself does not contain backslashes and begins |
| 22541 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 22542 | # The option is referenced via a variable to avoid confusing sed. |
| 22543 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22544 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 22546 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22547 | (eval echo "\"\$as_me:22546: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22548 | (eval "$lt_compile" 2>conftest.err) |
| 22549 | ac_status=$? |
| 22550 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22551 | echo "$as_me:22550: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22552 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 22553 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22554 | # So say no if there are warnings other than the usual output. |
| 22555 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 22556 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 22557 | 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] | 22558 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 22559 | fi |
| 22560 | fi |
| 22561 | $rm conftest* |
| 22562 | |
| 22563 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22564 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 22565 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22566 | |
| 22567 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 22568 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 22569 | else |
| 22570 | : |
| 22571 | fi |
| 22572 | |
| 22573 | fi |
| 22574 | |
| 22575 | lt_prog_compiler_wl_GCJ= |
| 22576 | lt_prog_compiler_pic_GCJ= |
| 22577 | lt_prog_compiler_static_GCJ= |
| 22578 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22579 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 22580 | 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] | 22581 | |
| 22582 | if test "$GCC" = yes; then |
| 22583 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22584 | lt_prog_compiler_static_GCJ='-static' |
| 22585 | |
| 22586 | case $host_os in |
| 22587 | aix*) |
| 22588 | # All AIX code is PIC. |
| 22589 | if test "$host_cpu" = ia64; then |
| 22590 | # AIX 5 now supports IA64 processor |
| 22591 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22592 | fi |
| 22593 | ;; |
| 22594 | |
| 22595 | amigaos*) |
| 22596 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 22597 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 22598 | # like `-m68040'. |
| 22599 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 22600 | ;; |
| 22601 | |
| 22602 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 22603 | # PIC is the default for these OSes. |
| 22604 | ;; |
| 22605 | |
| 22606 | mingw* | pw32* | os2*) |
| 22607 | # This hack is so that the source file can tell whether it is being |
| 22608 | # built for inclusion in a dll (and should export symbols for example). |
| 22609 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 22610 | ;; |
| 22611 | |
| 22612 | darwin* | rhapsody*) |
| 22613 | # PIC is the default on this platform |
| 22614 | # Common symbols not allowed in MH_DYLIB files |
| 22615 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 22616 | ;; |
| 22617 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22618 | interix3*) |
| 22619 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 22620 | # Instead, we relocate shared libraries at runtime. |
| 22621 | ;; |
| 22622 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22623 | msdosdjgpp*) |
| 22624 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 22625 | # on systems that don't support them. |
| 22626 | lt_prog_compiler_can_build_shared_GCJ=no |
| 22627 | enable_shared=no |
| 22628 | ;; |
| 22629 | |
| 22630 | sysv4*MP*) |
| 22631 | if test -d /usr/nec; then |
| 22632 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 22633 | fi |
| 22634 | ;; |
| 22635 | |
| 22636 | hpux*) |
| 22637 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 22638 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22639 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22640 | hppa*64*|ia64*) |
| 22641 | # +Z the default |
| 22642 | ;; |
| 22643 | *) |
| 22644 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 22645 | ;; |
| 22646 | esac |
| 22647 | ;; |
| 22648 | |
| 22649 | *) |
| 22650 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 22651 | ;; |
| 22652 | esac |
| 22653 | else |
| 22654 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 22655 | case $host_os in |
| 22656 | aix*) |
| 22657 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22658 | if test "$host_cpu" = ia64; then |
| 22659 | # AIX 5 now supports IA64 processor |
| 22660 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22661 | else |
| 22662 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 22663 | fi |
| 22664 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22665 | darwin*) |
| 22666 | # PIC is the default on this platform |
| 22667 | # Common symbols not allowed in MH_DYLIB files |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22668 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22669 | xlc*) |
| 22670 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 22671 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22672 | ;; |
| 22673 | esac |
| 22674 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22675 | |
| 22676 | mingw* | pw32* | os2*) |
| 22677 | # This hack is so that the source file can tell whether it is being |
| 22678 | # built for inclusion in a dll (and should export symbols for example). |
| 22679 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 22680 | ;; |
| 22681 | |
| 22682 | hpux9* | hpux10* | hpux11*) |
| 22683 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22684 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 22685 | # not for PA HP-UX. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22686 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22687 | hppa*64*|ia64*) |
| 22688 | # +Z the default |
| 22689 | ;; |
| 22690 | *) |
| 22691 | lt_prog_compiler_pic_GCJ='+Z' |
| 22692 | ;; |
| 22693 | esac |
| 22694 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 22695 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 22696 | ;; |
| 22697 | |
| 22698 | irix5* | irix6* | nonstopux*) |
| 22699 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22700 | # PIC (with -KPIC) is the default. |
| 22701 | lt_prog_compiler_static_GCJ='-non_shared' |
| 22702 | ;; |
| 22703 | |
| 22704 | newsos6) |
| 22705 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 22706 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22707 | ;; |
| 22708 | |
| 22709 | linux*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22710 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22711 | icc* | ecc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22712 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22713 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 22714 | lt_prog_compiler_static_GCJ='-static' |
| 22715 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22716 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 22717 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 22718 | # which looks to be a dead project) |
| 22719 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22720 | lt_prog_compiler_pic_GCJ='-fpic' |
| 22721 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22722 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22723 | ccc*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22724 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22725 | # All Alpha code is PIC. |
| 22726 | lt_prog_compiler_static_GCJ='-non_shared' |
| 22727 | ;; |
| 22728 | esac |
| 22729 | ;; |
| 22730 | |
| 22731 | osf3* | osf4* | osf5*) |
| 22732 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22733 | # All OSF/1 code is PIC. |
| 22734 | lt_prog_compiler_static_GCJ='-non_shared' |
| 22735 | ;; |
| 22736 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22737 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22738 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 22739 | lt_prog_compiler_static_GCJ='-Bstatic' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22740 | case $cc_basename in |
| 22741 | f77* | f90* | f95*) |
| 22742 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 22743 | *) |
| 22744 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 22745 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22746 | ;; |
| 22747 | |
| 22748 | sunos4*) |
| 22749 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 22750 | lt_prog_compiler_pic_GCJ='-PIC' |
| 22751 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22752 | ;; |
| 22753 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22754 | sysv4 | sysv4.2uw2* | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22755 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22756 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 22757 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22758 | ;; |
| 22759 | |
| 22760 | sysv4*MP*) |
| 22761 | if test -d /usr/nec ;then |
| 22762 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 22763 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22764 | fi |
| 22765 | ;; |
| 22766 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22767 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 22768 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22769 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 22770 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22771 | ;; |
| 22772 | |
| 22773 | unicos*) |
| 22774 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 22775 | lt_prog_compiler_can_build_shared_GCJ=no |
| 22776 | ;; |
| 22777 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22778 | uts4*) |
| 22779 | lt_prog_compiler_pic_GCJ='-pic' |
| 22780 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 22781 | ;; |
| 22782 | |
| 22783 | *) |
| 22784 | lt_prog_compiler_can_build_shared_GCJ=no |
| 22785 | ;; |
| 22786 | esac |
| 22787 | fi |
| 22788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22789 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 22790 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22791 | |
| 22792 | # |
| 22793 | # Check to make sure the PIC flag actually works. |
| 22794 | # |
| 22795 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22796 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22797 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 22798 | 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] | 22799 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 22800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22801 | else |
| 22802 | lt_prog_compiler_pic_works_GCJ=no |
| 22803 | ac_outfile=conftest.$ac_objext |
| 22804 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22805 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 22806 | # Insert the option either (1) after the last *FLAGS variable, or |
| 22807 | # (2) before a word containing "conftest.", or (3) at the end. |
| 22808 | # Note that $ac_compile itself does not contain backslashes and begins |
| 22809 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 22810 | # The option is referenced via a variable to avoid confusing sed. |
| 22811 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22812 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22813 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 22814 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22815 | (eval echo "\"\$as_me:22814: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22816 | (eval "$lt_compile" 2>conftest.err) |
| 22817 | ac_status=$? |
| 22818 | cat conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22819 | echo "$as_me:22818: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22820 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 22821 | # The compiler can only warn and ignore the option if not recognized |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22822 | # So say no if there are warnings other than the usual output. |
| 22823 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 22824 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 22825 | 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] | 22826 | lt_prog_compiler_pic_works_GCJ=yes |
| 22827 | fi |
| 22828 | fi |
| 22829 | $rm conftest* |
| 22830 | |
| 22831 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22832 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 22833 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22834 | |
| 22835 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 22836 | case $lt_prog_compiler_pic_GCJ in |
| 22837 | "" | " "*) ;; |
| 22838 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 22839 | esac |
| 22840 | else |
| 22841 | lt_prog_compiler_pic_GCJ= |
| 22842 | lt_prog_compiler_can_build_shared_GCJ=no |
| 22843 | fi |
| 22844 | |
| 22845 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22846 | case $host_os in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22847 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 22848 | *djgpp*) |
| 22849 | lt_prog_compiler_pic_GCJ= |
| 22850 | ;; |
| 22851 | *) |
| 22852 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 22853 | ;; |
| 22854 | esac |
| 22855 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22856 | # |
| 22857 | # Check to make sure the static flag actually works. |
| 22858 | # |
| 22859 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 22860 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 22861 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 22862 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 22863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22864 | else |
| 22865 | lt_prog_compiler_static_works_GCJ=no |
| 22866 | save_LDFLAGS="$LDFLAGS" |
| 22867 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 22868 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 22869 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 22870 | # The linker can only warn and ignore the option if not recognized |
| 22871 | # So say no if there are warnings |
| 22872 | if test -s conftest.err; then |
| 22873 | # Append any errors to the config.log. |
| 22874 | cat conftest.err 1>&5 |
| 22875 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 22876 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 22877 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 22878 | lt_prog_compiler_static_works_GCJ=yes |
| 22879 | fi |
| 22880 | else |
| 22881 | lt_prog_compiler_static_works_GCJ=yes |
| 22882 | fi |
| 22883 | fi |
| 22884 | $rm conftest* |
| 22885 | LDFLAGS="$save_LDFLAGS" |
| 22886 | |
| 22887 | fi |
| 22888 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 22889 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 22890 | |
| 22891 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 22892 | : |
| 22893 | else |
| 22894 | lt_prog_compiler_static_GCJ= |
| 22895 | fi |
| 22896 | |
| 22897 | |
| 22898 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 22899 | 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] | 22900 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 22901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 22902 | else |
| 22903 | lt_cv_prog_compiler_c_o_GCJ=no |
| 22904 | $rm -r conftest 2>/dev/null |
| 22905 | mkdir conftest |
| 22906 | cd conftest |
| 22907 | mkdir out |
| 22908 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 22909 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22910 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 22911 | # Insert the option either (1) after the last *FLAGS variable, or |
| 22912 | # (2) before a word containing "conftest.", or (3) at the end. |
| 22913 | # Note that $ac_compile itself does not contain backslashes and begins |
| 22914 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 22915 | lt_compile=`echo "$ac_compile" | $SED \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22916 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22917 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 22918 | -e 's:$: $lt_compiler_flag:'` |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22919 | (eval echo "\"\$as_me:22918: $lt_compile\"" >&5) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22920 | (eval "$lt_compile" 2>out/conftest.err) |
| 22921 | ac_status=$? |
| 22922 | cat out/conftest.err >&5 |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 22923 | echo "$as_me:22922: \$? = $ac_status" >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22924 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 22925 | then |
| 22926 | # The compiler can only warn and ignore the option if not recognized |
| 22927 | # So say no if there are warnings |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22928 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 22929 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 22930 | 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] | 22931 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 22932 | fi |
| 22933 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22934 | chmod u+w . 2>&5 |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 22935 | $rm conftest* |
| 22936 | # SGI C++ compiler will create directory out/ii_files/ for |
| 22937 | # template instantiation |
| 22938 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 22939 | $rm out/* && rmdir out |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22940 | cd .. |
| 22941 | rmdir conftest |
| 22942 | $rm conftest* |
| 22943 | |
| 22944 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22945 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 22946 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22947 | |
| 22948 | |
| 22949 | hard_links="nottested" |
| 22950 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 22951 | # do not overwrite the value of need_locks provided by the user |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22952 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 22953 | 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] | 22954 | hard_links=yes |
| 22955 | $rm conftest* |
| 22956 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 22957 | touch conftest.a |
| 22958 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 22959 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22960 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 22961 | echo "${ECHO_T}$hard_links" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 22962 | if test "$hard_links" = no; then |
| 22963 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 22964 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 22965 | need_locks=warn |
| 22966 | fi |
| 22967 | else |
| 22968 | need_locks=no |
| 22969 | fi |
| 22970 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 22971 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 22972 | 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] | 22973 | |
| 22974 | runpath_var= |
| 22975 | allow_undefined_flag_GCJ= |
| 22976 | enable_shared_with_static_runtimes_GCJ=no |
| 22977 | archive_cmds_GCJ= |
| 22978 | archive_expsym_cmds_GCJ= |
| 22979 | old_archive_From_new_cmds_GCJ= |
| 22980 | old_archive_from_expsyms_cmds_GCJ= |
| 22981 | export_dynamic_flag_spec_GCJ= |
| 22982 | whole_archive_flag_spec_GCJ= |
| 22983 | thread_safe_flag_spec_GCJ= |
| 22984 | hardcode_libdir_flag_spec_GCJ= |
| 22985 | hardcode_libdir_flag_spec_ld_GCJ= |
| 22986 | hardcode_libdir_separator_GCJ= |
| 22987 | hardcode_direct_GCJ=no |
| 22988 | hardcode_minus_L_GCJ=no |
| 22989 | hardcode_shlibpath_var_GCJ=unsupported |
| 22990 | link_all_deplibs_GCJ=unknown |
| 22991 | hardcode_automatic_GCJ=no |
| 22992 | module_cmds_GCJ= |
| 22993 | module_expsym_cmds_GCJ= |
| 22994 | always_export_symbols_GCJ=no |
| 22995 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 22996 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 22997 | # included in the symbol list |
| 22998 | include_expsyms_GCJ= |
| 22999 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 23000 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 23001 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 23002 | # as well as any symbol that contains `d'. |
| 23003 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 23004 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 23005 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 23006 | # the symbol is explicitly referenced. Since portable code cannot |
| 23007 | # rely on this symbol name, it's probably fine to never include it in |
| 23008 | # preloaded symbol tables. |
| 23009 | extract_expsyms_cmds= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23010 | # Just being paranoid about ensuring that cc_basename is set. |
| 23011 | for cc_temp in $compiler""; do |
| 23012 | case $cc_temp in |
| 23013 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 23014 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 23015 | \-*) ;; |
| 23016 | *) break;; |
| 23017 | esac |
| 23018 | done |
| 23019 | 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] | 23020 | |
| 23021 | case $host_os in |
| 23022 | cygwin* | mingw* | pw32*) |
| 23023 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 23024 | # When not using gcc, we currently assume that we are using |
| 23025 | # Microsoft Visual C++. |
| 23026 | if test "$GCC" != yes; then |
| 23027 | with_gnu_ld=no |
| 23028 | fi |
| 23029 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23030 | interix*) |
| 23031 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 23032 | with_gnu_ld=yes |
| 23033 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23034 | openbsd*) |
| 23035 | with_gnu_ld=no |
| 23036 | ;; |
| 23037 | esac |
| 23038 | |
| 23039 | ld_shlibs_GCJ=yes |
| 23040 | if test "$with_gnu_ld" = yes; then |
| 23041 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 23042 | wlarc='${wl}' |
| 23043 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23044 | # Set some defaults for GNU ld with shared library support. These |
| 23045 | # are reset later if shared libraries are not supported. Putting them |
| 23046 | # here allows them to be overridden if necessary. |
| 23047 | runpath_var=LD_RUN_PATH |
| 23048 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 23049 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 23050 | # ancient GNU ld didn't support --whole-archive et. al. |
| 23051 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 23052 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 23053 | else |
| 23054 | whole_archive_flag_spec_GCJ= |
| 23055 | fi |
| 23056 | supports_anon_versioning=no |
| 23057 | case `$LD -v 2>/dev/null` in |
| 23058 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 23059 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 23060 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 23061 | *\ 2.11.*) ;; # other 2.11 versions |
| 23062 | *) supports_anon_versioning=yes ;; |
| 23063 | esac |
| 23064 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23065 | # See if GNU ld supports shared libraries. |
| 23066 | case $host_os in |
| 23067 | aix3* | aix4* | aix5*) |
| 23068 | # On AIX/PPC, the GNU linker is very broken |
| 23069 | if test "$host_cpu" != ia64; then |
| 23070 | ld_shlibs_GCJ=no |
| 23071 | cat <<EOF 1>&2 |
| 23072 | |
| 23073 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 23074 | *** to be unable to reliably create shared libraries on AIX. |
| 23075 | *** Therefore, libtool is disabling shared libraries support. If you |
| 23076 | *** really care for shared libraries, you may want to modify your PATH |
| 23077 | *** so that a non-GNU linker is found, and then restart. |
| 23078 | |
| 23079 | EOF |
| 23080 | fi |
| 23081 | ;; |
| 23082 | |
| 23083 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23084 | 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] | 23085 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23086 | hardcode_minus_L_GCJ=yes |
| 23087 | |
| 23088 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 23089 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 23090 | # to version 4, is to share data among multiple programs linked |
| 23091 | # with the same dynamic library. Since this doesn't match the |
| 23092 | # behavior of shared libraries on other platforms, we can't use |
| 23093 | # them. |
| 23094 | ld_shlibs_GCJ=no |
| 23095 | ;; |
| 23096 | |
| 23097 | beos*) |
| 23098 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23099 | allow_undefined_flag_GCJ=unsupported |
| 23100 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 23101 | # support --undefined. This deserves some investigation. FIXME |
| 23102 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23103 | else |
| 23104 | ld_shlibs_GCJ=no |
| 23105 | fi |
| 23106 | ;; |
| 23107 | |
| 23108 | cygwin* | mingw* | pw32*) |
| 23109 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 23110 | # as there is no search path for DLLs. |
| 23111 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23112 | allow_undefined_flag_GCJ=unsupported |
| 23113 | always_export_symbols_GCJ=no |
| 23114 | enable_shared_with_static_runtimes_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23115 | 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] | 23116 | |
| 23117 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23118 | 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] | 23119 | # If the export-symbols file already is a .def file (1st line |
| 23120 | # is EXPORTS), use it as is; otherwise, prepend... |
| 23121 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 23122 | cp $export_symbols $output_objdir/$soname.def; |
| 23123 | else |
| 23124 | echo EXPORTS > $output_objdir/$soname.def; |
| 23125 | cat $export_symbols >> $output_objdir/$soname.def; |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23126 | fi~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23127 | $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] | 23128 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23129 | ld_shlibs_GCJ=no |
| 23130 | fi |
| 23131 | ;; |
| 23132 | |
| 23133 | interix3*) |
| 23134 | hardcode_direct_GCJ=no |
| 23135 | hardcode_shlibpath_var_GCJ=no |
| 23136 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 23137 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 23138 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 23139 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 23140 | # default) and relocated if they conflict, which is a slow very memory |
| 23141 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 23142 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 23143 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 23144 | 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' |
| 23145 | 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' |
| 23146 | ;; |
| 23147 | |
| 23148 | linux*) |
| 23149 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23150 | tmp_addflag= |
| 23151 | case $cc_basename,$host_cpu in |
| 23152 | pgcc*) # Portland Group C compiler |
| 23153 | 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' |
| 23154 | tmp_addflag=' $pic_flag' |
| 23155 | ;; |
| 23156 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 23157 | 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' |
| 23158 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 23159 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 23160 | tmp_addflag=' -i_dynamic' ;; |
| 23161 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 23162 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 23163 | ifc* | ifort*) # Intel Fortran compiler |
| 23164 | tmp_addflag=' -nofor_main' ;; |
| 23165 | esac |
| 23166 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23167 | |
| 23168 | if test $supports_anon_versioning = yes; then |
| 23169 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 23170 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 23171 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 23172 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 23173 | fi |
| 23174 | else |
| 23175 | ld_shlibs_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23176 | fi |
| 23177 | ;; |
| 23178 | |
| 23179 | netbsd*) |
| 23180 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23181 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 23182 | wlarc= |
| 23183 | else |
| 23184 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23185 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 23186 | fi |
| 23187 | ;; |
| 23188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23189 | solaris*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23190 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 23191 | ld_shlibs_GCJ=no |
| 23192 | cat <<EOF 1>&2 |
| 23193 | |
| 23194 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 23195 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 23196 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 23197 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 23198 | *** your PATH or compiler configuration so that the native linker is |
| 23199 | *** used, and then restart. |
| 23200 | |
| 23201 | EOF |
| 23202 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23203 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23204 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 23205 | else |
| 23206 | ld_shlibs_GCJ=no |
| 23207 | fi |
| 23208 | ;; |
| 23209 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23210 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 23211 | case `$LD -v 2>&1` in |
| 23212 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 23213 | ld_shlibs_GCJ=no |
| 23214 | cat <<_LT_EOF 1>&2 |
| 23215 | |
| 23216 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 23217 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 23218 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 23219 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 23220 | *** your PATH or compiler configuration so that the native linker is |
| 23221 | *** used, and then restart. |
| 23222 | |
| 23223 | _LT_EOF |
| 23224 | ;; |
| 23225 | *) |
| 23226 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23227 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 23228 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 23229 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 23230 | else |
| 23231 | ld_shlibs_GCJ=no |
| 23232 | fi |
| 23233 | ;; |
| 23234 | esac |
| 23235 | ;; |
| 23236 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23237 | sunos4*) |
| 23238 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 23239 | wlarc= |
| 23240 | hardcode_direct_GCJ=yes |
| 23241 | hardcode_shlibpath_var_GCJ=no |
| 23242 | ;; |
| 23243 | |
| 23244 | *) |
| 23245 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 23246 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 23247 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 23248 | else |
| 23249 | ld_shlibs_GCJ=no |
| 23250 | fi |
| 23251 | ;; |
| 23252 | esac |
| 23253 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23254 | if test "$ld_shlibs_GCJ" = no; then |
| 23255 | runpath_var= |
| 23256 | hardcode_libdir_flag_spec_GCJ= |
| 23257 | export_dynamic_flag_spec_GCJ= |
| 23258 | whole_archive_flag_spec_GCJ= |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23259 | fi |
| 23260 | else |
| 23261 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 23262 | case $host_os in |
| 23263 | aix3*) |
| 23264 | allow_undefined_flag_GCJ=unsupported |
| 23265 | always_export_symbols_GCJ=yes |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23266 | 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] | 23267 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 23268 | # are no directories specified by -L. |
| 23269 | hardcode_minus_L_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23270 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23271 | # Neither direct hardcoding nor static linking is supported with a |
| 23272 | # broken collect2. |
| 23273 | hardcode_direct_GCJ=unsupported |
| 23274 | fi |
| 23275 | ;; |
| 23276 | |
| 23277 | aix4* | aix5*) |
| 23278 | if test "$host_cpu" = ia64; then |
| 23279 | # On IA64, the linker does run time linking by default, so we don't |
| 23280 | # have to do anything special. |
| 23281 | aix_use_runtimelinking=no |
| 23282 | exp_sym_flag='-Bexport' |
| 23283 | no_entry_flag="" |
| 23284 | else |
| 23285 | # If we're using GNU nm, then we don't want the "-C" option. |
| 23286 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 23287 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 23288 | 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' |
| 23289 | else |
| 23290 | 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' |
| 23291 | fi |
| 23292 | aix_use_runtimelinking=no |
| 23293 | |
| 23294 | # Test if we are trying to use run time linking or normal |
| 23295 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 23296 | # need to do runtime linking. |
| 23297 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 23298 | for ld_flag in $LDFLAGS; do |
| 23299 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 23300 | aix_use_runtimelinking=yes |
| 23301 | break |
| 23302 | fi |
| 23303 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23304 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23305 | esac |
| 23306 | |
| 23307 | exp_sym_flag='-bexport' |
| 23308 | no_entry_flag='-bnoentry' |
| 23309 | fi |
| 23310 | |
| 23311 | # When large executables or shared objects are built, AIX ld can |
| 23312 | # have problems creating the table of contents. If linking a library |
| 23313 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 23314 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 23315 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 23316 | |
| 23317 | archive_cmds_GCJ='' |
| 23318 | hardcode_direct_GCJ=yes |
| 23319 | hardcode_libdir_separator_GCJ=':' |
| 23320 | link_all_deplibs_GCJ=yes |
| 23321 | |
| 23322 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23323 | case $host_os in aix4.[012]|aix4.[012].*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23324 | # We only want to do this on AIX 4.2 and lower, the check |
| 23325 | # below for broken collect2 doesn't work under 4.3+ |
| 23326 | collect2name=`${CC} -print-prog-name=collect2` |
| 23327 | if test -f "$collect2name" && \ |
| 23328 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 23329 | then |
| 23330 | # We have reworked collect2 |
| 23331 | hardcode_direct_GCJ=yes |
| 23332 | else |
| 23333 | # We have old collect2 |
| 23334 | hardcode_direct_GCJ=unsupported |
| 23335 | # It fails to find uninstalled libraries when the uninstalled |
| 23336 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 23337 | # to unsupported forces relinking |
| 23338 | hardcode_minus_L_GCJ=yes |
| 23339 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23340 | hardcode_libdir_separator_GCJ= |
| 23341 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23342 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23343 | esac |
| 23344 | shared_flag='-shared' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23345 | if test "$aix_use_runtimelinking" = yes; then |
| 23346 | shared_flag="$shared_flag "'${wl}-G' |
| 23347 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23348 | else |
| 23349 | # not using gcc |
| 23350 | if test "$host_cpu" = ia64; then |
| 23351 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 23352 | # chokes on -Wl,-G. The following line is correct: |
| 23353 | shared_flag='-G' |
| 23354 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23355 | if test "$aix_use_runtimelinking" = yes; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23356 | shared_flag='${wl}-G' |
| 23357 | else |
| 23358 | shared_flag='${wl}-bM:SRE' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23359 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23360 | fi |
| 23361 | fi |
| 23362 | |
| 23363 | # It seems that -bexpall does not export symbols beginning with |
| 23364 | # underscore (_), so it is better to generate a list of symbols to export. |
| 23365 | always_export_symbols_GCJ=yes |
| 23366 | if test "$aix_use_runtimelinking" = yes; then |
| 23367 | # Warning - without using the other runtime loading flags (-brtl), |
| 23368 | # -berok will link without error, but may produce a broken library. |
| 23369 | allow_undefined_flag_GCJ='-berok' |
| 23370 | # Determine the default libpath from the value encoded in an empty executable. |
| 23371 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23372 | /* confdefs.h. */ |
| 23373 | _ACEOF |
| 23374 | cat confdefs.h >>conftest.$ac_ext |
| 23375 | cat >>conftest.$ac_ext <<_ACEOF |
| 23376 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23377 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23378 | int |
| 23379 | main () |
| 23380 | { |
| 23381 | |
| 23382 | ; |
| 23383 | return 0; |
| 23384 | } |
| 23385 | _ACEOF |
| 23386 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23387 | if { (ac_try="$ac_link" |
| 23388 | case "(($ac_try" in |
| 23389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23390 | *) ac_try_echo=$ac_try;; |
| 23391 | esac |
| 23392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23393 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23394 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23396 | rm -f conftest.er1 |
| 23397 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 23399 | (exit $ac_status); } && { |
| 23400 | test -z "$ac_c_werror_flag" || |
| 23401 | test ! -s conftest.err |
| 23402 | } && test -s conftest$ac_exeext && |
| 23403 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23404 | |
| 23405 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 23406 | }'` |
| 23407 | # Check for a 64-bit object if we didn't find anything. |
| 23408 | 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; } |
| 23409 | }'`; fi |
| 23410 | else |
| 23411 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23413 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23414 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23416 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 23417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23418 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23419 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 23420 | |
| 23421 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23422 | 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] | 23423 | else |
| 23424 | if test "$host_cpu" = ia64; then |
| 23425 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 23426 | allow_undefined_flag_GCJ="-z nodefs" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23427 | 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] | 23428 | else |
| 23429 | # Determine the default libpath from the value encoded in an empty executable. |
| 23430 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23431 | /* confdefs.h. */ |
| 23432 | _ACEOF |
| 23433 | cat confdefs.h >>conftest.$ac_ext |
| 23434 | cat >>conftest.$ac_ext <<_ACEOF |
| 23435 | /* end confdefs.h. */ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23436 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23437 | int |
| 23438 | main () |
| 23439 | { |
| 23440 | |
| 23441 | ; |
| 23442 | return 0; |
| 23443 | } |
| 23444 | _ACEOF |
| 23445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23446 | if { (ac_try="$ac_link" |
| 23447 | case "(($ac_try" in |
| 23448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 23449 | *) ac_try_echo=$ac_try;; |
| 23450 | esac |
| 23451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 23452 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23453 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 23455 | rm -f conftest.er1 |
| 23456 | cat conftest.err >&5 |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 23458 | (exit $ac_status); } && { |
| 23459 | test -z "$ac_c_werror_flag" || |
| 23460 | test ! -s conftest.err |
| 23461 | } && test -s conftest$ac_exeext && |
| 23462 | $as_test_x conftest$ac_exeext; then |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23463 | |
| 23464 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 23465 | }'` |
| 23466 | # Check for a 64-bit object if we didn't find anything. |
| 23467 | 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; } |
| 23468 | }'`; fi |
| 23469 | else |
| 23470 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 23471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 23472 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23473 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23474 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23475 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 23476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23477 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23478 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 23479 | |
| 23480 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 23481 | # Warning - without using the other run time loading flags, |
| 23482 | # -berok will link without error, but may produce a broken library. |
| 23483 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 23484 | allow_undefined_flag_GCJ=' ${wl}-berok' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23485 | # Exported symbols can be pulled into shared objects from archives |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23486 | whole_archive_flag_spec_GCJ='$convenience' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23487 | archive_cmds_need_lc_GCJ=yes |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23488 | # This is similar to how AIX traditionally builds its shared libraries. |
| 23489 | 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] | 23490 | fi |
| 23491 | fi |
| 23492 | ;; |
| 23493 | |
| 23494 | amigaos*) |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23495 | 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] | 23496 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23497 | hardcode_minus_L_GCJ=yes |
| 23498 | # see comment about different semantics on the GNU ld section |
| 23499 | ld_shlibs_GCJ=no |
| 23500 | ;; |
| 23501 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23502 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23503 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 23504 | ;; |
| 23505 | |
| 23506 | cygwin* | mingw* | pw32*) |
| 23507 | # When not using gcc, we currently assume that we are using |
| 23508 | # Microsoft Visual C++. |
| 23509 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 23510 | # no search path for DLLs. |
| 23511 | hardcode_libdir_flag_spec_GCJ=' ' |
| 23512 | allow_undefined_flag_GCJ=unsupported |
| 23513 | # Tell ltmain to make .lib files, not .a files. |
| 23514 | libext=lib |
| 23515 | # Tell ltmain to make .dll files, not .so files. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23516 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23517 | # FIXME: Setting linknames here is a bad hack. |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23518 | 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] | 23519 | # The linker will automatically build a .lib file if we build a DLL. |
| 23520 | old_archive_From_new_cmds_GCJ='true' |
| 23521 | # FIXME: Should let the user specify the lib program. |
| 23522 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23523 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23524 | enable_shared_with_static_runtimes_GCJ=yes |
| 23525 | ;; |
| 23526 | |
| 23527 | darwin* | rhapsody*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23528 | case $host_os in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23529 | rhapsody* | darwin1.[012]) |
| 23530 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 23531 | ;; |
| 23532 | *) # Darwin 1.3 on |
| 23533 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 23534 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 23535 | else |
| 23536 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 23537 | 10.[012]) |
| 23538 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 23539 | ;; |
| 23540 | 10.*) |
| 23541 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 23542 | ;; |
| 23543 | esac |
| 23544 | fi |
| 23545 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23546 | esac |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23547 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23548 | hardcode_direct_GCJ=no |
| 23549 | hardcode_automatic_GCJ=yes |
| 23550 | hardcode_shlibpath_var_GCJ=unsupported |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23551 | whole_archive_flag_spec_GCJ='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23552 | link_all_deplibs_GCJ=yes |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23553 | if test "$GCC" = yes ; then |
| 23554 | output_verbose_link_cmd='echo' |
| 23555 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 23556 | 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] | 23557 | # 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] | 23558 | 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}' |
| 23559 | 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] | 23560 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23561 | case $cc_basename in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23562 | xlc*) |
| 23563 | output_verbose_link_cmd='echo' |
| 23564 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 23565 | 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] | 23566 | # 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] | 23567 | 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}' |
| 23568 | 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] | 23569 | ;; |
| 23570 | *) |
| 23571 | ld_shlibs_GCJ=no |
| 23572 | ;; |
| 23573 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23574 | fi |
| 23575 | ;; |
| 23576 | |
| 23577 | dgux*) |
| 23578 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23579 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23580 | hardcode_shlibpath_var_GCJ=no |
| 23581 | ;; |
| 23582 | |
| 23583 | freebsd1*) |
| 23584 | ld_shlibs_GCJ=no |
| 23585 | ;; |
| 23586 | |
| 23587 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 23588 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 23589 | # does not break anything, and helps significantly (at the cost of a little |
| 23590 | # extra space). |
| 23591 | freebsd2.2*) |
| 23592 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 23593 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 23594 | hardcode_direct_GCJ=yes |
| 23595 | hardcode_shlibpath_var_GCJ=no |
| 23596 | ;; |
| 23597 | |
| 23598 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 23599 | freebsd2*) |
| 23600 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 23601 | hardcode_direct_GCJ=yes |
| 23602 | hardcode_minus_L_GCJ=yes |
| 23603 | hardcode_shlibpath_var_GCJ=no |
| 23604 | ;; |
| 23605 | |
| 23606 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23607 | freebsd* | kfreebsd*-gnu | dragonfly*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23608 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 23609 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 23610 | hardcode_direct_GCJ=yes |
| 23611 | hardcode_shlibpath_var_GCJ=no |
| 23612 | ;; |
| 23613 | |
| 23614 | hpux9*) |
| 23615 | if test "$GCC" = yes; then |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23616 | 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] | 23617 | else |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23618 | 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] | 23619 | fi |
| 23620 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 23621 | hardcode_libdir_separator_GCJ=: |
| 23622 | hardcode_direct_GCJ=yes |
| 23623 | |
| 23624 | # hardcode_minus_L: Not really in the search PATH, |
| 23625 | # but as the default location of the library. |
| 23626 | hardcode_minus_L_GCJ=yes |
| 23627 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 23628 | ;; |
| 23629 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23630 | hpux10*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23631 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23632 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 23633 | else |
| 23634 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 23635 | fi |
| 23636 | if test "$with_gnu_ld" = no; then |
| 23637 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 23638 | hardcode_libdir_separator_GCJ=: |
| 23639 | |
| 23640 | hardcode_direct_GCJ=yes |
| 23641 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 23642 | |
| 23643 | # hardcode_minus_L: Not really in the search PATH, |
| 23644 | # but as the default location of the library. |
| 23645 | hardcode_minus_L_GCJ=yes |
| 23646 | fi |
| 23647 | ;; |
| 23648 | |
| 23649 | hpux11*) |
| 23650 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 23651 | case $host_cpu in |
| 23652 | hppa*64*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23653 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23654 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23655 | ia64*) |
| 23656 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 23657 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23658 | *) |
| 23659 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 23660 | ;; |
| 23661 | esac |
| 23662 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23663 | case $host_cpu in |
| 23664 | hppa*64*) |
| 23665 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23666 | ;; |
| 23667 | ia64*) |
| 23668 | 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] | 23669 | ;; |
| 23670 | *) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23671 | 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] | 23672 | ;; |
| 23673 | esac |
| 23674 | fi |
| 23675 | if test "$with_gnu_ld" = no; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23676 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 23677 | hardcode_libdir_separator_GCJ=: |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23678 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23679 | case $host_cpu in |
| 23680 | hppa*64*|ia64*) |
| 23681 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 23682 | hardcode_direct_GCJ=no |
| 23683 | hardcode_shlibpath_var_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23684 | ;; |
| 23685 | *) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23686 | hardcode_direct_GCJ=yes |
| 23687 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 23688 | |
| 23689 | # hardcode_minus_L: Not really in the search PATH, |
| 23690 | # but as the default location of the library. |
| 23691 | hardcode_minus_L_GCJ=yes |
| 23692 | ;; |
| 23693 | esac |
| 23694 | fi |
| 23695 | ;; |
| 23696 | |
| 23697 | irix5* | irix6* | nonstopux*) |
| 23698 | if test "$GCC" = yes; then |
| 23699 | 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' |
| 23700 | else |
| 23701 | 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' |
| 23702 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 23703 | fi |
| 23704 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 23705 | hardcode_libdir_separator_GCJ=: |
| 23706 | link_all_deplibs_GCJ=yes |
| 23707 | ;; |
| 23708 | |
| 23709 | netbsd*) |
| 23710 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 23711 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 23712 | else |
| 23713 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 23714 | fi |
| 23715 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 23716 | hardcode_direct_GCJ=yes |
| 23717 | hardcode_shlibpath_var_GCJ=no |
| 23718 | ;; |
| 23719 | |
| 23720 | newsos6) |
| 23721 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23722 | hardcode_direct_GCJ=yes |
| 23723 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 23724 | hardcode_libdir_separator_GCJ=: |
| 23725 | hardcode_shlibpath_var_GCJ=no |
| 23726 | ;; |
| 23727 | |
| 23728 | openbsd*) |
| 23729 | hardcode_direct_GCJ=yes |
| 23730 | hardcode_shlibpath_var_GCJ=no |
| 23731 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 23732 | 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] | 23733 | 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] | 23734 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 23735 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 23736 | else |
| 23737 | case $host_os in |
| 23738 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 23739 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 23740 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 23741 | ;; |
| 23742 | *) |
| 23743 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 23744 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 23745 | ;; |
| 23746 | esac |
| 23747 | fi |
| 23748 | ;; |
| 23749 | |
| 23750 | os2*) |
| 23751 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23752 | hardcode_minus_L_GCJ=yes |
| 23753 | allow_undefined_flag_GCJ=unsupported |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 23754 | 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] | 23755 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 23756 | ;; |
| 23757 | |
| 23758 | osf3*) |
| 23759 | if test "$GCC" = yes; then |
| 23760 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 23761 | 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' |
| 23762 | else |
| 23763 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 23764 | 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' |
| 23765 | fi |
| 23766 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 23767 | hardcode_libdir_separator_GCJ=: |
| 23768 | ;; |
| 23769 | |
| 23770 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 23771 | if test "$GCC" = yes; then |
| 23772 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 23773 | 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' |
| 23774 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 23775 | else |
| 23776 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 23777 | 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] | 23778 | 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] | 23779 | $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] | 23780 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23781 | # Both c and cxx compiler support -rpath directly |
| 23782 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 23783 | fi |
| 23784 | hardcode_libdir_separator_GCJ=: |
| 23785 | ;; |
| 23786 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23787 | solaris*) |
| 23788 | no_undefined_flag_GCJ=' -z text' |
| 23789 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23790 | wlarc='${wl}' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23791 | 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] | 23792 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 23793 | $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] | 23794 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23795 | wlarc='' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23796 | 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] | 23797 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 23798 | $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] | 23799 | fi |
| 23800 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 23801 | hardcode_shlibpath_var_GCJ=no |
| 23802 | case $host_os in |
| 23803 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23804 | *) |
| 23805 | # The compiler driver will combine linker options so we |
| 23806 | # cannot just pass the convience library names through |
| 23807 | # without $wl, iff we do not link with $LD. |
| 23808 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 23809 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 23810 | case $wlarc in |
| 23811 | '') |
| 23812 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 23813 | *) |
| 23814 | 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' ;; |
| 23815 | esac ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23816 | esac |
| 23817 | link_all_deplibs_GCJ=yes |
| 23818 | ;; |
| 23819 | |
| 23820 | sunos4*) |
| 23821 | if test "x$host_vendor" = xsequent; then |
| 23822 | # Use $CC to link under sequent, because it throws in some extra .o |
| 23823 | # files that make .init and .fini sections work. |
| 23824 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23825 | else |
| 23826 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 23827 | fi |
| 23828 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23829 | hardcode_direct_GCJ=yes |
| 23830 | hardcode_minus_L_GCJ=yes |
| 23831 | hardcode_shlibpath_var_GCJ=no |
| 23832 | ;; |
| 23833 | |
| 23834 | sysv4) |
| 23835 | case $host_vendor in |
| 23836 | sni) |
| 23837 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23838 | hardcode_direct_GCJ=yes # is this really true??? |
| 23839 | ;; |
| 23840 | siemens) |
| 23841 | ## LD is ld it makes a PLAMLIB |
| 23842 | ## CC just makes a GrossModule. |
| 23843 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 23844 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 23845 | hardcode_direct_GCJ=no |
| 23846 | ;; |
| 23847 | motorola) |
| 23848 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23849 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 23850 | ;; |
| 23851 | esac |
| 23852 | runpath_var='LD_RUN_PATH' |
| 23853 | hardcode_shlibpath_var_GCJ=no |
| 23854 | ;; |
| 23855 | |
| 23856 | sysv4.3*) |
| 23857 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23858 | hardcode_shlibpath_var_GCJ=no |
| 23859 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 23860 | ;; |
| 23861 | |
| 23862 | sysv4*MP*) |
| 23863 | if test -d /usr/nec; then |
| 23864 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23865 | hardcode_shlibpath_var_GCJ=no |
| 23866 | runpath_var=LD_RUN_PATH |
| 23867 | hardcode_runpath_var=yes |
| 23868 | ld_shlibs_GCJ=yes |
| 23869 | fi |
| 23870 | ;; |
| 23871 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23872 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 23873 | no_undefined_flag_GCJ='${wl}-z,text' |
| 23874 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23875 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23876 | runpath_var='LD_RUN_PATH' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23877 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23878 | if test "$GCC" = yes; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23879 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23880 | 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] | 23881 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23882 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23883 | 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] | 23884 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23885 | ;; |
| 23886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23887 | sysv5* | sco3.2v5* | sco5v6*) |
| 23888 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 23889 | # link with -lc, and that would cause any symbols used from libc to |
| 23890 | # always be unresolved, which means just about no library would |
| 23891 | # ever link correctly. If we're not using GNU ld we use -z text |
| 23892 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 23893 | # as -z defs. |
| 23894 | no_undefined_flag_GCJ='${wl}-z,text' |
| 23895 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 23896 | archive_cmds_need_lc_GCJ=no |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23897 | hardcode_shlibpath_var_GCJ=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23898 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 23899 | hardcode_libdir_separator_GCJ=':' |
| 23900 | link_all_deplibs_GCJ=yes |
| 23901 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23902 | runpath_var='LD_RUN_PATH' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23903 | |
| 23904 | if test "$GCC" = yes; then |
| 23905 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23906 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23907 | else |
| 23908 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23909 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 23910 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23911 | ;; |
| 23912 | |
| 23913 | uts4*) |
| 23914 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 23915 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 23916 | hardcode_shlibpath_var_GCJ=no |
| 23917 | ;; |
| 23918 | |
| 23919 | *) |
| 23920 | ld_shlibs_GCJ=no |
| 23921 | ;; |
| 23922 | esac |
| 23923 | fi |
| 23924 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23925 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 23926 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23927 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 23928 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23929 | # |
| 23930 | # Do we need to explicitly link libc? |
| 23931 | # |
| 23932 | case "x$archive_cmds_need_lc_GCJ" in |
| 23933 | x|xyes) |
| 23934 | # Assume -lc should be added |
| 23935 | archive_cmds_need_lc_GCJ=yes |
| 23936 | |
| 23937 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 23938 | case $archive_cmds_GCJ in |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23939 | *'~'*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23940 | # FIXME: we may have to deal with multi-command sequences. |
| 23941 | ;; |
| 23942 | '$CC '*) |
| 23943 | # Test whether the compiler implicitly links with -lc since on some |
| 23944 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 23945 | # to ld, don't add -lc before -lgcc. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23946 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 23947 | 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] | 23948 | $rm conftest* |
| 23949 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 23950 | |
| 23951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 23952 | (eval $ac_compile) 2>&5 |
| 23953 | ac_status=$? |
| 23954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23955 | (exit $ac_status); } 2>conftest.err; then |
| 23956 | soname=conftest |
| 23957 | lib=conftest |
| 23958 | libobjs=conftest.$ac_objext |
| 23959 | deplibs= |
| 23960 | wl=$lt_prog_compiler_wl_GCJ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23961 | pic_flag=$lt_prog_compiler_pic_GCJ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23962 | compiler_flags=-v |
| 23963 | linker_flags=-v |
| 23964 | verstring= |
| 23965 | output_objdir=. |
| 23966 | libname=conftest |
| 23967 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 23968 | allow_undefined_flag_GCJ= |
| 23969 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 23970 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 23971 | ac_status=$? |
| 23972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 23973 | (exit $ac_status); } |
| 23974 | then |
| 23975 | archive_cmds_need_lc_GCJ=no |
| 23976 | else |
| 23977 | archive_cmds_need_lc_GCJ=yes |
| 23978 | fi |
| 23979 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 23980 | else |
| 23981 | cat conftest.err 1>&5 |
| 23982 | fi |
| 23983 | $rm conftest* |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23984 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 23985 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23986 | ;; |
| 23987 | esac |
| 23988 | fi |
| 23989 | ;; |
| 23990 | esac |
| 23991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 23992 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 23993 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23994 | library_names_spec= |
| 23995 | libname_spec='lib$name' |
| 23996 | soname_spec= |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 23997 | shrext_cmds=".so" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 23998 | postinstall_cmds= |
| 23999 | postuninstall_cmds= |
| 24000 | finish_cmds= |
| 24001 | finish_eval= |
| 24002 | shlibpath_var= |
| 24003 | shlibpath_overrides_runpath=unknown |
| 24004 | version_type=none |
| 24005 | dynamic_linker="$host_os ld.so" |
| 24006 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 24007 | if test "$GCC" = yes; then |
| 24008 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24009 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 24010 | # if the path contains ";" then we assume it to be the separator |
| 24011 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 24012 | # assumed that no part of a normal pathname contains ";" but that should |
| 24013 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 24014 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24015 | else |
| 24016 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 24017 | fi |
| 24018 | else |
| 24019 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 24020 | fi |
| 24021 | need_lib_prefix=unknown |
| 24022 | hardcode_into_libs=no |
| 24023 | |
| 24024 | # when you set need_version to no, make sure it does not cause -set_version |
| 24025 | # flags to be left without arguments |
| 24026 | need_version=unknown |
| 24027 | |
| 24028 | case $host_os in |
| 24029 | aix3*) |
| 24030 | version_type=linux |
| 24031 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 24032 | shlibpath_var=LIBPATH |
| 24033 | |
| 24034 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 24035 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24036 | ;; |
| 24037 | |
| 24038 | aix4* | aix5*) |
| 24039 | version_type=linux |
| 24040 | need_lib_prefix=no |
| 24041 | need_version=no |
| 24042 | hardcode_into_libs=yes |
| 24043 | if test "$host_cpu" = ia64; then |
| 24044 | # AIX 5 supports IA64 |
| 24045 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 24046 | shlibpath_var=LD_LIBRARY_PATH |
| 24047 | else |
| 24048 | # With GCC up to 2.95.x, collect2 would create an import file |
| 24049 | # for dependence libraries. The import file would start with |
| 24050 | # the line `#! .'. This would cause the generated library to |
| 24051 | # depend on `.', always an invalid library. This was fixed in |
| 24052 | # development snapshots of GCC prior to 3.0. |
| 24053 | case $host_os in |
| 24054 | aix4 | aix4.[01] | aix4.[01].*) |
| 24055 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 24056 | echo ' yes ' |
| 24057 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 24058 | : |
| 24059 | else |
| 24060 | can_build_shared=no |
| 24061 | fi |
| 24062 | ;; |
| 24063 | esac |
| 24064 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 24065 | # soname into executable. Probably we can add versioning support to |
| 24066 | # collect2, so additional links can be useful in future. |
| 24067 | if test "$aix_use_runtimelinking" = yes; then |
| 24068 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 24069 | # instead of lib<name>.a to let people know that these are not |
| 24070 | # typical AIX shared libraries. |
| 24071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24072 | else |
| 24073 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 24074 | # and later when we are not doing run time linking. |
| 24075 | library_names_spec='${libname}${release}.a $libname.a' |
| 24076 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24077 | fi |
| 24078 | shlibpath_var=LIBPATH |
| 24079 | fi |
| 24080 | ;; |
| 24081 | |
| 24082 | amigaos*) |
| 24083 | library_names_spec='$libname.ixlibrary $libname.a' |
| 24084 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24085 | 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] | 24086 | ;; |
| 24087 | |
| 24088 | beos*) |
| 24089 | library_names_spec='${libname}${shared_ext}' |
| 24090 | dynamic_linker="$host_os ld.so" |
| 24091 | shlibpath_var=LIBRARY_PATH |
| 24092 | ;; |
| 24093 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24094 | bsdi[45]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24095 | version_type=linux |
| 24096 | need_version=no |
| 24097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24098 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24099 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 24100 | shlibpath_var=LD_LIBRARY_PATH |
| 24101 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 24102 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 24103 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 24104 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 24105 | # libtool to hard-code these into programs |
| 24106 | ;; |
| 24107 | |
| 24108 | cygwin* | mingw* | pw32*) |
| 24109 | version_type=windows |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24110 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24111 | need_version=no |
| 24112 | need_lib_prefix=no |
| 24113 | |
| 24114 | case $GCC,$host_os in |
| 24115 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 24116 | library_names_spec='$libname.dll.a' |
| 24117 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24118 | postinstall_cmds='base_file=`basename \${file}`~ |
| 24119 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 24120 | dldir=$destdir/`dirname \$dlpath`~ |
| 24121 | test -d \$dldir || mkdir -p \$dldir~ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24122 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 24123 | chmod a+x \$dldir/$dlname' |
Reid Spencer | 177dbe2 | 2004-10-13 01:01:03 +0000 | [diff] [blame] | 24124 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 24125 | dlpath=$dir/\$dldll~ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24126 | $rm \$dlpath' |
| 24127 | shlibpath_overrides_runpath=yes |
| 24128 | |
| 24129 | case $host_os in |
| 24130 | cygwin*) |
| 24131 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 24132 | 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] | 24133 | 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] | 24134 | ;; |
| 24135 | mingw*) |
| 24136 | # MinGW DLLs use traditional 'lib' prefix |
| 24137 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 24138 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 24139 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 24140 | # It is most probably a Windows format PATH printed by |
| 24141 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 24142 | # path with ; separators, and with drive letters. We can handle the |
| 24143 | # drive letters (cygwin fileutils understands them), so leave them, |
| 24144 | # especially as we might pass files found there to a mingw objdump, |
| 24145 | # which wouldn't understand a cygwinified path. Ahh. |
| 24146 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 24147 | else |
| 24148 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 24149 | fi |
| 24150 | ;; |
| 24151 | pw32*) |
| 24152 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24153 | 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] | 24154 | ;; |
| 24155 | esac |
| 24156 | ;; |
| 24157 | |
| 24158 | *) |
| 24159 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 24160 | ;; |
| 24161 | esac |
| 24162 | dynamic_linker='Win32 ld.exe' |
| 24163 | # FIXME: first we should search . and the directory the executable is in |
| 24164 | shlibpath_var=PATH |
| 24165 | ;; |
| 24166 | |
| 24167 | darwin* | rhapsody*) |
| 24168 | dynamic_linker="$host_os dyld" |
| 24169 | version_type=darwin |
| 24170 | need_lib_prefix=no |
| 24171 | need_version=no |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24172 | 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] | 24173 | soname_spec='${libname}${release}${major}$shared_ext' |
| 24174 | shlibpath_overrides_runpath=yes |
| 24175 | shlibpath_var=DYLD_LIBRARY_PATH |
Reid Spencer | f6390b5 | 2007-04-11 00:27:39 +0000 | [diff] [blame] | 24176 | shrext_cmds='.dylib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24177 | # 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] | 24178 | if test "$GCC" = yes; then |
| 24179 | 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"` |
| 24180 | else |
| 24181 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24182 | fi |
| 24183 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 24184 | ;; |
| 24185 | |
| 24186 | dgux*) |
| 24187 | version_type=linux |
| 24188 | need_lib_prefix=no |
| 24189 | need_version=no |
| 24190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 24191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24192 | shlibpath_var=LD_LIBRARY_PATH |
| 24193 | ;; |
| 24194 | |
| 24195 | freebsd1*) |
| 24196 | dynamic_linker=no |
| 24197 | ;; |
| 24198 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24199 | kfreebsd*-gnu) |
| 24200 | version_type=linux |
| 24201 | need_lib_prefix=no |
| 24202 | need_version=no |
| 24203 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 24204 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24205 | shlibpath_var=LD_LIBRARY_PATH |
| 24206 | shlibpath_overrides_runpath=no |
| 24207 | hardcode_into_libs=yes |
| 24208 | dynamic_linker='GNU ld.so' |
| 24209 | ;; |
| 24210 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24211 | freebsd* | dragonfly*) |
| 24212 | # DragonFly does not have aout. When/if they implement a new |
| 24213 | # versioning mechanism, adjust this. |
| 24214 | if test -x /usr/bin/objformat; then |
| 24215 | objformat=`/usr/bin/objformat` |
| 24216 | else |
| 24217 | case $host_os in |
| 24218 | freebsd[123]*) objformat=aout ;; |
| 24219 | *) objformat=elf ;; |
| 24220 | esac |
| 24221 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24222 | version_type=freebsd-$objformat |
| 24223 | case $version_type in |
| 24224 | freebsd-elf*) |
| 24225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 24226 | need_version=no |
| 24227 | need_lib_prefix=no |
| 24228 | ;; |
| 24229 | freebsd-*) |
| 24230 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 24231 | need_version=yes |
| 24232 | ;; |
| 24233 | esac |
| 24234 | shlibpath_var=LD_LIBRARY_PATH |
| 24235 | case $host_os in |
| 24236 | freebsd2*) |
| 24237 | shlibpath_overrides_runpath=yes |
| 24238 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24239 | freebsd3.[01]* | freebsdelf3.[01]*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24240 | shlibpath_overrides_runpath=yes |
| 24241 | hardcode_into_libs=yes |
| 24242 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24243 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 24244 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24245 | shlibpath_overrides_runpath=no |
| 24246 | hardcode_into_libs=yes |
| 24247 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24248 | freebsd*) # from 4.6 on |
| 24249 | shlibpath_overrides_runpath=yes |
| 24250 | hardcode_into_libs=yes |
| 24251 | ;; |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24252 | esac |
| 24253 | ;; |
| 24254 | |
| 24255 | gnu*) |
| 24256 | version_type=linux |
| 24257 | need_lib_prefix=no |
| 24258 | need_version=no |
| 24259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 24260 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24261 | shlibpath_var=LD_LIBRARY_PATH |
| 24262 | hardcode_into_libs=yes |
| 24263 | ;; |
| 24264 | |
| 24265 | hpux9* | hpux10* | hpux11*) |
| 24266 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 24267 | # link against other versions. |
| 24268 | version_type=sunos |
| 24269 | need_lib_prefix=no |
| 24270 | need_version=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24271 | case $host_cpu in |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24272 | ia64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24273 | shrext_cmds='.so' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24274 | hardcode_into_libs=yes |
| 24275 | dynamic_linker="$host_os dld.so" |
| 24276 | shlibpath_var=LD_LIBRARY_PATH |
| 24277 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 24278 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24279 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24280 | if test "X$HPUX_IA64_MODE" = X32; then |
| 24281 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 24282 | else |
| 24283 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 24284 | fi |
| 24285 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 24286 | ;; |
| 24287 | hppa*64*) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24288 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24289 | hardcode_into_libs=yes |
| 24290 | dynamic_linker="$host_os dld.sl" |
| 24291 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 24292 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 24293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24294 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24295 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 24296 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 24297 | ;; |
| 24298 | *) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24299 | shrext_cmds='.sl' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24300 | dynamic_linker="$host_os dld.sl" |
| 24301 | shlibpath_var=SHLIB_PATH |
| 24302 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 24303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24304 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24305 | ;; |
| 24306 | esac |
| 24307 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 24308 | postinstall_cmds='chmod 555 $lib' |
| 24309 | ;; |
| 24310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24311 | interix3*) |
| 24312 | version_type=linux |
| 24313 | need_lib_prefix=no |
| 24314 | need_version=no |
| 24315 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 24316 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24317 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 24318 | shlibpath_var=LD_LIBRARY_PATH |
| 24319 | shlibpath_overrides_runpath=no |
| 24320 | hardcode_into_libs=yes |
| 24321 | ;; |
| 24322 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24323 | irix5* | irix6* | nonstopux*) |
| 24324 | case $host_os in |
| 24325 | nonstopux*) version_type=nonstopux ;; |
| 24326 | *) |
| 24327 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 24328 | version_type=linux |
| 24329 | else |
| 24330 | version_type=irix |
| 24331 | fi ;; |
| 24332 | esac |
| 24333 | need_lib_prefix=no |
| 24334 | need_version=no |
| 24335 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 24337 | case $host_os in |
| 24338 | irix5* | nonstopux*) |
| 24339 | libsuff= shlibsuff= |
| 24340 | ;; |
| 24341 | *) |
| 24342 | case $LD in # libtool.m4 will add one of these switches to LD |
| 24343 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 24344 | libsuff= shlibsuff= libmagic=32-bit;; |
| 24345 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 24346 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 24347 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 24348 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 24349 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 24350 | esac |
| 24351 | ;; |
| 24352 | esac |
| 24353 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 24354 | shlibpath_overrides_runpath=no |
| 24355 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 24356 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 24357 | hardcode_into_libs=yes |
| 24358 | ;; |
| 24359 | |
| 24360 | # No shared lib support for Linux oldld, aout, or coff. |
| 24361 | linux*oldld* | linux*aout* | linux*coff*) |
| 24362 | dynamic_linker=no |
| 24363 | ;; |
| 24364 | |
| 24365 | # This must be Linux ELF. |
| 24366 | linux*) |
| 24367 | version_type=linux |
| 24368 | need_lib_prefix=no |
| 24369 | need_version=no |
| 24370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24371 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24372 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 24373 | shlibpath_var=LD_LIBRARY_PATH |
| 24374 | shlibpath_overrides_runpath=no |
| 24375 | # This implies no fast_install, which is unacceptable. |
| 24376 | # Some rework will be needed to allow for fast_install |
| 24377 | # before this can be enabled. |
| 24378 | hardcode_into_libs=yes |
| 24379 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24380 | # Append ld.so.conf contents to the search path |
| 24381 | if test -f /etc/ld.so.conf; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24382 | 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] | 24383 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 24384 | fi |
| 24385 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24386 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 24387 | # powerpc, because MkLinux only supported shared libraries with the |
| 24388 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 24389 | # most powerpc-linux boxes support dynamic linking these days and |
| 24390 | # people can always --disable-shared, the test was removed, and we |
| 24391 | # assume the GNU/Linux dynamic linker is in use. |
| 24392 | dynamic_linker='GNU/Linux ld.so' |
| 24393 | ;; |
| 24394 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24395 | knetbsd*-gnu) |
| 24396 | version_type=linux |
| 24397 | need_lib_prefix=no |
| 24398 | need_version=no |
| 24399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 24400 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24401 | shlibpath_var=LD_LIBRARY_PATH |
| 24402 | shlibpath_overrides_runpath=no |
| 24403 | hardcode_into_libs=yes |
| 24404 | dynamic_linker='GNU ld.so' |
| 24405 | ;; |
| 24406 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24407 | netbsd*) |
| 24408 | version_type=sunos |
| 24409 | need_lib_prefix=no |
| 24410 | need_version=no |
| 24411 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 24412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 24413 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 24414 | dynamic_linker='NetBSD (a.out) ld.so' |
| 24415 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24416 | 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] | 24417 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24418 | dynamic_linker='NetBSD ld.elf_so' |
| 24419 | fi |
| 24420 | shlibpath_var=LD_LIBRARY_PATH |
| 24421 | shlibpath_overrides_runpath=yes |
| 24422 | hardcode_into_libs=yes |
| 24423 | ;; |
| 24424 | |
| 24425 | newsos6) |
| 24426 | version_type=linux |
| 24427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24428 | shlibpath_var=LD_LIBRARY_PATH |
| 24429 | shlibpath_overrides_runpath=yes |
| 24430 | ;; |
| 24431 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24432 | nto-qnx*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24433 | version_type=linux |
| 24434 | need_lib_prefix=no |
| 24435 | need_version=no |
| 24436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24437 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24438 | shlibpath_var=LD_LIBRARY_PATH |
| 24439 | shlibpath_overrides_runpath=yes |
| 24440 | ;; |
| 24441 | |
| 24442 | openbsd*) |
| 24443 | version_type=sunos |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24444 | sys_lib_dlsearch_path_spec="/usr/lib" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24445 | need_lib_prefix=no |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24446 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 24447 | case $host_os in |
| 24448 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 24449 | *) need_version=no ;; |
| 24450 | esac |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 24452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 24453 | shlibpath_var=LD_LIBRARY_PATH |
| 24454 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 24455 | case $host_os in |
| 24456 | openbsd2.[89] | openbsd2.[89].*) |
| 24457 | shlibpath_overrides_runpath=no |
| 24458 | ;; |
| 24459 | *) |
| 24460 | shlibpath_overrides_runpath=yes |
| 24461 | ;; |
| 24462 | esac |
| 24463 | else |
| 24464 | shlibpath_overrides_runpath=yes |
| 24465 | fi |
| 24466 | ;; |
| 24467 | |
| 24468 | os2*) |
| 24469 | libname_spec='$name' |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24470 | shrext_cmds=".dll" |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24471 | need_lib_prefix=no |
| 24472 | library_names_spec='$libname${shared_ext} $libname.a' |
| 24473 | dynamic_linker='OS/2 ld.exe' |
| 24474 | shlibpath_var=LIBPATH |
| 24475 | ;; |
| 24476 | |
| 24477 | osf3* | osf4* | osf5*) |
| 24478 | version_type=osf |
| 24479 | need_lib_prefix=no |
| 24480 | need_version=no |
| 24481 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24483 | shlibpath_var=LD_LIBRARY_PATH |
| 24484 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 24485 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 24486 | ;; |
| 24487 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24488 | solaris*) |
| 24489 | version_type=linux |
| 24490 | need_lib_prefix=no |
| 24491 | need_version=no |
| 24492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24493 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24494 | shlibpath_var=LD_LIBRARY_PATH |
| 24495 | shlibpath_overrides_runpath=yes |
| 24496 | hardcode_into_libs=yes |
| 24497 | # ldd complains unless libraries are executable |
| 24498 | postinstall_cmds='chmod +x $lib' |
| 24499 | ;; |
| 24500 | |
| 24501 | sunos4*) |
| 24502 | version_type=sunos |
| 24503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 24504 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 24505 | shlibpath_var=LD_LIBRARY_PATH |
| 24506 | shlibpath_overrides_runpath=yes |
| 24507 | if test "$with_gnu_ld" = yes; then |
| 24508 | need_lib_prefix=no |
| 24509 | fi |
| 24510 | need_version=yes |
| 24511 | ;; |
| 24512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24513 | sysv4 | sysv4.3*) |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24514 | version_type=linux |
| 24515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24517 | shlibpath_var=LD_LIBRARY_PATH |
| 24518 | case $host_vendor in |
| 24519 | sni) |
| 24520 | shlibpath_overrides_runpath=no |
| 24521 | need_lib_prefix=no |
| 24522 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 24523 | runpath_var=LD_RUN_PATH |
| 24524 | ;; |
| 24525 | siemens) |
| 24526 | need_lib_prefix=no |
| 24527 | ;; |
| 24528 | motorola) |
| 24529 | need_lib_prefix=no |
| 24530 | need_version=no |
| 24531 | shlibpath_overrides_runpath=no |
| 24532 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 24533 | ;; |
| 24534 | esac |
| 24535 | ;; |
| 24536 | |
| 24537 | sysv4*MP*) |
| 24538 | if test -d /usr/nec ;then |
| 24539 | version_type=linux |
| 24540 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 24541 | soname_spec='$libname${shared_ext}.$major' |
| 24542 | shlibpath_var=LD_LIBRARY_PATH |
| 24543 | fi |
| 24544 | ;; |
| 24545 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24546 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 24547 | version_type=freebsd-elf |
| 24548 | need_lib_prefix=no |
| 24549 | need_version=no |
| 24550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 24551 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24552 | shlibpath_var=LD_LIBRARY_PATH |
| 24553 | hardcode_into_libs=yes |
| 24554 | if test "$with_gnu_ld" = yes; then |
| 24555 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 24556 | shlibpath_overrides_runpath=no |
| 24557 | else |
| 24558 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 24559 | shlibpath_overrides_runpath=yes |
| 24560 | case $host_os in |
| 24561 | sco3.2v5*) |
| 24562 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 24563 | ;; |
| 24564 | esac |
| 24565 | fi |
| 24566 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 24567 | ;; |
| 24568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24569 | uts4*) |
| 24570 | version_type=linux |
| 24571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 24572 | soname_spec='${libname}${release}${shared_ext}$major' |
| 24573 | shlibpath_var=LD_LIBRARY_PATH |
| 24574 | ;; |
| 24575 | |
| 24576 | *) |
| 24577 | dynamic_linker=no |
| 24578 | ;; |
| 24579 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24580 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 24581 | echo "${ECHO_T}$dynamic_linker" >&6; } |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24582 | test "$dynamic_linker" = no && can_build_shared=no |
| 24583 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24584 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 24585 | if test "$GCC" = yes; then |
| 24586 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 24587 | fi |
| 24588 | |
| 24589 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 24590 | 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] | 24591 | hardcode_action_GCJ= |
| 24592 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
| 24593 | test -n "$runpath_var_GCJ" || \ |
| 24594 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
| 24595 | |
| 24596 | # We can hardcode non-existant directories. |
| 24597 | if test "$hardcode_direct_GCJ" != no && |
| 24598 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 24599 | # have to relink, otherwise we might link with an installed library |
| 24600 | # when we should be linking with a yet-to-be-installed one |
| 24601 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 24602 | test "$hardcode_minus_L_GCJ" != no; then |
| 24603 | # Linking always hardcodes the temporary library directory. |
| 24604 | hardcode_action_GCJ=relink |
| 24605 | else |
| 24606 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 24607 | hardcode_action_GCJ=immediate |
| 24608 | fi |
| 24609 | else |
| 24610 | # We cannot hardcode anything, or else we can only hardcode existing |
| 24611 | # directories. |
| 24612 | hardcode_action_GCJ=unsupported |
| 24613 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24614 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 24615 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24616 | |
| 24617 | if test "$hardcode_action_GCJ" = relink; then |
| 24618 | # Fast installation is not supported |
| 24619 | enable_fast_install=no |
| 24620 | elif test "$shlibpath_overrides_runpath" = yes || |
| 24621 | test "$enable_shared" = no; then |
| 24622 | # Fast installation is not necessary |
| 24623 | enable_fast_install=needless |
| 24624 | fi |
| 24625 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24626 | |
| 24627 | # The else clause should only fire when bootstrapping the |
| 24628 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 24629 | # with your package, and you will get complaints that there are |
| 24630 | # no rules to generate ltmain.sh. |
| 24631 | if test -f "$ltmain"; then |
| 24632 | # See if we are running on zsh, and set the options which allow our commands through |
| 24633 | # without removal of \ escapes. |
| 24634 | if test -n "${ZSH_VERSION+set}" ; then |
| 24635 | setopt NO_GLOB_SUBST |
| 24636 | fi |
| 24637 | # Now quote all the things that may contain metacharacters while being |
| 24638 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 24639 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24640 | 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] | 24641 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24642 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 24643 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 24644 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 24645 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 24646 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 24647 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 24648 | old_postinstall_cmds old_postuninstall_cmds \ |
| 24649 | compiler_GCJ \ |
| 24650 | CC_GCJ \ |
| 24651 | LD_GCJ \ |
| 24652 | lt_prog_compiler_wl_GCJ \ |
| 24653 | lt_prog_compiler_pic_GCJ \ |
| 24654 | lt_prog_compiler_static_GCJ \ |
| 24655 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 24656 | export_dynamic_flag_spec_GCJ \ |
| 24657 | thread_safe_flag_spec_GCJ \ |
| 24658 | whole_archive_flag_spec_GCJ \ |
| 24659 | enable_shared_with_static_runtimes_GCJ \ |
| 24660 | old_archive_cmds_GCJ \ |
| 24661 | old_archive_from_new_cmds_GCJ \ |
| 24662 | predep_objects_GCJ \ |
| 24663 | postdep_objects_GCJ \ |
| 24664 | predeps_GCJ \ |
| 24665 | postdeps_GCJ \ |
| 24666 | compiler_lib_search_path_GCJ \ |
| 24667 | archive_cmds_GCJ \ |
| 24668 | archive_expsym_cmds_GCJ \ |
| 24669 | postinstall_cmds_GCJ \ |
| 24670 | postuninstall_cmds_GCJ \ |
| 24671 | old_archive_from_expsyms_cmds_GCJ \ |
| 24672 | allow_undefined_flag_GCJ \ |
| 24673 | no_undefined_flag_GCJ \ |
| 24674 | export_symbols_cmds_GCJ \ |
| 24675 | hardcode_libdir_flag_spec_GCJ \ |
| 24676 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 24677 | hardcode_libdir_separator_GCJ \ |
| 24678 | hardcode_automatic_GCJ \ |
| 24679 | module_cmds_GCJ \ |
| 24680 | module_expsym_cmds_GCJ \ |
| 24681 | lt_cv_prog_compiler_c_o_GCJ \ |
| 24682 | exclude_expsyms_GCJ \ |
| 24683 | include_expsyms_GCJ; do |
| 24684 | |
| 24685 | case $var in |
| 24686 | old_archive_cmds_GCJ | \ |
| 24687 | old_archive_from_new_cmds_GCJ | \ |
| 24688 | archive_cmds_GCJ | \ |
| 24689 | archive_expsym_cmds_GCJ | \ |
| 24690 | module_cmds_GCJ | \ |
| 24691 | module_expsym_cmds_GCJ | \ |
| 24692 | old_archive_from_expsyms_cmds_GCJ | \ |
| 24693 | export_symbols_cmds_GCJ | \ |
| 24694 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 24695 | postinstall_cmds | postuninstall_cmds | \ |
| 24696 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 24697 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 24698 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24699 | 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] | 24700 | ;; |
| 24701 | *) |
| 24702 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 24703 | ;; |
| 24704 | esac |
| 24705 | done |
| 24706 | |
| 24707 | case $lt_echo in |
| 24708 | *'\$0 --fallback-echo"') |
| 24709 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 24710 | ;; |
| 24711 | esac |
| 24712 | |
| 24713 | cfgfile="$ofile" |
| 24714 | |
| 24715 | cat <<__EOF__ >> "$cfgfile" |
| 24716 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 24717 | |
| 24718 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 24719 | |
| 24720 | # Shell to use when invoking shell scripts. |
| 24721 | SHELL=$lt_SHELL |
| 24722 | |
| 24723 | # Whether or not to build shared libraries. |
| 24724 | build_libtool_libs=$enable_shared |
| 24725 | |
| 24726 | # Whether or not to build static libraries. |
| 24727 | build_old_libs=$enable_static |
| 24728 | |
| 24729 | # Whether or not to add -lc for building shared libraries. |
| 24730 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 24731 | |
| 24732 | # Whether or not to disallow shared libs when runtime libs are static |
| 24733 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 24734 | |
| 24735 | # Whether or not to optimize for fast installation. |
| 24736 | fast_install=$enable_fast_install |
| 24737 | |
| 24738 | # The host system. |
| 24739 | host_alias=$host_alias |
| 24740 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24741 | host_os=$host_os |
| 24742 | |
| 24743 | # The build system. |
| 24744 | build_alias=$build_alias |
| 24745 | build=$build |
| 24746 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24747 | |
| 24748 | # An echo program that does not interpret backslashes. |
| 24749 | echo=$lt_echo |
| 24750 | |
| 24751 | # The archiver. |
| 24752 | AR=$lt_AR |
| 24753 | AR_FLAGS=$lt_AR_FLAGS |
| 24754 | |
| 24755 | # A C compiler. |
| 24756 | LTCC=$lt_LTCC |
| 24757 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24758 | # LTCC compiler flags. |
| 24759 | LTCFLAGS=$lt_LTCFLAGS |
| 24760 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24761 | # A language-specific compiler. |
| 24762 | CC=$lt_compiler_GCJ |
| 24763 | |
| 24764 | # Is the compiler the GNU C compiler? |
| 24765 | with_gcc=$GCC_GCJ |
| 24766 | |
| 24767 | # An ERE matcher. |
| 24768 | EGREP=$lt_EGREP |
| 24769 | |
| 24770 | # The linker used to build libraries. |
| 24771 | LD=$lt_LD_GCJ |
| 24772 | |
| 24773 | # Whether we need hard or soft links. |
| 24774 | LN_S=$lt_LN_S |
| 24775 | |
| 24776 | # A BSD-compatible nm program. |
| 24777 | NM=$lt_NM |
| 24778 | |
| 24779 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24780 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24781 | |
| 24782 | # Used to examine libraries when file_magic_cmd begins "file" |
| 24783 | MAGIC_CMD=$MAGIC_CMD |
| 24784 | |
| 24785 | # Used on cygwin: DLL creation program. |
| 24786 | DLLTOOL="$DLLTOOL" |
| 24787 | |
| 24788 | # Used on cygwin: object dumper. |
| 24789 | OBJDUMP="$OBJDUMP" |
| 24790 | |
| 24791 | # Used on cygwin: assembler. |
| 24792 | AS="$AS" |
| 24793 | |
| 24794 | # The name of the directory that contains temporary libtool files. |
| 24795 | objdir=$objdir |
| 24796 | |
| 24797 | # How to create reloadable object files. |
| 24798 | reload_flag=$lt_reload_flag |
| 24799 | reload_cmds=$lt_reload_cmds |
| 24800 | |
| 24801 | # How to pass a linker flag through the compiler. |
| 24802 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 24803 | |
| 24804 | # Object file suffix (normally "o"). |
| 24805 | objext="$ac_objext" |
| 24806 | |
| 24807 | # Old archive suffix (normally "a"). |
| 24808 | libext="$libext" |
| 24809 | |
| 24810 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 24811 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24812 | |
| 24813 | # Executable file suffix (normally ""). |
| 24814 | exeext="$exeext" |
| 24815 | |
| 24816 | # Additional compiler flags for building library objects. |
| 24817 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 24818 | pic_mode=$pic_mode |
| 24819 | |
| 24820 | # What is the maximum length of a command? |
| 24821 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 24822 | |
| 24823 | # Does compiler simultaneously support -c and -o options? |
| 24824 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 24825 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 24826 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 24827 | need_locks=$lt_need_locks |
| 24828 | |
| 24829 | # Do we need the lib prefix for modules? |
| 24830 | need_lib_prefix=$need_lib_prefix |
| 24831 | |
| 24832 | # Do we need a version for libraries? |
| 24833 | need_version=$need_version |
| 24834 | |
| 24835 | # Whether dlopen is supported. |
| 24836 | dlopen_support=$enable_dlopen |
| 24837 | |
| 24838 | # Whether dlopen of programs is supported. |
| 24839 | dlopen_self=$enable_dlopen_self |
| 24840 | |
| 24841 | # Whether dlopen of statically linked programs is supported. |
| 24842 | dlopen_self_static=$enable_dlopen_self_static |
| 24843 | |
| 24844 | # Compiler flag to prevent dynamic linking. |
| 24845 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 24846 | |
| 24847 | # Compiler flag to turn off builtin functions. |
| 24848 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 24849 | |
| 24850 | # Compiler flag to allow reflexive dlopens. |
| 24851 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 24852 | |
| 24853 | # Compiler flag to generate shared objects directly from archives. |
| 24854 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 24855 | |
| 24856 | # Compiler flag to generate thread-safe objects. |
| 24857 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 24858 | |
| 24859 | # Library versioning type. |
| 24860 | version_type=$version_type |
| 24861 | |
| 24862 | # Format of library name prefix. |
| 24863 | libname_spec=$lt_libname_spec |
| 24864 | |
| 24865 | # List of archive names. First name is the real one, the rest are links. |
| 24866 | # The last name is the one that the linker finds with -lNAME. |
| 24867 | library_names_spec=$lt_library_names_spec |
| 24868 | |
| 24869 | # The coded name of the library, if different from the real name. |
| 24870 | soname_spec=$lt_soname_spec |
| 24871 | |
| 24872 | # Commands used to build and install an old-style archive. |
| 24873 | RANLIB=$lt_RANLIB |
| 24874 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 24875 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 24876 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 24877 | |
| 24878 | # Create an old-style archive from a shared archive. |
| 24879 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 24880 | |
| 24881 | # Create a temporary old-style archive to link instead of a shared archive. |
| 24882 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 24883 | |
| 24884 | # Commands used to build and install a shared archive. |
| 24885 | archive_cmds=$lt_archive_cmds_GCJ |
| 24886 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 24887 | postinstall_cmds=$lt_postinstall_cmds |
| 24888 | postuninstall_cmds=$lt_postuninstall_cmds |
| 24889 | |
| 24890 | # Commands used to build a loadable module (assumed same as above if empty) |
| 24891 | module_cmds=$lt_module_cmds_GCJ |
| 24892 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 24893 | |
| 24894 | # Commands to strip libraries. |
| 24895 | old_striplib=$lt_old_striplib |
| 24896 | striplib=$lt_striplib |
| 24897 | |
| 24898 | # Dependencies to place before the objects being linked to create a |
| 24899 | # shared library. |
| 24900 | predep_objects=$lt_predep_objects_GCJ |
| 24901 | |
| 24902 | # Dependencies to place after the objects being linked to create a |
| 24903 | # shared library. |
| 24904 | postdep_objects=$lt_postdep_objects_GCJ |
| 24905 | |
| 24906 | # Dependencies to place before the objects being linked to create a |
| 24907 | # shared library. |
| 24908 | predeps=$lt_predeps_GCJ |
| 24909 | |
| 24910 | # Dependencies to place after the objects being linked to create a |
| 24911 | # shared library. |
| 24912 | postdeps=$lt_postdeps_GCJ |
| 24913 | |
| 24914 | # The library search path used internally by the compiler when linking |
| 24915 | # a shared library. |
| 24916 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 24917 | |
| 24918 | # Method to check whether dependent libraries are shared objects. |
| 24919 | deplibs_check_method=$lt_deplibs_check_method |
| 24920 | |
| 24921 | # Command to use when deplibs_check_method == file_magic. |
| 24922 | file_magic_cmd=$lt_file_magic_cmd |
| 24923 | |
| 24924 | # Flag that allows shared libraries with undefined symbols to be built. |
| 24925 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 24926 | |
| 24927 | # Flag that forces no undefined symbols. |
| 24928 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 24929 | |
| 24930 | # Commands used to finish a libtool library installation in a directory. |
| 24931 | finish_cmds=$lt_finish_cmds |
| 24932 | |
| 24933 | # Same as above, but a single script fragment to be evaled but not shown. |
| 24934 | finish_eval=$lt_finish_eval |
| 24935 | |
| 24936 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 24937 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 24938 | |
| 24939 | # Transform the output of nm in a proper C declaration |
| 24940 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 24941 | |
| 24942 | # Transform the output of nm in a C name address pair |
| 24943 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 24944 | |
| 24945 | # This is the shared library runtime path variable. |
| 24946 | runpath_var=$runpath_var |
| 24947 | |
| 24948 | # This is the shared library path variable. |
| 24949 | shlibpath_var=$shlibpath_var |
| 24950 | |
| 24951 | # Is shlibpath searched before the hard-coded library search path? |
| 24952 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 24953 | |
| 24954 | # How to hardcode a shared library path into an executable. |
| 24955 | hardcode_action=$hardcode_action_GCJ |
| 24956 | |
| 24957 | # Whether we should hardcode library paths into libraries. |
| 24958 | hardcode_into_libs=$hardcode_into_libs |
| 24959 | |
| 24960 | # Flag to hardcode \$libdir into a binary during linking. |
| 24961 | # This must work even if \$libdir does not exist. |
| 24962 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 24963 | |
| 24964 | # If ld is used when linking, flag to hardcode \$libdir into |
| 24965 | # a binary during linking. This must work even if \$libdir does |
| 24966 | # not exist. |
| 24967 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 24968 | |
| 24969 | # Whether we need a single -rpath flag with a separated argument. |
| 24970 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 24971 | |
| 24972 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 24973 | # resulting binary. |
| 24974 | hardcode_direct=$hardcode_direct_GCJ |
| 24975 | |
| 24976 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 24977 | # resulting binary. |
| 24978 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 24979 | |
| 24980 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 24981 | # the resulting binary. |
| 24982 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 24983 | |
| 24984 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 24985 | # and all subsequent libraries and executables linked against it. |
| 24986 | hardcode_automatic=$hardcode_automatic_GCJ |
| 24987 | |
| 24988 | # Variables whose values should be saved in libtool wrapper scripts and |
| 24989 | # restored at relink time. |
| 24990 | variables_saved_for_relink="$variables_saved_for_relink" |
| 24991 | |
| 24992 | # Whether libtool must link a program against all its dependency libraries. |
| 24993 | link_all_deplibs=$link_all_deplibs_GCJ |
| 24994 | |
| 24995 | # Compile-time system search path for libraries |
| 24996 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 24997 | |
| 24998 | # Run-time system search path for libraries |
| 24999 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25000 | |
| 25001 | # Fix the shell variable \$srcfile for the compiler. |
| 25002 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 25003 | |
| 25004 | # Set to yes if exported symbols are required. |
| 25005 | always_export_symbols=$always_export_symbols_GCJ |
| 25006 | |
| 25007 | # The commands to list exported symbols. |
| 25008 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 25009 | |
| 25010 | # The commands to extract the exported symbol list from a shared archive. |
| 25011 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25012 | |
| 25013 | # Symbols that should not be listed in the preloaded symbols. |
| 25014 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 25015 | |
| 25016 | # Symbols that must always be exported. |
| 25017 | include_expsyms=$lt_include_expsyms_GCJ |
| 25018 | |
| 25019 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25020 | |
| 25021 | __EOF__ |
| 25022 | |
| 25023 | |
| 25024 | else |
| 25025 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25026 | # `config.status --recheck' to rerun these tests and create the |
| 25027 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25028 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25029 | if test -f "$ltmain_in"; then |
| 25030 | test -f Makefile && make "$ltmain" |
| 25031 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25032 | fi |
| 25033 | |
| 25034 | |
| 25035 | ac_ext=c |
| 25036 | ac_cpp='$CPP $CPPFLAGS' |
| 25037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25040 | |
| 25041 | CC="$lt_save_CC" |
| 25042 | |
| 25043 | else |
| 25044 | tagname="" |
| 25045 | fi |
| 25046 | ;; |
| 25047 | |
| 25048 | RC) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25049 | ac_ext=c |
| 25050 | ac_cpp='$CPP $CPPFLAGS' |
| 25051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25054 | |
| 25055 | |
| 25056 | # Source file extension for RC test sources. |
| 25057 | ac_ext=rc |
| 25058 | |
| 25059 | # Object file extension for compiled RC test sources. |
| 25060 | objext=o |
| 25061 | objext_RC=$objext |
| 25062 | |
| 25063 | # Code to be used in simple compile tests |
| 25064 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 25065 | |
| 25066 | # Code to be used in simple link tests |
| 25067 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 25068 | |
| 25069 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 25070 | |
| 25071 | # If no C compiler was specified, use CC. |
| 25072 | LTCC=${LTCC-"$CC"} |
| 25073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25074 | # If no C compiler flags were specified, use CFLAGS. |
| 25075 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 25076 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25077 | # Allow CC to be a program name with arguments. |
| 25078 | compiler=$CC |
| 25079 | |
| 25080 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25081 | # save warnings/boilerplate of simple test code |
| 25082 | ac_outfile=conftest.$ac_objext |
| 25083 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 25084 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 25085 | _lt_compiler_boilerplate=`cat conftest.err` |
| 25086 | $rm conftest* |
| 25087 | |
| 25088 | ac_outfile=conftest.$ac_objext |
| 25089 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 25090 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 25091 | _lt_linker_boilerplate=`cat conftest.err` |
| 25092 | $rm conftest* |
| 25093 | |
| 25094 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25095 | # Allow CC to be a program name with arguments. |
| 25096 | lt_save_CC="$CC" |
| 25097 | CC=${RC-"windres"} |
| 25098 | compiler=$CC |
| 25099 | compiler_RC=$CC |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25100 | for cc_temp in $compiler""; do |
| 25101 | case $cc_temp in |
| 25102 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 25103 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 25104 | \-*) ;; |
| 25105 | *) break;; |
| 25106 | esac |
| 25107 | done |
| 25108 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 25109 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25110 | lt_cv_prog_compiler_c_o_RC=yes |
| 25111 | |
| 25112 | # The else clause should only fire when bootstrapping the |
| 25113 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 25114 | # with your package, and you will get complaints that there are |
| 25115 | # no rules to generate ltmain.sh. |
| 25116 | if test -f "$ltmain"; then |
| 25117 | # See if we are running on zsh, and set the options which allow our commands through |
| 25118 | # without removal of \ escapes. |
| 25119 | if test -n "${ZSH_VERSION+set}" ; then |
| 25120 | setopt NO_GLOB_SUBST |
| 25121 | fi |
| 25122 | # Now quote all the things that may contain metacharacters while being |
| 25123 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 25124 | # variables and quote the copies for generation of the libtool script. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25125 | 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] | 25126 | SED SHELL STRIP \ |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25127 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 25128 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 25129 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 25130 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 25131 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 25132 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 25133 | old_postinstall_cmds old_postuninstall_cmds \ |
| 25134 | compiler_RC \ |
| 25135 | CC_RC \ |
| 25136 | LD_RC \ |
| 25137 | lt_prog_compiler_wl_RC \ |
| 25138 | lt_prog_compiler_pic_RC \ |
| 25139 | lt_prog_compiler_static_RC \ |
| 25140 | lt_prog_compiler_no_builtin_flag_RC \ |
| 25141 | export_dynamic_flag_spec_RC \ |
| 25142 | thread_safe_flag_spec_RC \ |
| 25143 | whole_archive_flag_spec_RC \ |
| 25144 | enable_shared_with_static_runtimes_RC \ |
| 25145 | old_archive_cmds_RC \ |
| 25146 | old_archive_from_new_cmds_RC \ |
| 25147 | predep_objects_RC \ |
| 25148 | postdep_objects_RC \ |
| 25149 | predeps_RC \ |
| 25150 | postdeps_RC \ |
| 25151 | compiler_lib_search_path_RC \ |
| 25152 | archive_cmds_RC \ |
| 25153 | archive_expsym_cmds_RC \ |
| 25154 | postinstall_cmds_RC \ |
| 25155 | postuninstall_cmds_RC \ |
| 25156 | old_archive_from_expsyms_cmds_RC \ |
| 25157 | allow_undefined_flag_RC \ |
| 25158 | no_undefined_flag_RC \ |
| 25159 | export_symbols_cmds_RC \ |
| 25160 | hardcode_libdir_flag_spec_RC \ |
| 25161 | hardcode_libdir_flag_spec_ld_RC \ |
| 25162 | hardcode_libdir_separator_RC \ |
| 25163 | hardcode_automatic_RC \ |
| 25164 | module_cmds_RC \ |
| 25165 | module_expsym_cmds_RC \ |
| 25166 | lt_cv_prog_compiler_c_o_RC \ |
| 25167 | exclude_expsyms_RC \ |
| 25168 | include_expsyms_RC; do |
| 25169 | |
| 25170 | case $var in |
| 25171 | old_archive_cmds_RC | \ |
| 25172 | old_archive_from_new_cmds_RC | \ |
| 25173 | archive_cmds_RC | \ |
| 25174 | archive_expsym_cmds_RC | \ |
| 25175 | module_cmds_RC | \ |
| 25176 | module_expsym_cmds_RC | \ |
| 25177 | old_archive_from_expsyms_cmds_RC | \ |
| 25178 | export_symbols_cmds_RC | \ |
| 25179 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 25180 | postinstall_cmds | postuninstall_cmds | \ |
| 25181 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 25182 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 25183 | # Double-quote double-evaled strings. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25184 | 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] | 25185 | ;; |
| 25186 | *) |
| 25187 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 25188 | ;; |
| 25189 | esac |
| 25190 | done |
| 25191 | |
| 25192 | case $lt_echo in |
| 25193 | *'\$0 --fallback-echo"') |
| 25194 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 25195 | ;; |
| 25196 | esac |
| 25197 | |
| 25198 | cfgfile="$ofile" |
| 25199 | |
| 25200 | cat <<__EOF__ >> "$cfgfile" |
| 25201 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 25202 | |
| 25203 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 25204 | |
| 25205 | # Shell to use when invoking shell scripts. |
| 25206 | SHELL=$lt_SHELL |
| 25207 | |
| 25208 | # Whether or not to build shared libraries. |
| 25209 | build_libtool_libs=$enable_shared |
| 25210 | |
| 25211 | # Whether or not to build static libraries. |
| 25212 | build_old_libs=$enable_static |
| 25213 | |
| 25214 | # Whether or not to add -lc for building shared libraries. |
| 25215 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 25216 | |
| 25217 | # Whether or not to disallow shared libs when runtime libs are static |
| 25218 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 25219 | |
| 25220 | # Whether or not to optimize for fast installation. |
| 25221 | fast_install=$enable_fast_install |
| 25222 | |
| 25223 | # The host system. |
| 25224 | host_alias=$host_alias |
| 25225 | host=$host |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25226 | host_os=$host_os |
| 25227 | |
| 25228 | # The build system. |
| 25229 | build_alias=$build_alias |
| 25230 | build=$build |
| 25231 | build_os=$build_os |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25232 | |
| 25233 | # An echo program that does not interpret backslashes. |
| 25234 | echo=$lt_echo |
| 25235 | |
| 25236 | # The archiver. |
| 25237 | AR=$lt_AR |
| 25238 | AR_FLAGS=$lt_AR_FLAGS |
| 25239 | |
| 25240 | # A C compiler. |
| 25241 | LTCC=$lt_LTCC |
| 25242 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25243 | # LTCC compiler flags. |
| 25244 | LTCFLAGS=$lt_LTCFLAGS |
| 25245 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25246 | # A language-specific compiler. |
| 25247 | CC=$lt_compiler_RC |
| 25248 | |
| 25249 | # Is the compiler the GNU C compiler? |
| 25250 | with_gcc=$GCC_RC |
| 25251 | |
| 25252 | # An ERE matcher. |
| 25253 | EGREP=$lt_EGREP |
| 25254 | |
| 25255 | # The linker used to build libraries. |
| 25256 | LD=$lt_LD_RC |
| 25257 | |
| 25258 | # Whether we need hard or soft links. |
| 25259 | LN_S=$lt_LN_S |
| 25260 | |
| 25261 | # A BSD-compatible nm program. |
| 25262 | NM=$lt_NM |
| 25263 | |
| 25264 | # A symbol stripping program |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25265 | STRIP=$lt_STRIP |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25266 | |
| 25267 | # Used to examine libraries when file_magic_cmd begins "file" |
| 25268 | MAGIC_CMD=$MAGIC_CMD |
| 25269 | |
| 25270 | # Used on cygwin: DLL creation program. |
| 25271 | DLLTOOL="$DLLTOOL" |
| 25272 | |
| 25273 | # Used on cygwin: object dumper. |
| 25274 | OBJDUMP="$OBJDUMP" |
| 25275 | |
| 25276 | # Used on cygwin: assembler. |
| 25277 | AS="$AS" |
| 25278 | |
| 25279 | # The name of the directory that contains temporary libtool files. |
| 25280 | objdir=$objdir |
| 25281 | |
| 25282 | # How to create reloadable object files. |
| 25283 | reload_flag=$lt_reload_flag |
| 25284 | reload_cmds=$lt_reload_cmds |
| 25285 | |
| 25286 | # How to pass a linker flag through the compiler. |
| 25287 | wl=$lt_lt_prog_compiler_wl_RC |
| 25288 | |
| 25289 | # Object file suffix (normally "o"). |
| 25290 | objext="$ac_objext" |
| 25291 | |
| 25292 | # Old archive suffix (normally "a"). |
| 25293 | libext="$libext" |
| 25294 | |
| 25295 | # Shared library suffix (normally ".so"). |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25296 | shrext_cmds='$shrext_cmds' |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25297 | |
| 25298 | # Executable file suffix (normally ""). |
| 25299 | exeext="$exeext" |
| 25300 | |
| 25301 | # Additional compiler flags for building library objects. |
| 25302 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 25303 | pic_mode=$pic_mode |
| 25304 | |
| 25305 | # What is the maximum length of a command? |
| 25306 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 25307 | |
| 25308 | # Does compiler simultaneously support -c and -o options? |
| 25309 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 25310 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25311 | # Must we lock files when doing compilation? |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25312 | need_locks=$lt_need_locks |
| 25313 | |
| 25314 | # Do we need the lib prefix for modules? |
| 25315 | need_lib_prefix=$need_lib_prefix |
| 25316 | |
| 25317 | # Do we need a version for libraries? |
| 25318 | need_version=$need_version |
| 25319 | |
| 25320 | # Whether dlopen is supported. |
| 25321 | dlopen_support=$enable_dlopen |
| 25322 | |
| 25323 | # Whether dlopen of programs is supported. |
| 25324 | dlopen_self=$enable_dlopen_self |
| 25325 | |
| 25326 | # Whether dlopen of statically linked programs is supported. |
| 25327 | dlopen_self_static=$enable_dlopen_self_static |
| 25328 | |
| 25329 | # Compiler flag to prevent dynamic linking. |
| 25330 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 25331 | |
| 25332 | # Compiler flag to turn off builtin functions. |
| 25333 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 25334 | |
| 25335 | # Compiler flag to allow reflexive dlopens. |
| 25336 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 25337 | |
| 25338 | # Compiler flag to generate shared objects directly from archives. |
| 25339 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 25340 | |
| 25341 | # Compiler flag to generate thread-safe objects. |
| 25342 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 25343 | |
| 25344 | # Library versioning type. |
| 25345 | version_type=$version_type |
| 25346 | |
| 25347 | # Format of library name prefix. |
| 25348 | libname_spec=$lt_libname_spec |
| 25349 | |
| 25350 | # List of archive names. First name is the real one, the rest are links. |
| 25351 | # The last name is the one that the linker finds with -lNAME. |
| 25352 | library_names_spec=$lt_library_names_spec |
| 25353 | |
| 25354 | # The coded name of the library, if different from the real name. |
| 25355 | soname_spec=$lt_soname_spec |
| 25356 | |
| 25357 | # Commands used to build and install an old-style archive. |
| 25358 | RANLIB=$lt_RANLIB |
| 25359 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 25360 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 25361 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 25362 | |
| 25363 | # Create an old-style archive from a shared archive. |
| 25364 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 25365 | |
| 25366 | # Create a temporary old-style archive to link instead of a shared archive. |
| 25367 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 25368 | |
| 25369 | # Commands used to build and install a shared archive. |
| 25370 | archive_cmds=$lt_archive_cmds_RC |
| 25371 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 25372 | postinstall_cmds=$lt_postinstall_cmds |
| 25373 | postuninstall_cmds=$lt_postuninstall_cmds |
| 25374 | |
| 25375 | # Commands used to build a loadable module (assumed same as above if empty) |
| 25376 | module_cmds=$lt_module_cmds_RC |
| 25377 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 25378 | |
| 25379 | # Commands to strip libraries. |
| 25380 | old_striplib=$lt_old_striplib |
| 25381 | striplib=$lt_striplib |
| 25382 | |
| 25383 | # Dependencies to place before the objects being linked to create a |
| 25384 | # shared library. |
| 25385 | predep_objects=$lt_predep_objects_RC |
| 25386 | |
| 25387 | # Dependencies to place after the objects being linked to create a |
| 25388 | # shared library. |
| 25389 | postdep_objects=$lt_postdep_objects_RC |
| 25390 | |
| 25391 | # Dependencies to place before the objects being linked to create a |
| 25392 | # shared library. |
| 25393 | predeps=$lt_predeps_RC |
| 25394 | |
| 25395 | # Dependencies to place after the objects being linked to create a |
| 25396 | # shared library. |
| 25397 | postdeps=$lt_postdeps_RC |
| 25398 | |
| 25399 | # The library search path used internally by the compiler when linking |
| 25400 | # a shared library. |
| 25401 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 25402 | |
| 25403 | # Method to check whether dependent libraries are shared objects. |
| 25404 | deplibs_check_method=$lt_deplibs_check_method |
| 25405 | |
| 25406 | # Command to use when deplibs_check_method == file_magic. |
| 25407 | file_magic_cmd=$lt_file_magic_cmd |
| 25408 | |
| 25409 | # Flag that allows shared libraries with undefined symbols to be built. |
| 25410 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 25411 | |
| 25412 | # Flag that forces no undefined symbols. |
| 25413 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 25414 | |
| 25415 | # Commands used to finish a libtool library installation in a directory. |
| 25416 | finish_cmds=$lt_finish_cmds |
| 25417 | |
| 25418 | # Same as above, but a single script fragment to be evaled but not shown. |
| 25419 | finish_eval=$lt_finish_eval |
| 25420 | |
| 25421 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 25422 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 25423 | |
| 25424 | # Transform the output of nm in a proper C declaration |
| 25425 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 25426 | |
| 25427 | # Transform the output of nm in a C name address pair |
| 25428 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 25429 | |
| 25430 | # This is the shared library runtime path variable. |
| 25431 | runpath_var=$runpath_var |
| 25432 | |
| 25433 | # This is the shared library path variable. |
| 25434 | shlibpath_var=$shlibpath_var |
| 25435 | |
| 25436 | # Is shlibpath searched before the hard-coded library search path? |
| 25437 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 25438 | |
| 25439 | # How to hardcode a shared library path into an executable. |
| 25440 | hardcode_action=$hardcode_action_RC |
| 25441 | |
| 25442 | # Whether we should hardcode library paths into libraries. |
| 25443 | hardcode_into_libs=$hardcode_into_libs |
| 25444 | |
| 25445 | # Flag to hardcode \$libdir into a binary during linking. |
| 25446 | # This must work even if \$libdir does not exist. |
| 25447 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 25448 | |
| 25449 | # If ld is used when linking, flag to hardcode \$libdir into |
| 25450 | # a binary during linking. This must work even if \$libdir does |
| 25451 | # not exist. |
| 25452 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 25453 | |
| 25454 | # Whether we need a single -rpath flag with a separated argument. |
| 25455 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 25456 | |
| 25457 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 25458 | # resulting binary. |
| 25459 | hardcode_direct=$hardcode_direct_RC |
| 25460 | |
| 25461 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 25462 | # resulting binary. |
| 25463 | hardcode_minus_L=$hardcode_minus_L_RC |
| 25464 | |
| 25465 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 25466 | # the resulting binary. |
| 25467 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 25468 | |
| 25469 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 25470 | # and all subsequent libraries and executables linked against it. |
| 25471 | hardcode_automatic=$hardcode_automatic_RC |
| 25472 | |
| 25473 | # Variables whose values should be saved in libtool wrapper scripts and |
| 25474 | # restored at relink time. |
| 25475 | variables_saved_for_relink="$variables_saved_for_relink" |
| 25476 | |
| 25477 | # Whether libtool must link a program against all its dependency libraries. |
| 25478 | link_all_deplibs=$link_all_deplibs_RC |
| 25479 | |
| 25480 | # Compile-time system search path for libraries |
| 25481 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 25482 | |
| 25483 | # Run-time system search path for libraries |
| 25484 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 25485 | |
| 25486 | # Fix the shell variable \$srcfile for the compiler. |
| 25487 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 25488 | |
| 25489 | # Set to yes if exported symbols are required. |
| 25490 | always_export_symbols=$always_export_symbols_RC |
| 25491 | |
| 25492 | # The commands to list exported symbols. |
| 25493 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 25494 | |
| 25495 | # The commands to extract the exported symbol list from a shared archive. |
| 25496 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 25497 | |
| 25498 | # Symbols that should not be listed in the preloaded symbols. |
| 25499 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 25500 | |
| 25501 | # Symbols that must always be exported. |
| 25502 | include_expsyms=$lt_include_expsyms_RC |
| 25503 | |
| 25504 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 25505 | |
| 25506 | __EOF__ |
| 25507 | |
| 25508 | |
| 25509 | else |
| 25510 | # If there is no Makefile yet, we rely on a make rule to execute |
| 25511 | # `config.status --recheck' to rerun these tests and create the |
| 25512 | # libtool script then. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25513 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 25514 | if test -f "$ltmain_in"; then |
| 25515 | test -f Makefile && make "$ltmain" |
| 25516 | fi |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25517 | fi |
| 25518 | |
| 25519 | |
| 25520 | ac_ext=c |
| 25521 | ac_cpp='$CPP $CPPFLAGS' |
| 25522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25525 | |
| 25526 | CC="$lt_save_CC" |
| 25527 | |
| 25528 | ;; |
| 25529 | |
| 25530 | *) |
| 25531 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 25532 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 25533 | { (exit 1); exit 1; }; } |
| 25534 | ;; |
| 25535 | esac |
| 25536 | |
| 25537 | # Append the new tag name to the list of available tags. |
| 25538 | if test -n "$tagname" ; then |
| 25539 | available_tags="$available_tags $tagname" |
| 25540 | fi |
| 25541 | fi |
| 25542 | done |
| 25543 | IFS="$lt_save_ifs" |
| 25544 | |
| 25545 | # Now substitute the updated list of available tags. |
| 25546 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 25547 | mv "${ofile}T" "$ofile" |
| 25548 | chmod +x "$ofile" |
| 25549 | else |
| 25550 | rm -f "${ofile}T" |
| 25551 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 25552 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 25553 | { (exit 1); exit 1; }; } |
| 25554 | fi |
| 25555 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25556 | |
| 25557 | |
| 25558 | |
| 25559 | # This can be used to rebuild libtool when needed |
| 25560 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 25561 | |
| 25562 | # Always use our own libtool. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25563 | LIBTOOL='$(SHELL) $(top_builddir)/mklib' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25564 | |
| 25565 | # Prevent multiple expansion |
| 25566 | |
| 25567 | |
| 25568 | |
John Criswell | 47fdd83 | 2003-07-14 16:52:07 +0000 | [diff] [blame] | 25569 | |
| 25570 | |
| 25571 | |
| 25572 | |
| 25573 | |
| 25574 | |
| 25575 | |
| 25576 | |
| 25577 | |
| 25578 | |
| 25579 | |
| 25580 | |
| 25581 | |
| 25582 | |
| 25583 | |
| 25584 | |
| 25585 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25586 | |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 25587 | if test "$lt_cv_dlopen_self" = "yes" ; then |
| 25588 | |
| 25589 | cat >>confdefs.h <<\_ACEOF |
| 25590 | #define CAN_DLOPEN_SELF 1 |
| 25591 | _ACEOF |
| 25592 | |
| 25593 | fi |
| 25594 | |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 25595 | if test "$WITH_LLVMGCCDIR" = "default" ; then |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 25596 | LLVMGCC="llvm-gcc${EXEEXT}" |
| 25597 | LLVMGXX="llvm-g++${EXEEXT}" |
| 25598 | # Extract the first word of "$LLVMGCC", so it can be a program name with args. |
| 25599 | set dummy $LLVMGCC; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 25601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25602 | if test "${ac_cv_path_LLVMGCC+set}" = set; then |
| 25603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25604 | else |
| 25605 | case $LLVMGCC in |
| 25606 | [\\/]* | ?:[\\/]*) |
| 25607 | ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. |
| 25608 | ;; |
| 25609 | *) |
| 25610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25611 | for as_dir in $PATH |
| 25612 | do |
| 25613 | IFS=$as_save_IFS |
| 25614 | test -z "$as_dir" && as_dir=. |
| 25615 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25617 | ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" |
| 25618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25619 | break 2 |
| 25620 | fi |
| 25621 | done |
| 25622 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25623 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25624 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25625 | ;; |
| 25626 | esac |
| 25627 | fi |
| 25628 | LLVMGCC=$ac_cv_path_LLVMGCC |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25629 | if test -n "$LLVMGCC"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25630 | { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 |
| 25631 | echo "${ECHO_T}$LLVMGCC" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25632 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25633 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25634 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25635 | fi |
| 25636 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25637 | |
Reid Spencer | c84492c | 2005-06-02 22:34:49 +0000 | [diff] [blame] | 25638 | # Extract the first word of "$LLVMGXX", so it can be a program name with args. |
| 25639 | set dummy $LLVMGXX; ac_word=$2 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25640 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 25641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25642 | if test "${ac_cv_path_LLVMGXX+set}" = set; then |
| 25643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25644 | else |
| 25645 | case $LLVMGXX in |
| 25646 | [\\/]* | ?:[\\/]*) |
| 25647 | ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. |
| 25648 | ;; |
| 25649 | *) |
| 25650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25651 | for as_dir in $PATH |
| 25652 | do |
| 25653 | IFS=$as_save_IFS |
| 25654 | test -z "$as_dir" && as_dir=. |
| 25655 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25657 | ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" |
| 25658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25659 | break 2 |
| 25660 | fi |
| 25661 | done |
| 25662 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25663 | IFS=$as_save_IFS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25664 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25665 | ;; |
| 25666 | esac |
| 25667 | fi |
| 25668 | LLVMGXX=$ac_cv_path_LLVMGXX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25669 | if test -n "$LLVMGXX"; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25670 | { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 |
| 25671 | echo "${ECHO_T}$LLVMGXX" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25672 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25673 | { echo "$as_me:$LINENO: result: no" >&5 |
| 25674 | echo "${ECHO_T}no" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25675 | fi |
| 25676 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25677 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25678 | else |
Devang Patel | 5d28b88 | 2007-12-04 22:54:47 +0000 | [diff] [blame] | 25679 | if test -z "$LLVMGCC"; then |
| 25680 | LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" |
| 25681 | fi |
| 25682 | if test -z "$LLVMGXX"; then |
| 25683 | LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" |
| 25684 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 25685 | LLVMGCC=$LLVMGCC |
| 25686 | |
| 25687 | LLVMGXX=$LLVMGXX |
| 25688 | |
| 25689 | fi |
| 25690 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25691 | { echo "$as_me:$LINENO: checking tool compatibility" >&5 |
| 25692 | echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25693 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25694 | ICC=no |
| 25695 | IXX=no |
| 25696 | case $CC in |
| 25697 | icc*|icpc*) |
| 25698 | ICC=yes |
| 25699 | IXX=yes |
| 25700 | ;; |
| 25701 | *) |
| 25702 | ;; |
| 25703 | esac |
| 25704 | |
Duraid Madina | 937c60a | 2006-02-15 07:57:42 +0000 | [diff] [blame] | 25705 | if test "$GCC" != "yes" && test "$ICC" != "yes" |
| 25706 | then |
| 25707 | { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 |
| 25708 | echo "$as_me: error: gcc|icc required but not found" >&2;} |
| 25709 | { (exit 1); exit 1; }; } |
| 25710 | fi |
| 25711 | |
| 25712 | if test "$GXX" != "yes" && test "$IXX" != "yes" |
| 25713 | then |
| 25714 | { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 |
| 25715 | echo "$as_me: error: g++|icc required but not found" >&2;} |
| 25716 | { (exit 1); exit 1; }; } |
| 25717 | fi |
| 25718 | |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25719 | if test "$GCC" = "yes" |
| 25720 | then |
Reid Spencer | bc9e49c | 2005-07-27 21:58:38 +0000 | [diff] [blame] | 25721 | 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] | 25722 | if test "$gccmajor" -lt "3" |
| 25723 | then |
| 25724 | { { 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] | 25725 | echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} |
| 25726 | { (exit 1); exit 1; }; } |
Reid Spencer | 8690180 | 2004-12-08 23:07:27 +0000 | [diff] [blame] | 25727 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25728 | fi |
| 25729 | |
| 25730 | if test -z "$llvm_cv_gnu_make_command" |
| 25731 | then |
| 25732 | { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 |
| 25733 | echo "$as_me: error: GNU Make required but not found" >&2;} |
| 25734 | { (exit 1); exit 1; }; } |
| 25735 | fi |
| 25736 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25737 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 25738 | echo "${ECHO_T}ok" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25739 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 25740 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25741 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25742 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
| 25743 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25744 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
| 25745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25746 | else |
| 25747 | ac_check_lib_save_LIBS=$LIBS |
| 25748 | LIBS="-lelf $LIBS" |
| 25749 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25750 | /* confdefs.h. */ |
| 25751 | _ACEOF |
| 25752 | cat confdefs.h >>conftest.$ac_ext |
| 25753 | cat >>conftest.$ac_ext <<_ACEOF |
| 25754 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25755 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25756 | /* Override any GCC internal prototype to avoid an error. |
| 25757 | Use char because int might match the return type of a GCC |
| 25758 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25759 | #ifdef __cplusplus |
| 25760 | extern "C" |
| 25761 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25762 | char elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25763 | int |
| 25764 | main () |
| 25765 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25766 | return elf_begin (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25767 | ; |
| 25768 | return 0; |
| 25769 | } |
| 25770 | _ACEOF |
| 25771 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25772 | if { (ac_try="$ac_link" |
| 25773 | case "(($ac_try" in |
| 25774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25775 | *) ac_try_echo=$ac_try;; |
| 25776 | esac |
| 25777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25778 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25779 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25781 | rm -f conftest.er1 |
| 25782 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25784 | (exit $ac_status); } && { |
| 25785 | test -z "$ac_c_werror_flag" || |
| 25786 | test ! -s conftest.err |
| 25787 | } && test -s conftest$ac_exeext && |
| 25788 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25789 | ac_cv_lib_elf_elf_begin=yes |
| 25790 | else |
| 25791 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 25792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25793 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25794 | ac_cv_lib_elf_elf_begin=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25795 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25796 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25797 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 25798 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25799 | LIBS=$ac_check_lib_save_LIBS |
| 25800 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25801 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 25802 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 25803 | if test $ac_cv_lib_elf_elf_begin = yes; then |
| 25804 | cat >>confdefs.h <<_ACEOF |
| 25805 | #define HAVE_LIBELF 1 |
| 25806 | _ACEOF |
| 25807 | |
| 25808 | LIBS="-lelf $LIBS" |
| 25809 | |
| 25810 | fi |
| 25811 | |
| 25812 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25813 | { echo "$as_me:$LINENO: checking for sin in -lm" >&5 |
| 25814 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25815 | if test "${ac_cv_lib_m_sin+set}" = set; then |
| 25816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25817 | else |
| 25818 | ac_check_lib_save_LIBS=$LIBS |
| 25819 | LIBS="-lm $LIBS" |
| 25820 | cat >conftest.$ac_ext <<_ACEOF |
| 25821 | /* confdefs.h. */ |
| 25822 | _ACEOF |
| 25823 | cat confdefs.h >>conftest.$ac_ext |
| 25824 | cat >>conftest.$ac_ext <<_ACEOF |
| 25825 | /* end confdefs.h. */ |
| 25826 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25827 | /* Override any GCC internal prototype to avoid an error. |
| 25828 | Use char because int might match the return type of a GCC |
| 25829 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25830 | #ifdef __cplusplus |
| 25831 | extern "C" |
| 25832 | #endif |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25833 | char sin (); |
| 25834 | int |
| 25835 | main () |
| 25836 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25837 | return sin (); |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25838 | ; |
| 25839 | return 0; |
| 25840 | } |
| 25841 | _ACEOF |
| 25842 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25843 | if { (ac_try="$ac_link" |
| 25844 | case "(($ac_try" in |
| 25845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25846 | *) ac_try_echo=$ac_try;; |
| 25847 | esac |
| 25848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25849 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25850 | ac_status=$? |
| 25851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25852 | rm -f conftest.er1 |
| 25853 | cat conftest.err >&5 |
| 25854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25855 | (exit $ac_status); } && { |
| 25856 | test -z "$ac_c_werror_flag" || |
| 25857 | test ! -s conftest.err |
| 25858 | } && test -s conftest$ac_exeext && |
| 25859 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25860 | ac_cv_lib_m_sin=yes |
| 25861 | else |
| 25862 | echo "$as_me: failed program was:" >&5 |
| 25863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25864 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25865 | ac_cv_lib_m_sin=no |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25866 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25867 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25868 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25869 | conftest$ac_exeext conftest.$ac_ext |
| 25870 | LIBS=$ac_check_lib_save_LIBS |
| 25871 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25872 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 |
| 25873 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } |
Reid Spencer | 3484a99 | 2006-01-19 08:31:08 +0000 | [diff] [blame] | 25874 | if test $ac_cv_lib_m_sin = yes; then |
| 25875 | cat >>confdefs.h <<_ACEOF |
| 25876 | #define HAVE_LIBM 1 |
| 25877 | _ACEOF |
| 25878 | |
| 25879 | LIBS="-lm $LIBS" |
| 25880 | |
| 25881 | fi |
| 25882 | |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 25883 | if test "$llvm_cv_os_type" = "MingW" ; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25884 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25885 | { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 |
| 25886 | echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25887 | if test "${ac_cv_lib_imagehlp_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25889 | else |
| 25890 | ac_check_lib_save_LIBS=$LIBS |
| 25891 | LIBS="-limagehlp $LIBS" |
| 25892 | cat >conftest.$ac_ext <<_ACEOF |
| 25893 | /* confdefs.h. */ |
| 25894 | _ACEOF |
| 25895 | cat confdefs.h >>conftest.$ac_ext |
| 25896 | cat >>conftest.$ac_ext <<_ACEOF |
| 25897 | /* end confdefs.h. */ |
| 25898 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25899 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25900 | int |
| 25901 | main () |
| 25902 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25903 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25904 | ; |
| 25905 | return 0; |
| 25906 | } |
| 25907 | _ACEOF |
| 25908 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25909 | if { (ac_try="$ac_link" |
| 25910 | case "(($ac_try" in |
| 25911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25912 | *) ac_try_echo=$ac_try;; |
| 25913 | esac |
| 25914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25915 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25916 | ac_status=$? |
| 25917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25918 | rm -f conftest.er1 |
| 25919 | cat conftest.err >&5 |
| 25920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25921 | (exit $ac_status); } && { |
| 25922 | test -z "$ac_c_werror_flag" || |
| 25923 | test ! -s conftest.err |
| 25924 | } && test -s conftest$ac_exeext && |
| 25925 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25926 | ac_cv_lib_imagehlp_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25927 | else |
| 25928 | echo "$as_me: failed program was:" >&5 |
| 25929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25930 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25931 | ac_cv_lib_imagehlp_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25932 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25933 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25934 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25935 | conftest$ac_exeext conftest.$ac_ext |
| 25936 | LIBS=$ac_check_lib_save_LIBS |
| 25937 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25938 | { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 |
| 25939 | echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25940 | if test $ac_cv_lib_imagehlp_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25941 | cat >>confdefs.h <<_ACEOF |
| 25942 | #define HAVE_LIBIMAGEHLP 1 |
| 25943 | _ACEOF |
| 25944 | |
| 25945 | LIBS="-limagehlp $LIBS" |
| 25946 | |
| 25947 | fi |
| 25948 | |
| 25949 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25950 | { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 |
| 25951 | echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25952 | if test "${ac_cv_lib_psapi_main+set}" = set; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 25954 | else |
| 25955 | ac_check_lib_save_LIBS=$LIBS |
| 25956 | LIBS="-lpsapi $LIBS" |
| 25957 | cat >conftest.$ac_ext <<_ACEOF |
| 25958 | /* confdefs.h. */ |
| 25959 | _ACEOF |
| 25960 | cat confdefs.h >>conftest.$ac_ext |
| 25961 | cat >>conftest.$ac_ext <<_ACEOF |
| 25962 | /* end confdefs.h. */ |
| 25963 | |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25964 | |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25965 | int |
| 25966 | main () |
| 25967 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25968 | return main (); |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25969 | ; |
| 25970 | return 0; |
| 25971 | } |
| 25972 | _ACEOF |
| 25973 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25974 | if { (ac_try="$ac_link" |
| 25975 | case "(($ac_try" in |
| 25976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25977 | *) ac_try_echo=$ac_try;; |
| 25978 | esac |
| 25979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 25980 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25981 | ac_status=$? |
| 25982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 25983 | rm -f conftest.er1 |
| 25984 | cat conftest.err >&5 |
| 25985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25986 | (exit $ac_status); } && { |
| 25987 | test -z "$ac_c_werror_flag" || |
| 25988 | test ! -s conftest.err |
| 25989 | } && test -s conftest$ac_exeext && |
| 25990 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 25991 | ac_cv_lib_psapi_main=yes |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25992 | else |
| 25993 | echo "$as_me: failed program was:" >&5 |
| 25994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 25995 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25996 | ac_cv_lib_psapi_main=no |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 25997 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 25998 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 25999 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26000 | conftest$ac_exeext conftest.$ac_ext |
| 26001 | LIBS=$ac_check_lib_save_LIBS |
| 26002 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26003 | { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 |
| 26004 | echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } |
Reid Spencer | 48fdf91 | 2006-06-01 19:03:21 +0000 | [diff] [blame] | 26005 | if test $ac_cv_lib_psapi_main = yes; then |
Reid Spencer | 484fc8e | 2006-06-01 16:55:59 +0000 | [diff] [blame] | 26006 | cat >>confdefs.h <<_ACEOF |
| 26007 | #define HAVE_LIBPSAPI 1 |
| 26008 | _ACEOF |
| 26009 | |
| 26010 | LIBS="-lpsapi $LIBS" |
| 26011 | |
| 26012 | fi |
| 26013 | |
| 26014 | fi |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26015 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26016 | { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5 |
| 26017 | echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; } |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26018 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 26019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26020 | else |
| 26021 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26022 | cat >conftest.$ac_ext <<_ACEOF |
| 26023 | /* confdefs.h. */ |
| 26024 | _ACEOF |
| 26025 | cat confdefs.h >>conftest.$ac_ext |
| 26026 | cat >>conftest.$ac_ext <<_ACEOF |
| 26027 | /* end confdefs.h. */ |
| 26028 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26029 | /* Override any GCC internal prototype to avoid an error. |
| 26030 | Use char because int might match the return type of a GCC |
| 26031 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26032 | #ifdef __cplusplus |
| 26033 | extern "C" |
| 26034 | #endif |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26035 | char lt_dlopen (); |
| 26036 | int |
| 26037 | main () |
| 26038 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26039 | return lt_dlopen (); |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26040 | ; |
| 26041 | return 0; |
| 26042 | } |
| 26043 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26044 | for ac_lib in '' ltdl; do |
| 26045 | if test -z "$ac_lib"; then |
| 26046 | ac_res="none required" |
| 26047 | else |
| 26048 | ac_res=-l$ac_lib |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26049 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26050 | fi |
| 26051 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26052 | if { (ac_try="$ac_link" |
| 26053 | case "(($ac_try" in |
| 26054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26055 | *) ac_try_echo=$ac_try;; |
| 26056 | esac |
| 26057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26058 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26059 | ac_status=$? |
| 26060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26061 | rm -f conftest.er1 |
| 26062 | cat conftest.err >&5 |
| 26063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26064 | (exit $ac_status); } && { |
| 26065 | test -z "$ac_c_werror_flag" || |
| 26066 | test ! -s conftest.err |
| 26067 | } && test -s conftest$ac_exeext && |
| 26068 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26069 | ac_cv_search_lt_dlopen=$ac_res |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26070 | else |
| 26071 | echo "$as_me: failed program was:" >&5 |
| 26072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26073 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26074 | |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26075 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26076 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26077 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26078 | conftest$ac_exeext |
| 26079 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 26080 | break |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26081 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26082 | done |
| 26083 | if test "${ac_cv_search_lt_dlopen+set}" = set; then |
| 26084 | : |
| 26085 | else |
| 26086 | ac_cv_search_lt_dlopen=no |
| 26087 | fi |
| 26088 | rm conftest.$ac_ext |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26089 | LIBS=$ac_func_search_save_LIBS |
| 26090 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26091 | { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5 |
| 26092 | echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; } |
| 26093 | ac_res=$ac_cv_search_lt_dlopen |
| 26094 | if test "$ac_res" != no; then |
| 26095 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 1779597 | 2004-11-18 09:47:37 +0000 | [diff] [blame] | 26096 | |
| 26097 | cat >>confdefs.h <<\_ACEOF |
| 26098 | #define HAVE_LT_DLOPEN 1 |
| 26099 | _ACEOF |
| 26100 | |
| 26101 | else |
| 26102 | { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might |
| 26103 | not be available" >&5 |
| 26104 | echo "$as_me: WARNING: lt_dlopen() not found - plugin support might |
| 26105 | not be available" >&2;} |
| 26106 | fi |
| 26107 | |
| 26108 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26109 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
| 26110 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26111 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 26112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26113 | else |
| 26114 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26115 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26116 | /* confdefs.h. */ |
| 26117 | _ACEOF |
| 26118 | cat confdefs.h >>conftest.$ac_ext |
| 26119 | cat >>conftest.$ac_ext <<_ACEOF |
| 26120 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26121 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26122 | /* Override any GCC internal prototype to avoid an error. |
| 26123 | Use char because int might match the return type of a GCC |
| 26124 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26125 | #ifdef __cplusplus |
| 26126 | extern "C" |
| 26127 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26128 | char dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26129 | int |
| 26130 | main () |
| 26131 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26132 | return dlopen (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26133 | ; |
| 26134 | return 0; |
| 26135 | } |
| 26136 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26137 | for ac_lib in '' dl; do |
| 26138 | if test -z "$ac_lib"; then |
| 26139 | ac_res="none required" |
| 26140 | else |
| 26141 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26142 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26143 | fi |
| 26144 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26145 | if { (ac_try="$ac_link" |
| 26146 | case "(($ac_try" in |
| 26147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26148 | *) ac_try_echo=$ac_try;; |
| 26149 | esac |
| 26150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26151 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26152 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26154 | rm -f conftest.er1 |
| 26155 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26157 | (exit $ac_status); } && { |
| 26158 | test -z "$ac_c_werror_flag" || |
| 26159 | test ! -s conftest.err |
| 26160 | } && test -s conftest$ac_exeext && |
| 26161 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26162 | ac_cv_search_dlopen=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26163 | else |
| 26164 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26166 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26167 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26168 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26169 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26171 | conftest$ac_exeext |
| 26172 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 26173 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26174 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26175 | done |
| 26176 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 26177 | : |
| 26178 | else |
| 26179 | ac_cv_search_dlopen=no |
| 26180 | fi |
| 26181 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26182 | LIBS=$ac_func_search_save_LIBS |
| 26183 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26184 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
| 26185 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
| 26186 | ac_res=$ac_cv_search_dlopen |
| 26187 | if test "$ac_res" != no; then |
| 26188 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 26189 | |
| 26190 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26191 | #define HAVE_DLOPEN 1 |
| 26192 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26193 | |
| 26194 | else |
Brian Gaeke | c45be04 | 2003-10-07 06:01:34 +0000 | [diff] [blame] | 26195 | { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 |
| 26196 | echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26197 | fi |
| 26198 | |
| 26199 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26200 | { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 |
| 26201 | echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26202 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 26203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26204 | else |
| 26205 | ac_func_search_save_LIBS=$LIBS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26206 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26207 | /* confdefs.h. */ |
| 26208 | _ACEOF |
| 26209 | cat confdefs.h >>conftest.$ac_ext |
| 26210 | cat >>conftest.$ac_ext <<_ACEOF |
| 26211 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26213 | /* Override any GCC internal prototype to avoid an error. |
| 26214 | Use char because int might match the return type of a GCC |
| 26215 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26216 | #ifdef __cplusplus |
| 26217 | extern "C" |
| 26218 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26219 | char mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26220 | int |
| 26221 | main () |
| 26222 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26223 | return mallinfo (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26224 | ; |
| 26225 | return 0; |
| 26226 | } |
| 26227 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26228 | for ac_lib in '' malloc; do |
| 26229 | if test -z "$ac_lib"; then |
| 26230 | ac_res="none required" |
| 26231 | else |
| 26232 | ac_res=-l$ac_lib |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26233 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26234 | fi |
| 26235 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26236 | if { (ac_try="$ac_link" |
| 26237 | case "(($ac_try" in |
| 26238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26239 | *) ac_try_echo=$ac_try;; |
| 26240 | esac |
| 26241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26242 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26243 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26245 | rm -f conftest.er1 |
| 26246 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26248 | (exit $ac_status); } && { |
| 26249 | test -z "$ac_c_werror_flag" || |
| 26250 | test ! -s conftest.err |
| 26251 | } && test -s conftest$ac_exeext && |
| 26252 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26253 | ac_cv_search_mallinfo=$ac_res |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26254 | else |
| 26255 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26257 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26258 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26259 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26260 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26261 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26262 | conftest$ac_exeext |
| 26263 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 26264 | break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26265 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26266 | done |
| 26267 | if test "${ac_cv_search_mallinfo+set}" = set; then |
| 26268 | : |
| 26269 | else |
| 26270 | ac_cv_search_mallinfo=no |
| 26271 | fi |
| 26272 | rm conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26273 | LIBS=$ac_func_search_save_LIBS |
| 26274 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26275 | { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 |
| 26276 | echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } |
| 26277 | ac_res=$ac_cv_search_mallinfo |
| 26278 | if test "$ac_res" != no; then |
| 26279 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 26280 | |
| 26281 | cat >>confdefs.h <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26282 | #define HAVE_MALLINFO 1 |
| 26283 | _ACEOF |
| 26284 | |
| 26285 | fi |
| 26286 | |
| 26287 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26288 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26289 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26290 | { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
| 26291 | 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] | 26292 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
| 26293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26294 | else |
| 26295 | ac_check_lib_save_LIBS=$LIBS |
| 26296 | LIBS="-lpthread $LIBS" |
| 26297 | cat >conftest.$ac_ext <<_ACEOF |
| 26298 | /* confdefs.h. */ |
| 26299 | _ACEOF |
| 26300 | cat confdefs.h >>conftest.$ac_ext |
| 26301 | cat >>conftest.$ac_ext <<_ACEOF |
| 26302 | /* end confdefs.h. */ |
| 26303 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26304 | /* Override any GCC internal prototype to avoid an error. |
| 26305 | Use char because int might match the return type of a GCC |
| 26306 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26307 | #ifdef __cplusplus |
| 26308 | extern "C" |
| 26309 | #endif |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26310 | char pthread_mutex_init (); |
| 26311 | int |
| 26312 | main () |
| 26313 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26314 | return pthread_mutex_init (); |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26315 | ; |
| 26316 | return 0; |
| 26317 | } |
| 26318 | _ACEOF |
| 26319 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26320 | if { (ac_try="$ac_link" |
| 26321 | case "(($ac_try" in |
| 26322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26323 | *) ac_try_echo=$ac_try;; |
| 26324 | esac |
| 26325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26326 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26327 | ac_status=$? |
| 26328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26329 | rm -f conftest.er1 |
| 26330 | cat conftest.err >&5 |
| 26331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26332 | (exit $ac_status); } && { |
| 26333 | test -z "$ac_c_werror_flag" || |
| 26334 | test ! -s conftest.err |
| 26335 | } && test -s conftest$ac_exeext && |
| 26336 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26337 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 26338 | else |
| 26339 | echo "$as_me: failed program was:" >&5 |
| 26340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26341 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26342 | ac_cv_lib_pthread_pthread_mutex_init=no |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26343 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26344 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26345 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26346 | conftest$ac_exeext conftest.$ac_ext |
| 26347 | LIBS=$ac_check_lib_save_LIBS |
| 26348 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26349 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 26350 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
Reid Spencer | 22177fe | 2005-07-12 15:24:20 +0000 | [diff] [blame] | 26351 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
| 26352 | cat >>confdefs.h <<_ACEOF |
| 26353 | #define HAVE_LIBPTHREAD 1 |
| 26354 | _ACEOF |
| 26355 | |
| 26356 | LIBS="-lpthread $LIBS" |
| 26357 | |
| 26358 | fi |
| 26359 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26360 | { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 |
| 26361 | 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] | 26362 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 26363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26364 | else |
| 26365 | ac_func_search_save_LIBS=$LIBS |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26366 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26367 | /* confdefs.h. */ |
| 26368 | _ACEOF |
| 26369 | cat confdefs.h >>conftest.$ac_ext |
| 26370 | cat >>conftest.$ac_ext <<_ACEOF |
| 26371 | /* end confdefs.h. */ |
| 26372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26373 | /* Override any GCC internal prototype to avoid an error. |
| 26374 | Use char because int might match the return type of a GCC |
| 26375 | builtin and then its argument prototype would still apply. */ |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26376 | #ifdef __cplusplus |
| 26377 | extern "C" |
| 26378 | #endif |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26379 | char pthread_mutex_lock (); |
| 26380 | int |
| 26381 | main () |
| 26382 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26383 | return pthread_mutex_lock (); |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26384 | ; |
| 26385 | return 0; |
| 26386 | } |
| 26387 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26388 | for ac_lib in '' pthread; do |
| 26389 | if test -z "$ac_lib"; then |
| 26390 | ac_res="none required" |
| 26391 | else |
| 26392 | ac_res=-l$ac_lib |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26393 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26394 | fi |
| 26395 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26396 | if { (ac_try="$ac_link" |
| 26397 | case "(($ac_try" in |
| 26398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26399 | *) ac_try_echo=$ac_try;; |
| 26400 | esac |
| 26401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26402 | (eval "$ac_link") 2>conftest.er1 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26403 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26405 | rm -f conftest.er1 |
| 26406 | cat conftest.err >&5 |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26408 | (exit $ac_status); } && { |
| 26409 | test -z "$ac_c_werror_flag" || |
| 26410 | test ! -s conftest.err |
| 26411 | } && test -s conftest$ac_exeext && |
| 26412 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26413 | ac_cv_search_pthread_mutex_lock=$ac_res |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26414 | else |
| 26415 | echo "$as_me: failed program was:" >&5 |
| 26416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26417 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26418 | |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26419 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26420 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26422 | conftest$ac_exeext |
| 26423 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 26424 | break |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26425 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26426 | done |
| 26427 | if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then |
| 26428 | : |
| 26429 | else |
| 26430 | ac_cv_search_pthread_mutex_lock=no |
| 26431 | fi |
| 26432 | rm conftest.$ac_ext |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26433 | LIBS=$ac_func_search_save_LIBS |
| 26434 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26435 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 |
| 26436 | echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } |
| 26437 | ac_res=$ac_cv_search_pthread_mutex_lock |
| 26438 | if test "$ac_res" != no; then |
| 26439 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26440 | |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 26441 | cat >>confdefs.h <<\_ACEOF |
| 26442 | #define HAVE_PTHREAD_MUTEX_LOCK 1 |
| 26443 | _ACEOF |
| 26444 | |
| 26445 | fi |
Brian Gaeke | 5f268f7 | 2003-12-05 19:29:01 +0000 | [diff] [blame] | 26446 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 26447 | fi |
Brian Gaeke | c9a410c | 2004-02-23 21:30:37 +0000 | [diff] [blame] | 26448 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 26449 | |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 26450 | # Check whether --with-udis86 was given. |
| 26451 | if test "${with_udis86+set}" = set; then |
| 26452 | withval=$with_udis86; |
| 26453 | USE_UDIS86=1 |
| 26454 | |
| 26455 | case "$withval" in |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 26456 | /usr/lib|yes) ;; |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 26457 | *) LDFLAGS="$LDFLAGS -L${withval}" ;; |
| 26458 | esac |
| 26459 | |
| 26460 | { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 |
| 26461 | echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } |
| 26462 | if test "${ac_cv_lib_udis86_ud_init+set}" = set; then |
| 26463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26464 | else |
| 26465 | ac_check_lib_save_LIBS=$LIBS |
| 26466 | LIBS="-ludis86 $LIBS" |
| 26467 | cat >conftest.$ac_ext <<_ACEOF |
| 26468 | /* confdefs.h. */ |
| 26469 | _ACEOF |
| 26470 | cat confdefs.h >>conftest.$ac_ext |
| 26471 | cat >>conftest.$ac_ext <<_ACEOF |
| 26472 | /* end confdefs.h. */ |
| 26473 | |
| 26474 | /* Override any GCC internal prototype to avoid an error. |
| 26475 | Use char because int might match the return type of a GCC |
| 26476 | builtin and then its argument prototype would still apply. */ |
| 26477 | #ifdef __cplusplus |
| 26478 | extern "C" |
| 26479 | #endif |
| 26480 | char ud_init (); |
| 26481 | int |
| 26482 | main () |
| 26483 | { |
| 26484 | return ud_init (); |
| 26485 | ; |
| 26486 | return 0; |
| 26487 | } |
| 26488 | _ACEOF |
| 26489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26490 | if { (ac_try="$ac_link" |
| 26491 | case "(($ac_try" in |
| 26492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26493 | *) ac_try_echo=$ac_try;; |
| 26494 | esac |
| 26495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26496 | (eval "$ac_link") 2>conftest.er1 |
| 26497 | ac_status=$? |
| 26498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26499 | rm -f conftest.er1 |
| 26500 | cat conftest.err >&5 |
| 26501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26502 | (exit $ac_status); } && { |
| 26503 | test -z "$ac_c_werror_flag" || |
| 26504 | test ! -s conftest.err |
| 26505 | } && test -s conftest$ac_exeext && |
| 26506 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 26507 | ac_cv_lib_udis86_ud_init=yes |
| 26508 | else |
| 26509 | echo "$as_me: failed program was:" >&5 |
| 26510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26511 | |
| 26512 | ac_cv_lib_udis86_ud_init=no |
| 26513 | fi |
| 26514 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26515 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 26516 | conftest$ac_exeext conftest.$ac_ext |
| 26517 | LIBS=$ac_check_lib_save_LIBS |
| 26518 | fi |
| 26519 | { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 |
| 26520 | echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } |
| 26521 | if test $ac_cv_lib_udis86_ud_init = yes; then |
| 26522 | cat >>confdefs.h <<_ACEOF |
| 26523 | #define HAVE_LIBUDIS86 1 |
| 26524 | _ACEOF |
| 26525 | |
| 26526 | LIBS="-ludis86 $LIBS" |
| 26527 | |
| 26528 | else |
| 26529 | |
| 26530 | echo "Error! You need to have libudis86 around." |
| 26531 | exit -1 |
| 26532 | |
| 26533 | fi |
| 26534 | |
| 26535 | |
| 26536 | else |
| 26537 | USE_UDIS86=0 |
| 26538 | |
| 26539 | fi |
| 26540 | |
| 26541 | |
| 26542 | cat >>confdefs.h <<_ACEOF |
| 26543 | #define USE_UDIS86 $USE_UDIS86 |
| 26544 | _ACEOF |
| 26545 | |
| 26546 | |
| 26547 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26548 | |
| 26549 | |
| 26550 | |
| 26551 | |
| 26552 | |
| 26553 | ac_header_dirent=no |
| 26554 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 26555 | 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] | 26556 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 26557 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
| 26558 | 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] | 26559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26560 | else |
| 26561 | cat >conftest.$ac_ext <<_ACEOF |
| 26562 | /* confdefs.h. */ |
| 26563 | _ACEOF |
| 26564 | cat confdefs.h >>conftest.$ac_ext |
| 26565 | cat >>conftest.$ac_ext <<_ACEOF |
| 26566 | /* end confdefs.h. */ |
| 26567 | #include <sys/types.h> |
| 26568 | #include <$ac_hdr> |
| 26569 | |
| 26570 | int |
| 26571 | main () |
| 26572 | { |
| 26573 | if ((DIR *) 0) |
| 26574 | return 0; |
| 26575 | ; |
| 26576 | return 0; |
| 26577 | } |
| 26578 | _ACEOF |
| 26579 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26580 | if { (ac_try="$ac_compile" |
| 26581 | case "(($ac_try" in |
| 26582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26583 | *) ac_try_echo=$ac_try;; |
| 26584 | esac |
| 26585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26586 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26587 | ac_status=$? |
| 26588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26589 | rm -f conftest.er1 |
| 26590 | cat conftest.err >&5 |
| 26591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26592 | (exit $ac_status); } && { |
| 26593 | test -z "$ac_c_werror_flag" || |
| 26594 | test ! -s conftest.err |
| 26595 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26596 | eval "$as_ac_Header=yes" |
| 26597 | else |
| 26598 | echo "$as_me: failed program was:" >&5 |
| 26599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26600 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26601 | eval "$as_ac_Header=no" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26602 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26603 | |
| 26604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26605 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26606 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 26607 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 26608 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26609 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 26610 | cat >>confdefs.h <<_ACEOF |
| 26611 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 26612 | _ACEOF |
| 26613 | |
| 26614 | ac_header_dirent=$ac_hdr; break |
| 26615 | fi |
| 26616 | |
| 26617 | done |
| 26618 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 26619 | if test $ac_header_dirent = dirent.h; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26620 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 26621 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26622 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26624 | else |
| 26625 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26626 | cat >conftest.$ac_ext <<_ACEOF |
| 26627 | /* confdefs.h. */ |
| 26628 | _ACEOF |
| 26629 | cat confdefs.h >>conftest.$ac_ext |
| 26630 | cat >>conftest.$ac_ext <<_ACEOF |
| 26631 | /* end confdefs.h. */ |
| 26632 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26633 | /* Override any GCC internal prototype to avoid an error. |
| 26634 | Use char because int might match the return type of a GCC |
| 26635 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26636 | #ifdef __cplusplus |
| 26637 | extern "C" |
| 26638 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26639 | char opendir (); |
| 26640 | int |
| 26641 | main () |
| 26642 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26643 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26644 | ; |
| 26645 | return 0; |
| 26646 | } |
| 26647 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26648 | for ac_lib in '' dir; do |
| 26649 | if test -z "$ac_lib"; then |
| 26650 | ac_res="none required" |
| 26651 | else |
| 26652 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26653 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26654 | fi |
| 26655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26656 | if { (ac_try="$ac_link" |
| 26657 | case "(($ac_try" in |
| 26658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26659 | *) ac_try_echo=$ac_try;; |
| 26660 | esac |
| 26661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26662 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26663 | ac_status=$? |
| 26664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26665 | rm -f conftest.er1 |
| 26666 | cat conftest.err >&5 |
| 26667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26668 | (exit $ac_status); } && { |
| 26669 | test -z "$ac_c_werror_flag" || |
| 26670 | test ! -s conftest.err |
| 26671 | } && test -s conftest$ac_exeext && |
| 26672 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26673 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26674 | else |
| 26675 | echo "$as_me: failed program was:" >&5 |
| 26676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26677 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26678 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26679 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26680 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26682 | conftest$ac_exeext |
| 26683 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26684 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26685 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26686 | done |
| 26687 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26688 | : |
| 26689 | else |
| 26690 | ac_cv_search_opendir=no |
| 26691 | fi |
| 26692 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26693 | LIBS=$ac_func_search_save_LIBS |
| 26694 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26695 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 26696 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 26697 | ac_res=$ac_cv_search_opendir |
| 26698 | if test "$ac_res" != no; then |
| 26699 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26700 | |
| 26701 | fi |
| 26702 | |
| 26703 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26704 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 26705 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26706 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26708 | else |
| 26709 | ac_func_search_save_LIBS=$LIBS |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26710 | cat >conftest.$ac_ext <<_ACEOF |
| 26711 | /* confdefs.h. */ |
| 26712 | _ACEOF |
| 26713 | cat confdefs.h >>conftest.$ac_ext |
| 26714 | cat >>conftest.$ac_ext <<_ACEOF |
| 26715 | /* end confdefs.h. */ |
| 26716 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26717 | /* Override any GCC internal prototype to avoid an error. |
| 26718 | Use char because int might match the return type of a GCC |
| 26719 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26720 | #ifdef __cplusplus |
| 26721 | extern "C" |
| 26722 | #endif |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26723 | char opendir (); |
| 26724 | int |
| 26725 | main () |
| 26726 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26727 | return opendir (); |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26728 | ; |
| 26729 | return 0; |
| 26730 | } |
| 26731 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26732 | for ac_lib in '' x; do |
| 26733 | if test -z "$ac_lib"; then |
| 26734 | ac_res="none required" |
| 26735 | else |
| 26736 | ac_res=-l$ac_lib |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26737 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26738 | fi |
| 26739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 26740 | if { (ac_try="$ac_link" |
| 26741 | case "(($ac_try" in |
| 26742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26743 | *) ac_try_echo=$ac_try;; |
| 26744 | esac |
| 26745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26746 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26747 | ac_status=$? |
| 26748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26749 | rm -f conftest.er1 |
| 26750 | cat conftest.err >&5 |
| 26751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26752 | (exit $ac_status); } && { |
| 26753 | test -z "$ac_c_werror_flag" || |
| 26754 | test ! -s conftest.err |
| 26755 | } && test -s conftest$ac_exeext && |
| 26756 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26757 | ac_cv_search_opendir=$ac_res |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26758 | else |
| 26759 | echo "$as_me: failed program was:" >&5 |
| 26760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26761 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26762 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26763 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26764 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26765 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26766 | conftest$ac_exeext |
| 26767 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26768 | break |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26770 | done |
| 26771 | if test "${ac_cv_search_opendir+set}" = set; then |
| 26772 | : |
| 26773 | else |
| 26774 | ac_cv_search_opendir=no |
| 26775 | fi |
| 26776 | rm conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26777 | LIBS=$ac_func_search_save_LIBS |
| 26778 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26779 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 26780 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
| 26781 | ac_res=$ac_cv_search_opendir |
| 26782 | if test "$ac_res" != no; then |
| 26783 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26784 | |
| 26785 | fi |
| 26786 | |
| 26787 | fi |
| 26788 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26789 | { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 |
| 26790 | 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] | 26791 | if test "${ac_cv_header_mmap_anon+set}" = set; then |
| 26792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26793 | else |
| 26794 | ac_ext=c |
| 26795 | ac_cpp='$CPP $CPPFLAGS' |
| 26796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26799 | |
| 26800 | cat >conftest.$ac_ext <<_ACEOF |
| 26801 | /* confdefs.h. */ |
| 26802 | _ACEOF |
| 26803 | cat confdefs.h >>conftest.$ac_ext |
| 26804 | cat >>conftest.$ac_ext <<_ACEOF |
| 26805 | /* end confdefs.h. */ |
| 26806 | #include <sys/mman.h> |
| 26807 | #include <unistd.h> |
| 26808 | #include <fcntl.h> |
| 26809 | int |
| 26810 | main () |
| 26811 | { |
| 26812 | mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); |
| 26813 | ; |
| 26814 | return 0; |
| 26815 | } |
| 26816 | _ACEOF |
| 26817 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26818 | if { (ac_try="$ac_compile" |
| 26819 | case "(($ac_try" in |
| 26820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26821 | *) ac_try_echo=$ac_try;; |
| 26822 | esac |
| 26823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26824 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26825 | ac_status=$? |
| 26826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26827 | rm -f conftest.er1 |
| 26828 | cat conftest.err >&5 |
| 26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26830 | (exit $ac_status); } && { |
| 26831 | test -z "$ac_c_werror_flag" || |
| 26832 | test ! -s conftest.err |
| 26833 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26834 | ac_cv_header_mmap_anon=yes |
| 26835 | else |
| 26836 | echo "$as_me: failed program was:" >&5 |
| 26837 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26838 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26839 | ac_cv_header_mmap_anon=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26840 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26841 | |
| 26842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26843 | ac_ext=c |
| 26844 | ac_cpp='$CPP $CPPFLAGS' |
| 26845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26848 | |
| 26849 | |
| 26850 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26851 | { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 |
| 26852 | echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26853 | if test "$ac_cv_header_mmap_anon" = yes; then |
| 26854 | |
| 26855 | cat >>confdefs.h <<\_ACEOF |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 26856 | #define HAVE_MMAP_ANONYMOUS 1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26857 | _ACEOF |
| 26858 | |
| 26859 | fi |
| 26860 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26861 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 26862 | 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] | 26863 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 26864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26865 | else |
| 26866 | cat >conftest.$ac_ext <<_ACEOF |
| 26867 | /* confdefs.h. */ |
| 26868 | _ACEOF |
| 26869 | cat confdefs.h >>conftest.$ac_ext |
| 26870 | cat >>conftest.$ac_ext <<_ACEOF |
| 26871 | /* end confdefs.h. */ |
| 26872 | #include <sys/types.h> |
| 26873 | #include <sys/stat.h> |
| 26874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26875 | #if defined S_ISBLK && defined S_IFDIR |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26876 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26877 | #endif |
| 26878 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26879 | #if defined S_ISBLK && defined S_IFCHR |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26880 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26881 | #endif |
| 26882 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26883 | #if defined S_ISLNK && defined S_IFREG |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26884 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26885 | #endif |
| 26886 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26887 | #if defined S_ISSOCK && defined S_IFREG |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26888 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26889 | #endif |
| 26890 | |
| 26891 | _ACEOF |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26892 | rm -f conftest.$ac_objext |
| 26893 | if { (ac_try="$ac_compile" |
| 26894 | case "(($ac_try" in |
| 26895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26896 | *) ac_try_echo=$ac_try;; |
| 26897 | esac |
| 26898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26899 | (eval "$ac_compile") 2>conftest.er1 |
| 26900 | ac_status=$? |
| 26901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26902 | rm -f conftest.er1 |
| 26903 | cat conftest.err >&5 |
| 26904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 26905 | (exit $ac_status); } && { |
| 26906 | test -z "$ac_c_werror_flag" || |
| 26907 | test ! -s conftest.err |
| 26908 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26909 | ac_cv_header_stat_broken=no |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26910 | else |
| 26911 | echo "$as_me: failed program was:" >&5 |
| 26912 | sed 's/^/| /' conftest.$ac_ext >&5 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26913 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26914 | ac_cv_header_stat_broken=yes |
| 26915 | fi |
| 26916 | |
| 26917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26918 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26919 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 26920 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 26921 | if test $ac_cv_header_stat_broken = yes; then |
| 26922 | |
| 26923 | cat >>confdefs.h <<\_ACEOF |
| 26924 | #define STAT_MACROS_BROKEN 1 |
| 26925 | _ACEOF |
| 26926 | |
| 26927 | fi |
| 26928 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26929 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 26930 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26931 | if test "${ac_cv_header_stdc+set}" = set; then |
| 26932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 26933 | else |
| 26934 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26935 | /* confdefs.h. */ |
| 26936 | _ACEOF |
| 26937 | cat confdefs.h >>conftest.$ac_ext |
| 26938 | cat >>conftest.$ac_ext <<_ACEOF |
| 26939 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26940 | #include <stdlib.h> |
| 26941 | #include <stdarg.h> |
| 26942 | #include <string.h> |
| 26943 | #include <float.h> |
| 26944 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26945 | int |
| 26946 | main () |
| 26947 | { |
| 26948 | |
| 26949 | ; |
| 26950 | return 0; |
| 26951 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26952 | _ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26953 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26954 | if { (ac_try="$ac_compile" |
| 26955 | case "(($ac_try" in |
| 26956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 26957 | *) ac_try_echo=$ac_try;; |
| 26958 | esac |
| 26959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 26960 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26961 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 26962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 26963 | rm -f conftest.er1 |
| 26964 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 26966 | (exit $ac_status); } && { |
| 26967 | test -z "$ac_c_werror_flag" || |
| 26968 | test ! -s conftest.err |
| 26969 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26970 | ac_cv_header_stdc=yes |
| 26971 | else |
| 26972 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 26974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26975 | ac_cv_header_stdc=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 26977 | |
| 26978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26979 | |
| 26980 | if test $ac_cv_header_stdc = yes; then |
| 26981 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 26982 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26983 | /* confdefs.h. */ |
| 26984 | _ACEOF |
| 26985 | cat confdefs.h >>conftest.$ac_ext |
| 26986 | cat >>conftest.$ac_ext <<_ACEOF |
| 26987 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26988 | #include <string.h> |
| 26989 | |
| 26990 | _ACEOF |
| 26991 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 26992 | $EGREP "memchr" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 26993 | : |
| 26994 | else |
| 26995 | ac_cv_header_stdc=no |
| 26996 | fi |
| 26997 | rm -f conftest* |
| 26998 | |
| 26999 | fi |
| 27000 | |
| 27001 | if test $ac_cv_header_stdc = yes; then |
| 27002 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 27003 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27004 | /* confdefs.h. */ |
| 27005 | _ACEOF |
| 27006 | cat confdefs.h >>conftest.$ac_ext |
| 27007 | cat >>conftest.$ac_ext <<_ACEOF |
| 27008 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27009 | #include <stdlib.h> |
| 27010 | |
| 27011 | _ACEOF |
| 27012 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27013 | $EGREP "free" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27014 | : |
| 27015 | else |
| 27016 | ac_cv_header_stdc=no |
| 27017 | fi |
| 27018 | rm -f conftest* |
| 27019 | |
| 27020 | fi |
| 27021 | |
| 27022 | if test $ac_cv_header_stdc = yes; then |
| 27023 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 27024 | if test "$cross_compiling" = yes; then |
| 27025 | : |
| 27026 | else |
| 27027 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27028 | /* confdefs.h. */ |
| 27029 | _ACEOF |
| 27030 | cat confdefs.h >>conftest.$ac_ext |
| 27031 | cat >>conftest.$ac_ext <<_ACEOF |
| 27032 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27033 | #include <ctype.h> |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27034 | #include <stdlib.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27035 | #if ((' ' & 0x0FF) == 0x020) |
| 27036 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 27037 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 27038 | #else |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27039 | # define ISLOWER(c) \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27040 | (('a' <= (c) && (c) <= 'i') \ |
| 27041 | || ('j' <= (c) && (c) <= 'r') \ |
| 27042 | || ('s' <= (c) && (c) <= 'z')) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27043 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 27044 | #endif |
| 27045 | |
| 27046 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 27047 | int |
| 27048 | main () |
| 27049 | { |
| 27050 | int i; |
| 27051 | for (i = 0; i < 256; i++) |
| 27052 | if (XOR (islower (i), ISLOWER (i)) |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27053 | || toupper (i) != TOUPPER (i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27054 | return 2; |
| 27055 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27056 | } |
| 27057 | _ACEOF |
| 27058 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27059 | if { (ac_try="$ac_link" |
| 27060 | case "(($ac_try" in |
| 27061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27062 | *) ac_try_echo=$ac_try;; |
| 27063 | esac |
| 27064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27065 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27066 | ac_status=$? |
| 27067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27069 | { (case "(($ac_try" in |
| 27070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27071 | *) ac_try_echo=$ac_try;; |
| 27072 | esac |
| 27073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27074 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27075 | ac_status=$? |
| 27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 27077 | (exit $ac_status); }; }; then |
| 27078 | : |
| 27079 | else |
| 27080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 27081 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27083 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27084 | ( exit $ac_status ) |
| 27085 | ac_cv_header_stdc=no |
| 27086 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27087 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 27088 | fi |
| 27089 | |
| 27090 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27091 | fi |
| 27092 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27093 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 27094 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27095 | if test $ac_cv_header_stdc = yes; then |
| 27096 | |
| 27097 | cat >>confdefs.h <<\_ACEOF |
| 27098 | #define STDC_HEADERS 1 |
| 27099 | _ACEOF |
| 27100 | |
| 27101 | fi |
| 27102 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27103 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 27104 | 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] | 27105 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 27106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27107 | else |
| 27108 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27109 | /* confdefs.h. */ |
| 27110 | _ACEOF |
| 27111 | cat confdefs.h >>conftest.$ac_ext |
| 27112 | cat >>conftest.$ac_ext <<_ACEOF |
| 27113 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27114 | #include <sys/types.h> |
| 27115 | #include <sys/wait.h> |
| 27116 | #ifndef WEXITSTATUS |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27117 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27118 | #endif |
| 27119 | #ifndef WIFEXITED |
| 27120 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 27121 | #endif |
| 27122 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27123 | int |
| 27124 | main () |
| 27125 | { |
| 27126 | int s; |
| 27127 | wait (&s); |
| 27128 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 27129 | ; |
| 27130 | return 0; |
| 27131 | } |
| 27132 | _ACEOF |
| 27133 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27134 | if { (ac_try="$ac_compile" |
| 27135 | case "(($ac_try" in |
| 27136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27137 | *) ac_try_echo=$ac_try;; |
| 27138 | esac |
| 27139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27140 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27141 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27143 | rm -f conftest.er1 |
| 27144 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27146 | (exit $ac_status); } && { |
| 27147 | test -z "$ac_c_werror_flag" || |
| 27148 | test ! -s conftest.err |
| 27149 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27150 | ac_cv_header_sys_wait_h=yes |
| 27151 | else |
| 27152 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 27153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27154 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27155 | ac_cv_header_sys_wait_h=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27156 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27157 | |
| 27158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27159 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27160 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 27161 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 27162 | if test $ac_cv_header_sys_wait_h = yes; then |
| 27163 | |
| 27164 | cat >>confdefs.h <<\_ACEOF |
| 27165 | #define HAVE_SYS_WAIT_H 1 |
| 27166 | _ACEOF |
| 27167 | |
| 27168 | fi |
| 27169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27170 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 27171 | 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] | 27172 | if test "${ac_cv_header_time+set}" = set; then |
| 27173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27174 | else |
| 27175 | cat >conftest.$ac_ext <<_ACEOF |
| 27176 | /* confdefs.h. */ |
| 27177 | _ACEOF |
| 27178 | cat confdefs.h >>conftest.$ac_ext |
| 27179 | cat >>conftest.$ac_ext <<_ACEOF |
| 27180 | /* end confdefs.h. */ |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27181 | #include <sys/types.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27182 | #include <sys/time.h> |
| 27183 | #include <time.h> |
| 27184 | |
| 27185 | int |
| 27186 | main () |
| 27187 | { |
| 27188 | if ((struct tm *) 0) |
| 27189 | return 0; |
| 27190 | ; |
| 27191 | return 0; |
| 27192 | } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27193 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27194 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27195 | if { (ac_try="$ac_compile" |
| 27196 | case "(($ac_try" in |
| 27197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27198 | *) ac_try_echo=$ac_try;; |
| 27199 | esac |
| 27200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27201 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27202 | ac_status=$? |
| 27203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27204 | rm -f conftest.er1 |
| 27205 | cat conftest.err >&5 |
| 27206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27207 | (exit $ac_status); } && { |
| 27208 | test -z "$ac_c_werror_flag" || |
| 27209 | test ! -s conftest.err |
| 27210 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27211 | ac_cv_header_time=yes |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27212 | else |
| 27213 | echo "$as_me: failed program was:" >&5 |
| 27214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27216 | ac_cv_header_time=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27217 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27218 | |
| 27219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27220 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27221 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 27222 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27223 | if test $ac_cv_header_time = yes; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27224 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27225 | cat >>confdefs.h <<\_ACEOF |
| 27226 | #define TIME_WITH_SYS_TIME 1 |
| 27227 | _ACEOF |
| 27228 | |
| 27229 | fi |
| 27230 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27231 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27232 | |
| 27233 | |
| 27234 | |
| 27235 | |
| 27236 | |
| 27237 | |
| 27238 | for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h |
| 27239 | do |
| 27240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27241 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27242 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27244 | 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] | 27245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27246 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27247 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27248 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27249 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27250 | else |
| 27251 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27252 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27253 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27254 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27255 | /* confdefs.h. */ |
| 27256 | _ACEOF |
| 27257 | cat confdefs.h >>conftest.$ac_ext |
| 27258 | cat >>conftest.$ac_ext <<_ACEOF |
| 27259 | /* end confdefs.h. */ |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27260 | $ac_includes_default |
| 27261 | #include <$ac_header> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27262 | _ACEOF |
| 27263 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27264 | if { (ac_try="$ac_compile" |
| 27265 | case "(($ac_try" in |
| 27266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27267 | *) ac_try_echo=$ac_try;; |
| 27268 | esac |
| 27269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27270 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27271 | ac_status=$? |
| 27272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27273 | rm -f conftest.er1 |
| 27274 | cat conftest.err >&5 |
| 27275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27276 | (exit $ac_status); } && { |
| 27277 | test -z "$ac_c_werror_flag" || |
| 27278 | test ! -s conftest.err |
| 27279 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27280 | ac_header_compiler=yes |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27281 | else |
| 27282 | echo "$as_me: failed program was:" >&5 |
| 27283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27284 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27285 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27286 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27287 | |
| 27288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27289 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27290 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27291 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27292 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27293 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27295 | cat >conftest.$ac_ext <<_ACEOF |
| 27296 | /* confdefs.h. */ |
| 27297 | _ACEOF |
| 27298 | cat confdefs.h >>conftest.$ac_ext |
| 27299 | cat >>conftest.$ac_ext <<_ACEOF |
| 27300 | /* end confdefs.h. */ |
| 27301 | #include <$ac_header> |
| 27302 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27304 | case "(($ac_try" in |
| 27305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27306 | *) ac_try_echo=$ac_try;; |
| 27307 | esac |
| 27308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27310 | ac_status=$? |
| 27311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27312 | rm -f conftest.er1 |
| 27313 | cat conftest.err >&5 |
| 27314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27315 | (exit $ac_status); } >/dev/null && { |
| 27316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27317 | test ! -s conftest.err |
| 27318 | }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27319 | ac_header_preproc=yes |
| 27320 | else |
| 27321 | echo "$as_me: failed program was:" >&5 |
| 27322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27323 | |
| 27324 | ac_header_preproc=no |
| 27325 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27326 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27327 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27328 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27329 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27330 | |
| 27331 | # So? What about this header? |
| 27332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27333 | yes:no: ) |
| 27334 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27335 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27336 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27337 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27338 | ac_header_preproc=yes |
| 27339 | ;; |
| 27340 | no:yes:* ) |
| 27341 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27342 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27343 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27344 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27345 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27346 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27347 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27348 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27350 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27351 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27352 | 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] | 27353 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27354 | ## ----------------------------------- ## |
| 27355 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27356 | ## ----------------------------------- ## |
| 27357 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27358 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27359 | ;; |
| 27360 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27361 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27362 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27363 | 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] | 27364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27365 | else |
| 27366 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27367 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27368 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27369 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27370 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27371 | |
| 27372 | fi |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27373 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27374 | cat >>confdefs.h <<_ACEOF |
| 27375 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27376 | _ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27377 | |
| 27378 | fi |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27379 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27380 | done |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27381 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27382 | |
| 27383 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27384 | |
| 27385 | |
| 27386 | |
| 27387 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 27388 | 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] | 27389 | do |
| 27390 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27391 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27392 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27393 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27394 | 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] | 27395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27396 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27397 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27398 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27399 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27400 | else |
| 27401 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27402 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27403 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27404 | cat >conftest.$ac_ext <<_ACEOF |
| 27405 | /* confdefs.h. */ |
| 27406 | _ACEOF |
| 27407 | cat confdefs.h >>conftest.$ac_ext |
| 27408 | cat >>conftest.$ac_ext <<_ACEOF |
| 27409 | /* end confdefs.h. */ |
| 27410 | $ac_includes_default |
| 27411 | #include <$ac_header> |
| 27412 | _ACEOF |
| 27413 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27414 | if { (ac_try="$ac_compile" |
| 27415 | case "(($ac_try" in |
| 27416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27417 | *) ac_try_echo=$ac_try;; |
| 27418 | esac |
| 27419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27420 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27421 | ac_status=$? |
| 27422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27423 | rm -f conftest.er1 |
| 27424 | cat conftest.err >&5 |
| 27425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27426 | (exit $ac_status); } && { |
| 27427 | test -z "$ac_c_werror_flag" || |
| 27428 | test ! -s conftest.err |
| 27429 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27430 | ac_header_compiler=yes |
| 27431 | else |
| 27432 | echo "$as_me: failed program was:" >&5 |
| 27433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27435 | ac_header_compiler=no |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27437 | |
| 27438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27439 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27440 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27441 | |
| 27442 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27443 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27444 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27445 | cat >conftest.$ac_ext <<_ACEOF |
| 27446 | /* confdefs.h. */ |
| 27447 | _ACEOF |
| 27448 | cat confdefs.h >>conftest.$ac_ext |
| 27449 | cat >>conftest.$ac_ext <<_ACEOF |
| 27450 | /* end confdefs.h. */ |
| 27451 | #include <$ac_header> |
| 27452 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27453 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27454 | case "(($ac_try" in |
| 27455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27456 | *) ac_try_echo=$ac_try;; |
| 27457 | esac |
| 27458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27459 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27460 | ac_status=$? |
| 27461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27462 | rm -f conftest.er1 |
| 27463 | cat conftest.err >&5 |
| 27464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27465 | (exit $ac_status); } >/dev/null && { |
| 27466 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27467 | test ! -s conftest.err |
| 27468 | }; then |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27469 | ac_header_preproc=yes |
| 27470 | else |
| 27471 | echo "$as_me: failed program was:" >&5 |
| 27472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27473 | |
| 27474 | ac_header_preproc=no |
| 27475 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27476 | |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27477 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27478 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27479 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27480 | |
| 27481 | # So? What about this header? |
| 27482 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27483 | yes:no: ) |
| 27484 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27485 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27486 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27487 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27488 | ac_header_preproc=yes |
| 27489 | ;; |
| 27490 | no:yes:* ) |
| 27491 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27492 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27493 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27494 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27495 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27496 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27497 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27498 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27499 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27500 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27501 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27502 | 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] | 27503 | ( cat <<\_ASBOX |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27504 | ## ----------------------------------- ## |
| 27505 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27506 | ## ----------------------------------- ## |
| 27507 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27508 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27509 | ;; |
| 27510 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27513 | 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] | 27514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27515 | else |
| 27516 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27517 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27518 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27519 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27520 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27521 | |
| 27522 | fi |
| 27523 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27524 | cat >>confdefs.h <<_ACEOF |
| 27525 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27526 | _ACEOF |
| 27527 | |
| 27528 | fi |
| 27529 | |
| 27530 | done |
| 27531 | |
| 27532 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27533 | for ac_header in windows.h |
| 27534 | do |
| 27535 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27536 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27537 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27539 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27541 | fi |
| 27542 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27543 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27544 | echo "${ECHO_T}$ac_res" >&6; } |
| 27545 | else |
| 27546 | # Is the header compilable? |
| 27547 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27548 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
| 27549 | cat >conftest.$ac_ext <<_ACEOF |
| 27550 | /* confdefs.h. */ |
| 27551 | _ACEOF |
| 27552 | cat confdefs.h >>conftest.$ac_ext |
| 27553 | cat >>conftest.$ac_ext <<_ACEOF |
| 27554 | /* end confdefs.h. */ |
| 27555 | $ac_includes_default |
| 27556 | #include <$ac_header> |
| 27557 | _ACEOF |
| 27558 | rm -f conftest.$ac_objext |
| 27559 | if { (ac_try="$ac_compile" |
| 27560 | case "(($ac_try" in |
| 27561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27562 | *) ac_try_echo=$ac_try;; |
| 27563 | esac |
| 27564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27565 | (eval "$ac_compile") 2>conftest.er1 |
| 27566 | ac_status=$? |
| 27567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27568 | rm -f conftest.er1 |
| 27569 | cat conftest.err >&5 |
| 27570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27571 | (exit $ac_status); } && { |
| 27572 | test -z "$ac_c_werror_flag" || |
| 27573 | test ! -s conftest.err |
| 27574 | } && test -s conftest.$ac_objext; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27575 | ac_header_compiler=yes |
| 27576 | else |
| 27577 | echo "$as_me: failed program was:" >&5 |
| 27578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27579 | |
| 27580 | ac_header_compiler=no |
| 27581 | fi |
| 27582 | |
| 27583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27584 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27585 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
| 27586 | |
| 27587 | # Is the header present? |
| 27588 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27589 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
| 27590 | cat >conftest.$ac_ext <<_ACEOF |
| 27591 | /* confdefs.h. */ |
| 27592 | _ACEOF |
| 27593 | cat confdefs.h >>conftest.$ac_ext |
| 27594 | cat >>conftest.$ac_ext <<_ACEOF |
| 27595 | /* end confdefs.h. */ |
| 27596 | #include <$ac_header> |
| 27597 | _ACEOF |
| 27598 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27599 | case "(($ac_try" in |
| 27600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27601 | *) ac_try_echo=$ac_try;; |
| 27602 | esac |
| 27603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27604 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 27605 | ac_status=$? |
| 27606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27607 | rm -f conftest.er1 |
| 27608 | cat conftest.err >&5 |
| 27609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27610 | (exit $ac_status); } >/dev/null && { |
| 27611 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27612 | test ! -s conftest.err |
| 27613 | }; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27614 | ac_header_preproc=yes |
| 27615 | else |
| 27616 | echo "$as_me: failed program was:" >&5 |
| 27617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27618 | |
| 27619 | ac_header_preproc=no |
| 27620 | fi |
| 27621 | |
| 27622 | rm -f conftest.err conftest.$ac_ext |
| 27623 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27624 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
| 27625 | |
| 27626 | # So? What about this header? |
| 27627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27628 | yes:no: ) |
| 27629 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27630 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27632 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27633 | ac_header_preproc=yes |
| 27634 | ;; |
| 27635 | no:yes:* ) |
| 27636 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27637 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27638 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27639 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27640 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27641 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27642 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27643 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27644 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27645 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27646 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27647 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 27648 | ( cat <<\_ASBOX |
| 27649 | ## ----------------------------------- ## |
| 27650 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27651 | ## ----------------------------------- ## |
| 27652 | _ASBOX |
| 27653 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 27654 | ;; |
| 27655 | esac |
| 27656 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27657 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27658 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27660 | else |
| 27661 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27662 | fi |
| 27663 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27665 | echo "${ECHO_T}$ac_res" >&6; } |
| 27666 | |
| 27667 | fi |
| 27668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27669 | cat >>confdefs.h <<_ACEOF |
| 27670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27671 | _ACEOF |
| 27672 | |
| 27673 | fi |
| 27674 | |
| 27675 | done |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 27676 | |
| 27677 | |
| 27678 | |
| 27679 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27680 | |
| 27681 | for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27682 | do |
| 27683 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27684 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27685 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27686 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27687 | 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] | 27688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27689 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27690 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27691 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27692 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27693 | else |
| 27694 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27695 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27696 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27697 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27698 | /* confdefs.h. */ |
| 27699 | _ACEOF |
| 27700 | cat confdefs.h >>conftest.$ac_ext |
| 27701 | cat >>conftest.$ac_ext <<_ACEOF |
| 27702 | /* end confdefs.h. */ |
| 27703 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27704 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27705 | _ACEOF |
| 27706 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27707 | if { (ac_try="$ac_compile" |
| 27708 | case "(($ac_try" in |
| 27709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27710 | *) ac_try_echo=$ac_try;; |
| 27711 | esac |
| 27712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27713 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27714 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27716 | rm -f conftest.er1 |
| 27717 | cat conftest.err >&5 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27719 | (exit $ac_status); } && { |
| 27720 | test -z "$ac_c_werror_flag" || |
| 27721 | test ! -s conftest.err |
| 27722 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27723 | ac_header_compiler=yes |
| 27724 | else |
| 27725 | echo "$as_me: failed program was:" >&5 |
| 27726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27727 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27728 | ac_header_compiler=no |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27729 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27730 | |
| 27731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27732 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27733 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27734 | |
| 27735 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27736 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27737 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27738 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27739 | /* confdefs.h. */ |
| 27740 | _ACEOF |
| 27741 | cat confdefs.h >>conftest.$ac_ext |
| 27742 | cat >>conftest.$ac_ext <<_ACEOF |
| 27743 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27744 | #include <$ac_header> |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27745 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27747 | case "(($ac_try" in |
| 27748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27749 | *) ac_try_echo=$ac_try;; |
| 27750 | esac |
| 27751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27753 | ac_status=$? |
| 27754 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27755 | rm -f conftest.er1 |
| 27756 | cat conftest.err >&5 |
| 27757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27758 | (exit $ac_status); } >/dev/null && { |
| 27759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27760 | test ! -s conftest.err |
| 27761 | }; then |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27762 | ac_header_preproc=yes |
| 27763 | else |
| 27764 | echo "$as_me: failed program was:" >&5 |
| 27765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27766 | |
| 27767 | ac_header_preproc=no |
| 27768 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27769 | |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27770 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27771 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27772 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27773 | |
| 27774 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27776 | yes:no: ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27780 | 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] | 27781 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 27782 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27783 | no:yes:* ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27795 | 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] | 27796 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 27797 | ## ----------------------------------- ## |
| 27798 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27799 | ## ----------------------------------- ## |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27800 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27801 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27802 | ;; |
| 27803 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27804 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27806 | 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] | 27807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27808 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27809 | eval "$as_ac_Header=\$ac_header_preproc" |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27810 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27811 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27812 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27813 | echo "${ECHO_T}$ac_res" >&6; } |
Brian Gaeke | 6c3fd81 | 2004-02-23 22:07:00 +0000 | [diff] [blame] | 27814 | |
| 27815 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27817 | cat >>confdefs.h <<_ACEOF |
| 27818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27819 | _ACEOF |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27820 | |
| 27821 | fi |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27822 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 27823 | done |
| 27824 | |
John Criswell | 7ed43ad | 2004-07-19 16:12:29 +0000 | [diff] [blame] | 27825 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 27826 | |
Reid Spencer | a6d990a | 2006-09-14 06:17:21 +0000 | [diff] [blame] | 27827 | |
| 27828 | 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] | 27829 | do |
| 27830 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27831 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27832 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27833 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27834 | 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] | 27835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27836 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27837 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27838 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27839 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27840 | else |
| 27841 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27842 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27843 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27844 | cat >conftest.$ac_ext <<_ACEOF |
| 27845 | /* confdefs.h. */ |
| 27846 | _ACEOF |
| 27847 | cat confdefs.h >>conftest.$ac_ext |
| 27848 | cat >>conftest.$ac_ext <<_ACEOF |
| 27849 | /* end confdefs.h. */ |
| 27850 | $ac_includes_default |
| 27851 | #include <$ac_header> |
| 27852 | _ACEOF |
| 27853 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27854 | if { (ac_try="$ac_compile" |
| 27855 | case "(($ac_try" in |
| 27856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27857 | *) ac_try_echo=$ac_try;; |
| 27858 | esac |
| 27859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27860 | (eval "$ac_compile") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27861 | ac_status=$? |
| 27862 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27863 | rm -f conftest.er1 |
| 27864 | cat conftest.err >&5 |
| 27865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27866 | (exit $ac_status); } && { |
| 27867 | test -z "$ac_c_werror_flag" || |
| 27868 | test ! -s conftest.err |
| 27869 | } && test -s conftest.$ac_objext; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27870 | ac_header_compiler=yes |
| 27871 | else |
| 27872 | echo "$as_me: failed program was:" >&5 |
| 27873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27874 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27875 | ac_header_compiler=no |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27876 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27877 | |
| 27878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27879 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 27880 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27881 | |
| 27882 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27883 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 27884 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27885 | cat >conftest.$ac_ext <<_ACEOF |
| 27886 | /* confdefs.h. */ |
| 27887 | _ACEOF |
| 27888 | cat confdefs.h >>conftest.$ac_ext |
| 27889 | cat >>conftest.$ac_ext <<_ACEOF |
| 27890 | /* end confdefs.h. */ |
| 27891 | #include <$ac_header> |
| 27892 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27893 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 27894 | case "(($ac_try" in |
| 27895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 27896 | *) ac_try_echo=$ac_try;; |
| 27897 | esac |
| 27898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 27899 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27900 | ac_status=$? |
| 27901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 27902 | rm -f conftest.er1 |
| 27903 | cat conftest.err >&5 |
| 27904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 27905 | (exit $ac_status); } >/dev/null && { |
| 27906 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 27907 | test ! -s conftest.err |
| 27908 | }; then |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27909 | ac_header_preproc=yes |
| 27910 | else |
| 27911 | echo "$as_me: failed program was:" >&5 |
| 27912 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 27913 | |
| 27914 | ac_header_preproc=no |
| 27915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27916 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27917 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27918 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 27919 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27920 | |
| 27921 | # So? What about this header? |
| 27922 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 27923 | yes:no: ) |
| 27924 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 27925 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 27926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 27927 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 27928 | ac_header_preproc=yes |
| 27929 | ;; |
| 27930 | no:yes:* ) |
| 27931 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 27932 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 27933 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 27934 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 27935 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 27936 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 27937 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 27938 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 27939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 27940 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 27941 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 27942 | 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] | 27943 | ( cat <<\_ASBOX |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27944 | ## ----------------------------------- ## |
| 27945 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 27946 | ## ----------------------------------- ## |
| 27947 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27948 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27949 | ;; |
| 27950 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27951 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27953 | 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] | 27954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27955 | else |
| 27956 | eval "$as_ac_Header=\$ac_header_preproc" |
| 27957 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 27958 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27959 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27960 | echo "${ECHO_T}$ac_res" >&6; } |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 27961 | |
| 27962 | fi |
| 27963 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 27964 | cat >>confdefs.h <<_ACEOF |
| 27965 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27966 | _ACEOF |
| 27967 | |
| 27968 | fi |
| 27969 | |
| 27970 | done |
| 27971 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27972 | if test "$ENABLE_THREADS" -eq 1 ; then |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27973 | |
| 27974 | for ac_header in pthread.h |
| 27975 | do |
| 27976 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27977 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 27978 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 27979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 27980 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 27982 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27983 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 27984 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 27985 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27986 | else |
| 27987 | # Is the header compilable? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27988 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 27989 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27990 | cat >conftest.$ac_ext <<_ACEOF |
| 27991 | /* confdefs.h. */ |
| 27992 | _ACEOF |
| 27993 | cat confdefs.h >>conftest.$ac_ext |
| 27994 | cat >>conftest.$ac_ext <<_ACEOF |
| 27995 | /* end confdefs.h. */ |
| 27996 | $ac_includes_default |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 27997 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 27998 | _ACEOF |
| 27999 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28000 | if { (ac_try="$ac_compile" |
| 28001 | case "(($ac_try" in |
| 28002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28003 | *) ac_try_echo=$ac_try;; |
| 28004 | esac |
| 28005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28006 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28007 | ac_status=$? |
| 28008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28009 | rm -f conftest.er1 |
| 28010 | cat conftest.err >&5 |
| 28011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28012 | (exit $ac_status); } && { |
| 28013 | test -z "$ac_c_werror_flag" || |
| 28014 | test ! -s conftest.err |
| 28015 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28016 | ac_header_compiler=yes |
| 28017 | else |
| 28018 | echo "$as_me: failed program was:" >&5 |
| 28019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28021 | ac_header_compiler=no |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28023 | |
| 28024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28025 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 28026 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28027 | |
| 28028 | # Is the header present? |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28029 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 28030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28031 | cat >conftest.$ac_ext <<_ACEOF |
| 28032 | /* confdefs.h. */ |
| 28033 | _ACEOF |
| 28034 | cat confdefs.h >>conftest.$ac_ext |
| 28035 | cat >>conftest.$ac_ext <<_ACEOF |
| 28036 | /* end confdefs.h. */ |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28037 | #include <$ac_header> |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28038 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28039 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 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_cpp conftest.$ac_ext") 2>conftest.er1 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28046 | ac_status=$? |
| 28047 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28048 | rm -f conftest.er1 |
| 28049 | cat conftest.err >&5 |
| 28050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28051 | (exit $ac_status); } >/dev/null && { |
| 28052 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 28053 | test ! -s conftest.err |
| 28054 | }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28055 | ac_header_preproc=yes |
| 28056 | else |
| 28057 | echo "$as_me: failed program was:" >&5 |
| 28058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28059 | |
| 28060 | ac_header_preproc=no |
| 28061 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28062 | |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28063 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28064 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 28065 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28066 | |
| 28067 | # So? What about this header? |
| 28068 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 28069 | yes:no: ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28070 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 28071 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 28072 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 28073 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28074 | ac_header_preproc=yes |
| 28075 | ;; |
| 28076 | no:yes:* ) |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28077 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 28078 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 28079 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 28080 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 28081 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 28082 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 28083 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 28084 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 28085 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 28086 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 28087 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 28088 | 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] | 28089 | ( cat <<\_ASBOX |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28090 | ## ----------------------------------- ## |
| 28091 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 28092 | ## ----------------------------------- ## |
| 28093 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28094 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28095 | ;; |
| 28096 | esac |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28097 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 28098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 28099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28101 | else |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28102 | eval "$as_ac_Header=\$ac_header_preproc" |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28103 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28104 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 28105 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28106 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28107 | |
| 28108 | fi |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28109 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 28110 | cat >>confdefs.h <<_ACEOF |
| 28111 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28112 | _ACEOF |
| 28113 | HAVE_PTHREAD=1 |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 28114 | |
| 28115 | else |
| 28116 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28117 | |
| 28118 | fi |
| 28119 | |
Reid Spencer | be3e419 | 2007-08-17 05:45:26 +0000 | [diff] [blame] | 28120 | done |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 28121 | |
| 28122 | else |
| 28123 | HAVE_PTHREAD=0 |
Reid Spencer | 0a262ba | 2005-08-24 10:07:20 +0000 | [diff] [blame] | 28124 | |
| 28125 | fi |
Reid Spencer | 8085cff | 2005-01-16 02:58:39 +0000 | [diff] [blame] | 28126 | |
| 28127 | |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 28128 | |
| 28129 | { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 |
| 28130 | echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } |
| 28131 | if test "${ac_cv_huge_val_sanity+set}" = set; then |
| 28132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28133 | else |
| 28134 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 28135 | ac_ext=cpp |
| 28136 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28137 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28138 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28139 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 28140 | |
Reid Spencer | 6a7c0b7 | 2006-11-03 19:49:16 +0000 | [diff] [blame] | 28141 | CXXFLAGS=-pedantic |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 28142 | if test "$cross_compiling" = yes; then |
| 28143 | ac_cv_huge_val_sanity=yes |
| 28144 | else |
| 28145 | cat >conftest.$ac_ext <<_ACEOF |
| 28146 | /* confdefs.h. */ |
| 28147 | _ACEOF |
| 28148 | cat confdefs.h >>conftest.$ac_ext |
| 28149 | cat >>conftest.$ac_ext <<_ACEOF |
| 28150 | /* end confdefs.h. */ |
| 28151 | #include <math.h> |
| 28152 | int |
| 28153 | main () |
| 28154 | { |
| 28155 | double x = HUGE_VAL; return x != x; |
| 28156 | ; |
| 28157 | return 0; |
| 28158 | } |
| 28159 | _ACEOF |
| 28160 | rm -f conftest$ac_exeext |
| 28161 | if { (ac_try="$ac_link" |
| 28162 | case "(($ac_try" in |
| 28163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28164 | *) ac_try_echo=$ac_try;; |
| 28165 | esac |
| 28166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28167 | (eval "$ac_link") 2>&5 |
| 28168 | ac_status=$? |
| 28169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28170 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 28171 | { (case "(($ac_try" in |
| 28172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28173 | *) ac_try_echo=$ac_try;; |
| 28174 | esac |
| 28175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28176 | (eval "$ac_try") 2>&5 |
| 28177 | ac_status=$? |
| 28178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 28179 | (exit $ac_status); }; }; then |
| 28180 | ac_cv_huge_val_sanity=yes |
| 28181 | else |
| 28182 | echo "$as_me: program exited with status $ac_status" >&5 |
| 28183 | echo "$as_me: failed program was:" >&5 |
| 28184 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28185 | |
| 28186 | ( exit $ac_status ) |
| 28187 | ac_cv_huge_val_sanity=no |
| 28188 | fi |
| 28189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 28190 | fi |
| 28191 | |
| 28192 | |
| 28193 | ac_ext=c |
| 28194 | ac_cpp='$CPP $CPPFLAGS' |
| 28195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28198 | |
| 28199 | |
| 28200 | fi |
| 28201 | { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 |
| 28202 | echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } |
| 28203 | HUGE_VAL_SANITY=$ac_cv_huge_val_sanity |
| 28204 | |
| 28205 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28206 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 28207 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28208 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 28209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28210 | else |
| 28211 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28212 | /* confdefs.h. */ |
| 28213 | _ACEOF |
| 28214 | cat confdefs.h >>conftest.$ac_ext |
| 28215 | cat >>conftest.$ac_ext <<_ACEOF |
| 28216 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28217 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28218 | typedef pid_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28219 | int |
| 28220 | main () |
| 28221 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28222 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28223 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28224 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28225 | return 0; |
| 28226 | ; |
| 28227 | return 0; |
| 28228 | } |
| 28229 | _ACEOF |
| 28230 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28231 | if { (ac_try="$ac_compile" |
| 28232 | case "(($ac_try" in |
| 28233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28234 | *) ac_try_echo=$ac_try;; |
| 28235 | esac |
| 28236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28237 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28238 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28240 | rm -f conftest.er1 |
| 28241 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28243 | (exit $ac_status); } && { |
| 28244 | test -z "$ac_c_werror_flag" || |
| 28245 | test ! -s conftest.err |
| 28246 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28247 | ac_cv_type_pid_t=yes |
| 28248 | else |
| 28249 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28251 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28252 | ac_cv_type_pid_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28253 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28254 | |
| 28255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28256 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28257 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 28258 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28259 | if test $ac_cv_type_pid_t = yes; then |
| 28260 | : |
| 28261 | else |
| 28262 | |
| 28263 | cat >>confdefs.h <<_ACEOF |
| 28264 | #define pid_t int |
| 28265 | _ACEOF |
| 28266 | |
| 28267 | fi |
| 28268 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28269 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 28270 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28271 | if test "${ac_cv_type_size_t+set}" = set; then |
| 28272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28273 | else |
| 28274 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28275 | /* confdefs.h. */ |
| 28276 | _ACEOF |
| 28277 | cat confdefs.h >>conftest.$ac_ext |
| 28278 | cat >>conftest.$ac_ext <<_ACEOF |
| 28279 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28280 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28281 | typedef size_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28282 | int |
| 28283 | main () |
| 28284 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28285 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28286 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28287 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28288 | return 0; |
| 28289 | ; |
| 28290 | return 0; |
| 28291 | } |
| 28292 | _ACEOF |
| 28293 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28294 | if { (ac_try="$ac_compile" |
| 28295 | case "(($ac_try" in |
| 28296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28297 | *) ac_try_echo=$ac_try;; |
| 28298 | esac |
| 28299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28300 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28301 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28303 | rm -f conftest.er1 |
| 28304 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28306 | (exit $ac_status); } && { |
| 28307 | test -z "$ac_c_werror_flag" || |
| 28308 | test ! -s conftest.err |
| 28309 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28310 | ac_cv_type_size_t=yes |
| 28311 | else |
| 28312 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28315 | ac_cv_type_size_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28317 | |
| 28318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28319 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28320 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 28321 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28322 | if test $ac_cv_type_size_t = yes; then |
| 28323 | : |
| 28324 | else |
| 28325 | |
| 28326 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28327 | #define size_t unsigned int |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28328 | _ACEOF |
| 28329 | |
| 28330 | fi |
| 28331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28332 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 28333 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28334 | if test "${ac_cv_type_signal+set}" = set; then |
| 28335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28336 | else |
| 28337 | cat >conftest.$ac_ext <<_ACEOF |
| 28338 | /* confdefs.h. */ |
| 28339 | _ACEOF |
| 28340 | cat confdefs.h >>conftest.$ac_ext |
| 28341 | cat >>conftest.$ac_ext <<_ACEOF |
| 28342 | /* end confdefs.h. */ |
| 28343 | #include <sys/types.h> |
| 28344 | #include <signal.h> |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28345 | |
| 28346 | int |
| 28347 | main () |
| 28348 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28349 | return *(signal (0, 0)) (0) == 1; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28350 | ; |
| 28351 | return 0; |
| 28352 | } |
| 28353 | _ACEOF |
| 28354 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28355 | if { (ac_try="$ac_compile" |
| 28356 | case "(($ac_try" in |
| 28357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28358 | *) ac_try_echo=$ac_try;; |
| 28359 | esac |
| 28360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28361 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28362 | ac_status=$? |
| 28363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28364 | rm -f conftest.er1 |
| 28365 | cat conftest.err >&5 |
| 28366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28367 | (exit $ac_status); } && { |
| 28368 | test -z "$ac_c_werror_flag" || |
| 28369 | test ! -s conftest.err |
| 28370 | } && test -s conftest.$ac_objext; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28371 | ac_cv_type_signal=int |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28372 | else |
| 28373 | echo "$as_me: failed program was:" >&5 |
| 28374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28375 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28376 | ac_cv_type_signal=void |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28377 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28378 | |
| 28379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28380 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28381 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 28382 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28383 | |
| 28384 | cat >>confdefs.h <<_ACEOF |
| 28385 | #define RETSIGTYPE $ac_cv_type_signal |
| 28386 | _ACEOF |
| 28387 | |
| 28388 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28389 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 28390 | 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] | 28391 | if test "${ac_cv_struct_tm+set}" = set; then |
| 28392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28393 | else |
| 28394 | cat >conftest.$ac_ext <<_ACEOF |
| 28395 | /* confdefs.h. */ |
| 28396 | _ACEOF |
| 28397 | cat confdefs.h >>conftest.$ac_ext |
| 28398 | cat >>conftest.$ac_ext <<_ACEOF |
| 28399 | /* end confdefs.h. */ |
| 28400 | #include <sys/types.h> |
| 28401 | #include <time.h> |
| 28402 | |
| 28403 | int |
| 28404 | main () |
| 28405 | { |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28406 | struct tm tm; |
| 28407 | int *p = &tm.tm_sec; |
| 28408 | return !p; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28409 | ; |
| 28410 | return 0; |
| 28411 | } |
| 28412 | _ACEOF |
| 28413 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28414 | if { (ac_try="$ac_compile" |
| 28415 | case "(($ac_try" in |
| 28416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28417 | *) ac_try_echo=$ac_try;; |
| 28418 | esac |
| 28419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28420 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28421 | ac_status=$? |
| 28422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28423 | rm -f conftest.er1 |
| 28424 | cat conftest.err >&5 |
| 28425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28426 | (exit $ac_status); } && { |
| 28427 | test -z "$ac_c_werror_flag" || |
| 28428 | test ! -s conftest.err |
| 28429 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28430 | ac_cv_struct_tm=time.h |
| 28431 | else |
| 28432 | echo "$as_me: failed program was:" >&5 |
| 28433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28434 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28435 | ac_cv_struct_tm=sys/time.h |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28436 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28437 | |
| 28438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28439 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28440 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 28441 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28442 | if test $ac_cv_struct_tm = sys/time.h; then |
| 28443 | |
| 28444 | cat >>confdefs.h <<\_ACEOF |
| 28445 | #define TM_IN_SYS_TIME 1 |
| 28446 | _ACEOF |
| 28447 | |
| 28448 | fi |
| 28449 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28450 | { echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 28451 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28452 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 28453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28454 | else |
| 28455 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28456 | /* confdefs.h. */ |
| 28457 | _ACEOF |
| 28458 | cat confdefs.h >>conftest.$ac_ext |
| 28459 | cat >>conftest.$ac_ext <<_ACEOF |
| 28460 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28461 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28462 | typedef int64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28463 | int |
| 28464 | main () |
| 28465 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28466 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28467 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28468 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28469 | return 0; |
| 28470 | ; |
| 28471 | return 0; |
| 28472 | } |
| 28473 | _ACEOF |
| 28474 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28475 | if { (ac_try="$ac_compile" |
| 28476 | case "(($ac_try" in |
| 28477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28478 | *) ac_try_echo=$ac_try;; |
| 28479 | esac |
| 28480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28481 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28482 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28484 | rm -f conftest.er1 |
| 28485 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28487 | (exit $ac_status); } && { |
| 28488 | test -z "$ac_c_werror_flag" || |
| 28489 | test ! -s conftest.err |
| 28490 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28491 | ac_cv_type_int64_t=yes |
| 28492 | else |
| 28493 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28495 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28496 | ac_cv_type_int64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28497 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28498 | |
| 28499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28500 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28501 | { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 28502 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28503 | if test $ac_cv_type_int64_t = yes; then |
| 28504 | |
| 28505 | cat >>confdefs.h <<_ACEOF |
| 28506 | #define HAVE_INT64_T 1 |
| 28507 | _ACEOF |
| 28508 | |
| 28509 | |
| 28510 | else |
| 28511 | { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 |
| 28512 | echo "$as_me: error: Type int64_t required but not found" >&2;} |
| 28513 | { (exit 1); exit 1; }; } |
| 28514 | fi |
| 28515 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28516 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 28517 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28518 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 28519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28520 | else |
| 28521 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28522 | /* confdefs.h. */ |
| 28523 | _ACEOF |
| 28524 | cat confdefs.h >>conftest.$ac_ext |
| 28525 | cat >>conftest.$ac_ext <<_ACEOF |
| 28526 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28527 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28528 | typedef uint64_t ac__type_new_; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28529 | int |
| 28530 | main () |
| 28531 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28532 | if ((ac__type_new_ *) 0) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28533 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28534 | if (sizeof (ac__type_new_)) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28535 | return 0; |
| 28536 | ; |
| 28537 | return 0; |
| 28538 | } |
| 28539 | _ACEOF |
| 28540 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28541 | if { (ac_try="$ac_compile" |
| 28542 | case "(($ac_try" in |
| 28543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28544 | *) ac_try_echo=$ac_try;; |
| 28545 | esac |
| 28546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28547 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28548 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28550 | rm -f conftest.er1 |
| 28551 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28553 | (exit $ac_status); } && { |
| 28554 | test -z "$ac_c_werror_flag" || |
| 28555 | test ! -s conftest.err |
| 28556 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28557 | ac_cv_type_uint64_t=yes |
| 28558 | else |
| 28559 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28561 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28562 | ac_cv_type_uint64_t=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28563 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28564 | |
| 28565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28566 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28567 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 28568 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28569 | if test $ac_cv_type_uint64_t = yes; then |
| 28570 | |
| 28571 | cat >>confdefs.h <<_ACEOF |
| 28572 | #define HAVE_UINT64_T 1 |
| 28573 | _ACEOF |
| 28574 | |
| 28575 | |
| 28576 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28577 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
| 28578 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28579 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
| 28580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28581 | else |
| 28582 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28583 | /* confdefs.h. */ |
| 28584 | _ACEOF |
| 28585 | cat confdefs.h >>conftest.$ac_ext |
| 28586 | cat >>conftest.$ac_ext <<_ACEOF |
| 28587 | /* end confdefs.h. */ |
| 28588 | $ac_includes_default |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28589 | typedef u_int64_t ac__type_new_; |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28590 | int |
| 28591 | main () |
| 28592 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28593 | if ((ac__type_new_ *) 0) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28594 | return 0; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28595 | if (sizeof (ac__type_new_)) |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28596 | return 0; |
| 28597 | ; |
| 28598 | return 0; |
| 28599 | } |
| 28600 | _ACEOF |
| 28601 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28602 | if { (ac_try="$ac_compile" |
| 28603 | case "(($ac_try" in |
| 28604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28605 | *) ac_try_echo=$ac_try;; |
| 28606 | esac |
| 28607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28608 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28609 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28611 | rm -f conftest.er1 |
| 28612 | cat conftest.err >&5 |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28614 | (exit $ac_status); } && { |
| 28615 | test -z "$ac_c_werror_flag" || |
| 28616 | test ! -s conftest.err |
| 28617 | } && test -s conftest.$ac_objext; then |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28618 | ac_cv_type_u_int64_t=yes |
| 28619 | else |
| 28620 | echo "$as_me: failed program was:" >&5 |
| 28621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28622 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28623 | ac_cv_type_u_int64_t=no |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28624 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28625 | |
| 28626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28627 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28628 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
| 28629 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28630 | if test $ac_cv_type_u_int64_t = yes; then |
| 28631 | |
| 28632 | cat >>confdefs.h <<_ACEOF |
| 28633 | #define HAVE_U_INT64_T 1 |
| 28634 | _ACEOF |
| 28635 | |
| 28636 | |
Misha Brukman | ceca904 | 2004-09-02 23:02:30 +0000 | [diff] [blame] | 28637 | else |
| 28638 | { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 |
| 28639 | echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} |
| 28640 | { (exit 1); exit 1; }; } |
| 28641 | fi |
| 28642 | |
John Criswell | 679ff31 | 2004-09-02 18:44:44 +0000 | [diff] [blame] | 28643 | fi |
| 28644 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28645 | |
| 28646 | |
| 28647 | |
| 28648 | |
| 28649 | |
| 28650 | |
| 28651 | |
Reid Spencer | f4bb9b1 | 2006-01-19 08:22:40 +0000 | [diff] [blame] | 28652 | |
| 28653 | |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28654 | for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28655 | do |
| 28656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28657 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 28659 | 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] | 28660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28661 | else |
| 28662 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28663 | /* confdefs.h. */ |
| 28664 | _ACEOF |
| 28665 | cat confdefs.h >>conftest.$ac_ext |
| 28666 | cat >>conftest.$ac_ext <<_ACEOF |
| 28667 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28668 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28669 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28670 | #define $ac_func innocuous_$ac_func |
| 28671 | |
| 28672 | /* System header to define __stub macros and hopefully few prototypes, |
| 28673 | which can conflict with char $ac_func (); below. |
| 28674 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28675 | <limits.h> exists even on freestanding compilers. */ |
| 28676 | |
| 28677 | #ifdef __STDC__ |
| 28678 | # include <limits.h> |
| 28679 | #else |
| 28680 | # include <assert.h> |
| 28681 | #endif |
| 28682 | |
| 28683 | #undef $ac_func |
| 28684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28685 | /* Override any GCC internal prototype to avoid an error. |
| 28686 | Use char because int might match the return type of a GCC |
| 28687 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28688 | #ifdef __cplusplus |
| 28689 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28690 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28691 | char $ac_func (); |
| 28692 | /* The GNU C library defines this for functions which it implements |
| 28693 | to always fail with ENOSYS. Some functions are actually named |
| 28694 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28695 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28696 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28697 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28698 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28699 | int |
| 28700 | main () |
| 28701 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28702 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28703 | ; |
| 28704 | return 0; |
| 28705 | } |
| 28706 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28707 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28708 | if { (ac_try="$ac_link" |
| 28709 | case "(($ac_try" in |
| 28710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28711 | *) ac_try_echo=$ac_try;; |
| 28712 | esac |
| 28713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28714 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28715 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 28716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28717 | rm -f conftest.er1 |
| 28718 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28720 | (exit $ac_status); } && { |
| 28721 | test -z "$ac_c_werror_flag" || |
| 28722 | test ! -s conftest.err |
| 28723 | } && test -s conftest$ac_exeext && |
| 28724 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28725 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28726 | else |
| 28727 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 28728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28729 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28730 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28731 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28732 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28733 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28734 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28735 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28736 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 28737 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28738 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28739 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28740 | cat >>confdefs.h <<_ACEOF |
| 28741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28742 | _ACEOF |
| 28743 | |
| 28744 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28745 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 28746 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 28747 | |
| 28748 | |
| 28749 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 28750 | |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 28751 | for ac_func in powf fmodf strtof round |
| 28752 | do |
| 28753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28754 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 28756 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28758 | else |
| 28759 | cat >conftest.$ac_ext <<_ACEOF |
| 28760 | /* confdefs.h. */ |
| 28761 | _ACEOF |
| 28762 | cat confdefs.h >>conftest.$ac_ext |
| 28763 | cat >>conftest.$ac_ext <<_ACEOF |
| 28764 | /* end confdefs.h. */ |
| 28765 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28766 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28767 | #define $ac_func innocuous_$ac_func |
| 28768 | |
| 28769 | /* System header to define __stub macros and hopefully few prototypes, |
| 28770 | which can conflict with char $ac_func (); below. |
| 28771 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28772 | <limits.h> exists even on freestanding compilers. */ |
| 28773 | |
| 28774 | #ifdef __STDC__ |
| 28775 | # include <limits.h> |
| 28776 | #else |
| 28777 | # include <assert.h> |
| 28778 | #endif |
| 28779 | |
| 28780 | #undef $ac_func |
| 28781 | |
| 28782 | /* Override any GCC internal prototype to avoid an error. |
| 28783 | Use char because int might match the return type of a GCC |
| 28784 | builtin and then its argument prototype would still apply. */ |
| 28785 | #ifdef __cplusplus |
| 28786 | extern "C" |
| 28787 | #endif |
| 28788 | char $ac_func (); |
| 28789 | /* The GNU C library defines this for functions which it implements |
| 28790 | to always fail with ENOSYS. Some functions are actually named |
| 28791 | something starting with __ and the normal name is an alias. */ |
| 28792 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 28793 | choke me |
| 28794 | #endif |
| 28795 | |
| 28796 | int |
| 28797 | main () |
| 28798 | { |
| 28799 | return $ac_func (); |
| 28800 | ; |
| 28801 | return 0; |
| 28802 | } |
| 28803 | _ACEOF |
| 28804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28805 | if { (ac_try="$ac_link" |
| 28806 | case "(($ac_try" in |
| 28807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28808 | *) ac_try_echo=$ac_try;; |
| 28809 | esac |
| 28810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28811 | (eval "$ac_link") 2>conftest.er1 |
| 28812 | ac_status=$? |
| 28813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28814 | rm -f conftest.er1 |
| 28815 | cat conftest.err >&5 |
| 28816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28817 | (exit $ac_status); } && { |
| 28818 | test -z "$ac_c_werror_flag" || |
| 28819 | test ! -s conftest.err |
| 28820 | } && test -s conftest$ac_exeext && |
| 28821 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 28822 | eval "$as_ac_var=yes" |
| 28823 | else |
| 28824 | echo "$as_me: failed program was:" >&5 |
| 28825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28826 | |
| 28827 | eval "$as_ac_var=no" |
| 28828 | fi |
| 28829 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 96cf587 | 2007-07-13 10:05:30 +0000 | [diff] [blame] | 28831 | conftest$ac_exeext conftest.$ac_ext |
| 28832 | fi |
| 28833 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 28834 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28835 | echo "${ECHO_T}$ac_res" >&6; } |
| 28836 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28837 | cat >>confdefs.h <<_ACEOF |
| 28838 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28839 | _ACEOF |
| 28840 | |
| 28841 | fi |
| 28842 | done |
| 28843 | |
| 28844 | |
| 28845 | |
| 28846 | |
| 28847 | |
Reid Spencer | 6af3d26 | 2004-12-15 04:01:48 +0000 | [diff] [blame] | 28848 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 28849 | for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday |
| 28850 | do |
| 28851 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 28852 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28853 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 28854 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 28855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28856 | else |
| 28857 | cat >conftest.$ac_ext <<_ACEOF |
| 28858 | /* confdefs.h. */ |
| 28859 | _ACEOF |
| 28860 | cat confdefs.h >>conftest.$ac_ext |
| 28861 | cat >>conftest.$ac_ext <<_ACEOF |
| 28862 | /* end confdefs.h. */ |
| 28863 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28865 | #define $ac_func innocuous_$ac_func |
Reid Spencer | 59473af | 2004-12-25 07:31:29 +0000 | [diff] [blame] | 28866 | |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 28867 | /* System header to define __stub macros and hopefully few prototypes, |
| 28868 | which can conflict with char $ac_func (); below. |
| 28869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28870 | <limits.h> exists even on freestanding compilers. */ |
| 28871 | |
| 28872 | #ifdef __STDC__ |
| 28873 | # include <limits.h> |
| 28874 | #else |
| 28875 | # include <assert.h> |
| 28876 | #endif |
| 28877 | |
| 28878 | #undef $ac_func |
| 28879 | |
| 28880 | /* Override any GCC internal prototype to avoid an error. |
| 28881 | Use char because int might match the return type of a GCC |
| 28882 | builtin and then its argument prototype would still apply. */ |
| 28883 | #ifdef __cplusplus |
| 28884 | extern "C" |
| 28885 | #endif |
| 28886 | char $ac_func (); |
| 28887 | /* The GNU C library defines this for functions which it implements |
| 28888 | to always fail with ENOSYS. Some functions are actually named |
| 28889 | something starting with __ and the normal name is an alias. */ |
| 28890 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 28891 | choke me |
| 28892 | #endif |
| 28893 | |
| 28894 | int |
| 28895 | main () |
| 28896 | { |
| 28897 | return $ac_func (); |
| 28898 | ; |
| 28899 | return 0; |
| 28900 | } |
| 28901 | _ACEOF |
| 28902 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 28903 | if { (ac_try="$ac_link" |
| 28904 | case "(($ac_try" in |
| 28905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 28906 | *) ac_try_echo=$ac_try;; |
| 28907 | esac |
| 28908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 28909 | (eval "$ac_link") 2>conftest.er1 |
| 28910 | ac_status=$? |
| 28911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 28912 | rm -f conftest.er1 |
| 28913 | cat conftest.err >&5 |
| 28914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28915 | (exit $ac_status); } && { |
| 28916 | test -z "$ac_c_werror_flag" || |
| 28917 | test ! -s conftest.err |
| 28918 | } && test -s conftest$ac_exeext && |
| 28919 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 28920 | eval "$as_ac_var=yes" |
| 28921 | else |
| 28922 | echo "$as_me: failed program was:" >&5 |
| 28923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 28924 | |
| 28925 | eval "$as_ac_var=no" |
| 28926 | fi |
| 28927 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 28928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | b90645c | 2007-02-16 19:17:20 +0000 | [diff] [blame] | 28929 | conftest$ac_exeext conftest.$ac_ext |
| 28930 | fi |
| 28931 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 28932 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 28933 | echo "${ECHO_T}$ac_res" >&6; } |
| 28934 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 28935 | cat >>confdefs.h <<_ACEOF |
| 28936 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 28937 | _ACEOF |
| 28938 | |
| 28939 | fi |
| 28940 | done |
| 28941 | |
| 28942 | |
| 28943 | |
| 28944 | |
| 28945 | for ac_func in isatty mkdtemp mkstemp |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28946 | do |
| 28947 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28948 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 28949 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 28950 | 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] | 28951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 28952 | else |
| 28953 | cat >conftest.$ac_ext <<_ACEOF |
| 28954 | /* confdefs.h. */ |
| 28955 | _ACEOF |
| 28956 | cat confdefs.h >>conftest.$ac_ext |
| 28957 | cat >>conftest.$ac_ext <<_ACEOF |
| 28958 | /* end confdefs.h. */ |
| 28959 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 28960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 28961 | #define $ac_func innocuous_$ac_func |
| 28962 | |
| 28963 | /* System header to define __stub macros and hopefully few prototypes, |
| 28964 | which can conflict with char $ac_func (); below. |
| 28965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 28966 | <limits.h> exists even on freestanding compilers. */ |
| 28967 | |
| 28968 | #ifdef __STDC__ |
| 28969 | # include <limits.h> |
| 28970 | #else |
| 28971 | # include <assert.h> |
| 28972 | #endif |
| 28973 | |
| 28974 | #undef $ac_func |
| 28975 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28976 | /* Override any GCC internal prototype to avoid an error. |
| 28977 | Use char because int might match the return type of a GCC |
| 28978 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28979 | #ifdef __cplusplus |
| 28980 | extern "C" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28981 | #endif |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28982 | char $ac_func (); |
| 28983 | /* The GNU C library defines this for functions which it implements |
| 28984 | to always fail with ENOSYS. Some functions are actually named |
| 28985 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28986 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28987 | choke me |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28988 | #endif |
| 28989 | |
| 28990 | int |
| 28991 | main () |
| 28992 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28993 | return $ac_func (); |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 28994 | ; |
| 28995 | return 0; |
| 28996 | } |
| 28997 | _ACEOF |
| 28998 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 28999 | if { (ac_try="$ac_link" |
| 29000 | case "(($ac_try" in |
| 29001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29002 | *) ac_try_echo=$ac_try;; |
| 29003 | esac |
| 29004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29005 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29006 | ac_status=$? |
| 29007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29008 | rm -f conftest.er1 |
| 29009 | cat conftest.err >&5 |
| 29010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29011 | (exit $ac_status); } && { |
| 29012 | test -z "$ac_c_werror_flag" || |
| 29013 | test ! -s conftest.err |
| 29014 | } && test -s conftest$ac_exeext && |
| 29015 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29016 | eval "$as_ac_var=yes" |
| 29017 | else |
| 29018 | echo "$as_me: failed program was:" >&5 |
| 29019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29020 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29021 | eval "$as_ac_var=no" |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29022 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29023 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29025 | conftest$ac_exeext conftest.$ac_ext |
| 29026 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29027 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29028 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29029 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | df3be82 | 2006-01-23 08:15:53 +0000 | [diff] [blame] | 29030 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29031 | cat >>confdefs.h <<_ACEOF |
| 29032 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29033 | _ACEOF |
| 29034 | |
| 29035 | fi |
| 29036 | done |
| 29037 | |
| 29038 | |
| 29039 | |
| 29040 | |
| 29041 | |
| 29042 | |
| 29043 | |
| 29044 | |
| 29045 | for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29046 | do |
| 29047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29050 | 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] | 29051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29052 | else |
| 29053 | cat >conftest.$ac_ext <<_ACEOF |
| 29054 | /* confdefs.h. */ |
| 29055 | _ACEOF |
| 29056 | cat confdefs.h >>conftest.$ac_ext |
| 29057 | cat >>conftest.$ac_ext <<_ACEOF |
| 29058 | /* end confdefs.h. */ |
| 29059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29061 | #define $ac_func innocuous_$ac_func |
| 29062 | |
| 29063 | /* System header to define __stub macros and hopefully few prototypes, |
| 29064 | which can conflict with char $ac_func (); below. |
| 29065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29066 | <limits.h> exists even on freestanding compilers. */ |
| 29067 | |
| 29068 | #ifdef __STDC__ |
| 29069 | # include <limits.h> |
| 29070 | #else |
| 29071 | # include <assert.h> |
| 29072 | #endif |
| 29073 | |
| 29074 | #undef $ac_func |
| 29075 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29076 | /* Override any GCC internal prototype to avoid an error. |
| 29077 | Use char because int might match the return type of a GCC |
| 29078 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29079 | #ifdef __cplusplus |
| 29080 | extern "C" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29081 | #endif |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29082 | char $ac_func (); |
| 29083 | /* The GNU C library defines this for functions which it implements |
| 29084 | to always fail with ENOSYS. Some functions are actually named |
| 29085 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29086 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29087 | choke me |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29088 | #endif |
| 29089 | |
| 29090 | int |
| 29091 | main () |
| 29092 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29093 | return $ac_func (); |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29094 | ; |
| 29095 | return 0; |
| 29096 | } |
| 29097 | _ACEOF |
| 29098 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29099 | if { (ac_try="$ac_link" |
| 29100 | case "(($ac_try" in |
| 29101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29102 | *) ac_try_echo=$ac_try;; |
| 29103 | esac |
| 29104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29105 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29106 | ac_status=$? |
| 29107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29108 | rm -f conftest.er1 |
| 29109 | cat conftest.err >&5 |
| 29110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29111 | (exit $ac_status); } && { |
| 29112 | test -z "$ac_c_werror_flag" || |
| 29113 | test ! -s conftest.err |
| 29114 | } && test -s conftest$ac_exeext && |
| 29115 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29116 | eval "$as_ac_var=yes" |
| 29117 | else |
| 29118 | echo "$as_me: failed program was:" >&5 |
| 29119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29120 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29121 | eval "$as_ac_var=no" |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29122 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29123 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29125 | conftest$ac_exeext conftest.$ac_ext |
| 29126 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29127 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29129 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 29130 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29131 | cat >>confdefs.h <<_ACEOF |
| 29132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29133 | _ACEOF |
| 29134 | |
| 29135 | fi |
| 29136 | done |
| 29137 | |
| 29138 | |
Reid Spencer | ba46ca3 | 2004-12-31 05:49:15 +0000 | [diff] [blame] | 29139 | |
| 29140 | |
Chris Lattner | 0b14259 | 2005-11-14 06:57:34 +0000 | [diff] [blame] | 29141 | |
Chris Lattner | 511f11d | 2005-11-14 07:25:50 +0000 | [diff] [blame] | 29142 | for ac_func in strtoll strtoq sysconf malloc_zone_statistics |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29143 | do |
| 29144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29145 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29147 | 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] | 29148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29149 | else |
| 29150 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29151 | /* confdefs.h. */ |
| 29152 | _ACEOF |
| 29153 | cat confdefs.h >>conftest.$ac_ext |
| 29154 | cat >>conftest.$ac_ext <<_ACEOF |
| 29155 | /* end confdefs.h. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29158 | #define $ac_func innocuous_$ac_func |
| 29159 | |
| 29160 | /* System header to define __stub macros and hopefully few prototypes, |
| 29161 | which can conflict with char $ac_func (); below. |
| 29162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29163 | <limits.h> exists even on freestanding compilers. */ |
| 29164 | |
| 29165 | #ifdef __STDC__ |
| 29166 | # include <limits.h> |
| 29167 | #else |
| 29168 | # include <assert.h> |
| 29169 | #endif |
| 29170 | |
| 29171 | #undef $ac_func |
| 29172 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29173 | /* Override any GCC internal prototype to avoid an error. |
| 29174 | Use char because int might match the return type of a GCC |
| 29175 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29176 | #ifdef __cplusplus |
| 29177 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29178 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29179 | char $ac_func (); |
| 29180 | /* The GNU C library defines this for functions which it implements |
| 29181 | to always fail with ENOSYS. Some functions are actually named |
| 29182 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29183 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29184 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29185 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29186 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29187 | int |
| 29188 | main () |
| 29189 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29190 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29191 | ; |
| 29192 | return 0; |
| 29193 | } |
| 29194 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29195 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29196 | if { (ac_try="$ac_link" |
| 29197 | case "(($ac_try" in |
| 29198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29199 | *) ac_try_echo=$ac_try;; |
| 29200 | esac |
| 29201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29202 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29203 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29204 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29205 | rm -f conftest.er1 |
| 29206 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29208 | (exit $ac_status); } && { |
| 29209 | test -z "$ac_c_werror_flag" || |
| 29210 | test ! -s conftest.err |
| 29211 | } && test -s conftest$ac_exeext && |
| 29212 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29213 | eval "$as_ac_var=yes" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29214 | else |
| 29215 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29217 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29218 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29219 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29220 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29221 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29222 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29223 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29224 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29225 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29226 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29227 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29228 | cat >>confdefs.h <<_ACEOF |
| 29229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29230 | _ACEOF |
| 29231 | |
| 29232 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29233 | done |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29234 | |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29235 | |
| 29236 | |
| 29237 | |
| 29238 | |
Reid Spencer | afa22e2 | 2006-12-10 23:29:19 +0000 | [diff] [blame] | 29239 | for ac_func in setjmp longjmp sigsetjmp siglongjmp |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29240 | do |
| 29241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29242 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29244 | 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] | 29245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29246 | else |
| 29247 | cat >conftest.$ac_ext <<_ACEOF |
| 29248 | /* confdefs.h. */ |
| 29249 | _ACEOF |
| 29250 | cat confdefs.h >>conftest.$ac_ext |
| 29251 | cat >>conftest.$ac_ext <<_ACEOF |
| 29252 | /* end confdefs.h. */ |
| 29253 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29255 | #define $ac_func innocuous_$ac_func |
| 29256 | |
| 29257 | /* System header to define __stub macros and hopefully few prototypes, |
| 29258 | which can conflict with char $ac_func (); below. |
| 29259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29260 | <limits.h> exists even on freestanding compilers. */ |
| 29261 | |
| 29262 | #ifdef __STDC__ |
| 29263 | # include <limits.h> |
| 29264 | #else |
| 29265 | # include <assert.h> |
| 29266 | #endif |
| 29267 | |
| 29268 | #undef $ac_func |
| 29269 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29270 | /* Override any GCC internal prototype to avoid an error. |
| 29271 | Use char because int might match the return type of a GCC |
| 29272 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29273 | #ifdef __cplusplus |
| 29274 | extern "C" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29275 | #endif |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29276 | char $ac_func (); |
| 29277 | /* The GNU C library defines this for functions which it implements |
| 29278 | to always fail with ENOSYS. Some functions are actually named |
| 29279 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29280 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29281 | choke me |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29282 | #endif |
| 29283 | |
| 29284 | int |
| 29285 | main () |
| 29286 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29287 | return $ac_func (); |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29288 | ; |
| 29289 | return 0; |
| 29290 | } |
| 29291 | _ACEOF |
| 29292 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29293 | if { (ac_try="$ac_link" |
| 29294 | case "(($ac_try" in |
| 29295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29296 | *) ac_try_echo=$ac_try;; |
| 29297 | esac |
| 29298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29299 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29300 | ac_status=$? |
| 29301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29302 | rm -f conftest.er1 |
| 29303 | cat conftest.err >&5 |
| 29304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29305 | (exit $ac_status); } && { |
| 29306 | test -z "$ac_c_werror_flag" || |
| 29307 | test ! -s conftest.err |
| 29308 | } && test -s conftest$ac_exeext && |
| 29309 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29310 | eval "$as_ac_var=yes" |
| 29311 | else |
| 29312 | echo "$as_me: failed program was:" >&5 |
| 29313 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29314 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29315 | eval "$as_ac_var=no" |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29316 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29317 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29318 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29319 | conftest$ac_exeext conftest.$ac_ext |
| 29320 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29321 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29323 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | cdb08a3 | 2006-06-05 16:11:07 +0000 | [diff] [blame] | 29324 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29325 | cat >>confdefs.h <<_ACEOF |
| 29326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29327 | _ACEOF |
| 29328 | |
| 29329 | fi |
| 29330 | done |
| 29331 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29332 | { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 |
| 29333 | 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] | 29334 | if test "${llvm_cv_c_printf_a+set}" = set; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29336 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29337 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29338 | ac_cpp='$CPP $CPPFLAGS' |
| 29339 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29340 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29341 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29342 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29343 | if test "$cross_compiling" = yes; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 29344 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29345 | else |
| 29346 | cat >conftest.$ac_ext <<_ACEOF |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29347 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29348 | /* confdefs.h. */ |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29349 | _ACEOF |
| 29350 | cat confdefs.h >>conftest.$ac_ext |
| 29351 | cat >>conftest.$ac_ext <<_ACEOF |
| 29352 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29353 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29354 | #include <stdio.h> |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29355 | #include <stdlib.h> |
| 29356 | |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29357 | int |
| 29358 | main () |
| 29359 | { |
| 29360 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29361 | volatile double A, B; |
| 29362 | char Buffer[100]; |
| 29363 | A = 1; |
| 29364 | A /= 10.0; |
| 29365 | sprintf(Buffer, "%a", A); |
| 29366 | B = atof(Buffer); |
| 29367 | if (A != B) |
| 29368 | return (1); |
| 29369 | if (A != 0x1.999999999999ap-4) |
| 29370 | return (1); |
| 29371 | return (0); |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29372 | ; |
| 29373 | return 0; |
| 29374 | } |
| 29375 | _ACEOF |
| 29376 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29377 | if { (ac_try="$ac_link" |
| 29378 | case "(($ac_try" in |
| 29379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29380 | *) ac_try_echo=$ac_try;; |
| 29381 | esac |
| 29382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29383 | (eval "$ac_link") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29384 | ac_status=$? |
| 29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29387 | { (case "(($ac_try" in |
| 29388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29389 | *) ac_try_echo=$ac_try;; |
| 29390 | esac |
| 29391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29392 | (eval "$ac_try") 2>&5 |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29393 | ac_status=$? |
| 29394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29395 | (exit $ac_status); }; }; then |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 29396 | llvm_cv_c_printf_a=yes |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29397 | else |
| 29398 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29399 | echo "$as_me: failed program was:" >&5 |
| 29400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29401 | |
| 29402 | ( exit $ac_status ) |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 29403 | llvmac_cv_c_printf_a=no |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29404 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29405 | 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] | 29406 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29407 | |
| 29408 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29409 | ac_ext=c |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29410 | ac_cpp='$CPP $CPPFLAGS' |
| 29411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29414 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29415 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29416 | { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 |
| 29417 | echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } |
Reid Spencer | 3be58f9 | 2004-11-27 22:01:43 +0000 | [diff] [blame] | 29418 | if test "$llvm_cv_c_printf_a" = "yes"; then |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29419 | |
| 29420 | cat >>confdefs.h <<\_ACEOF |
| 29421 | #define HAVE_PRINTF_A 1 |
| 29422 | _ACEOF |
| 29423 | |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29424 | fi |
John Criswell | a0137d3 | 2003-10-13 16:22:01 +0000 | [diff] [blame] | 29425 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29426 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 29427 | # for constant arguments. Useless! |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29428 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 29429 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29430 | if test "${ac_cv_working_alloca_h+set}" = set; then |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29432 | else |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29433 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +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. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29439 | #include <alloca.h> |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29440 | int |
| 29441 | main () |
| 29442 | { |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29443 | char *p = (char *) alloca (2 * sizeof (int)); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29444 | if (p) return 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29445 | ; |
| 29446 | return 0; |
| 29447 | } |
| 29448 | _ACEOF |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29449 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29450 | if { (ac_try="$ac_link" |
| 29451 | case "(($ac_try" in |
| 29452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29453 | *) ac_try_echo=$ac_try;; |
| 29454 | esac |
| 29455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29456 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29457 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29459 | rm -f conftest.er1 |
| 29460 | cat conftest.err >&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29462 | (exit $ac_status); } && { |
| 29463 | test -z "$ac_c_werror_flag" || |
| 29464 | test ! -s conftest.err |
| 29465 | } && test -s conftest$ac_exeext && |
| 29466 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29467 | ac_cv_working_alloca_h=yes |
| 29468 | else |
| 29469 | echo "$as_me: failed program was:" >&5 |
| 29470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29471 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29472 | ac_cv_working_alloca_h=no |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29473 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29474 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29476 | conftest$ac_exeext conftest.$ac_ext |
| 29477 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29478 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 29479 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29480 | if test $ac_cv_working_alloca_h = yes; then |
| 29481 | |
| 29482 | cat >>confdefs.h <<\_ACEOF |
| 29483 | #define HAVE_ALLOCA_H 1 |
| 29484 | _ACEOF |
| 29485 | |
| 29486 | fi |
| 29487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29488 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 29489 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29490 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 29491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29492 | else |
| 29493 | cat >conftest.$ac_ext <<_ACEOF |
| 29494 | /* confdefs.h. */ |
| 29495 | _ACEOF |
| 29496 | cat confdefs.h >>conftest.$ac_ext |
| 29497 | cat >>conftest.$ac_ext <<_ACEOF |
| 29498 | /* end confdefs.h. */ |
| 29499 | #ifdef __GNUC__ |
| 29500 | # define alloca __builtin_alloca |
| 29501 | #else |
| 29502 | # ifdef _MSC_VER |
| 29503 | # include <malloc.h> |
| 29504 | # define alloca _alloca |
| 29505 | # else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29506 | # ifdef HAVE_ALLOCA_H |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29507 | # include <alloca.h> |
| 29508 | # else |
| 29509 | # ifdef _AIX |
| 29510 | #pragma alloca |
| 29511 | # else |
| 29512 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 29513 | char *alloca (); |
| 29514 | # endif |
| 29515 | # endif |
| 29516 | # endif |
| 29517 | # endif |
| 29518 | #endif |
| 29519 | |
| 29520 | int |
| 29521 | main () |
| 29522 | { |
| 29523 | char *p = (char *) alloca (1); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29524 | if (p) return 0; |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29525 | ; |
| 29526 | return 0; |
| 29527 | } |
| 29528 | _ACEOF |
| 29529 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29530 | if { (ac_try="$ac_link" |
| 29531 | case "(($ac_try" in |
| 29532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29533 | *) ac_try_echo=$ac_try;; |
| 29534 | esac |
| 29535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29536 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29537 | ac_status=$? |
| 29538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29539 | rm -f conftest.er1 |
| 29540 | cat conftest.err >&5 |
| 29541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29542 | (exit $ac_status); } && { |
| 29543 | test -z "$ac_c_werror_flag" || |
| 29544 | test ! -s conftest.err |
| 29545 | } && test -s conftest$ac_exeext && |
| 29546 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29547 | ac_cv_func_alloca_works=yes |
| 29548 | else |
| 29549 | echo "$as_me: failed program was:" >&5 |
| 29550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29551 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29552 | ac_cv_func_alloca_works=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29553 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29554 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29556 | conftest$ac_exeext conftest.$ac_ext |
| 29557 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29558 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 29559 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29560 | |
| 29561 | if test $ac_cv_func_alloca_works = yes; then |
| 29562 | |
| 29563 | cat >>confdefs.h <<\_ACEOF |
| 29564 | #define HAVE_ALLOCA 1 |
| 29565 | _ACEOF |
| 29566 | |
| 29567 | else |
| 29568 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 29569 | # that cause trouble. Some versions do not even contain alloca or |
| 29570 | # contain a buggy version. If you still want to use their alloca, |
| 29571 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 29572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29573 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29574 | |
| 29575 | cat >>confdefs.h <<\_ACEOF |
| 29576 | #define C_ALLOCA 1 |
| 29577 | _ACEOF |
| 29578 | |
| 29579 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29580 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 29581 | 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] | 29582 | if test "${ac_cv_os_cray+set}" = set; then |
| 29583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29584 | else |
| 29585 | cat >conftest.$ac_ext <<_ACEOF |
| 29586 | /* confdefs.h. */ |
| 29587 | _ACEOF |
| 29588 | cat confdefs.h >>conftest.$ac_ext |
| 29589 | cat >>conftest.$ac_ext <<_ACEOF |
| 29590 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29591 | #if defined CRAY && ! defined CRAY2 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29592 | webecray |
| 29593 | #else |
| 29594 | wenotbecray |
| 29595 | #endif |
| 29596 | |
| 29597 | _ACEOF |
| 29598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 29599 | $EGREP "webecray" >/dev/null 2>&1; then |
| 29600 | ac_cv_os_cray=yes |
| 29601 | else |
| 29602 | ac_cv_os_cray=no |
| 29603 | fi |
| 29604 | rm -f conftest* |
| 29605 | |
| 29606 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29607 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 29608 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29609 | if test $ac_cv_os_cray = yes; then |
| 29610 | for ac_func in _getb67 GETB67 getb67; do |
| 29611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29612 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 29613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 29614 | 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] | 29615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29616 | else |
| 29617 | cat >conftest.$ac_ext <<_ACEOF |
| 29618 | /* confdefs.h. */ |
| 29619 | _ACEOF |
| 29620 | cat confdefs.h >>conftest.$ac_ext |
| 29621 | cat >>conftest.$ac_ext <<_ACEOF |
| 29622 | /* end confdefs.h. */ |
| 29623 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 29624 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 29625 | #define $ac_func innocuous_$ac_func |
| 29626 | |
| 29627 | /* System header to define __stub macros and hopefully few prototypes, |
| 29628 | which can conflict with char $ac_func (); below. |
| 29629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 29630 | <limits.h> exists even on freestanding compilers. */ |
| 29631 | |
| 29632 | #ifdef __STDC__ |
| 29633 | # include <limits.h> |
| 29634 | #else |
| 29635 | # include <assert.h> |
| 29636 | #endif |
| 29637 | |
| 29638 | #undef $ac_func |
| 29639 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29640 | /* Override any GCC internal prototype to avoid an error. |
| 29641 | Use char because int might match the return type of a GCC |
| 29642 | builtin and then its argument prototype would still apply. */ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29643 | #ifdef __cplusplus |
| 29644 | extern "C" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29645 | #endif |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29646 | char $ac_func (); |
| 29647 | /* The GNU C library defines this for functions which it implements |
| 29648 | to always fail with ENOSYS. Some functions are actually named |
| 29649 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29650 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29651 | choke me |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29652 | #endif |
| 29653 | |
| 29654 | int |
| 29655 | main () |
| 29656 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29657 | return $ac_func (); |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29658 | ; |
| 29659 | return 0; |
| 29660 | } |
| 29661 | _ACEOF |
| 29662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29663 | if { (ac_try="$ac_link" |
| 29664 | case "(($ac_try" in |
| 29665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29666 | *) ac_try_echo=$ac_try;; |
| 29667 | esac |
| 29668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29669 | (eval "$ac_link") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29670 | ac_status=$? |
| 29671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29672 | rm -f conftest.er1 |
| 29673 | cat conftest.err >&5 |
| 29674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29675 | (exit $ac_status); } && { |
| 29676 | test -z "$ac_c_werror_flag" || |
| 29677 | test ! -s conftest.err |
| 29678 | } && test -s conftest$ac_exeext && |
| 29679 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29680 | eval "$as_ac_var=yes" |
| 29681 | else |
| 29682 | echo "$as_me: failed program was:" >&5 |
| 29683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29684 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29685 | eval "$as_ac_var=no" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29686 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29687 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29689 | conftest$ac_exeext conftest.$ac_ext |
| 29690 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29691 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 29692 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 29693 | echo "${ECHO_T}$ac_res" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29694 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 29695 | |
| 29696 | cat >>confdefs.h <<_ACEOF |
| 29697 | #define CRAY_STACKSEG_END $ac_func |
| 29698 | _ACEOF |
| 29699 | |
| 29700 | break |
| 29701 | fi |
| 29702 | |
| 29703 | done |
| 29704 | fi |
| 29705 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29706 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 29707 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29708 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 29709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29710 | else |
| 29711 | if test "$cross_compiling" = yes; then |
| 29712 | ac_cv_c_stack_direction=0 |
| 29713 | else |
| 29714 | cat >conftest.$ac_ext <<_ACEOF |
| 29715 | /* confdefs.h. */ |
| 29716 | _ACEOF |
| 29717 | cat confdefs.h >>conftest.$ac_ext |
| 29718 | cat >>conftest.$ac_ext <<_ACEOF |
| 29719 | /* end confdefs.h. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29720 | $ac_includes_default |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29721 | int |
| 29722 | find_stack_direction () |
| 29723 | { |
| 29724 | static char *addr = 0; |
| 29725 | auto char dummy; |
| 29726 | if (addr == 0) |
| 29727 | { |
| 29728 | addr = &dummy; |
| 29729 | return find_stack_direction (); |
| 29730 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29731 | else |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29732 | return (&dummy > addr) ? 1 : -1; |
| 29733 | } |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29734 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29735 | int |
| 29736 | main () |
| 29737 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29738 | return find_stack_direction () < 0; |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29739 | } |
| 29740 | _ACEOF |
| 29741 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29742 | if { (ac_try="$ac_link" |
| 29743 | case "(($ac_try" in |
| 29744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29745 | *) ac_try_echo=$ac_try;; |
| 29746 | esac |
| 29747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29748 | (eval "$ac_link") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29749 | ac_status=$? |
| 29750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29752 | { (case "(($ac_try" in |
| 29753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29754 | *) ac_try_echo=$ac_try;; |
| 29755 | esac |
| 29756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29757 | (eval "$ac_try") 2>&5 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29758 | ac_status=$? |
| 29759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 29760 | (exit $ac_status); }; }; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29761 | ac_cv_c_stack_direction=1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29762 | else |
| 29763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 29764 | echo "$as_me: failed program was:" >&5 |
| 29765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29766 | |
| 29767 | ( exit $ac_status ) |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29768 | ac_cv_c_stack_direction=-1 |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29769 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29770 | 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] | 29771 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29772 | |
| 29773 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29775 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 29776 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29777 | |
| 29778 | cat >>confdefs.h <<_ACEOF |
| 29779 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 29780 | _ACEOF |
| 29781 | |
| 29782 | |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29783 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29784 | |
| 29785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29786 | { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 |
| 29787 | 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] | 29788 | if test "${ac_cv_func_rand48+set}" = set; then |
| 29789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29790 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29791 | ac_ext=cpp |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29792 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29796 | |
| 29797 | cat >conftest.$ac_ext <<_ACEOF |
| 29798 | /* confdefs.h. */ |
| 29799 | _ACEOF |
| 29800 | cat confdefs.h >>conftest.$ac_ext |
| 29801 | cat >>conftest.$ac_ext <<_ACEOF |
| 29802 | /* end confdefs.h. */ |
| 29803 | #include <stdlib.h> |
| 29804 | int |
| 29805 | main () |
| 29806 | { |
| 29807 | srand48(0);lrand48();drand48(); |
| 29808 | ; |
| 29809 | return 0; |
| 29810 | } |
| 29811 | _ACEOF |
| 29812 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29813 | if { (ac_try="$ac_compile" |
| 29814 | case "(($ac_try" in |
| 29815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29816 | *) ac_try_echo=$ac_try;; |
| 29817 | esac |
| 29818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29819 | (eval "$ac_compile") 2>conftest.er1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29820 | ac_status=$? |
| 29821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29822 | rm -f conftest.er1 |
| 29823 | cat conftest.err >&5 |
| 29824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29825 | (exit $ac_status); } && { |
| 29826 | test -z "$ac_cxx_werror_flag" || |
| 29827 | test ! -s conftest.err |
| 29828 | } && test -s conftest.$ac_objext; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29829 | ac_cv_func_rand48=yes |
| 29830 | else |
| 29831 | echo "$as_me: failed program was:" >&5 |
| 29832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29834 | ac_cv_func_rand48=no |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29836 | |
| 29837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29838 | ac_ext=c |
| 29839 | ac_cpp='$CPP $CPPFLAGS' |
| 29840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29843 | |
| 29844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29845 | { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 |
| 29846 | echo "${ECHO_T}$ac_cv_func_rand48" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 29847 | |
| 29848 | if test "$ac_cv_func_rand48" = "yes" ; then |
| 29849 | |
| 29850 | cat >>confdefs.h <<\_ACEOF |
| 29851 | #define HAVE_RAND48 1 |
| 29852 | _ACEOF |
| 29853 | |
| 29854 | fi |
John Criswell | 0021c31 | 2004-02-13 21:57:29 +0000 | [diff] [blame] | 29855 | |
| 29856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29857 | { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 |
| 29858 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29859 | if test "${ac_cv_cxx_namespaces+set}" = set; then |
| 29860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29861 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29862 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29863 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29867 | |
| 29868 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29869 | /* confdefs.h. */ |
| 29870 | _ACEOF |
| 29871 | cat confdefs.h >>conftest.$ac_ext |
| 29872 | cat >>conftest.$ac_ext <<_ACEOF |
| 29873 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29874 | namespace Outer { namespace Inner { int i = 0; }} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29875 | int |
| 29876 | main () |
| 29877 | { |
| 29878 | using namespace Outer::Inner; return i; |
| 29879 | ; |
| 29880 | return 0; |
| 29881 | } |
| 29882 | _ACEOF |
| 29883 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29884 | if { (ac_try="$ac_compile" |
| 29885 | case "(($ac_try" in |
| 29886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29887 | *) ac_try_echo=$ac_try;; |
| 29888 | esac |
| 29889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29890 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29891 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29893 | rm -f conftest.er1 |
| 29894 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29896 | (exit $ac_status); } && { |
| 29897 | test -z "$ac_cxx_werror_flag" || |
| 29898 | test ! -s conftest.err |
| 29899 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29900 | ac_cv_cxx_namespaces=yes |
| 29901 | else |
| 29902 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29905 | ac_cv_cxx_namespaces=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29907 | |
| 29908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29909 | ac_ext=c |
| 29910 | ac_cpp='$CPP $CPPFLAGS' |
| 29911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29914 | |
| 29915 | |
| 29916 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29917 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 |
| 29918 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29919 | if test "$ac_cv_cxx_namespaces" = yes; then |
| 29920 | |
| 29921 | cat >>confdefs.h <<\_ACEOF |
| 29922 | #define HAVE_NAMESPACES |
| 29923 | _ACEOF |
| 29924 | |
| 29925 | fi |
| 29926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29927 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5 |
| 29928 | 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] | 29929 | 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] | 29930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 29931 | else |
| 29932 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29933 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29934 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 29935 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29936 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29937 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 29938 | |
| 29939 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29940 | /* confdefs.h. */ |
| 29941 | _ACEOF |
| 29942 | cat confdefs.h >>conftest.$ac_ext |
| 29943 | cat >>conftest.$ac_ext <<_ACEOF |
| 29944 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29945 | #include <ext/hash_map> |
| 29946 | #ifdef HAVE_NAMESPACES |
| 29947 | using namespace std; |
| 29948 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29949 | int |
| 29950 | main () |
| 29951 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29952 | hash_map<int, int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29953 | ; |
| 29954 | return 0; |
| 29955 | } |
| 29956 | _ACEOF |
| 29957 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29958 | if { (ac_try="$ac_compile" |
| 29959 | case "(($ac_try" in |
| 29960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 29961 | *) ac_try_echo=$ac_try;; |
| 29962 | esac |
| 29963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 29964 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29965 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 29966 | grep -v '^ *+' conftest.er1 >conftest.err |
| 29967 | rm -f conftest.er1 |
| 29968 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 29970 | (exit $ac_status); } && { |
| 29971 | test -z "$ac_cxx_werror_flag" || |
| 29972 | test ! -s conftest.err |
| 29973 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 29974 | ac_cv_cxx_have_std_ext_hash_map=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29975 | else |
| 29976 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 29977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 29978 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29979 | ac_cv_cxx_have_std_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29980 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29981 | |
| 29982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29983 | ac_ext=c |
| 29984 | ac_cpp='$CPP $CPPFLAGS' |
| 29985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29988 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 29989 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 29990 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5 |
| 29991 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 29992 | if test "$ac_cv_cxx_have_std_ext_hash_map" = yes |
| 29993 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 29994 | |
| 29995 | cat >>confdefs.h <<\_ACEOF |
| 29996 | #define HAVE_STD_EXT_HASH_MAP 1 |
| 29997 | _ACEOF |
| 29998 | |
| 29999 | else |
| 30000 | |
| 30001 | cat >>confdefs.h <<\_ACEOF |
| 30002 | #define HAVE_STD_EXT_HASH_MAP 0 |
| 30003 | _ACEOF |
| 30004 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30005 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30007 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5 |
| 30008 | 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] | 30009 | if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then |
| 30010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30011 | else |
| 30012 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30013 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30014 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30018 | |
| 30019 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30020 | /* confdefs.h. */ |
| 30021 | _ACEOF |
| 30022 | cat confdefs.h >>conftest.$ac_ext |
| 30023 | cat >>conftest.$ac_ext <<_ACEOF |
| 30024 | /* end confdefs.h. */ |
| 30025 | #include <ext/hash_map> |
| 30026 | #ifdef HAVE_NAMESPACES |
| 30027 | using namespace __gnu_cxx; |
| 30028 | #endif |
| 30029 | int |
| 30030 | main () |
| 30031 | { |
| 30032 | hash_map<int,int> t; |
| 30033 | ; |
| 30034 | return 0; |
| 30035 | } |
| 30036 | _ACEOF |
| 30037 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30038 | if { (ac_try="$ac_compile" |
| 30039 | case "(($ac_try" in |
| 30040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30041 | *) ac_try_echo=$ac_try;; |
| 30042 | esac |
| 30043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30044 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30045 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30047 | rm -f conftest.er1 |
| 30048 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30050 | (exit $ac_status); } && { |
| 30051 | test -z "$ac_cxx_werror_flag" || |
| 30052 | test ! -s conftest.err |
| 30053 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30054 | ac_cv_cxx_have_gnu_ext_hash_map=yes |
| 30055 | else |
| 30056 | echo "$as_me: failed program was:" >&5 |
| 30057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30058 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30059 | ac_cv_cxx_have_gnu_ext_hash_map=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30060 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30061 | |
| 30062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30063 | ac_ext=c |
| 30064 | ac_cpp='$CPP $CPPFLAGS' |
| 30065 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30066 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30067 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30068 | |
| 30069 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30070 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5 |
| 30071 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30072 | if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes |
| 30073 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30074 | |
| 30075 | cat >>confdefs.h <<\_ACEOF |
| 30076 | #define HAVE_GNU_EXT_HASH_MAP 1 |
| 30077 | _ACEOF |
| 30078 | |
| 30079 | else |
| 30080 | |
| 30081 | cat >>confdefs.h <<\_ACEOF |
| 30082 | #define HAVE_GNU_EXT_HASH_MAP 0 |
| 30083 | _ACEOF |
| 30084 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30085 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30086 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30087 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5 |
| 30088 | 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] | 30089 | if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then |
| 30090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30091 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30092 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30093 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30094 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30095 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30096 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30097 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30098 | |
| 30099 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30100 | /* confdefs.h. */ |
| 30101 | _ACEOF |
| 30102 | cat confdefs.h >>conftest.$ac_ext |
| 30103 | cat >>conftest.$ac_ext <<_ACEOF |
| 30104 | /* end confdefs.h. */ |
| 30105 | #include <hash_map> |
| 30106 | int |
| 30107 | main () |
| 30108 | { |
| 30109 | hash_map<int,int> t; |
| 30110 | ; |
| 30111 | return 0; |
| 30112 | } |
| 30113 | _ACEOF |
| 30114 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30115 | if { (ac_try="$ac_compile" |
| 30116 | case "(($ac_try" in |
| 30117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30118 | *) ac_try_echo=$ac_try;; |
| 30119 | esac |
| 30120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30121 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30122 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30124 | rm -f conftest.er1 |
| 30125 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30127 | (exit $ac_status); } && { |
| 30128 | test -z "$ac_cxx_werror_flag" || |
| 30129 | test ! -s conftest.err |
| 30130 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30131 | ac_cv_cxx_have_global_hash_map=yes |
| 30132 | else |
| 30133 | echo "$as_me: failed program was:" >&5 |
| 30134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30135 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30136 | ac_cv_cxx_have_global_hash_map=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30137 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30138 | |
| 30139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30140 | ac_ext=c |
| 30141 | ac_cpp='$CPP $CPPFLAGS' |
| 30142 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30143 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30144 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30145 | |
| 30146 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30147 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5 |
| 30148 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30149 | if test "$ac_cv_cxx_have_global_hash_map" = yes |
| 30150 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30151 | |
| 30152 | cat >>confdefs.h <<\_ACEOF |
| 30153 | #define HAVE_GLOBAL_HASH_MAP 1 |
| 30154 | _ACEOF |
| 30155 | |
| 30156 | else |
| 30157 | |
| 30158 | cat >>confdefs.h <<\_ACEOF |
| 30159 | #define HAVE_GLOBAL_HASH_MAP 0 |
| 30160 | _ACEOF |
| 30161 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30162 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30163 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30164 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5 |
| 30165 | 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] | 30166 | 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] | 30167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30168 | else |
| 30169 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30170 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30171 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30175 | |
| 30176 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30177 | /* confdefs.h. */ |
| 30178 | _ACEOF |
| 30179 | cat confdefs.h >>conftest.$ac_ext |
| 30180 | cat >>conftest.$ac_ext <<_ACEOF |
| 30181 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30182 | #include <ext/hash_set> |
| 30183 | #ifdef HAVE_NAMESPACES |
| 30184 | using namespace std; |
| 30185 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30186 | int |
| 30187 | main () |
| 30188 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30189 | hash_set<int> t; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30190 | ; |
| 30191 | return 0; |
| 30192 | } |
| 30193 | _ACEOF |
| 30194 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30195 | if { (ac_try="$ac_compile" |
| 30196 | case "(($ac_try" in |
| 30197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30198 | *) ac_try_echo=$ac_try;; |
| 30199 | esac |
| 30200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30201 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30202 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30204 | rm -f conftest.er1 |
| 30205 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30207 | (exit $ac_status); } && { |
| 30208 | test -z "$ac_cxx_werror_flag" || |
| 30209 | test ! -s conftest.err |
| 30210 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30211 | ac_cv_cxx_have_std_ext_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30212 | else |
| 30213 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30215 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30216 | ac_cv_cxx_have_std_ext_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30217 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30218 | |
| 30219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30220 | ac_ext=c |
| 30221 | ac_cpp='$CPP $CPPFLAGS' |
| 30222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30225 | |
| 30226 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30227 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5 |
| 30228 | echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30229 | if test "$ac_cv_cxx_have_std_ext_hash_set" = yes |
| 30230 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30231 | |
| 30232 | cat >>confdefs.h <<\_ACEOF |
| 30233 | #define HAVE_STD_EXT_HASH_SET 1 |
| 30234 | _ACEOF |
| 30235 | |
| 30236 | else |
| 30237 | |
| 30238 | cat >>confdefs.h <<\_ACEOF |
| 30239 | #define HAVE_STD_EXT_HASH_SET 0 |
| 30240 | _ACEOF |
| 30241 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30242 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30243 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30244 | { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5 |
| 30245 | 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] | 30246 | if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then |
| 30247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30248 | else |
| 30249 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30250 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30251 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30255 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30256 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30257 | /* confdefs.h. */ |
| 30258 | _ACEOF |
| 30259 | cat confdefs.h >>conftest.$ac_ext |
| 30260 | cat >>conftest.$ac_ext <<_ACEOF |
| 30261 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30262 | #include <ext/hash_set> |
| 30263 | #ifdef HAVE_NAMESPACES |
| 30264 | using namespace __gnu_cxx; |
| 30265 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30266 | int |
| 30267 | main () |
| 30268 | { |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30269 | hash_set<int> t; |
| 30270 | ; |
| 30271 | return 0; |
| 30272 | } |
| 30273 | _ACEOF |
| 30274 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30275 | if { (ac_try="$ac_compile" |
| 30276 | case "(($ac_try" in |
| 30277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30278 | *) ac_try_echo=$ac_try;; |
| 30279 | esac |
| 30280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30281 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30282 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30283 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30284 | rm -f conftest.er1 |
| 30285 | cat conftest.err >&5 |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30287 | (exit $ac_status); } && { |
| 30288 | test -z "$ac_cxx_werror_flag" || |
| 30289 | test ! -s conftest.err |
| 30290 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30291 | ac_cv_cxx_have_gnu_ext_hash_set=yes |
| 30292 | else |
| 30293 | echo "$as_me: failed program was:" >&5 |
| 30294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30295 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30296 | ac_cv_cxx_have_gnu_ext_hash_set=no |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30297 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30298 | |
| 30299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30300 | ac_ext=c |
| 30301 | ac_cpp='$CPP $CPPFLAGS' |
| 30302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30305 | |
| 30306 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30307 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5 |
| 30308 | echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30309 | if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes |
| 30310 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30311 | |
| 30312 | cat >>confdefs.h <<\_ACEOF |
| 30313 | #define HAVE_GNU_EXT_HASH_SET 1 |
| 30314 | _ACEOF |
| 30315 | |
| 30316 | else |
| 30317 | |
| 30318 | cat >>confdefs.h <<\_ACEOF |
| 30319 | #define HAVE_GNU_EXT_HASH_SET 0 |
| 30320 | _ACEOF |
| 30321 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30322 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30323 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30324 | { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5 |
| 30325 | 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] | 30326 | if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then |
| 30327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30328 | else |
| 30329 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30330 | ac_ext=cpp |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30331 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30332 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30333 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30334 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30335 | |
| 30336 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30337 | /* confdefs.h. */ |
| 30338 | _ACEOF |
| 30339 | cat confdefs.h >>conftest.$ac_ext |
| 30340 | cat >>conftest.$ac_ext <<_ACEOF |
| 30341 | /* end confdefs.h. */ |
| 30342 | #include <hash_set> |
| 30343 | int |
| 30344 | main () |
| 30345 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30346 | hash_set<int> t; return 0; |
| 30347 | ; |
| 30348 | return 0; |
| 30349 | } |
| 30350 | _ACEOF |
| 30351 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30352 | if { (ac_try="$ac_compile" |
| 30353 | case "(($ac_try" in |
| 30354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30355 | *) ac_try_echo=$ac_try;; |
| 30356 | esac |
| 30357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30358 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30359 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30361 | rm -f conftest.er1 |
| 30362 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30364 | (exit $ac_status); } && { |
| 30365 | test -z "$ac_cxx_werror_flag" || |
| 30366 | test ! -s conftest.err |
| 30367 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30368 | ac_cv_cxx_have_global_hash_set=yes |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30369 | else |
| 30370 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30372 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30373 | ac_cv_cxx_have_global_hash_set=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30374 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30375 | |
| 30376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30377 | ac_ext=c |
| 30378 | ac_cpp='$CPP $CPPFLAGS' |
| 30379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30382 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30383 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30384 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5 |
| 30385 | echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; } |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30386 | if test "$ac_cv_cxx_have_global_hash_set" = yes |
| 30387 | then |
John Criswell | 9f01186 | 2004-09-24 18:28:00 +0000 | [diff] [blame] | 30388 | |
| 30389 | cat >>confdefs.h <<\_ACEOF |
| 30390 | #define HAVE_GLOBAL_HASH_SET 1 |
| 30391 | _ACEOF |
| 30392 | |
| 30393 | else |
| 30394 | |
| 30395 | cat >>confdefs.h <<\_ACEOF |
| 30396 | #define HAVE_GLOBAL_HASH_SET 0 |
| 30397 | _ACEOF |
| 30398 | |
Brian Gaeke | 9058349 | 2003-11-10 03:06:28 +0000 | [diff] [blame] | 30399 | fi |
Brian Gaeke | 793c5f2 | 2004-02-23 18:56:02 +0000 | [diff] [blame] | 30400 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30401 | { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5 |
| 30402 | 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] | 30403 | if test "${ac_cv_cxx_have_std_iterator+set}" = set; then |
| 30404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30405 | else |
| 30406 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30407 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30408 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30409 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30410 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30411 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30412 | |
| 30413 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30414 | /* confdefs.h. */ |
| 30415 | _ACEOF |
| 30416 | cat confdefs.h >>conftest.$ac_ext |
| 30417 | cat >>conftest.$ac_ext <<_ACEOF |
| 30418 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30419 | #include <iterator> |
| 30420 | #ifdef HAVE_NAMESPACES |
| 30421 | using namespace std; |
| 30422 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30423 | int |
| 30424 | main () |
| 30425 | { |
| 30426 | iterator<int,int,int> t; return 0; |
| 30427 | ; |
| 30428 | return 0; |
| 30429 | } |
| 30430 | _ACEOF |
| 30431 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30432 | if { (ac_try="$ac_compile" |
| 30433 | case "(($ac_try" in |
| 30434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30435 | *) ac_try_echo=$ac_try;; |
| 30436 | esac |
| 30437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30438 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30439 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30441 | rm -f conftest.er1 |
| 30442 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30444 | (exit $ac_status); } && { |
| 30445 | test -z "$ac_cxx_werror_flag" || |
| 30446 | test ! -s conftest.err |
| 30447 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30448 | ac_cv_cxx_have_std_iterator=yes |
| 30449 | else |
| 30450 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30451 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30452 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30453 | ac_cv_cxx_have_std_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30454 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30455 | |
| 30456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30457 | ac_ext=c |
| 30458 | ac_cpp='$CPP $CPPFLAGS' |
| 30459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30462 | |
| 30463 | |
| 30464 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30465 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5 |
| 30466 | echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 30467 | if test "$ac_cv_cxx_have_std_iterator" = yes |
| 30468 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30469 | |
| 30470 | cat >>confdefs.h <<\_ACEOF |
| 30471 | #define HAVE_STD_ITERATOR 1 |
| 30472 | _ACEOF |
| 30473 | |
| 30474 | else |
| 30475 | |
| 30476 | cat >>confdefs.h <<\_ACEOF |
| 30477 | #define HAVE_STD_ITERATOR 0 |
| 30478 | _ACEOF |
| 30479 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30480 | fi |
| 30481 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30482 | { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5 |
| 30483 | 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] | 30484 | if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then |
| 30485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30486 | else |
| 30487 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30488 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30489 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30490 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30491 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30492 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30493 | |
| 30494 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30495 | /* confdefs.h. */ |
| 30496 | _ACEOF |
| 30497 | cat confdefs.h >>conftest.$ac_ext |
| 30498 | cat >>conftest.$ac_ext <<_ACEOF |
| 30499 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30500 | #include <iterator> |
| 30501 | #ifdef HAVE_NAMESPACES |
| 30502 | using namespace std; |
| 30503 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30504 | int |
| 30505 | main () |
| 30506 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 30507 | bidirectional_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30508 | ; |
| 30509 | return 0; |
| 30510 | } |
| 30511 | _ACEOF |
| 30512 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30513 | if { (ac_try="$ac_compile" |
| 30514 | case "(($ac_try" in |
| 30515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30516 | *) ac_try_echo=$ac_try;; |
| 30517 | esac |
| 30518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30519 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30520 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30522 | rm -f conftest.er1 |
| 30523 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30525 | (exit $ac_status); } && { |
| 30526 | test -z "$ac_cxx_werror_flag" || |
| 30527 | test ! -s conftest.err |
| 30528 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30529 | ac_cv_cxx_have_bi_iterator=yes |
| 30530 | else |
| 30531 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30533 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30534 | ac_cv_cxx_have_bi_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30535 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30536 | |
| 30537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30538 | ac_ext=c |
| 30539 | ac_cpp='$CPP $CPPFLAGS' |
| 30540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30543 | |
| 30544 | |
| 30545 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30546 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5 |
| 30547 | echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 30548 | if test "$ac_cv_cxx_have_bi_iterator" = yes |
| 30549 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30550 | |
| 30551 | cat >>confdefs.h <<\_ACEOF |
| 30552 | #define HAVE_BI_ITERATOR 1 |
| 30553 | _ACEOF |
| 30554 | |
| 30555 | else |
| 30556 | |
| 30557 | cat >>confdefs.h <<\_ACEOF |
| 30558 | #define HAVE_BI_ITERATOR 0 |
| 30559 | _ACEOF |
| 30560 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30561 | fi |
| 30562 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30563 | { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5 |
| 30564 | 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] | 30565 | if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then |
| 30566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30567 | else |
| 30568 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30569 | ac_ext=cpp |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30570 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30571 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30572 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30573 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30574 | |
| 30575 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30576 | /* confdefs.h. */ |
| 30577 | _ACEOF |
| 30578 | cat confdefs.h >>conftest.$ac_ext |
| 30579 | cat >>conftest.$ac_ext <<_ACEOF |
| 30580 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30581 | #include <iterator> |
| 30582 | #ifdef HAVE_NAMESPACES |
| 30583 | using namespace std; |
| 30584 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30585 | int |
| 30586 | main () |
| 30587 | { |
John Criswell | c78022e | 2003-07-29 19:11:58 +0000 | [diff] [blame] | 30588 | forward_iterator<int,int> t; return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30589 | ; |
| 30590 | return 0; |
| 30591 | } |
| 30592 | _ACEOF |
| 30593 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30594 | if { (ac_try="$ac_compile" |
| 30595 | case "(($ac_try" in |
| 30596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30597 | *) ac_try_echo=$ac_try;; |
| 30598 | esac |
| 30599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30600 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30601 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30603 | rm -f conftest.er1 |
| 30604 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30606 | (exit $ac_status); } && { |
| 30607 | test -z "$ac_cxx_werror_flag" || |
| 30608 | test ! -s conftest.err |
| 30609 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30610 | ac_cv_cxx_have_fwd_iterator=yes |
| 30611 | else |
| 30612 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 30613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30614 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30615 | ac_cv_cxx_have_fwd_iterator=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30616 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30617 | |
| 30618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30619 | ac_ext=c |
| 30620 | ac_cpp='$CPP $CPPFLAGS' |
| 30621 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30622 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30623 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30624 | |
| 30625 | |
| 30626 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30627 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5 |
| 30628 | echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; } |
Brian Gaeke | 295d4b8 | 2004-02-23 18:16:06 +0000 | [diff] [blame] | 30629 | if test "$ac_cv_cxx_have_fwd_iterator" = yes |
| 30630 | then |
John Criswell | 4046846 | 2004-09-24 21:19:06 +0000 | [diff] [blame] | 30631 | |
| 30632 | cat >>confdefs.h <<\_ACEOF |
| 30633 | #define HAVE_FWD_ITERATOR 1 |
| 30634 | _ACEOF |
| 30635 | |
| 30636 | else |
| 30637 | |
| 30638 | cat >>confdefs.h <<\_ACEOF |
| 30639 | #define HAVE_FWD_ITERATOR 0 |
| 30640 | _ACEOF |
| 30641 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 30642 | fi |
| 30643 | |
| 30644 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30645 | { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 |
| 30646 | echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30647 | if test "${ac_cv_func_isnan_in_math_h+set}" = set; then |
| 30648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30649 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30650 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30651 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30655 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30656 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30657 | /* confdefs.h. */ |
| 30658 | _ACEOF |
| 30659 | cat confdefs.h >>conftest.$ac_ext |
| 30660 | cat >>conftest.$ac_ext <<_ACEOF |
| 30661 | /* end confdefs.h. */ |
| 30662 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30663 | int |
| 30664 | main () |
| 30665 | { |
| 30666 | float f; isnan(f); |
| 30667 | ; |
| 30668 | return 0; |
| 30669 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30670 | _ACEOF |
| 30671 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30672 | if { (ac_try="$ac_compile" |
| 30673 | case "(($ac_try" in |
| 30674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30675 | *) ac_try_echo=$ac_try;; |
| 30676 | esac |
| 30677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30678 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30679 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30681 | rm -f conftest.er1 |
| 30682 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30684 | (exit $ac_status); } && { |
| 30685 | test -z "$ac_cxx_werror_flag" || |
| 30686 | test ! -s conftest.err |
| 30687 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30688 | ac_cv_func_isnan_in_math_h=yes |
| 30689 | else |
| 30690 | echo "$as_me: failed program was:" >&5 |
| 30691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30692 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30693 | ac_cv_func_isnan_in_math_h=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30694 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30695 | |
| 30696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30697 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30698 | ac_cpp='$CPP $CPPFLAGS' |
| 30699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30702 | |
| 30703 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30704 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 |
| 30705 | echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30706 | |
| 30707 | |
| 30708 | if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30709 | |
| 30710 | cat >>confdefs.h <<\_ACEOF |
| 30711 | #define HAVE_ISNAN_IN_MATH_H 1 |
| 30712 | _ACEOF |
| 30713 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30714 | fi |
| 30715 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30716 | { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 |
| 30717 | echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30718 | if test "${ac_cv_func_isnan_in_cmath+set}" = set; then |
| 30719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30720 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30721 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30722 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30723 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30724 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30725 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30726 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30727 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30728 | /* confdefs.h. */ |
| 30729 | _ACEOF |
| 30730 | cat confdefs.h >>conftest.$ac_ext |
| 30731 | cat >>conftest.$ac_ext <<_ACEOF |
| 30732 | /* end confdefs.h. */ |
| 30733 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30734 | int |
| 30735 | main () |
| 30736 | { |
| 30737 | float f; isnan(f); |
| 30738 | ; |
| 30739 | return 0; |
| 30740 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30741 | _ACEOF |
| 30742 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30743 | if { (ac_try="$ac_compile" |
| 30744 | case "(($ac_try" in |
| 30745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30746 | *) ac_try_echo=$ac_try;; |
| 30747 | esac |
| 30748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30749 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30750 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30752 | rm -f conftest.er1 |
| 30753 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30755 | (exit $ac_status); } && { |
| 30756 | test -z "$ac_cxx_werror_flag" || |
| 30757 | test ! -s conftest.err |
| 30758 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30759 | ac_cv_func_isnan_in_cmath=yes |
| 30760 | else |
| 30761 | echo "$as_me: failed program was:" >&5 |
| 30762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30763 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30764 | ac_cv_func_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30765 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30766 | |
| 30767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30768 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30769 | ac_cpp='$CPP $CPPFLAGS' |
| 30770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30773 | |
| 30774 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30775 | { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 |
| 30776 | echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30777 | |
| 30778 | if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30779 | |
| 30780 | cat >>confdefs.h <<\_ACEOF |
| 30781 | #define HAVE_ISNAN_IN_CMATH 1 |
| 30782 | _ACEOF |
| 30783 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30784 | fi |
| 30785 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30786 | { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 |
| 30787 | echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30788 | if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then |
| 30789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30790 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30791 | ac_ext=cpp |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30792 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30796 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30797 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30798 | /* confdefs.h. */ |
| 30799 | _ACEOF |
| 30800 | cat confdefs.h >>conftest.$ac_ext |
| 30801 | cat >>conftest.$ac_ext <<_ACEOF |
| 30802 | /* end confdefs.h. */ |
| 30803 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30804 | int |
| 30805 | main () |
| 30806 | { |
| 30807 | float f; std::isnan(f); |
| 30808 | ; |
| 30809 | return 0; |
| 30810 | } |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30811 | _ACEOF |
| 30812 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30813 | if { (ac_try="$ac_compile" |
| 30814 | case "(($ac_try" in |
| 30815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30816 | *) ac_try_echo=$ac_try;; |
| 30817 | esac |
| 30818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30819 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30820 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30821 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30822 | rm -f conftest.er1 |
| 30823 | cat conftest.err >&5 |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30825 | (exit $ac_status); } && { |
| 30826 | test -z "$ac_cxx_werror_flag" || |
| 30827 | test ! -s conftest.err |
| 30828 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30829 | ac_cv_func_std_isnan_in_cmath=yes |
| 30830 | else |
| 30831 | echo "$as_me: failed program was:" >&5 |
| 30832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30833 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30834 | ac_cv_func_std_isnan_in_cmath=no |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30835 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30836 | |
| 30837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30838 | ac_ext=c |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30839 | ac_cpp='$CPP $CPPFLAGS' |
| 30840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30843 | |
| 30844 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30845 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 |
| 30846 | echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30847 | |
| 30848 | if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30849 | |
| 30850 | cat >>confdefs.h <<\_ACEOF |
| 30851 | #define HAVE_STD_ISNAN_IN_CMATH 1 |
| 30852 | _ACEOF |
| 30853 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30854 | fi |
Brian Gaeke | 6f5b621 | 2004-06-22 23:47:13 +0000 | [diff] [blame] | 30855 | |
| 30856 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30857 | { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 |
| 30858 | echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30859 | if test "${ac_cv_func_isinf_in_math_h+set}" = set; then |
| 30860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30861 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30862 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30863 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30867 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30868 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30869 | /* confdefs.h. */ |
| 30870 | _ACEOF |
| 30871 | cat confdefs.h >>conftest.$ac_ext |
| 30872 | cat >>conftest.$ac_ext <<_ACEOF |
| 30873 | /* end confdefs.h. */ |
| 30874 | #include <math.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30875 | int |
| 30876 | main () |
| 30877 | { |
| 30878 | float f; isinf(f); |
| 30879 | ; |
| 30880 | return 0; |
| 30881 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30882 | _ACEOF |
| 30883 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30884 | if { (ac_try="$ac_compile" |
| 30885 | case "(($ac_try" in |
| 30886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30887 | *) ac_try_echo=$ac_try;; |
| 30888 | esac |
| 30889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30890 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30891 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30893 | rm -f conftest.er1 |
| 30894 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30896 | (exit $ac_status); } && { |
| 30897 | test -z "$ac_cxx_werror_flag" || |
| 30898 | test ! -s conftest.err |
| 30899 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30900 | ac_cv_func_isinf_in_math_h=yes |
| 30901 | else |
| 30902 | echo "$as_me: failed program was:" >&5 |
| 30903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30904 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30905 | ac_cv_func_isinf_in_math_h=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30906 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30907 | |
| 30908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30909 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30910 | ac_cpp='$CPP $CPPFLAGS' |
| 30911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30914 | |
| 30915 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30916 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 |
| 30917 | echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30918 | |
| 30919 | if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30920 | |
| 30921 | cat >>confdefs.h <<\_ACEOF |
| 30922 | #define HAVE_ISINF_IN_MATH_H 1 |
| 30923 | _ACEOF |
| 30924 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30925 | fi |
| 30926 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30927 | { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 |
| 30928 | echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30929 | if test "${ac_cv_func_isinf_in_cmath+set}" = set; then |
| 30930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 30931 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30932 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30933 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 30934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 30937 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30938 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30939 | /* confdefs.h. */ |
| 30940 | _ACEOF |
| 30941 | cat confdefs.h >>conftest.$ac_ext |
| 30942 | cat >>conftest.$ac_ext <<_ACEOF |
| 30943 | /* end confdefs.h. */ |
| 30944 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30945 | int |
| 30946 | main () |
| 30947 | { |
| 30948 | float f; isinf(f); |
| 30949 | ; |
| 30950 | return 0; |
| 30951 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30952 | _ACEOF |
| 30953 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30954 | if { (ac_try="$ac_compile" |
| 30955 | case "(($ac_try" in |
| 30956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 30957 | *) ac_try_echo=$ac_try;; |
| 30958 | esac |
| 30959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 30960 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30961 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 30962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 30963 | rm -f conftest.er1 |
| 30964 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 30966 | (exit $ac_status); } && { |
| 30967 | test -z "$ac_cxx_werror_flag" || |
| 30968 | test ! -s conftest.err |
| 30969 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30970 | ac_cv_func_isinf_in_cmath=yes |
| 30971 | else |
| 30972 | echo "$as_me: failed program was:" >&5 |
| 30973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 30974 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30975 | ac_cv_func_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30976 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30977 | |
| 30978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30979 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30980 | ac_cpp='$CPP $CPPFLAGS' |
| 30981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 30982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 30983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 30984 | |
| 30985 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30986 | { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 |
| 30987 | echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30988 | |
| 30989 | if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30990 | |
| 30991 | cat >>confdefs.h <<\_ACEOF |
| 30992 | #define HAVE_ISINF_IN_CMATH 1 |
| 30993 | _ACEOF |
| 30994 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 30995 | fi |
| 30996 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 30997 | { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 |
| 30998 | echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 30999 | if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then |
| 31000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31001 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31002 | ac_ext=cpp |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31003 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31004 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31005 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31006 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31007 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31008 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31009 | /* confdefs.h. */ |
| 31010 | _ACEOF |
| 31011 | cat confdefs.h >>conftest.$ac_ext |
| 31012 | cat >>conftest.$ac_ext <<_ACEOF |
| 31013 | /* end confdefs.h. */ |
| 31014 | #include <cmath> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31015 | int |
| 31016 | main () |
| 31017 | { |
| 31018 | float f; std::isinf(f)} |
| 31019 | ; |
| 31020 | return 0; |
| 31021 | } |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31022 | _ACEOF |
| 31023 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31024 | if { (ac_try="$ac_compile" |
| 31025 | case "(($ac_try" in |
| 31026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31027 | *) ac_try_echo=$ac_try;; |
| 31028 | esac |
| 31029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31030 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31031 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31033 | rm -f conftest.er1 |
| 31034 | cat conftest.err >&5 |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31036 | (exit $ac_status); } && { |
| 31037 | test -z "$ac_cxx_werror_flag" || |
| 31038 | test ! -s conftest.err |
| 31039 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31040 | ac_cv_func_std_isinf_in_cmath=yes |
| 31041 | else |
| 31042 | echo "$as_me: failed program was:" >&5 |
| 31043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31044 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31045 | ac_cv_func_std_isinf_in_cmath=no |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31046 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31047 | |
| 31048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31049 | ac_ext=c |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31050 | ac_cpp='$CPP $CPPFLAGS' |
| 31051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31054 | |
| 31055 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31056 | { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 |
| 31057 | echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31058 | |
| 31059 | if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then |
Brian Gaeke | 52a551d | 2004-07-21 03:14:12 +0000 | [diff] [blame] | 31060 | |
| 31061 | cat >>confdefs.h <<\_ACEOF |
| 31062 | #define HAVE_STD_ISINF_IN_CMATH 1 |
| 31063 | _ACEOF |
| 31064 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31065 | fi |
| 31066 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31067 | { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 |
| 31068 | echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31069 | if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then |
| 31070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31071 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31072 | ac_ext=cpp |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31073 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 31074 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31075 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31076 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 31077 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31078 | cat >conftest.$ac_ext <<_ACEOF |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31079 | /* confdefs.h. */ |
| 31080 | _ACEOF |
| 31081 | cat confdefs.h >>conftest.$ac_ext |
| 31082 | cat >>conftest.$ac_ext <<_ACEOF |
| 31083 | /* end confdefs.h. */ |
| 31084 | #include <ieeefp.h> |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31085 | int |
| 31086 | main () |
| 31087 | { |
| 31088 | float f; finite(f); |
| 31089 | ; |
| 31090 | return 0; |
| 31091 | } |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31092 | _ACEOF |
| 31093 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31094 | if { (ac_try="$ac_compile" |
| 31095 | case "(($ac_try" in |
| 31096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31097 | *) ac_try_echo=$ac_try;; |
| 31098 | esac |
| 31099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31100 | (eval "$ac_compile") 2>conftest.er1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31101 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31103 | rm -f conftest.er1 |
| 31104 | cat conftest.err >&5 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31106 | (exit $ac_status); } && { |
| 31107 | test -z "$ac_cxx_werror_flag" || |
| 31108 | test ! -s conftest.err |
| 31109 | } && test -s conftest.$ac_objext; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31110 | ac_cv_func_finite_in_ieeefp_h=yes |
| 31111 | else |
| 31112 | echo "$as_me: failed program was:" >&5 |
| 31113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31114 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31115 | ac_cv_func_finite_in_ieeefp_h=no |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31116 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31117 | |
| 31118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31119 | ac_ext=c |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31120 | ac_cpp='$CPP $CPPFLAGS' |
| 31121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31124 | |
| 31125 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31126 | { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 |
| 31127 | echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31128 | |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 31129 | if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31130 | |
| 31131 | cat >>confdefs.h <<\_ACEOF |
Brian Gaeke | 6802b55 | 2004-10-28 05:06:45 +0000 | [diff] [blame] | 31132 | #define HAVE_FINITE_IN_IEEEFP_H 1 |
Brian Gaeke | d59a647 | 2004-07-21 03:33:58 +0000 | [diff] [blame] | 31133 | _ACEOF |
| 31134 | |
Reid Spencer | abec8f9 | 2004-10-27 23:03:44 +0000 | [diff] [blame] | 31135 | fi |
| 31136 | |
| 31137 | |
| 31138 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31139 | if test "$llvm_cv_platform_type" = "Unix" ; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31140 | |
| 31141 | |
| 31142 | for ac_header in stdlib.h unistd.h |
| 31143 | do |
| 31144 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31146 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31148 | 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] | 31149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31150 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31151 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31152 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31153 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31154 | else |
| 31155 | # Is the header compilable? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31156 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 31157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31158 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31159 | /* confdefs.h. */ |
| 31160 | _ACEOF |
| 31161 | cat confdefs.h >>conftest.$ac_ext |
| 31162 | cat >>conftest.$ac_ext <<_ACEOF |
| 31163 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31164 | $ac_includes_default |
| 31165 | #include <$ac_header> |
| 31166 | _ACEOF |
| 31167 | rm -f conftest.$ac_objext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31168 | if { (ac_try="$ac_compile" |
| 31169 | case "(($ac_try" in |
| 31170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31171 | *) ac_try_echo=$ac_try;; |
| 31172 | esac |
| 31173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31174 | (eval "$ac_compile") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31175 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31177 | rm -f conftest.er1 |
| 31178 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31180 | (exit $ac_status); } && { |
| 31181 | test -z "$ac_c_werror_flag" || |
| 31182 | test ! -s conftest.err |
| 31183 | } && test -s conftest.$ac_objext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31184 | ac_header_compiler=yes |
| 31185 | else |
| 31186 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31188 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31189 | ac_header_compiler=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31190 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31191 | |
| 31192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31193 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 31194 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31195 | |
| 31196 | # Is the header present? |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31197 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 31198 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31199 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31200 | /* confdefs.h. */ |
| 31201 | _ACEOF |
| 31202 | cat confdefs.h >>conftest.$ac_ext |
| 31203 | cat >>conftest.$ac_ext <<_ACEOF |
| 31204 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31205 | #include <$ac_header> |
| 31206 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31207 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 31208 | case "(($ac_try" in |
| 31209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31210 | *) ac_try_echo=$ac_try;; |
| 31211 | esac |
| 31212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31213 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31214 | ac_status=$? |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31215 | grep -v '^ *+' conftest.er1 >conftest.err |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31216 | rm -f conftest.er1 |
| 31217 | cat conftest.err >&5 |
| 31218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31219 | (exit $ac_status); } >/dev/null && { |
| 31220 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 31221 | test ! -s conftest.err |
| 31222 | }; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31223 | ac_header_preproc=yes |
| 31224 | else |
| 31225 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31227 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31228 | ac_header_preproc=no |
| 31229 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31230 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31231 | rm -f conftest.err conftest.$ac_ext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31232 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 31233 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31234 | |
| 31235 | # So? What about this header? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31236 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 31237 | yes:no: ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31238 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 31239 | 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] | 31240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 31241 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 31242 | ac_header_preproc=yes |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 31243 | ;; |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31244 | no:yes:* ) |
Brian Gaeke | 0a62133 | 2004-09-08 20:38:05 +0000 | [diff] [blame] | 31245 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 31246 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31247 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 31248 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 31249 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 31250 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 31251 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 31252 | 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] | 31253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 31254 | 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] | 31255 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 31256 | 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] | 31257 | ( cat <<\_ASBOX |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31258 | ## ----------------------------------- ## |
| 31259 | ## Report this to llvmbugs@cs.uiuc.edu ## |
| 31260 | ## ----------------------------------- ## |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31261 | _ASBOX |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31262 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31263 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31264 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31265 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 31266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 31267 | 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] | 31268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31269 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31270 | eval "$as_ac_Header=\$ac_header_preproc" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31271 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31272 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 31273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31274 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31275 | |
| 31276 | fi |
| 31277 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 31278 | cat >>confdefs.h <<_ACEOF |
| 31279 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31280 | _ACEOF |
| 31281 | |
| 31282 | fi |
| 31283 | |
| 31284 | done |
| 31285 | |
| 31286 | |
| 31287 | for ac_func in getpagesize |
| 31288 | do |
| 31289 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31290 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31291 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31292 | 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] | 31293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31294 | else |
| 31295 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31296 | /* confdefs.h. */ |
| 31297 | _ACEOF |
| 31298 | cat confdefs.h >>conftest.$ac_ext |
| 31299 | cat >>conftest.$ac_ext <<_ACEOF |
| 31300 | /* end confdefs.h. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31301 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31303 | #define $ac_func innocuous_$ac_func |
| 31304 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31305 | /* System header to define __stub macros and hopefully few prototypes, |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31306 | which can conflict with char $ac_func (); below. |
| 31307 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31308 | <limits.h> exists even on freestanding compilers. */ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31309 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31310 | #ifdef __STDC__ |
| 31311 | # include <limits.h> |
| 31312 | #else |
| 31313 | # include <assert.h> |
| 31314 | #endif |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31315 | |
| 31316 | #undef $ac_func |
| 31317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31318 | /* Override any GCC internal prototype to avoid an error. |
| 31319 | Use char because int might match the return type of a GCC |
| 31320 | builtin and then its argument prototype would still apply. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31321 | #ifdef __cplusplus |
| 31322 | extern "C" |
| 31323 | #endif |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31324 | char $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31325 | /* The GNU C library defines this for functions which it implements |
| 31326 | to always fail with ENOSYS. Some functions are actually named |
| 31327 | something starting with __ and the normal name is an alias. */ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31328 | #if defined __stub_$ac_func || defined __stub___$ac_func |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31329 | choke me |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31330 | #endif |
| 31331 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31332 | int |
| 31333 | main () |
| 31334 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31335 | return $ac_func (); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31336 | ; |
| 31337 | return 0; |
| 31338 | } |
| 31339 | _ACEOF |
| 31340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31341 | if { (ac_try="$ac_link" |
| 31342 | case "(($ac_try" in |
| 31343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31344 | *) ac_try_echo=$ac_try;; |
| 31345 | esac |
| 31346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31347 | (eval "$ac_link") 2>conftest.er1 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31348 | ac_status=$? |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31350 | rm -f conftest.er1 |
| 31351 | cat conftest.err >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31353 | (exit $ac_status); } && { |
| 31354 | test -z "$ac_c_werror_flag" || |
| 31355 | test ! -s conftest.err |
| 31356 | } && test -s conftest$ac_exeext && |
| 31357 | $as_test_x conftest$ac_exeext; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31358 | eval "$as_ac_var=yes" |
| 31359 | else |
| 31360 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31362 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31363 | eval "$as_ac_var=no" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31364 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31365 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31366 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31367 | conftest$ac_exeext conftest.$ac_ext |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31368 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31369 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31371 | echo "${ECHO_T}$ac_res" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31372 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31373 | cat >>confdefs.h <<_ACEOF |
| 31374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31375 | _ACEOF |
| 31376 | |
| 31377 | fi |
| 31378 | done |
| 31379 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31380 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 31381 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31382 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 31383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31384 | else |
| 31385 | if test "$cross_compiling" = yes; then |
| 31386 | ac_cv_func_mmap_fixed_mapped=no |
| 31387 | else |
| 31388 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31389 | /* confdefs.h. */ |
| 31390 | _ACEOF |
| 31391 | cat confdefs.h >>conftest.$ac_ext |
| 31392 | cat >>conftest.$ac_ext <<_ACEOF |
| 31393 | /* end confdefs.h. */ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31394 | $ac_includes_default |
| 31395 | /* malloc might have been renamed as rpl_malloc. */ |
| 31396 | #undef malloc |
| 31397 | |
| 31398 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 31399 | Here is a matrix of mmap possibilities: |
| 31400 | mmap private not fixed |
| 31401 | mmap private fixed at somewhere currently unmapped |
| 31402 | mmap private fixed at somewhere already mapped |
| 31403 | mmap shared not fixed |
| 31404 | mmap shared fixed at somewhere currently unmapped |
| 31405 | mmap shared fixed at somewhere already mapped |
| 31406 | For private mappings, we should verify that changes cannot be read() |
| 31407 | back from the file, nor mmap's back from the file at a different |
| 31408 | address. (There have been systems where private was not correctly |
| 31409 | implemented like the infamous i386 svr4.0, and systems where the |
| 31410 | VM page cache was not coherent with the file system buffer cache |
| 31411 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 31412 | For shared mappings, we should conversely verify that changes get |
| 31413 | propagated back to all the places they're supposed to be. |
| 31414 | |
| 31415 | Grep wants private fixed already mapped. |
| 31416 | The main things grep needs to know about mmap are: |
| 31417 | * does it exist and is it safe to write into the mmap'd area |
| 31418 | * how to use it (BSD variants) */ |
| 31419 | |
| 31420 | #include <fcntl.h> |
| 31421 | #include <sys/mman.h> |
| 31422 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31423 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31424 | char *malloc (); |
| 31425 | #endif |
| 31426 | |
| 31427 | /* This mess was copied from the GNU getpagesize.h. */ |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31428 | #ifndef HAVE_GETPAGESIZE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31429 | /* Assume that all systems that can run configure have sys/param.h. */ |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31430 | # ifndef HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31431 | # define HAVE_SYS_PARAM_H 1 |
| 31432 | # endif |
| 31433 | |
| 31434 | # ifdef _SC_PAGESIZE |
| 31435 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 31436 | # else /* no _SC_PAGESIZE */ |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31437 | # ifdef HAVE_SYS_PARAM_H |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31438 | # include <sys/param.h> |
| 31439 | # ifdef EXEC_PAGESIZE |
| 31440 | # define getpagesize() EXEC_PAGESIZE |
| 31441 | # else /* no EXEC_PAGESIZE */ |
| 31442 | # ifdef NBPG |
| 31443 | # define getpagesize() NBPG * CLSIZE |
| 31444 | # ifndef CLSIZE |
| 31445 | # define CLSIZE 1 |
| 31446 | # endif /* no CLSIZE */ |
| 31447 | # else /* no NBPG */ |
| 31448 | # ifdef NBPC |
| 31449 | # define getpagesize() NBPC |
| 31450 | # else /* no NBPC */ |
| 31451 | # ifdef PAGESIZE |
| 31452 | # define getpagesize() PAGESIZE |
| 31453 | # endif /* PAGESIZE */ |
| 31454 | # endif /* no NBPC */ |
| 31455 | # endif /* no NBPG */ |
| 31456 | # endif /* no EXEC_PAGESIZE */ |
| 31457 | # else /* no HAVE_SYS_PARAM_H */ |
| 31458 | # define getpagesize() 8192 /* punt totally */ |
| 31459 | # endif /* no HAVE_SYS_PARAM_H */ |
| 31460 | # endif /* no _SC_PAGESIZE */ |
| 31461 | |
| 31462 | #endif /* no HAVE_GETPAGESIZE */ |
| 31463 | |
| 31464 | int |
| 31465 | main () |
| 31466 | { |
| 31467 | char *data, *data2, *data3; |
| 31468 | int i, pagesize; |
| 31469 | int fd; |
| 31470 | |
| 31471 | pagesize = getpagesize (); |
| 31472 | |
| 31473 | /* First, make a file with some known garbage in it. */ |
| 31474 | data = (char *) malloc (pagesize); |
| 31475 | if (!data) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31476 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31477 | for (i = 0; i < pagesize; ++i) |
| 31478 | *(data + i) = rand (); |
| 31479 | umask (0); |
| 31480 | fd = creat ("conftest.mmap", 0600); |
| 31481 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31482 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31483 | if (write (fd, data, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31484 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31485 | close (fd); |
| 31486 | |
| 31487 | /* Next, try to mmap the file at a fixed address which already has |
| 31488 | something else allocated at it. If we can, also make sure that |
| 31489 | we see the same garbage. */ |
| 31490 | fd = open ("conftest.mmap", O_RDWR); |
| 31491 | if (fd < 0) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31492 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31493 | data2 = (char *) malloc (2 * pagesize); |
| 31494 | if (!data2) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31495 | return 1; |
| 31496 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31497 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31498 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31499 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31500 | for (i = 0; i < pagesize; ++i) |
| 31501 | if (*(data + i) != *(data2 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31502 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31503 | |
| 31504 | /* Finally, make sure that changes to the mapped area do not |
| 31505 | percolate back to the file as seen by read(). (This is a bug on |
| 31506 | some variants of i386 svr4.0.) */ |
| 31507 | for (i = 0; i < pagesize; ++i) |
| 31508 | *(data2 + i) = *(data2 + i) + 1; |
| 31509 | data3 = (char *) malloc (pagesize); |
| 31510 | if (!data3) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31511 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31512 | if (read (fd, data3, pagesize) != pagesize) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31513 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31514 | for (i = 0; i < pagesize; ++i) |
| 31515 | if (*(data + i) != *(data3 + i)) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31516 | return 1; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31517 | close (fd); |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31518 | return 0; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31519 | } |
| 31520 | _ACEOF |
| 31521 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31522 | if { (ac_try="$ac_link" |
| 31523 | case "(($ac_try" in |
| 31524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31525 | *) ac_try_echo=$ac_try;; |
| 31526 | esac |
| 31527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31528 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31529 | ac_status=$? |
| 31530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31532 | { (case "(($ac_try" in |
| 31533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31534 | *) ac_try_echo=$ac_try;; |
| 31535 | esac |
| 31536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31537 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31538 | ac_status=$? |
| 31539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31540 | (exit $ac_status); }; }; then |
| 31541 | ac_cv_func_mmap_fixed_mapped=yes |
| 31542 | else |
| 31543 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31544 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31546 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31547 | ( exit $ac_status ) |
| 31548 | ac_cv_func_mmap_fixed_mapped=no |
| 31549 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31550 | 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] | 31551 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31552 | |
| 31553 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31554 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31555 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 31556 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31557 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 31558 | |
| 31559 | cat >>confdefs.h <<\_ACEOF |
| 31560 | #define HAVE_MMAP 1 |
| 31561 | _ACEOF |
| 31562 | |
| 31563 | fi |
| 31564 | rm -f conftest.mmap |
| 31565 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31566 | { echo "$as_me:$LINENO: checking for mmap of files" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31567 | echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31568 | if test "${ac_cv_func_mmap_file+set}" = set; then |
| 31569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31570 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31571 | ac_ext=c |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31572 | ac_cpp='$CPP $CPPFLAGS' |
| 31573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31576 | |
| 31577 | if test "$cross_compiling" = yes; then |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 31578 | ac_cv_func_mmap_file=no |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31579 | else |
| 31580 | cat >conftest.$ac_ext <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31581 | |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31582 | /* confdefs.h. */ |
| 31583 | _ACEOF |
| 31584 | cat confdefs.h >>conftest.$ac_ext |
| 31585 | cat >>conftest.$ac_ext <<_ACEOF |
| 31586 | /* end confdefs.h. */ |
| 31587 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31588 | #include <sys/types.h> |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 31589 | #include <sys/mman.h> |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31590 | #include <fcntl.h> |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31591 | |
| 31592 | int |
| 31593 | main () |
| 31594 | { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31595 | |
| 31596 | int fd; |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31597 | fd = creat ("foo",0777); |
| 31598 | fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); |
| 31599 | unlink ("foo"); |
Reid Spencer | 8b93e7a | 2004-09-21 17:14:44 +0000 | [diff] [blame] | 31600 | return (fd != (int) MAP_FAILED); |
Reid Spencer | 777ce17 | 2004-09-20 04:09:56 +0000 | [diff] [blame] | 31601 | ; |
| 31602 | return 0; |
| 31603 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31604 | _ACEOF |
| 31605 | rm -f conftest$ac_exeext |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31606 | if { (ac_try="$ac_link" |
| 31607 | case "(($ac_try" in |
| 31608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31609 | *) ac_try_echo=$ac_try;; |
| 31610 | esac |
| 31611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31612 | (eval "$ac_link") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31613 | ac_status=$? |
| 31614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31616 | { (case "(($ac_try" in |
| 31617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31618 | *) ac_try_echo=$ac_try;; |
| 31619 | esac |
| 31620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31621 | (eval "$ac_try") 2>&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31622 | ac_status=$? |
| 31623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 31624 | (exit $ac_status); }; }; then |
| 31625 | ac_cv_func_mmap_file=yes |
| 31626 | else |
| 31627 | echo "$as_me: program exited with status $ac_status" >&5 |
| 31628 | echo "$as_me: failed program was:" >&5 |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 31629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31630 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31631 | ( exit $ac_status ) |
| 31632 | ac_cv_func_mmap_file=no |
| 31633 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31634 | 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] | 31635 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31636 | |
| 31637 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31638 | ac_ext=c |
| 31639 | ac_cpp='$CPP $CPPFLAGS' |
| 31640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 31641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 31642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 31643 | |
| 31644 | |
| 31645 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31646 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 |
| 31647 | echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31648 | if test "$ac_cv_func_mmap_file" = yes; then |
John Criswell | 5ab7346 | 2003-10-09 15:44:28 +0000 | [diff] [blame] | 31649 | |
| 31650 | cat >>confdefs.h <<\_ACEOF |
| 31651 | #define HAVE_MMAP_FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31652 | _ACEOF |
| 31653 | |
| 31654 | MMAP_FILE=yes |
| 31655 | |
| 31656 | fi |
| 31657 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31658 | { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31659 | 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] | 31660 | if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then |
| 31661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31662 | else |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 31663 | if test "$llvm_cv_os_type" = "Interix" ; then |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31664 | ac_cv_need_dev_zero_for_mmap=yes |
| 31665 | else |
| 31666 | ac_cv_need_dev_zero_for_mmap=no |
| 31667 | fi |
| 31668 | |
| 31669 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31670 | { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 |
| 31671 | echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } |
Reid Spencer | 7931a78 | 2004-12-27 06:15:02 +0000 | [diff] [blame] | 31672 | if test "$ac_cv_need_dev_zero_for_mmap" = yes; then |
| 31673 | |
| 31674 | cat >>confdefs.h <<\_ACEOF |
| 31675 | #define NEED_DEV_ZERO_FOR_MMAP 1 |
| 31676 | _ACEOF |
| 31677 | |
| 31678 | fi |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 31679 | |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31680 | if test "$ac_cv_func_mmap_fixed_mapped" = "no" |
| 31681 | then |
| 31682 | { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 |
Reid Spencer | 582a23c | 2004-12-29 07:07:57 +0000 | [diff] [blame] | 31683 | echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31684 | fi |
| 31685 | if test "$ac_cv_func_mmap_file" = "no" |
| 31686 | then |
| 31687 | { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31688 | echo "$as_me: WARNING: mmap() of files required but not found" >&2;} |
Reid Spencer | 30fe526 | 2007-01-20 07:48:49 +0000 | [diff] [blame] | 31689 | fi |
John Criswell | b13092b | 2003-07-22 21:00:24 +0000 | [diff] [blame] | 31690 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 31691 | |
| 31692 | |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 31693 | |
| 31694 | for ac_func in __dso_handle |
| 31695 | do |
| 31696 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31697 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 31698 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 31699 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 31700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31701 | else |
| 31702 | cat >conftest.$ac_ext <<_ACEOF |
| 31703 | /* confdefs.h. */ |
| 31704 | _ACEOF |
| 31705 | cat confdefs.h >>conftest.$ac_ext |
| 31706 | cat >>conftest.$ac_ext <<_ACEOF |
| 31707 | /* end confdefs.h. */ |
| 31708 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 31709 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 31710 | #define $ac_func innocuous_$ac_func |
| 31711 | |
| 31712 | /* System header to define __stub macros and hopefully few prototypes, |
| 31713 | which can conflict with char $ac_func (); below. |
| 31714 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 31715 | <limits.h> exists even on freestanding compilers. */ |
| 31716 | |
| 31717 | #ifdef __STDC__ |
| 31718 | # include <limits.h> |
| 31719 | #else |
| 31720 | # include <assert.h> |
| 31721 | #endif |
| 31722 | |
| 31723 | #undef $ac_func |
| 31724 | |
| 31725 | /* Override any GCC internal prototype to avoid an error. |
| 31726 | Use char because int might match the return type of a GCC |
| 31727 | builtin and then its argument prototype would still apply. */ |
| 31728 | #ifdef __cplusplus |
| 31729 | extern "C" |
| 31730 | #endif |
| 31731 | char $ac_func (); |
| 31732 | /* The GNU C library defines this for functions which it implements |
| 31733 | to always fail with ENOSYS. Some functions are actually named |
| 31734 | something starting with __ and the normal name is an alias. */ |
| 31735 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 31736 | choke me |
| 31737 | #endif |
| 31738 | |
| 31739 | int |
| 31740 | main () |
| 31741 | { |
| 31742 | return $ac_func (); |
| 31743 | ; |
| 31744 | return 0; |
| 31745 | } |
| 31746 | _ACEOF |
| 31747 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 31748 | if { (ac_try="$ac_link" |
| 31749 | case "(($ac_try" in |
| 31750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 31751 | *) ac_try_echo=$ac_try;; |
| 31752 | esac |
| 31753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 31754 | (eval "$ac_link") 2>conftest.er1 |
| 31755 | ac_status=$? |
| 31756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 31757 | rm -f conftest.er1 |
| 31758 | cat conftest.err >&5 |
| 31759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31760 | (exit $ac_status); } && { |
| 31761 | test -z "$ac_c_werror_flag" || |
| 31762 | test ! -s conftest.err |
| 31763 | } && test -s conftest$ac_exeext && |
| 31764 | $as_test_x conftest$ac_exeext; then |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 31765 | eval "$as_ac_var=yes" |
| 31766 | else |
| 31767 | echo "$as_me: failed program was:" >&5 |
| 31768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 31769 | |
| 31770 | eval "$as_ac_var=no" |
| 31771 | fi |
| 31772 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 31773 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Reid Spencer | 9372f15 | 2007-07-30 20:13:24 +0000 | [diff] [blame] | 31774 | conftest$ac_exeext conftest.$ac_ext |
| 31775 | fi |
| 31776 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 31777 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 31778 | echo "${ECHO_T}$ac_res" >&6; } |
| 31779 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 31780 | cat >>confdefs.h <<_ACEOF |
| 31781 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31782 | _ACEOF |
| 31783 | |
| 31784 | fi |
| 31785 | done |
| 31786 | |
| 31787 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31788 | { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 |
| 31789 | echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31790 | if test "${llvm_cv_llvmgcc_sanity+set}" = set; then |
| 31791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 31792 | else |
| 31793 | llvm_cv_llvmgcc_sanity="no" |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31794 | if test -x "$LLVMGCC" ; then |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31795 | cp /dev/null conftest.c |
Reid Spencer | 585e088 | 2007-03-29 15:38:33 +0000 | [diff] [blame] | 31796 | "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ |
| 31797 | grep 'target datalayout =' > /dev/null 2>&1 |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31798 | if test $? -eq 0 ; then |
| 31799 | llvm_cv_llvmgcc_sanity="yes" |
| 31800 | fi |
| 31801 | rm conftest.c |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31802 | fi |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31803 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31804 | { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 |
| 31805 | echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31806 | |
| 31807 | if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 31808 | { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 |
| 31809 | echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31810 | llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31811 | LLVMCC1=$llvmcc1path |
| 31812 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31813 | llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31814 | LLVMCC1PLUS=$llvmcc1pluspath |
| 31815 | |
Reid Spencer | 502935f | 2004-12-22 05:56:56 +0000 | [diff] [blame] | 31816 | llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` |
| 31817 | LLVMGCCDIR=$llvmgccdir |
| 31818 | |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 31819 | llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'` |
| 31820 | LLVMGCCLIBEXEC=$llvmgcclibexec |
| 31821 | |
Reid Spencer | b5d75b8 | 2006-05-09 00:31:01 +0000 | [diff] [blame] | 31822 | llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'` |
Reid Spencer | 7917d3a | 2006-04-06 22:00:36 +0000 | [diff] [blame] | 31823 | llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'` |
| 31824 | LLVMGCC_VERSION=$llvmgccversion |
| 31825 | |
| 31826 | LLVMGCC_MAJVERS=$llvmgccmajvers |
| 31827 | |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 31828 | llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'` |
| 31829 | LLVMGCC_LANGS=$llvmgcclangs |
| 31830 | |
| 31831 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 31832 | echo "${ECHO_T}ok" >&6; } |
Brian Gaeke | f3b2410 | 2003-11-16 18:38:14 +0000 | [diff] [blame] | 31833 | fi |
| 31834 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 31835 | SHLIBEXT=$libltdl_cv_shlibext |
Brian Gaeke | 554831c | 2004-01-21 19:39:29 +0000 | [diff] [blame] | 31836 | |
| 31837 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31838 | # Translate the various configuration directories and other basic |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31839 | # information into substitutions that will end up in Makefile.config.in |
| 31840 | # that these configured values can be used by the makefiles |
Jeff Cohen | 28783c3 | 2007-01-12 18:22:38 +0000 | [diff] [blame] | 31841 | if test "${prefix}" = "NONE" ; then |
Reid Spencer | 0582887 | 2006-05-16 08:53:32 +0000 | [diff] [blame] | 31842 | prefix="/usr/local" |
| 31843 | fi |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31844 | eval LLVM_PREFIX="${prefix}"; |
| 31845 | eval LLVM_BINDIR="${prefix}/bin"; |
| 31846 | eval LLVM_LIBDIR="${prefix}/lib"; |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 31847 | eval LLVM_DATADIR="${prefix}/share/llvm"; |
| 31848 | eval LLVM_DOCSDIR="${prefix}/docs/llvm"; |
| 31849 | eval LLVM_ETCDIR="${prefix}/etc/llvm"; |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31850 | eval LLVM_INCLUDEDIR="${prefix}/include"; |
| 31851 | eval LLVM_INFODIR="${prefix}/info"; |
| 31852 | eval LLVM_MANDIR="${prefix}/man"; |
| 31853 | LLVM_CONFIGTIME=`date` |
| 31854 | |
| 31855 | |
| 31856 | |
| 31857 | |
| 31858 | |
| 31859 | |
| 31860 | |
| 31861 | |
| 31862 | |
| 31863 | |
| 31864 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31865 | # Place the various directores into the config.h file as #defines so that we |
| 31866 | # can know about the installation paths within LLVM. |
| 31867 | |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31868 | cat >>confdefs.h <<_ACEOF |
| 31869 | #define LLVM_PREFIX "$LLVM_PREFIX" |
| 31870 | _ACEOF |
| 31871 | |
| 31872 | |
| 31873 | cat >>confdefs.h <<_ACEOF |
| 31874 | #define LLVM_BINDIR "$LLVM_BINDIR" |
| 31875 | _ACEOF |
| 31876 | |
| 31877 | |
| 31878 | cat >>confdefs.h <<_ACEOF |
| 31879 | #define LLVM_LIBDIR "$LLVM_LIBDIR" |
| 31880 | _ACEOF |
| 31881 | |
| 31882 | |
| 31883 | cat >>confdefs.h <<_ACEOF |
| 31884 | #define LLVM_DATADIR "$LLVM_DATADIR" |
| 31885 | _ACEOF |
| 31886 | |
| 31887 | |
| 31888 | cat >>confdefs.h <<_ACEOF |
Gordon Henriksen | 0abe116 | 2007-10-03 12:07:14 +0000 | [diff] [blame] | 31889 | #define LLVM_DOCSDIR "$LLVM_DOCSDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31890 | _ACEOF |
| 31891 | |
| 31892 | |
| 31893 | cat >>confdefs.h <<_ACEOF |
Reid Spencer | ff22c42 | 2004-08-20 09:10:31 +0000 | [diff] [blame] | 31894 | #define LLVM_ETCDIR "$LLVM_ETCDIR" |
Reid Spencer | e9de091 | 2004-08-20 09:03:57 +0000 | [diff] [blame] | 31895 | _ACEOF |
| 31896 | |
| 31897 | |
| 31898 | cat >>confdefs.h <<_ACEOF |
| 31899 | #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" |
| 31900 | _ACEOF |
| 31901 | |
| 31902 | |
| 31903 | cat >>confdefs.h <<_ACEOF |
| 31904 | #define LLVM_INFODIR "$LLVM_INFODIR" |
| 31905 | _ACEOF |
| 31906 | |
| 31907 | |
| 31908 | cat >>confdefs.h <<_ACEOF |
| 31909 | #define LLVM_MANDIR "$LLVM_MANDIR" |
| 31910 | _ACEOF |
| 31911 | |
| 31912 | |
| 31913 | cat >>confdefs.h <<_ACEOF |
| 31914 | #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" |
| 31915 | _ACEOF |
| 31916 | |
| 31917 | |
Eric Christopher | 790e11c | 2007-12-01 00:34:39 +0000 | [diff] [blame] | 31918 | cat >>confdefs.h <<_ACEOF |
| 31919 | #define LLVM_HOSTTRIPLE "$host" |
| 31920 | _ACEOF |
| 31921 | |
| 31922 | |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 31923 | # Determine which bindings to build. |
| 31924 | if test "$BINDINGS_TO_BUILD" = auto ; then |
| 31925 | BINDINGS_TO_BUILD="" |
| 31926 | if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then |
| 31927 | BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" |
| 31928 | fi |
| 31929 | fi |
| 31930 | BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD |
| 31931 | |
| 31932 | |
| 31933 | # This isn't really configurey, but it avoids having to repeat the list in |
| 31934 | # other files. |
| 31935 | ALL_BINDINGS=ocaml |
| 31936 | |
| 31937 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 31938 | # Do any work necessary to ensure that bindings have what they need. |
| 31939 | binding_prereqs_failed=0 |
| 31940 | for a_binding in $BINDINGS_TO_BUILD ; do |
| 31941 | case "$a_binding" in |
| 31942 | ocaml) |
| 31943 | if test "x$OCAMLC" = x ; then |
| 31944 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 |
| 31945 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} |
| 31946 | binding_prereqs_failed=1 |
| 31947 | fi |
| 31948 | if test "x$OCAMLDEP" = x ; then |
| 31949 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 |
| 31950 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} |
| 31951 | binding_prereqs_failed=1 |
| 31952 | fi |
| 31953 | if test "x$OCAMLOPT" = x ; then |
| 31954 | { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 |
| 31955 | echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} |
| 31956 | fi |
| 31957 | if test "x$with_ocaml_libdir" != xauto ; then |
| 31958 | OCAML_LIBDIR=$with_ocaml_libdir |
| 31959 | |
| 31960 | else |
| 31961 | ocaml_stdlib="`"$OCAMLC" -where`" |
| 31962 | if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" |
| 31963 | then |
| 31964 | # ocaml stdlib is beneath our prefix; use stdlib |
| 31965 | OCAML_LIBDIR=$ocaml_stdlib |
| 31966 | |
| 31967 | else |
| 31968 | # ocaml stdlib is outside our prefix; use libdir/ocaml |
| 31969 | OCAML_LIBDIR=$LLVM_LIBDIR/ocaml |
| 31970 | |
| 31971 | fi |
| 31972 | fi |
| 31973 | ;; |
| 31974 | esac |
| 31975 | done |
| 31976 | if test "$binding_prereqs_failed" = 1 ; then |
| 31977 | { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 |
| 31978 | echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} |
| 31979 | { (exit 1); exit 1; }; } |
| 31980 | fi |
| 31981 | |
| 31982 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31983 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31984 | ac_config_headers="$ac_config_headers include/llvm/Config/config.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31985 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31986 | ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31987 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31988 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31989 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31990 | ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31991 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31992 | ac_config_headers="$ac_config_headers include/llvm/ADT/iterator" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31993 | |
| 31994 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 31995 | ac_config_files="$ac_config_files Makefile.config" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 31996 | |
| 31997 | |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 31998 | ac_config_files="$ac_config_files llvm.spec" |
| 31999 | |
| 32000 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32001 | ac_config_files="$ac_config_files docs/doxygen.cfg" |
Reid Spencer | 1f31942 | 2004-11-29 04:56:35 +0000 | [diff] [blame] | 32002 | |
| 32003 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32004 | ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" |
Reid Spencer | f2722ca | 2006-03-22 15:59:55 +0000 | [diff] [blame] | 32005 | |
| 32006 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32007 | ac_config_commands="$ac_config_commands setup" |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 32008 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32009 | ac_config_commands="$ac_config_commands Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32010 | |
| 32011 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32012 | ac_config_commands="$ac_config_commands Makefile.common" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32013 | |
| 32014 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32015 | ac_config_commands="$ac_config_commands examples/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32016 | |
| 32017 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32018 | ac_config_commands="$ac_config_commands lib/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32019 | |
| 32020 | |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 32021 | ac_config_commands="$ac_config_commands runtime/Makefile" |
| 32022 | |
| 32023 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32024 | ac_config_commands="$ac_config_commands test/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32025 | |
| 32026 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32027 | ac_config_commands="$ac_config_commands test/Makefile.tests" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32028 | |
| 32029 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32030 | ac_config_commands="$ac_config_commands tools/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32031 | |
| 32032 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32033 | ac_config_commands="$ac_config_commands utils/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32034 | |
| 32035 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32036 | ac_config_commands="$ac_config_commands projects/Makefile" |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32037 | |
| 32038 | |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 32039 | ac_config_commands="$ac_config_commands bindings/Makefile" |
| 32040 | |
| 32041 | |
| 32042 | ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" |
| 32043 | |
| 32044 | |
Reid Spencer | 5e1d9a5 | 2004-11-25 04:51:04 +0000 | [diff] [blame] | 32045 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32046 | cat >confcache <<\_ACEOF |
| 32047 | # This file is a shell script that caches the results of configure |
| 32048 | # tests run on this system so they can be shared between configure |
| 32049 | # scripts and configure runs, see configure's option --config-cache. |
| 32050 | # It is not useful on other systems. If it contains results you don't |
| 32051 | # want to keep, you may remove or edit it. |
| 32052 | # |
| 32053 | # config.status only pays attention to the cache file if you give it |
| 32054 | # the --recheck option to rerun configure. |
| 32055 | # |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32056 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32057 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 32058 | # following values. |
| 32059 | |
| 32060 | _ACEOF |
| 32061 | |
| 32062 | # The following way of writing the cache mishandles newlines in values, |
| 32063 | # but we know of no workaround that is simple, portable, and efficient. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32064 | # So, we kill variables containing newlines. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32065 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 32066 | # 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] | 32067 | ( |
| 32068 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 32069 | eval ac_val=\$$ac_var |
| 32070 | case $ac_val in #( |
| 32071 | *${as_nl}*) |
| 32072 | case $ac_var in #( |
| 32073 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 32074 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 32075 | esac |
| 32076 | case $ac_var in #( |
| 32077 | _ | IFS | as_nl) ;; #( |
| 32078 | *) $as_unset $ac_var ;; |
| 32079 | esac ;; |
| 32080 | esac |
| 32081 | done |
| 32082 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32083 | (set) 2>&1 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32084 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 32085 | *${as_nl}ac_space=\ *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32086 | # `set' does not quote correctly, so add quotes (double-quote |
| 32087 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 32088 | sed -n \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32089 | "s/'/'\\\\''/g; |
| 32090 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32091 | ;; #( |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32092 | *) |
| 32093 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32094 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32095 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32096 | esac | |
| 32097 | sort |
| 32098 | ) | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32099 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32100 | /^ac_cv_env_/b end |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32101 | t clear |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32102 | :clear |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32103 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 32104 | t end |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32105 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 32106 | :end' >>confcache |
| 32107 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 32108 | if test -w "$cache_file"; then |
| 32109 | test "x$cache_file" != "x/dev/null" && |
| 32110 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 32111 | echo "$as_me: updating cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32112 | cat confcache >$cache_file |
| 32113 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32114 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 32115 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32116 | fi |
| 32117 | fi |
| 32118 | rm -f confcache |
| 32119 | |
| 32120 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 32121 | # Let make expand exec_prefix. |
| 32122 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 32123 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32124 | DEFS=-DHAVE_CONFIG_H |
| 32125 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32126 | ac_libobjs= |
| 32127 | ac_ltlibobjs= |
| 32128 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 32129 | # 1. Remove the extension, and $U if already installed. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32130 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 32131 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 32132 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 32133 | # will be set to the directory where LIBOBJS objects are built. |
| 32134 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 32135 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32136 | done |
| 32137 | LIBOBJS=$ac_libobjs |
| 32138 | |
| 32139 | LTLIBOBJS=$ac_ltlibobjs |
| 32140 | |
| 32141 | |
Reid Spencer | 2bc7bd5 | 2004-11-29 12:29:58 +0000 | [diff] [blame] | 32142 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| 32143 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. |
| 32144 | Usually this means the macro was only invoked conditionally." >&5 |
| 32145 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. |
| 32146 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32147 | { (exit 1); exit 1; }; } |
| 32148 | fi |
| 32149 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| 32150 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 32151 | Usually this means the macro was only invoked conditionally." >&5 |
| 32152 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. |
| 32153 | Usually this means the macro was only invoked conditionally." >&2;} |
| 32154 | { (exit 1); exit 1; }; } |
| 32155 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32156 | |
| 32157 | : ${CONFIG_STATUS=./config.status} |
| 32158 | ac_clean_files_save=$ac_clean_files |
| 32159 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 32160 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 32161 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 32162 | cat >$CONFIG_STATUS <<_ACEOF |
| 32163 | #! $SHELL |
| 32164 | # Generated by $as_me. |
| 32165 | # Run this file to recreate the current configuration. |
| 32166 | # Compiler output produced by configure, useful for debugging |
| 32167 | # configure, is in config.log if it exists. |
| 32168 | |
| 32169 | debug=false |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32170 | ac_cs_recheck=false |
| 32171 | ac_cs_silent=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32172 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 32173 | _ACEOF |
| 32174 | |
| 32175 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32176 | ## --------------------- ## |
| 32177 | ## M4sh Initialization. ## |
| 32178 | ## --------------------- ## |
| 32179 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32180 | # Be more Bourne compatible |
| 32181 | DUALCASE=1; export DUALCASE # for MKS sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32182 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 32183 | emulate sh |
| 32184 | NULLCMD=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32185 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 32186 | # is contrary to our usage. Disable this feature. |
| 32187 | alias -g '${1+"$@"}'='"$@"' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32188 | setopt NO_GLOB_SUBST |
| 32189 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32190 | case `(set -o) 2>/dev/null` in |
| 32191 | *posix*) set -o posix ;; |
| 32192 | esac |
| 32193 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32194 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32195 | |
| 32196 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32197 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32198 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32199 | # PATH needs CR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32200 | # Avoid depending upon Character Ranges. |
| 32201 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 32202 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 32203 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 32204 | as_cr_digits='0123456789' |
| 32205 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 32206 | |
| 32207 | # The user is always right. |
| 32208 | if test "${PATH_SEPARATOR+set}" != set; then |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32209 | echo "#! /bin/sh" >conf$$.sh |
| 32210 | echo "exit 0" >>conf$$.sh |
| 32211 | chmod +x conf$$.sh |
| 32212 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32213 | PATH_SEPARATOR=';' |
| 32214 | else |
| 32215 | PATH_SEPARATOR=: |
| 32216 | fi |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32217 | rm -f conf$$.sh |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32218 | fi |
| 32219 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32220 | # Support unset when possible. |
| 32221 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 32222 | as_unset=unset |
| 32223 | else |
| 32224 | as_unset=false |
| 32225 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32226 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32227 | |
| 32228 | # IFS |
| 32229 | # We need space, tab and new line, in precisely that order. Quoting is |
| 32230 | # there to prevent editors from complaining about space-tab. |
| 32231 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 32232 | # splitting by setting IFS to empty value.) |
| 32233 | as_nl=' |
| 32234 | ' |
| 32235 | IFS=" "" $as_nl" |
| 32236 | |
| 32237 | # Find who we are. Look in the path if we contain no directory separator. |
| 32238 | case $0 in |
| 32239 | *[\\/]* ) as_myself=$0 ;; |
| 32240 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32241 | for as_dir in $PATH |
| 32242 | do |
| 32243 | IFS=$as_save_IFS |
| 32244 | test -z "$as_dir" && as_dir=. |
| 32245 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 32246 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32247 | IFS=$as_save_IFS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32248 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32249 | ;; |
| 32250 | esac |
| 32251 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 32252 | # in which case we are not to be found in the path. |
| 32253 | if test "x$as_myself" = x; then |
| 32254 | as_myself=$0 |
| 32255 | fi |
| 32256 | if test ! -f "$as_myself"; then |
| 32257 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 32258 | { (exit 1); exit 1; } |
| 32259 | fi |
| 32260 | |
| 32261 | # Work around bugs in pre-3.0 UWIN ksh. |
| 32262 | for as_var in ENV MAIL MAILPATH |
| 32263 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 32264 | done |
| 32265 | PS1='$ ' |
| 32266 | PS2='> ' |
| 32267 | PS4='+ ' |
| 32268 | |
| 32269 | # NLS nuisances. |
| 32270 | for as_var in \ |
| 32271 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 32272 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 32273 | LC_TELEPHONE LC_TIME |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32274 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32275 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 32276 | eval $as_var=C; export $as_var |
| 32277 | else |
| 32278 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 32279 | fi |
| 32280 | done |
| 32281 | |
| 32282 | # Required to use basename. |
| 32283 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 32284 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 32285 | as_expr=expr |
| 32286 | else |
| 32287 | as_expr=false |
| 32288 | fi |
| 32289 | |
| 32290 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 32291 | as_basename=basename |
| 32292 | else |
| 32293 | as_basename=false |
| 32294 | fi |
| 32295 | |
| 32296 | |
| 32297 | # Name of the executable. |
| 32298 | as_me=`$as_basename -- "$0" || |
| 32299 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 32300 | X"$0" : 'X\(//\)$' \| \ |
| 32301 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 32302 | echo X/"$0" | |
| 32303 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 32304 | s//\1/ |
| 32305 | q |
| 32306 | } |
| 32307 | /^X\/\(\/\/\)$/{ |
| 32308 | s//\1/ |
| 32309 | q |
| 32310 | } |
| 32311 | /^X\/\(\/\).*/{ |
| 32312 | s//\1/ |
| 32313 | q |
| 32314 | } |
| 32315 | s/.*/./; q'` |
| 32316 | |
| 32317 | # CDPATH. |
| 32318 | $as_unset CDPATH |
| 32319 | |
| 32320 | |
| 32321 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32322 | as_lineno_1=$LINENO |
| 32323 | as_lineno_2=$LINENO |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32326 | |
| 32327 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 32328 | # uniformly replaced by the line number. The first 'sed' inserts a |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32329 | # line-number line after each line using $LINENO; the second 'sed' |
| 32330 | # does the real work. The second script uses 'N' to pair each |
| 32331 | # line-number line with the line containing $LINENO, and appends |
| 32332 | # trailing '-' during substitution so that $LINENO is not a special |
| 32333 | # case at line end. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32334 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32335 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 32336 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 32337 | sed -n ' |
| 32338 | p |
| 32339 | /[$]LINENO/= |
| 32340 | ' <$as_myself | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32341 | sed ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32342 | s/[$]LINENO.*/&-/ |
| 32343 | t lineno |
| 32344 | b |
| 32345 | :lineno |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32346 | N |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32347 | :loop |
| 32348 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32349 | t loop |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32350 | s/-\n.*// |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32351 | ' >$as_me.lineno && |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32352 | chmod +x "$as_me.lineno" || |
| 32353 | { 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] | 32354 | { (exit 1); exit 1; }; } |
| 32355 | |
| 32356 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 32357 | # (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] | 32358 | # original and so on. Autoconf is especially sensitive to this). |
| 32359 | . "./$as_me.lineno" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32360 | # Exit status is that of the last command. |
| 32361 | exit |
| 32362 | } |
| 32363 | |
| 32364 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32365 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 32366 | as_dirname=dirname |
| 32367 | else |
| 32368 | as_dirname=false |
| 32369 | fi |
| 32370 | |
| 32371 | ECHO_C= ECHO_N= ECHO_T= |
| 32372 | case `echo -n x` in |
| 32373 | -n*) |
| 32374 | case `echo 'x\c'` in |
| 32375 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 32376 | *) ECHO_C='\c';; |
| 32377 | esac;; |
| 32378 | *) |
| 32379 | ECHO_N='-n';; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32380 | esac |
| 32381 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32382 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 32383 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32384 | as_expr=expr |
| 32385 | else |
| 32386 | as_expr=false |
| 32387 | fi |
| 32388 | |
| 32389 | rm -f conf$$ conf$$.exe conf$$.file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32390 | if test -d conf$$.dir; then |
| 32391 | rm -f conf$$.dir/conf$$.file |
| 32392 | else |
| 32393 | rm -f conf$$.dir |
| 32394 | mkdir conf$$.dir |
| 32395 | fi |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32396 | echo >conf$$.file |
| 32397 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32398 | as_ln_s='ln -s' |
| 32399 | # ... but there are two gotchas: |
| 32400 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 32401 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 32402 | # In both cases, we have to default to `cp -p'. |
| 32403 | 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] | 32404 | as_ln_s='cp -p' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32405 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 32406 | as_ln_s=ln |
| 32407 | else |
| 32408 | as_ln_s='cp -p' |
| 32409 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32410 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 32411 | rmdir conf$$.dir 2>/dev/null |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32412 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32413 | if mkdir -p . 2>/dev/null; then |
| 32414 | as_mkdir_p=: |
| 32415 | else |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32416 | test -d ./-p && rmdir ./-p |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32417 | as_mkdir_p=false |
| 32418 | fi |
| 32419 | |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32420 | if test -x / >/dev/null 2>&1; then |
| 32421 | as_test_x='test -x' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32422 | else |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32423 | if ls -dL / >/dev/null 2>&1; then |
| 32424 | as_ls_L_option=L |
| 32425 | else |
| 32426 | as_ls_L_option= |
| 32427 | fi |
| 32428 | as_test_x=' |
| 32429 | eval sh -c '\'' |
| 32430 | if test -d "$1"; then |
| 32431 | test -d "$1/."; |
| 32432 | else |
| 32433 | case $1 in |
| 32434 | -*)set "./$1";; |
| 32435 | esac; |
| 32436 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 32437 | ???[sx]*):;;*)false;;esac;fi |
| 32438 | '\'' sh |
| 32439 | ' |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32440 | fi |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32441 | as_executable_p=$as_test_x |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32442 | |
| 32443 | # Sed expression to map a string onto a valid CPP name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32444 | 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] | 32445 | |
| 32446 | # Sed expression to map a string onto a valid variable name. |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32447 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32448 | |
| 32449 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32450 | exec 6>&1 |
| 32451 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32452 | # 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] | 32453 | # report actual input values of CONFIG_FILES etc. instead of their |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32454 | # values after options handling. |
| 32455 | ac_log=" |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 32456 | This file was extended by llvm $as_me 2.2svn, which was |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32457 | generated by GNU Autoconf 2.61. Invocation command line was |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32458 | |
| 32459 | CONFIG_FILES = $CONFIG_FILES |
| 32460 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 32461 | CONFIG_LINKS = $CONFIG_LINKS |
| 32462 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 32463 | $ $0 $@ |
| 32464 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32465 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 32466 | " |
| 32467 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32468 | _ACEOF |
| 32469 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32470 | cat >>$CONFIG_STATUS <<_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32471 | # Files that config.status was made for. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32472 | config_files="$ac_config_files" |
| 32473 | config_headers="$ac_config_headers" |
| 32474 | config_commands="$ac_config_commands" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32475 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32476 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32477 | |
| 32478 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32479 | ac_cs_usage="\ |
| 32480 | \`$as_me' instantiates files from templates according to the |
| 32481 | current configuration. |
| 32482 | |
| 32483 | Usage: $0 [OPTIONS] [FILE]... |
| 32484 | |
| 32485 | -h, --help print this help, then exit |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32486 | -V, --version print version number and configuration settings, then exit |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32487 | -q, --quiet do not print progress messages |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32488 | -d, --debug don't remove temporary files |
| 32489 | --recheck update $as_me by reconfiguring in the same conditions |
| 32490 | --file=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32491 | instantiate the configuration file FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32492 | --header=FILE[:TEMPLATE] |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 32493 | instantiate the configuration header FILE |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32494 | |
| 32495 | Configuration files: |
| 32496 | $config_files |
| 32497 | |
| 32498 | Configuration headers: |
| 32499 | $config_headers |
| 32500 | |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32501 | Configuration commands: |
| 32502 | $config_commands |
| 32503 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32504 | Report bugs to <bug-autoconf@gnu.org>." |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32505 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32506 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32507 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32508 | ac_cs_version="\\ |
Tanya Lattner | 5c70954 | 2007-09-14 01:24:13 +0000 | [diff] [blame] | 32509 | llvm config.status 2.2svn |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32510 | configured by $0, generated by GNU Autoconf 2.61, |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32511 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32512 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32513 | Copyright (C) 2006 Free Software Foundation, Inc. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32514 | This config.status script is free software; the Free Software Foundation |
| 32515 | gives unlimited permission to copy, distribute and modify it." |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32516 | |
| 32517 | ac_pwd='$ac_pwd' |
| 32518 | srcdir='$srcdir' |
| 32519 | INSTALL='$INSTALL' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32520 | _ACEOF |
| 32521 | |
| 32522 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32523 | # If no file are specified by the user, then we need to provide default |
| 32524 | # value. By we need to know if files were specified by the user. |
| 32525 | ac_need_defaults=: |
| 32526 | while test $# != 0 |
| 32527 | do |
| 32528 | case $1 in |
| 32529 | --*=*) |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32530 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 32531 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32532 | ac_shift=: |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32533 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32534 | *) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32535 | ac_option=$1 |
| 32536 | ac_optarg=$2 |
| 32537 | ac_shift=shift |
| 32538 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32539 | esac |
| 32540 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32541 | case $ac_option in |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32542 | # Handling of the options. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32543 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 32544 | ac_cs_recheck=: ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32545 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 32546 | echo "$ac_cs_version"; exit ;; |
| 32547 | --debug | --debu | --deb | --de | --d | -d ) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32548 | debug=: ;; |
| 32549 | --file | --fil | --fi | --f ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32550 | $ac_shift |
| 32551 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32552 | ac_need_defaults=false;; |
| 32553 | --header | --heade | --head | --hea ) |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32554 | $ac_shift |
| 32555 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32556 | ac_need_defaults=false;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32557 | --he | --h) |
| 32558 | # Conflict between --help and --header |
| 32559 | { echo "$as_me: error: ambiguous option: $1 |
| 32560 | Try \`$0 --help' for more information." >&2 |
| 32561 | { (exit 1); exit 1; }; };; |
| 32562 | --help | --hel | -h ) |
| 32563 | echo "$ac_cs_usage"; exit ;; |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32564 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 32565 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 32566 | ac_cs_silent=: ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32567 | |
| 32568 | # This is an error. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32569 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 32570 | Try \`$0 --help' for more information." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32571 | { (exit 1); exit 1; }; } ;; |
| 32572 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32573 | *) ac_config_targets="$ac_config_targets $1" |
| 32574 | ac_need_defaults=false ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32575 | |
| 32576 | esac |
| 32577 | shift |
| 32578 | done |
| 32579 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32580 | ac_configure_extra_args= |
| 32581 | |
| 32582 | if $ac_cs_silent; then |
| 32583 | exec 6>/dev/null |
| 32584 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 32585 | fi |
| 32586 | |
| 32587 | _ACEOF |
| 32588 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32589 | if \$ac_cs_recheck; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32590 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 32591 | CONFIG_SHELL=$SHELL |
| 32592 | export CONFIG_SHELL |
| 32593 | 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] | 32594 | fi |
| 32595 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32596 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32597 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 32598 | exec 5>>config.log |
| 32599 | { |
| 32600 | echo |
| 32601 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 32602 | ## Running $as_me. ## |
| 32603 | _ASBOX |
| 32604 | echo "$ac_log" |
| 32605 | } >&5 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32606 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32607 | _ACEOF |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32608 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32609 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32610 | # INIT-COMMANDS |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32611 | # |
Reid Spencer | c068283 | 2005-02-24 19:05:19 +0000 | [diff] [blame] | 32612 | llvm_src="${srcdir}" |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32613 | |
| 32614 | _ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32615 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32616 | cat >>$CONFIG_STATUS <<\_ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32617 | |
| 32618 | # Handling of arguments. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32619 | for ac_config_target in $ac_config_targets |
| 32620 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32621 | case $ac_config_target in |
| 32622 | "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; |
| 32623 | "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; |
| 32624 | "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;; |
| 32625 | "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;; |
| 32626 | "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;; |
| 32627 | "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; |
Reid Spencer | ea949cf | 2006-08-16 00:45:38 +0000 | [diff] [blame] | 32628 | "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32629 | "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; |
| 32630 | "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; |
| 32631 | "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; |
| 32632 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; |
| 32633 | "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; |
| 32634 | "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; |
| 32635 | "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 32636 | "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32637 | "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; |
| 32638 | "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; |
| 32639 | "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; |
| 32640 | "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; |
| 32641 | "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 32642 | "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; |
| 32643 | "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32644 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32645 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 32646 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 32647 | { (exit 1); exit 1; }; };; |
| 32648 | esac |
| 32649 | done |
| 32650 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32651 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32652 | # If the user did not use the arguments to specify the items to instantiate, |
| 32653 | # then the envvar interface is used. Set only those that are not. |
| 32654 | # We use the long form for the default assignment because of an extremely |
| 32655 | # bizarre bug on SunOS 4.1.3. |
| 32656 | if $ac_need_defaults; then |
| 32657 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 32658 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 32659 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32660 | fi |
| 32661 | |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32662 | # Have a temporary directory for convenience. Make it in the build tree |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32663 | # 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] | 32664 | # creating and moving files from /tmp can sometimes cause problems. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32665 | # Hook for its removal unless debugging. |
| 32666 | # Note that there is a small window in which the directory will not be cleaned: |
| 32667 | # after its creation but before its name has been assigned to `$tmp'. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32668 | $debug || |
| 32669 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32670 | tmp= |
| 32671 | trap 'exit_status=$? |
| 32672 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 32673 | ' 0 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32674 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 32675 | } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32676 | # Create a (secure) tmp directory for tmp files. |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32677 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32678 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32679 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32680 | test -n "$tmp" && test -d "$tmp" |
| 32681 | } || |
| 32682 | { |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32683 | tmp=./conf$$-$RANDOM |
| 32684 | (umask 077 && mkdir "$tmp") |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32685 | } || |
| 32686 | { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 32687 | echo "$me: cannot create a temporary directory in ." >&2 |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32688 | { (exit 1); exit 1; } |
| 32689 | } |
| 32690 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32691 | # |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32692 | # Set up the sed scripts for CONFIG_FILES section. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32693 | # |
| 32694 | |
| 32695 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 32696 | # This happens for instance when ./config.status config.h |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32697 | if test -n "$CONFIG_FILES"; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32698 | |
| 32699 | _ACEOF |
| 32700 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32701 | |
| 32702 | |
| 32703 | ac_delim='%!_!# ' |
| 32704 | for ac_last_try in false false false false false :; do |
| 32705 | cat >conf$$subs.sed <<_ACEOF |
| 32706 | SHELL!$SHELL$ac_delim |
| 32707 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 32708 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 32709 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 32710 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 32711 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 32712 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 32713 | exec_prefix!$exec_prefix$ac_delim |
| 32714 | prefix!$prefix$ac_delim |
| 32715 | program_transform_name!$program_transform_name$ac_delim |
| 32716 | bindir!$bindir$ac_delim |
| 32717 | sbindir!$sbindir$ac_delim |
| 32718 | libexecdir!$libexecdir$ac_delim |
| 32719 | datarootdir!$datarootdir$ac_delim |
| 32720 | datadir!$datadir$ac_delim |
| 32721 | sysconfdir!$sysconfdir$ac_delim |
| 32722 | sharedstatedir!$sharedstatedir$ac_delim |
| 32723 | localstatedir!$localstatedir$ac_delim |
| 32724 | includedir!$includedir$ac_delim |
| 32725 | oldincludedir!$oldincludedir$ac_delim |
| 32726 | docdir!$docdir$ac_delim |
| 32727 | infodir!$infodir$ac_delim |
| 32728 | htmldir!$htmldir$ac_delim |
| 32729 | dvidir!$dvidir$ac_delim |
| 32730 | pdfdir!$pdfdir$ac_delim |
| 32731 | psdir!$psdir$ac_delim |
| 32732 | libdir!$libdir$ac_delim |
| 32733 | localedir!$localedir$ac_delim |
| 32734 | mandir!$mandir$ac_delim |
| 32735 | DEFS!$DEFS$ac_delim |
| 32736 | ECHO_C!$ECHO_C$ac_delim |
| 32737 | ECHO_N!$ECHO_N$ac_delim |
| 32738 | ECHO_T!$ECHO_T$ac_delim |
| 32739 | LIBS!$LIBS$ac_delim |
| 32740 | build_alias!$build_alias$ac_delim |
| 32741 | host_alias!$host_alias$ac_delim |
| 32742 | target_alias!$target_alias$ac_delim |
| 32743 | LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim |
| 32744 | subdirs!$subdirs$ac_delim |
| 32745 | build!$build$ac_delim |
| 32746 | build_cpu!$build_cpu$ac_delim |
| 32747 | build_vendor!$build_vendor$ac_delim |
| 32748 | build_os!$build_os$ac_delim |
| 32749 | host!$host$ac_delim |
| 32750 | host_cpu!$host_cpu$ac_delim |
| 32751 | host_vendor!$host_vendor$ac_delim |
| 32752 | host_os!$host_os$ac_delim |
| 32753 | target!$target$ac_delim |
| 32754 | target_cpu!$target_cpu$ac_delim |
| 32755 | target_vendor!$target_vendor$ac_delim |
| 32756 | target_os!$target_os$ac_delim |
| 32757 | OS!$OS$ac_delim |
| 32758 | LINKALL!$LINKALL$ac_delim |
| 32759 | NOLINKALL!$NOLINKALL$ac_delim |
| 32760 | LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim |
| 32761 | LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim |
| 32762 | ARCH!$ARCH$ac_delim |
Duncan Sands | 67f1c49 | 2007-12-12 23:03:45 +0000 | [diff] [blame] | 32763 | ENDIAN!$ENDIAN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32764 | CC!$CC$ac_delim |
| 32765 | CFLAGS!$CFLAGS$ac_delim |
| 32766 | LDFLAGS!$LDFLAGS$ac_delim |
| 32767 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 32768 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 32769 | EXEEXT!$EXEEXT$ac_delim |
| 32770 | OBJEXT!$OBJEXT$ac_delim |
| 32771 | CPP!$CPP$ac_delim |
| 32772 | GREP!$GREP$ac_delim |
| 32773 | EGREP!$EGREP$ac_delim |
| 32774 | LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim |
| 32775 | BUILD_CC!$BUILD_CC$ac_delim |
| 32776 | BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim |
| 32777 | CVSBUILD!$CVSBUILD$ac_delim |
| 32778 | ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim |
| 32779 | DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 32780 | ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim |
| 32781 | EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 32782 | DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32783 | JIT!$JIT$ac_delim |
| 32784 | TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim |
| 32785 | ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim |
| 32786 | ENABLE_THREADS!$ENABLE_THREADS$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 32787 | ENABLE_PIC!$ENABLE_PIC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32788 | TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim |
Reid Spencer | 65c5d75 | 2006-11-05 17:08:18 +0000 | [diff] [blame] | 32789 | ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32790 | EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim |
| 32791 | CXX!$CXX$ac_delim |
| 32792 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 32793 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 32794 | LEX!$LEX$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32795 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 32796 | LEXLIB!$LEXLIB$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32797 | FLEX!$FLEX$ac_delim |
| 32798 | YACC!$YACC$ac_delim |
| 32799 | YFLAGS!$YFLAGS$ac_delim |
| 32800 | BISON!$BISON$ac_delim |
| 32801 | NM!$NM$ac_delim |
| 32802 | ifGNUmake!$ifGNUmake$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32803 | _ACEOF |
| 32804 | |
| 32805 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 32806 | break |
| 32807 | elif $ac_last_try; then |
| 32808 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 32809 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 32810 | { (exit 1); exit 1; }; } |
| 32811 | else |
| 32812 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32813 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32814 | done |
| 32815 | |
| 32816 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 32817 | if test -n "$ac_eof"; then |
| 32818 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 32819 | ac_eof=`expr $ac_eof + 1` |
| 32820 | fi |
| 32821 | |
| 32822 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32823 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 32824 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 32825 | _ACEOF |
| 32826 | sed ' |
| 32827 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 32828 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 32829 | :n |
| 32830 | t n |
| 32831 | s/'"$ac_delim"'$/,g/; t |
| 32832 | s/$/\\/; p |
| 32833 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 32834 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 32835 | rm -f conf$$subs.sed |
| 32836 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32837 | CEOF$ac_eof |
| 32838 | _ACEOF |
| 32839 | |
| 32840 | |
| 32841 | ac_delim='%!_!# ' |
| 32842 | for ac_last_try in false false false false false :; do |
| 32843 | cat >conf$$subs.sed <<_ACEOF |
David Greene | a696d24 | 2007-06-28 19:36:08 +0000 | [diff] [blame] | 32844 | LN_S!$LN_S$ac_delim |
| 32845 | CMP!$CMP$ac_delim |
Reid Spencer | 89b0d99 | 2006-12-16 22:07:52 +0000 | [diff] [blame] | 32846 | CP!$CP$ac_delim |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 32847 | DATE!$DATE$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32848 | FIND!$FIND$ac_delim |
| 32849 | MKDIR!$MKDIR$ac_delim |
| 32850 | MV!$MV$ac_delim |
| 32851 | RANLIB!$RANLIB$ac_delim |
| 32852 | RM!$RM$ac_delim |
| 32853 | SED!$SED$ac_delim |
| 32854 | TAR!$TAR$ac_delim |
| 32855 | BINPWD!$BINPWD$ac_delim |
| 32856 | GRAPHVIZ!$GRAPHVIZ$ac_delim |
| 32857 | DOT!$DOT$ac_delim |
| 32858 | GV!$GV$ac_delim |
| 32859 | DOTTY!$DOTTY$ac_delim |
| 32860 | PERL!$PERL$ac_delim |
| 32861 | HAVE_PERL!$HAVE_PERL$ac_delim |
| 32862 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 32863 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 32864 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 32865 | BZIP2!$BZIP2$ac_delim |
| 32866 | DOXYGEN!$DOXYGEN$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32867 | GROFF!$GROFF$ac_delim |
| 32868 | GZIP!$GZIP$ac_delim |
| 32869 | POD2HTML!$POD2HTML$ac_delim |
| 32870 | POD2MAN!$POD2MAN$ac_delim |
| 32871 | RUNTEST!$RUNTEST$ac_delim |
| 32872 | TCLSH!$TCLSH$ac_delim |
| 32873 | ZIP!$ZIP$ac_delim |
Gordon Henriksen | 54c7e12 | 2007-09-18 12:27:13 +0000 | [diff] [blame] | 32874 | OCAMLC!$OCAMLC$ac_delim |
| 32875 | OCAMLOPT!$OCAMLOPT$ac_delim |
Gordon Henriksen | c20f5b0 | 2007-09-20 16:48:18 +0000 | [diff] [blame] | 32876 | OCAMLDEP!$OCAMLDEP$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32877 | INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim |
| 32878 | INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim |
| 32879 | CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim |
| 32880 | CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim |
| 32881 | LIBADD_DL!$LIBADD_DL$ac_delim |
| 32882 | ECHO!$ECHO$ac_delim |
| 32883 | AR!$AR$ac_delim |
| 32884 | STRIP!$STRIP$ac_delim |
| 32885 | CXXCPP!$CXXCPP$ac_delim |
| 32886 | F77!$F77$ac_delim |
| 32887 | FFLAGS!$FFLAGS$ac_delim |
| 32888 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 32889 | LIBTOOL!$LIBTOOL$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32890 | LLVMGCC!$LLVMGCC$ac_delim |
| 32891 | LLVMGXX!$LLVMGXX$ac_delim |
Reid Spencer | b6a7aa7 | 2007-01-19 17:41:47 +0000 | [diff] [blame] | 32892 | USE_UDIS86!$USE_UDIS86$ac_delim |
Reid Spencer | 1000b73 | 2006-12-01 00:37:14 +0000 | [diff] [blame] | 32893 | HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim |
Reid Spencer | b2ed0526 | 2006-11-03 18:04:08 +0000 | [diff] [blame] | 32894 | HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32895 | ALLOCA!$ALLOCA$ac_delim |
| 32896 | MMAP_FILE!$MMAP_FILE$ac_delim |
| 32897 | LLVMCC1!$LLVMCC1$ac_delim |
| 32898 | LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim |
| 32899 | LLVMGCCDIR!$LLVMGCCDIR$ac_delim |
Reid Spencer | 282d8c1 | 2006-12-21 22:55:41 +0000 | [diff] [blame] | 32900 | LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32901 | LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim |
| 32902 | LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim |
Reid Spencer | 0d23818 | 2007-04-21 21:28:52 +0000 | [diff] [blame] | 32903 | LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32904 | SHLIBEXT!$SHLIBEXT$ac_delim |
| 32905 | LLVM_PREFIX!$LLVM_PREFIX$ac_delim |
| 32906 | LLVM_BINDIR!$LLVM_BINDIR$ac_delim |
| 32907 | LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim |
| 32908 | LLVM_DATADIR!$LLVM_DATADIR$ac_delim |
| 32909 | LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim |
| 32910 | LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim |
| 32911 | LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim |
| 32912 | LLVM_INFODIR!$LLVM_INFODIR$ac_delim |
| 32913 | LLVM_MANDIR!$LLVM_MANDIR$ac_delim |
| 32914 | LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim |
Gordon Henriksen | c0efff8 | 2007-10-02 09:50:32 +0000 | [diff] [blame] | 32915 | BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim |
| 32916 | ALL_BINDINGS!$ALL_BINDINGS$ac_delim |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 32917 | OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32918 | LIBOBJS!$LIBOBJS$ac_delim |
| 32919 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 32920 | _ACEOF |
| 32921 | |
Gordon Henriksen | f091568 | 2007-10-02 16:42:22 +0000 | [diff] [blame] | 32922 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32923 | break |
| 32924 | elif $ac_last_try; then |
| 32925 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 32926 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 32927 | { (exit 1); exit 1; }; } |
| 32928 | else |
| 32929 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32930 | fi |
| 32931 | done |
| 32932 | |
| 32933 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 32934 | if test -n "$ac_eof"; then |
| 32935 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 32936 | ac_eof=`expr $ac_eof + 1` |
| 32937 | fi |
| 32938 | |
| 32939 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32940 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 32941 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 32942 | _ACEOF |
| 32943 | sed ' |
| 32944 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 32945 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 32946 | :n |
| 32947 | t n |
| 32948 | s/'"$ac_delim"'$/,g/; t |
| 32949 | s/$/\\/; p |
| 32950 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 32951 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 32952 | rm -f conf$$subs.sed |
| 32953 | cat >>$CONFIG_STATUS <<_ACEOF |
| 32954 | :end |
| 32955 | s/|#_!!_#|//g |
| 32956 | CEOF$ac_eof |
| 32957 | _ACEOF |
| 32958 | |
| 32959 | |
| 32960 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 32961 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 32962 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 32963 | # (actually we leave an empty line to preserve line numbers). |
| 32964 | if test "x$srcdir" = x.; then |
| 32965 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 32966 | s/:*\$(srcdir):*/:/ |
| 32967 | s/:*\${srcdir}:*/:/ |
| 32968 | s/:*@srcdir@:*/:/ |
| 32969 | s/^\([^=]*=[ ]*\):*/\1/ |
| 32970 | s/:*$// |
| 32971 | s/^[^=]*=[ ]*$// |
| 32972 | }' |
| 32973 | fi |
| 32974 | |
| 32975 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 32976 | fi # test -n "$CONFIG_FILES" |
| 32977 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 32978 | |
| 32979 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 32980 | do |
| 32981 | case $ac_tag in |
| 32982 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 32983 | esac |
| 32984 | case $ac_mode$ac_tag in |
| 32985 | :[FHL]*:*);; |
| 32986 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 32987 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 32988 | { (exit 1); exit 1; }; };; |
| 32989 | :[FH]-) ac_tag=-:-;; |
| 32990 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 32991 | esac |
| 32992 | ac_save_IFS=$IFS |
| 32993 | IFS=: |
| 32994 | set x $ac_tag |
| 32995 | IFS=$ac_save_IFS |
| 32996 | shift |
| 32997 | ac_file=$1 |
| 32998 | shift |
| 32999 | |
| 33000 | case $ac_mode in |
| 33001 | :L) ac_source=$1;; |
| 33002 | :[FH]) |
| 33003 | ac_file_inputs= |
| 33004 | for ac_f |
| 33005 | do |
| 33006 | case $ac_f in |
| 33007 | -) ac_f="$tmp/stdin";; |
| 33008 | *) # Look for the file first in the build tree, then in the source tree |
| 33009 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 33010 | # because $ac_f cannot contain `:'. |
| 33011 | test -f "$ac_f" || |
| 33012 | case $ac_f in |
| 33013 | [\\/$]*) false;; |
| 33014 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 33015 | esac || |
| 33016 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 33017 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 33018 | { (exit 1); exit 1; }; };; |
| 33019 | esac |
| 33020 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 33021 | done |
| 33022 | |
| 33023 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 33024 | # use $as_me), people would be surprised to read: |
| 33025 | # /* config.h. Generated by config.status. */ |
| 33026 | configure_input="Generated from "`IFS=: |
| 33027 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 33028 | if test x"$ac_file" != x-; then |
| 33029 | configure_input="$ac_file. $configure_input" |
| 33030 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 33031 | echo "$as_me: creating $ac_file" >&6;} |
| 33032 | fi |
| 33033 | |
| 33034 | case $ac_tag in |
| 33035 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 33036 | esac |
| 33037 | ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33038 | esac |
| 33039 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33040 | ac_dir=`$as_dirname -- "$ac_file" || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33041 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33042 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 33043 | X"$ac_file" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33044 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33045 | echo X"$ac_file" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33046 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 33047 | s//\1/ |
| 33048 | q |
| 33049 | } |
| 33050 | /^X\(\/\/\)[^/].*/{ |
| 33051 | s//\1/ |
| 33052 | q |
| 33053 | } |
| 33054 | /^X\(\/\/\)$/{ |
| 33055 | s//\1/ |
| 33056 | q |
| 33057 | } |
| 33058 | /^X\(\/\).*/{ |
| 33059 | s//\1/ |
| 33060 | q |
| 33061 | } |
| 33062 | s/.*/./; q'` |
| 33063 | { as_dir="$ac_dir" |
| 33064 | case $as_dir in #( |
| 33065 | -*) as_dir=./$as_dir;; |
| 33066 | esac |
| 33067 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33068 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33069 | while :; do |
| 33070 | case $as_dir in #( |
| 33071 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 33072 | *) as_qdir=$as_dir;; |
| 33073 | esac |
| 33074 | as_dirs="'$as_qdir' $as_dirs" |
| 33075 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33076 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33077 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33078 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33079 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33080 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 33082 | s//\1/ |
| 33083 | q |
| 33084 | } |
| 33085 | /^X\(\/\/\)[^/].*/{ |
| 33086 | s//\1/ |
| 33087 | q |
| 33088 | } |
| 33089 | /^X\(\/\/\)$/{ |
| 33090 | s//\1/ |
| 33091 | q |
| 33092 | } |
| 33093 | /^X\(\/\).*/{ |
| 33094 | s//\1/ |
| 33095 | q |
| 33096 | } |
| 33097 | s/.*/./; q'` |
| 33098 | test -d "$as_dir" && break |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33099 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33100 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 33101 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 33102 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33103 | { (exit 1); exit 1; }; }; } |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33104 | ac_builddir=. |
| 33105 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33106 | case "$ac_dir" in |
| 33107 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33108 | *) |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33109 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33110 | # A ".." for each directory in $ac_dir_suffix. |
| 33111 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 33112 | case $ac_top_builddir_sub in |
| 33113 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33114 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 33115 | esac ;; |
| 33116 | esac |
| 33117 | ac_abs_top_builddir=$ac_pwd |
| 33118 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 33119 | # for backward compatibility: |
| 33120 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33121 | |
| 33122 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33123 | .) # We are building in place. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33124 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33125 | ac_top_srcdir=$ac_top_builddir_sub |
| 33126 | ac_abs_top_srcdir=$ac_pwd ;; |
| 33127 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33128 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33129 | ac_top_srcdir=$srcdir |
| 33130 | ac_abs_top_srcdir=$srcdir ;; |
| 33131 | *) # Relative name. |
| 33132 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 33133 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 33134 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33135 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33136 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33137 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33138 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33139 | case $ac_mode in |
| 33140 | :F) |
| 33141 | # |
| 33142 | # CONFIG_FILE |
| 33143 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33144 | |
| 33145 | case $INSTALL in |
| 33146 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33147 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33148 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33149 | _ACEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33150 | |
| 33151 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33152 | # If the template does not know about datarootdir, expand it. |
| 33153 | # FIXME: This hack should be removed a few years after 2.60. |
| 33154 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 33155 | |
| 33156 | case `sed -n '/datarootdir/ { |
| 33157 | p |
| 33158 | q |
| 33159 | } |
| 33160 | /@datadir@/p |
| 33161 | /@docdir@/p |
| 33162 | /@infodir@/p |
| 33163 | /@localedir@/p |
| 33164 | /@mandir@/p |
| 33165 | ' $ac_file_inputs` in |
| 33166 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 33167 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 33168 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 33169 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 33170 | _ACEOF |
| 33171 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33172 | ac_datarootdir_hack=' |
| 33173 | s&@datadir@&$datadir&g |
| 33174 | s&@docdir@&$docdir&g |
| 33175 | s&@infodir@&$infodir&g |
| 33176 | s&@localedir@&$localedir&g |
| 33177 | s&@mandir@&$mandir&g |
| 33178 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 33179 | esac |
| 33180 | _ACEOF |
| 33181 | |
| 33182 | # Neutralize VPATH when `$srcdir' = `.'. |
| 33183 | # Shell code in configure.ac might set extrasub. |
| 33184 | # FIXME: do we really want to maintain this feature? |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33185 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33186 | sed "$ac_vpsub |
| 33187 | $extrasub |
| 33188 | _ACEOF |
| 33189 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 33190 | :t |
| 33191 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33192 | s&@configure_input@&$configure_input&;t t |
| 33193 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 33194 | s&@srcdir@&$ac_srcdir&;t t |
| 33195 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 33196 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 33197 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 33198 | s&@builddir@&$ac_builddir&;t t |
| 33199 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 33200 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 33201 | s&@INSTALL@&$ac_INSTALL&;t t |
| 33202 | $ac_datarootdir_hack |
| 33203 | " $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] | 33204 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33205 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 33206 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 33207 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 33208 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 33209 | which seems to be undefined. Please make sure it is defined." >&5 |
| 33210 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 33211 | which seems to be undefined. Please make sure it is defined." >&2;} |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33212 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33213 | rm -f "$tmp/stdin" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33214 | case $ac_file in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33215 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 33216 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33217 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33218 | ;; |
| 33219 | :H) |
| 33220 | # |
| 33221 | # CONFIG_HEADER |
| 33222 | # |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33223 | _ACEOF |
| 33224 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33225 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 33226 | # substitutes the proper values into config.h.in to produce config.h. |
| 33227 | rm -f conftest.defines conftest.tail |
| 33228 | # First, append a space to every undef/define line, to ease matching. |
| 33229 | echo 's/$/ /' >conftest.defines |
| 33230 | # Then, protect against being on the right side of a sed subst, or in |
| 33231 | # an unquoted here document, in config.status. If some macros were |
| 33232 | # called several times there might be several #defines for the same |
| 33233 | # symbol, which is useless. But do not sort them, since the last |
| 33234 | # AC_DEFINE must be honored. |
| 33235 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 33236 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 33237 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 33238 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 33239 | # just an empty string. |
| 33240 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 33241 | ac_dB='\\)[ (].*,\\1define\\2' |
| 33242 | ac_dC=' ' |
| 33243 | ac_dD=' ,' |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33244 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33245 | uniq confdefs.h | |
| 33246 | sed -n ' |
| 33247 | t rset |
| 33248 | :rset |
| 33249 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 33250 | t ok |
| 33251 | d |
| 33252 | :ok |
| 33253 | s/[\\&,]/\\&/g |
| 33254 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 33255 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 33256 | ' >>conftest.defines |
| 33257 | |
| 33258 | # Remove the space that was appended to ease matching. |
| 33259 | # Then replace #undef with comments. This is necessary, for |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33260 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 33261 | # on some systems where configure will not decide to define it. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33262 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 33263 | echo 's/ $// |
| 33264 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33265 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33266 | # Break up conftest.defines: |
| 33267 | ac_max_sed_lines=50 |
| 33268 | |
| 33269 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 33270 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 33271 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 33272 | # et cetera. |
| 33273 | ac_in='$ac_file_inputs' |
| 33274 | ac_out='"$tmp/out1"' |
| 33275 | ac_nxt='"$tmp/out2"' |
| 33276 | |
| 33277 | while : |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33278 | do |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33279 | # Write a here document: |
| 33280 | cat >>$CONFIG_STATUS <<_ACEOF |
| 33281 | # First, check the format of the line: |
| 33282 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 33283 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 33284 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 33285 | b |
| 33286 | :def |
| 33287 | _ACEOF |
| 33288 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33289 | echo 'CEOF |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33290 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 33291 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 33292 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 33293 | grep . conftest.tail >/dev/null || break |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33294 | rm -f conftest.defines |
| 33295 | mv conftest.tail conftest.defines |
| 33296 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33297 | rm -f conftest.defines conftest.tail |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33298 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33299 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33300 | cat >>$CONFIG_STATUS <<\_ACEOF |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33301 | if test x"$ac_file" != x-; then |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33302 | echo "/* $configure_input */" >"$tmp/config.h" |
| 33303 | cat "$ac_result" >>"$tmp/config.h" |
| 33304 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33305 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 33306 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 33307 | else |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33308 | rm -f $ac_file |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33309 | mv "$tmp/config.h" $ac_file |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33310 | fi |
| 33311 | else |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33312 | echo "/* $configure_input */" |
| 33313 | cat "$ac_result" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33314 | fi |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33315 | rm -f "$tmp/out12" |
| 33316 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33317 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33318 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 33319 | echo "$as_me: executing $ac_file commands" >&6;} |
| 33320 | ;; |
John Criswell | c764fbc | 2003-09-06 15:17:13 +0000 | [diff] [blame] | 33321 | esac |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33322 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33323 | |
| 33324 | case $ac_file$ac_mode in |
| 33325 | "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` |
| 33326 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;; |
| 33327 | "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` |
| 33328 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;; |
| 33329 | "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` |
| 33330 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;; |
| 33331 | "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` |
| 33332 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;; |
Reid Spencer | 8b2e141 | 2006-11-17 03:32:33 +0000 | [diff] [blame] | 33333 | "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` |
| 33334 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33335 | "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` |
| 33336 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;; |
| 33337 | "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` |
| 33338 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; |
| 33339 | "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` |
| 33340 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;; |
| 33341 | "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` |
| 33342 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;; |
| 33343 | "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` |
| 33344 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;; |
Gordon Henriksen | 92f0dca | 2007-09-22 21:36:59 +0000 | [diff] [blame] | 33345 | "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` |
| 33346 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;; |
| 33347 | "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` |
| 33348 | ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33349 | |
| 33350 | esac |
| 33351 | done # for ac_tag |
| 33352 | |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33353 | |
| 33354 | { (exit 0); exit 0; } |
| 33355 | _ACEOF |
| 33356 | chmod +x $CONFIG_STATUS |
| 33357 | ac_clean_files=$ac_clean_files_save |
| 33358 | |
| 33359 | |
| 33360 | # configure is writing to config.log, and then calls config.status. |
| 33361 | # config.status does its own redirection, appending to config.log. |
| 33362 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 33363 | # by configure, so config.status won't be able to write to it; its |
| 33364 | # output is simply discarded. So we exec the FD to /dev/null, |
| 33365 | # effectively closing config.log, so it can be properly (re)opened and |
| 33366 | # appended to by config.status. When coming back to configure, we |
| 33367 | # need to make the FD available again. |
| 33368 | if test "$no_create" != yes; then |
| 33369 | ac_cs_success=: |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33370 | ac_config_status_args= |
| 33371 | test "$silent" = yes && |
| 33372 | ac_config_status_args="$ac_config_status_args --quiet" |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33373 | exec 5>/dev/null |
John Criswell | 0c38eaf | 2003-09-10 15:17:25 +0000 | [diff] [blame] | 33374 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
John Criswell | 7a73b80 | 2003-06-30 21:59:07 +0000 | [diff] [blame] | 33375 | exec 5>>config.log |
| 33376 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 33377 | # would make configure fail if this is the last instruction. |
| 33378 | $ac_cs_success || { (exit 1); exit 1; } |
| 33379 | fi |
| 33380 | |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33381 | # |
| 33382 | # CONFIG_SUBDIRS section. |
| 33383 | # |
| 33384 | if test "$no_recursion" != yes; then |
| 33385 | |
| 33386 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
| 33387 | ac_sub_configure_args= |
| 33388 | ac_prev= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33389 | eval "set x $ac_configure_args" |
| 33390 | shift |
| 33391 | for ac_arg |
| 33392 | do |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33393 | if test -n "$ac_prev"; then |
| 33394 | ac_prev= |
| 33395 | continue |
| 33396 | fi |
| 33397 | case $ac_arg in |
| 33398 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 33399 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 33400 | ac_prev=cache_file ;; |
| 33401 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 33402 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 33403 | | --c=*) |
| 33404 | ;; |
| 33405 | --config-cache | -C) |
| 33406 | ;; |
| 33407 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 33408 | ac_prev=srcdir ;; |
| 33409 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 33410 | ;; |
| 33411 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 33412 | ac_prev=prefix ;; |
| 33413 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 33414 | ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33415 | *) |
| 33416 | case $ac_arg in |
| 33417 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 33418 | esac |
| 33419 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33420 | esac |
| 33421 | done |
| 33422 | |
| 33423 | # Always prepend --prefix to ensure using the same prefix |
| 33424 | # in subdir configurations. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33425 | ac_arg="--prefix=$prefix" |
| 33426 | case $ac_arg in |
| 33427 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 33428 | esac |
Scott Michel | 96dcd2b | 2007-12-05 21:24:02 +0000 | [diff] [blame] | 33429 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 33430 | |
| 33431 | # Pass --silent |
| 33432 | if test "$silent" = yes; then |
| 33433 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 33434 | fi |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33435 | |
| 33436 | ac_popdir=`pwd` |
| 33437 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 33438 | |
| 33439 | # Do not complain, so a configure script can configure whichever |
| 33440 | # parts of a large source tree are present. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33441 | test -d "$srcdir/$ac_dir" || continue |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33442 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33443 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 33444 | echo "$as_me:$LINENO: $ac_msg" >&5 |
| 33445 | echo "$ac_msg" >&6 |
| 33446 | { as_dir="$ac_dir" |
| 33447 | case $as_dir in #( |
| 33448 | -*) as_dir=./$as_dir;; |
| 33449 | esac |
| 33450 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33451 | as_dirs= |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33452 | while :; do |
| 33453 | case $as_dir in #( |
| 33454 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 33455 | *) as_qdir=$as_dir;; |
| 33456 | esac |
| 33457 | as_dirs="'$as_qdir' $as_dirs" |
| 33458 | as_dir=`$as_dirname -- "$as_dir" || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33459 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33460 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 33461 | X"$as_dir" : 'X\(//\)$' \| \ |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33462 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33463 | echo X"$as_dir" | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 33465 | s//\1/ |
| 33466 | q |
| 33467 | } |
| 33468 | /^X\(\/\/\)[^/].*/{ |
| 33469 | s//\1/ |
| 33470 | q |
| 33471 | } |
| 33472 | /^X\(\/\/\)$/{ |
| 33473 | s//\1/ |
| 33474 | q |
| 33475 | } |
| 33476 | /^X\(\/\).*/{ |
| 33477 | s//\1/ |
| 33478 | q |
| 33479 | } |
| 33480 | s/.*/./; q'` |
| 33481 | test -d "$as_dir" && break |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33482 | done |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33483 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 33484 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 33485 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33486 | { (exit 1); exit 1; }; }; } |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33487 | ac_builddir=. |
| 33488 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33489 | case "$ac_dir" in |
| 33490 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33491 | *) |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33492 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33493 | # A ".." for each directory in $ac_dir_suffix. |
| 33494 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 33495 | case $ac_top_builddir_sub in |
| 33496 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 33497 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 33498 | esac ;; |
| 33499 | esac |
| 33500 | ac_abs_top_builddir=$ac_pwd |
| 33501 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 33502 | # for backward compatibility: |
| 33503 | ac_top_builddir=$ac_top_build_prefix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33504 | |
| 33505 | case $srcdir in |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33506 | .) # We are building in place. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33507 | ac_srcdir=. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33508 | ac_top_srcdir=$ac_top_builddir_sub |
| 33509 | ac_abs_top_srcdir=$ac_pwd ;; |
| 33510 | [\\/]* | ?:[\\/]* ) # Absolute name. |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33511 | ac_srcdir=$srcdir$ac_dir_suffix; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33512 | ac_top_srcdir=$srcdir |
| 33513 | ac_abs_top_srcdir=$srcdir ;; |
| 33514 | *) # Relative name. |
| 33515 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 33516 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 33517 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33518 | esac |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33519 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33520 | |
| 33521 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33522 | cd "$ac_dir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33523 | |
| 33524 | # Check for guested configure; otherwise get Cygnus style configure. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33525 | if test -f "$ac_srcdir/configure.gnu"; then |
| 33526 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 33527 | elif test -f "$ac_srcdir/configure"; then |
| 33528 | ac_sub_configure=$ac_srcdir/configure |
| 33529 | elif test -f "$ac_srcdir/configure.in"; then |
| 33530 | # This should be Cygnus configure. |
| 33531 | ac_sub_configure=$ac_aux_dir/configure |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33532 | else |
| 33533 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
| 33534 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 33535 | ac_sub_configure= |
| 33536 | fi |
| 33537 | |
| 33538 | # The recursion is here. |
| 33539 | if test -n "$ac_sub_configure"; then |
| 33540 | # Make the cache file name correct relative to the subdirectory. |
| 33541 | case $cache_file in |
| 33542 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33543 | *) # Relative name. |
| 33544 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33545 | esac |
| 33546 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33547 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 33548 | 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] | 33549 | # The eval makes quoting arguments work. |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33550 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 33551 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Reid Spencer | 2706f8c | 2004-09-19 23:53:36 +0000 | [diff] [blame] | 33552 | { { 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] | 33553 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
| 33554 | { (exit 1); exit 1; }; } |
| 33555 | fi |
| 33556 | |
Reid Spencer | a773bd5 | 2006-08-04 18:18:08 +0000 | [diff] [blame] | 33557 | cd "$ac_popdir" |
John Criswell | 12399a1 | 2003-09-30 15:55:44 +0000 | [diff] [blame] | 33558 | done |
| 33559 | fi |
| 33560 | |